Skip to content

aws-events-targets:ecs-task no longer works outside AWS partition #29628

@bmoor-amzn

Description

@bmoor-amzn

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

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.duplicateThis issue is a duplicate.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions