hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.8k stars 9.15k forks source link

[Bug]: statusServiceWaitForStable does not work with CODE_DEPLOY controller #29252

Open kovshenin opened 1 year ago

kovshenin commented 1 year ago

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 with aws_ecs_service and a CODE_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

resource "aws_ecs_service" "default" {
  ...

  wait_for_steady_state = true
  deployment_controller {
    type = "CODE_DEPLOY"
  }
}

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

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue