Skip to content

Commit

Permalink
add cluster region
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Feb 29, 2024
1 parent 519bc82 commit 6d4f84d
Show file tree
Hide file tree
Showing 21 changed files with 76 additions and 28 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "EcsCluster97242B84"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "FargateCluster7CCD5F93"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "FargateCluster7CCD5F93"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "EcsCluster97242B84"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "EcsCluster97242B84"
},
Expand Down Expand Up @@ -706,7 +710,11 @@
"Fn::Join": [
"",
[
"arn:aws:ecs:*:*:task/",
"arn:aws:ecs:",
{
"Ref": "AWS::Region"
},
":*:task/",
{
"Ref": "EcsCluster97242B84"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class EcsTask implements events.IRuleTarget {
new iam.PolicyStatement({
actions: ['ecs:TagResource'],
// eslint-disable-next-line @aws-cdk/no-literal-partition
resources: [`arn:aws:ecs:*:*:task/${this.cluster.clusterName}/*`],
resources: [`arn:aws:ecs:${this.cluster.env.region}:*:task/${this.cluster.clusterName}/*`],
}),
];

Expand Down

0 comments on commit 6d4f84d

Please sign in to comment.