When creating ECS service on a new cluster, the service linked role doesn't exist yet #11417
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
Milestone
Community Note
Terraform Version
Terraform v0.12.13
Affected Resource(s)
aws_ecs_service
Expected Behavior
When creating an ECS service immediately after creating a new cluster in the same terraform apply, it should wait for AWS to create the service linked role, and succeed in creating the service.
Actual Behavior
It tries to create the service before AWS finishes creating the ECS service linked role, and fails with this error.
If terraform apply is run again shortly thereafter, it works.
Steps to Reproduce
terraform apply
(fails)terraform apply
(works)The text was updated successfully, but these errors were encountered: