Unable to apply autoscaling targets while changing billing mode from PAY_PER_REQUEST to PROVISIONED for Global Tables #22784
Labels
bug
Addresses a defect in current functionality.
service/dynamodb
Issues and PRs that pertain to the dynamodb service.
Community Note
Terraform CLI and Terraform AWS Provider Version
TERRAFORM_VERSION=0.14.11
TERRAFORM_AWS_PROVIDER_VERSION=3.73.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Should change the table billing mode and also attach the autoscaling settings that are supplied in terraform
Actual Behavior
Failed to change the table from PAY_PER_REQUEST to PROVISIONED billing and add autoscaling at the same time. Updated the billing mode to PROVISIONED but failed to attach the autoscaling settings. Even after adding
depends_on
for autoscaling resources so that table update finishes before applying the autoscaling settings it's not working.My guess is that
depends_on
doesn't actually wait for the table to becomeACTIVE
before applying the autoscaling targetsSteps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: