-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Describe the bug
A recent change to the ecs-task event rule target broke using event rule targets on ECS tasks outside of the AWS partition.
Specifically this policy statement which explicitly disables the linter check for hardcoded partitions.
My code was successfully working a few weeks ago and I recently noticed the failures without any changes in my CDK application, just a new dependency upgrade from cdk lib 2.x
Expected Behavior
My CDK should deploy in all partitions successfully.
Current Behavior
My CDK fails to deploy in any partition except AWS with an IAM validation failure on the partition arn.
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
No response
Additional Information/Context
No response
CDK CLI Version
2.133.0
Framework Version
No response
Node.js Version
18.x
OS
linux
Language
TypeScript, Python, .NET, Java, Go
Language Version
No response
Other information
No response