From ab1123fd5b41ce6a362cb181aea2ac0b0e9672eb Mon Sep 17 00:00:00 2001 From: akash1810 Date: Thu, 14 Mar 2024 15:24:53 +0000 Subject: [PATCH] chore: Update snapshot Updates for the changes introduced in AWS CDK v2.128.0. See: - https://github.com/aws/aws-cdk/releases/tag/v2.128.0 - https://github.com/aws/aws-cdk/pull/27891 --- .../ecs/__snapshots__/ecs-task.test.ts.snap | 334 ++++++++++++------ 1 file changed, 224 insertions(+), 110 deletions(-) diff --git a/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap b/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap index 0047da05fb..28cc20fcdb 100644 --- a/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap +++ b/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap @@ -346,117 +346,231 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of { "Action": "ecs:RunTask", "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ":", - { - "Fn::Select": [ - 2, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ":", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ":", - { - "Fn::Select": [ - 4, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ":", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ], - }, - ], - }, - "/", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "testecstaskecstestTaskDefinition4BF687D5", - }, - ], - }, - ], - }, - ], - }, - ], - }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 4, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ], + }, + ], + }, + "/", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ], + }, + ], + }, + ], ], - ], - }, + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 4, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ":", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ], + }, + ], + }, + "/", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "testecstaskecstestTaskDefinition4BF687D5", + }, + ], + }, + ], + }, + ], + }, + ], + }, + ":*", + ], + ], + }, + ], }, { "Action": [