diff --git a/examples/chart/teleport-cluster/templates/auth/_config.aws.tpl b/examples/chart/teleport-cluster/templates/auth/_config.aws.tpl index d0919e77592c9..9fb0863116957 100644 --- a/examples/chart/teleport-cluster/templates/auth/_config.aws.tpl +++ b/examples/chart/teleport-cluster/templates/auth/_config.aws.tpl @@ -13,6 +13,7 @@ continuous_backups: {{ required "aws.backups is required in chart values" .Values.aws.backups }} {{- if .Values.aws.dynamoAutoScaling }} auto_scaling: true + billing_mode: provisioned read_min_capacity: {{ required "aws.readMinCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.readMinCapacity }} read_max_capacity: {{ required "aws.readMaxCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.readMaxCapacity }} read_target_value: {{ required "aws.readTargetValue is required when aws.dynamoAutoScaling is true" .Values.aws.readTargetValue }} diff --git a/examples/chart/teleport-cluster/tests/__snapshot__/auth_config_test.yaml.snap b/examples/chart/teleport-cluster/tests/__snapshot__/auth_config_test.yaml.snap index afda56c39ee7e..ed8eb560a44e0 100644 --- a/examples/chart/teleport-cluster/tests/__snapshot__/auth_config_test.yaml.snap +++ b/examples/chart/teleport-cluster/tests/__snapshot__/auth_config_test.yaml.snap @@ -445,6 +445,7 @@ matches snapshot for aws-dynamodb-autoscaling.yaml: - dynamodb://test-dynamodb-auditlog-table audit_sessions_uri: s3://test-s3-session-storage-bucket auto_scaling: true + billing_mode: provisioned continuous_backups: false read_max_capacity: 100 read_min_capacity: 5 diff --git a/examples/chart/teleport-cluster/tests/auth_config_test.yaml b/examples/chart/teleport-cluster/tests/auth_config_test.yaml index d7ddeb2ca008c..ea2ed147ccc65 100644 --- a/examples/chart/teleport-cluster/tests/auth_config_test.yaml +++ b/examples/chart/teleport-cluster/tests/auth_config_test.yaml @@ -502,3 +502,11 @@ tests: of: ConfigMap - matchSnapshot: path: data.teleport\.yaml + + - it: sets "provisioned" billing mode when autoscaling is enabled + values: + - ../.lint/aws-dynamodb-autoscaling.yaml + asserts: + - matchRegex: + path: data.teleport\.yaml + pattern: 'billing_mode: provisioned'