-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Closed
Copy link
Labels
@aws-cdk/aws-events-targetsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item β less than a day of effortSmall work item β less than a day of effortmanagement/trackingIssues that track a subject or multiple issuesIssues that track a subject or multiple issuesp0
Description
Please add your +1 π to let us know you have encountered this
Status: RESOLVED
Overview:
Partition in https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts#L291 is hardcoded to aws so it doesn't work for other special partitions.
Workaround:
Solution:
Update policy to use this.cluster.stack.partition instead of hardcoded aws.
Fixed in v2.135.0.
Expected Behavior
Partition should be added dynamically.
Current Behavior
Fixed to aws
Reproduction Steps
Create an ScheduledEc2Task or a ScheduledFargateTask following the example in the CDK documentation and attempt to deploy outside the AWS partition.
Possible Solution
Partition should be coming from this.cluster.env.partition?
Related Issues:
Additional Information/Context
No response
CDK CLI Version
2.132.1
Framework Version
No response
Node.js Version
18.18.2
OS
MacOS 14.3.1
Language
TypeScript
Language Version
5.4.2
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-events-targetsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item β less than a day of effortSmall work item β less than a day of effortmanagement/trackingIssues that track a subject or multiple issuesIssues that track a subject or multiple issuesp0