-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
❗ NOTICE(aws-events-targets): Hardcoded AWS Partition in ECS task resource ARN #29610
❗ NOTICE(aws-events-targets): Hardcoded AWS Partition in ECS task resource ARN #29610
Comments
Thanks for reporting this issue. It looks like that was recently added in #28898, and the partition should be dynamically populated. |
…#29633) ### Issue # (if applicable) Closes #29610 Related to #28898 ### Reason for this change Previously the AWS partition was hardcoded so it would not work for other special partitions. ### Description of changes Replace hardcoded `aws` partition to be dynamically added with `this.cluster.stack.partition`. ### Description of how you validated changes Ran integ tests suite, no changes. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
#29633 has been merged to fix this and should be available soon in an upcoming release. |
Fix has been released in |
CDK CLI notice for aws/aws-cdk#29610
chore: fix typo for notice for aws/aws-cdk#29610
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 hardcodedaws
.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:
#29628
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
The text was updated successfully, but these errors were encountered: