Skip to content
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

Support CapacityProviderStrategy in aws_cloudwatch_event_target with ecs_target #21320

Closed
mgreen-sm opened this issue Oct 15, 2021 · 1 comment · Fixed by #27068
Closed

Support CapacityProviderStrategy in aws_cloudwatch_event_target with ecs_target #21320

mgreen-sm opened this issue Oct 15, 2021 · 1 comment · Fixed by #27068
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/cloudwatch Issues and PRs that pertain to the cloudwatch service.

Comments

@mgreen-sm
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

CloudWatch / EventBridge provides the option to specify the Capacity Provider Strategy in an ECS Task target, which is currently not supported in Terraform.

The feature is useful to override the Default Capacity Provider in an ECS cluster.

New or Affected Resource(s)

  • aws_cloudwatch_event_target

Potential Terraform Configuration

resource "aws_cloudwatch_event_target" "ecs_scheduled_task" {
...

  ecs_target {
     // Must not be 'EC2' or 'FARGATE' when capacity_provider_strategy is specified
    launch_type = ""
    
    ...
    
    capacity_provider_strategy {
      capacity_provider = "example_capacity_provider_one"
      weight = 1
      base   = 0
    }

    capacity_provider_strategy {
      capacity_provider = "example_capacity_provider_two"
      weight = 1
      base   = 0
    }

  }

...
}

References

@mgreen-sm mgreen-sm added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 15, 2021
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/cloudwatchevents labels Oct 15, 2021
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Oct 15, 2021
@ewbankkit ewbankkit added the service/cloudwatch Issues and PRs that pertain to the cloudwatch service. label Oct 4, 2022
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/cloudwatch Issues and PRs that pertain to the cloudwatch service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants