-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very first creation of an ECS cluster fails #15452
Comments
Hi @vladimirtiukhtin 👋 Thank you for raising this. The ECS
To lessen the occurrence of this issue in AWS accounts that have not provisioned ECS resources, we would recommend provisioning an resource "aws_iam_service_linked_role" "ecs" {
aws_service_name = "ecs.amazonaws.com"
} This may not fully mitigate the issue if its in the same configuration as the ECS Cluster provisioning as the new IAM Service Linked Role may not have propagated in time due to IAM's eventual consistency, however many Terraform configurations should already be split up appropriately between account-level and application-level configurations to make this beneficial until the resource can potentially be updated to retry around the |
…Role eventual consistency Reference: #15452 Output from acceptance testing: ``` --- PASS: TestAccAWSEcsCluster_disappears (22.48s) --- PASS: TestAccAWSEcsCluster_basic (27.36s) --- PASS: TestAccAWSEcsCluster_Tags (46.73s) --- PASS: TestAccAWSEcsCluster_CapacityProviders (49.40s) --- PASS: TestAccAWSEcsCluster_CapacityProvidersNoStrategy (53.36s) --- PASS: TestAccAWSEcsCluster_containerInsights (65.48s) --- PASS: TestAccAWSEcsCluster_CapacityProvidersUpdate (83.87s) --- PASS: TestAccAWSEcsCluster_SingleCapacityProvider (90.92s) ```
Submitted this PR which should fix the issue by retrying the |
…Role eventual consistency (#15457) Reference: #15452 Output from acceptance testing: ``` --- PASS: TestAccAWSEcsCluster_disappears (22.48s) --- PASS: TestAccAWSEcsCluster_basic (27.36s) --- PASS: TestAccAWSEcsCluster_Tags (46.73s) --- PASS: TestAccAWSEcsCluster_CapacityProviders (49.40s) --- PASS: TestAccAWSEcsCluster_CapacityProvidersNoStrategy (53.36s) --- PASS: TestAccAWSEcsCluster_containerInsights (65.48s) --- PASS: TestAccAWSEcsCluster_CapacityProvidersUpdate (83.87s) --- PASS: TestAccAWSEcsCluster_SingleCapacityProvider (90.92s) ```
The API retries for this has been merged and will release with version 3.10.0 of the Terraform AWS Provider, likely tomorrow. 👍 |
This has been released in version 3.10.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Debug Output
Expected Behavior
Everything works from the first attempt
Actual Behavior
First attempt fails, further attempts pass
The text was updated successfully, but these errors were encountered: