You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto scaling policy and target are both created successfully.
Actual Behavior
Intermittently, you get an error like this:
Error putting scaling policy: ObjectNotFoundException: No scalable target registered for service namespace: ecs (... sorry, I forgot to copy/paste the rest of the error ...)
If you re-run terraform apply, the error usually goes away.
Steps to Reproduce
terraform apply
Important Factoids
If you re-run terraform apply, sometimes multiple times, it works. I suspect this is a classic issue with the fact that AWS is asynchronous and eventually consistent and Terraform is not properly waiting for the aws_appautoscaling_target resource to be created.
The text was updated successfully, but these errors were encountered:
It's an intermittent problem, so it won't always happen.
FWIW, as most timing issues with Terraform and AWS, it may make a difference where you're located. When I saw the error above, I was in the US, but deploying to the eu-central-1 data center, which would increase replication lag.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.7.7
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The auto scaling policy and target are both created successfully.
Actual Behavior
Intermittently, you get an error like this:
If you re-run
terraform apply
, the error usually goes away.Steps to Reproduce
terraform apply
Important Factoids
If you re-run
terraform apply
, sometimes multiple times, it works. I suspect this is a classic issue with the fact that AWS is asynchronous and eventually consistent and Terraform is not properly waiting for theaws_appautoscaling_target
resource to be created.The text was updated successfully, but these errors were encountered: