-
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
resource/aws_cloudwatch_event_target: ecs_target's launch_type should not have a default #16078
Comments
Additionally, This is critical to be able to use the capacity provider of the ECS cluster. You can have a look here aws/containers-roadmap#937 (comment) This is a regression. I have had this setup with
and
|
We are also facing this issue. We want to be able to run scheduled task on an ECS cluster and want to scale to 0 with termination protection on the ASG. The capacity provider is not activated when the CloudWatch event is triggered and the event fails complaining about the absence of any EC2 instances on the cluster. (aws/containers-roadmap#937). We came across the workaround that @gbataille has put in the corresponding GitHub issue (aws/containers-roadmap#937) but we are getting a terraform error Can you please let us know if we can expect a fix for this issue from terraform end? |
We had the same issue, and ended up creating a lambda python to run a task using Fargate Spot; using run_rask(): |
Bump. This appears to be the cause of the problem: @DrFaust92 Can this be easily changed to allow an empty string? This is blocking me from upgrading my aws provider that I now need to get access to newer settings. |
Hi @ianneub , thank you for raising this issue! Just noting here that removing the default value would be a breaking change, though the workaround you've proposed to support the empty string is a great alternative 👍 |
This functionality has been released in v4.0.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. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
task-definitions/dump_database.json:
Expected Behavior
The
launch_type
should not be set.Actual Behavior
In the
aws_cloudwatch_event_target
output, theecs_target
launch_type
is set toEC2
.Steps to Reproduce
terraform apply
References
The text was updated successfully, but these errors were encountered: