When using wait_for_steady_state with aws_ecs_service and a CODE_DEPLOYdeployment_controller, the creation of the service should succeed when the ECS service is created and running the desired number of tasks.
Actual Behavior
The creation of the service hangs until timeout as the ECS service will never be considered steady because it will not have any deployments.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.3.7
AWS Provider Version
4.51.0
Affected Resource(s)
aws_ecs_service
Expected Behavior
When using
wait_for_steady_state
withaws_ecs_service
and aCODE_DEPLOY
deployment_controller
, the creation of the service should succeed when the ECS service is created and running the desired number of tasks.Actual Behavior
The creation of the service hangs until timeout as the ECS service will never be considered steady because it will not have any deployments.
https://github.com/hashicorp/terraform-provider-aws/blob/5857c145b31d41966bef256f669c12ae35cc2486/internal/service/ecs/status.go#L87-L89
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Create an ECS service with a CODE_DEPLOY deployment controller and use
wait_for_steady_state
.Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None