diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.assets.json similarity index 64% rename from packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.assets.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.assets.json index 7a3dd9ca8223c..98ee4e6e759da 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.assets.json @@ -1,15 +1,15 @@ { "version": "34.0.0", "files": { - "b889207d0d0c87fa2e8cc9188f299b4aeb7d25e16cc4256ce912cf6e5e975e62": { + "76b2e39f693d6f0ad3a2af818bc19b173d3f591514eb3235967ba78f4698dda9": { "source": { - "path": "lambda-bucket-notifications.template.json", + "path": "cdk-integ-lambda-bucket-notifications.template.json", "packaging": "file" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "b889207d0d0c87fa2e8cc9188f299b4aeb7d25e16cc4256ce912cf6e5e975e62.json", + "objectKey": "76b2e39f693d6f0ad3a2af818bc19b173d3f591514eb3235967ba78f4698dda9.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json similarity index 96% rename from packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.template.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json index c2ce0a012b448..425de5a6dd847 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/lambda-bucket-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json @@ -45,10 +45,10 @@ "Managed": true }, "DependsOn": [ - "MyBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C1BF13476" + "MyBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1AF09DAA1" ] }, - "MyBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C1BF13476": { + "MyBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1AF09DAA1": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", @@ -155,10 +155,10 @@ "Managed": true }, "DependsOn": [ - "YourBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C8FE2B89D" + "YourBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A165D77D83" ] }, - "YourBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C8FE2B89D": { + "YourBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A165D77D83": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/integ.json index 08289133d724a..9dd125f317346 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/integ.json @@ -3,7 +3,7 @@ "testCases": { "integ.bucket-notifications": { "stacks": [ - "lambda-bucket-notifications" + "cdk-integ-lambda-bucket-notifications" ], "diffAssets": false, "stackUpdateWorkflow": true diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/manifest.json index 4be25f2b14be5..5f692dd1fe701 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/manifest.json @@ -1,27 +1,28 @@ { "version": "34.0.0", "artifacts": { - "lambda-bucket-notifications.assets": { + "cdk-integ-lambda-bucket-notifications.assets": { "type": "cdk:asset-manifest", "properties": { - "file": "lambda-bucket-notifications.assets.json", + "file": "cdk-integ-lambda-bucket-notifications.assets.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" } }, - "lambda-bucket-notifications": { + "cdk-integ-lambda-bucket-notifications": { "type": "aws:cloudformation:stack", "environment": "aws://unknown-account/unknown-region", "properties": { - "templateFile": "lambda-bucket-notifications.template.json", + "templateFile": "cdk-integ-lambda-bucket-notifications.template.json", + "terminationProtection": false, "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b889207d0d0c87fa2e8cc9188f299b4aeb7d25e16cc4256ce912cf6e5e975e62.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/76b2e39f693d6f0ad3a2af818bc19b173d3f591514eb3235967ba78f4698dda9.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ - "lambda-bucket-notifications.assets" + "cdk-integ-lambda-bucket-notifications.assets" ], "lookupRole": { "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", @@ -30,89 +31,89 @@ } }, "dependencies": [ - "lambda-bucket-notifications.assets" + "cdk-integ-lambda-bucket-notifications.assets" ], "metadata": { - "/lambda-bucket-notifications/MyBucket/Resource": [ + "/cdk-integ-lambda-bucket-notifications/MyBucket/Resource": [ { "type": "aws:cdk:logicalId", "data": "MyBucketF68F3FF0" } ], - "/lambda-bucket-notifications/MyBucket/Notifications/Resource": [ + "/cdk-integ-lambda-bucket-notifications/MyBucket/Notifications/Resource": [ { "type": "aws:cdk:logicalId", "data": "MyBucketNotifications46AC0CD2" } ], - "/lambda-bucket-notifications/MyBucket/AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C": [ + "/cdk-integ-lambda-bucket-notifications/MyBucket/AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1": [ { "type": "aws:cdk:logicalId", - "data": "MyBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C1BF13476" + "data": "MyBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1AF09DAA1" } ], - "/lambda-bucket-notifications/MyFunction/ServiceRole/Resource": [ + "/cdk-integ-lambda-bucket-notifications/MyFunction/ServiceRole/Resource": [ { "type": "aws:cdk:logicalId", "data": "MyFunctionServiceRole3C357FF2" } ], - "/lambda-bucket-notifications/MyFunction/Resource": [ + "/cdk-integ-lambda-bucket-notifications/MyFunction/Resource": [ { "type": "aws:cdk:logicalId", "data": "MyFunction3BAA72D1" } ], - "/lambda-bucket-notifications/YourBucket/Resource": [ + "/cdk-integ-lambda-bucket-notifications/YourBucket/Resource": [ { "type": "aws:cdk:logicalId", "data": "YourBucketC6A57364" } ], - "/lambda-bucket-notifications/YourBucket/Notifications/Resource": [ + "/cdk-integ-lambda-bucket-notifications/YourBucket/Notifications/Resource": [ { "type": "aws:cdk:logicalId", "data": "YourBucketNotifications8D39901A" } ], - "/lambda-bucket-notifications/YourBucket/AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C": [ + "/cdk-integ-lambda-bucket-notifications/YourBucket/AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1": [ { "type": "aws:cdk:logicalId", - "data": "YourBucketAllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C8FE2B89D" + "data": "YourBucketAllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A165D77D83" } ], - "/lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource": [ + "/cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource": [ { "type": "aws:cdk:logicalId", "data": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" } ], - "/lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource": [ + "/cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource": [ { "type": "aws:cdk:logicalId", "data": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36" } ], - "/lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource": [ + "/cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource": [ { "type": "aws:cdk:logicalId", "data": "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691" } ], - "/lambda-bucket-notifications/BootstrapVersion": [ + "/cdk-integ-lambda-bucket-notifications/BootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "BootstrapVersion" } ], - "/lambda-bucket-notifications/CheckBootstrapVersion": [ + "/cdk-integ-lambda-bucket-notifications/CheckBootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "CheckBootstrapVersion" } ] }, - "displayName": "lambda-bucket-notifications" + "displayName": "cdk-integ-lambda-bucket-notifications" }, "Tree": { "type": "cdk:tree", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/tree.json index 0ef3a148063b8..c5e886714fc68 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/tree.json @@ -4,17 +4,17 @@ "id": "App", "path": "", "children": { - "lambda-bucket-notifications": { - "id": "lambda-bucket-notifications", - "path": "lambda-bucket-notifications", + "cdk-integ-lambda-bucket-notifications": { + "id": "cdk-integ-lambda-bucket-notifications", + "path": "cdk-integ-lambda-bucket-notifications", "children": { "MyBucket": { "id": "MyBucket", - "path": "lambda-bucket-notifications/MyBucket", + "path": "cdk-integ-lambda-bucket-notifications/MyBucket", "children": { "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/MyBucket/Resource", + "path": "cdk-integ-lambda-bucket-notifications/MyBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": {} @@ -26,11 +26,11 @@ }, "Notifications": { "id": "Notifications", - "path": "lambda-bucket-notifications/MyBucket/Notifications", + "path": "cdk-integ-lambda-bucket-notifications/MyBucket/Notifications", "children": { "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/MyBucket/Notifications/Resource", + "path": "cdk-integ-lambda-bucket-notifications/MyBucket/Notifications/Resource", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -42,9 +42,9 @@ "version": "10.2.70" } }, - "AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C": { - "id": "AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C", - "path": "lambda-bucket-notifications/MyBucket/AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C", + "AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1": { + "id": "AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1", + "path": "cdk-integ-lambda-bucket-notifications/MyBucket/AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1", "attributes": { "aws:cdk:cloudformation:type": "AWS::Lambda::Permission", "aws:cdk:cloudformation:props": { @@ -80,15 +80,15 @@ }, "MyFunction": { "id": "MyFunction", - "path": "lambda-bucket-notifications/MyFunction", + "path": "cdk-integ-lambda-bucket-notifications/MyFunction", "children": { "ServiceRole": { "id": "ServiceRole", - "path": "lambda-bucket-notifications/MyFunction/ServiceRole", + "path": "cdk-integ-lambda-bucket-notifications/MyFunction/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "lambda-bucket-notifications/MyFunction/ServiceRole/ImportServiceRole", + "path": "cdk-integ-lambda-bucket-notifications/MyFunction/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -96,7 +96,7 @@ }, "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/MyFunction/ServiceRole/Resource", + "path": "cdk-integ-lambda-bucket-notifications/MyFunction/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -141,7 +141,7 @@ }, "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/MyFunction/Resource", + "path": "cdk-integ-lambda-bucket-notifications/MyFunction/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Lambda::Function", "aws:cdk:cloudformation:props": { @@ -171,11 +171,11 @@ }, "YourBucket": { "id": "YourBucket", - "path": "lambda-bucket-notifications/YourBucket", + "path": "cdk-integ-lambda-bucket-notifications/YourBucket", "children": { "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/YourBucket/Resource", + "path": "cdk-integ-lambda-bucket-notifications/YourBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": {} @@ -187,11 +187,11 @@ }, "Notifications": { "id": "Notifications", - "path": "lambda-bucket-notifications/YourBucket/Notifications", + "path": "cdk-integ-lambda-bucket-notifications/YourBucket/Notifications", "children": { "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/YourBucket/Notifications/Resource", + "path": "cdk-integ-lambda-bucket-notifications/YourBucket/Notifications/Resource", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -203,9 +203,9 @@ "version": "10.2.70" } }, - "AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C": { - "id": "AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C", - "path": "lambda-bucket-notifications/YourBucket/AllowBucketNotificationsTolambdabucketnotificationsMyFunction4086861C", + "AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1": { + "id": "AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1", + "path": "cdk-integ-lambda-bucket-notifications/YourBucket/AllowBucketNotificationsTocdkinteglambdabucketnotificationsMyFunctionEA6057A1", "attributes": { "aws:cdk:cloudformation:type": "AWS::Lambda::Permission", "aws:cdk:cloudformation:props": { @@ -241,15 +241,15 @@ }, "BucketNotificationsHandler050a0587b7544547bf325f094a3db834": { "id": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834", "children": { "Role": { "id": "Role", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role", "children": { "ImportRole": { "id": "ImportRole", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/ImportRole", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/ImportRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -257,7 +257,7 @@ }, "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -296,11 +296,11 @@ }, "DefaultPolicy": { "id": "DefaultPolicy", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy", "children": { "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Policy", "aws:cdk:cloudformation:props": { @@ -341,7 +341,7 @@ }, "Resource": { "id": "Resource", - "path": "lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource", + "path": "cdk-integ-lambda-bucket-notifications/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -355,7 +355,7 @@ }, "BootstrapVersion": { "id": "BootstrapVersion", - "path": "lambda-bucket-notifications/BootstrapVersion", + "path": "cdk-integ-lambda-bucket-notifications/BootstrapVersion", "constructInfo": { "fqn": "aws-cdk-lib.CfnParameter", "version": "0.0.0" @@ -363,7 +363,7 @@ }, "CheckBootstrapVersion": { "id": "CheckBootstrapVersion", - "path": "lambda-bucket-notifications/CheckBootstrapVersion", + "path": "cdk-integ-lambda-bucket-notifications/CheckBootstrapVersion", "constructInfo": { "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts index d2c828918c981..a093fb72938ec 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.ts @@ -6,7 +6,7 @@ import { STANDARD_NODEJS_RUNTIME } from '../../../config'; const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-bucket-notifications'); +const stack = new cdk.Stack(app, 'cdk-integ-lambda-bucket-notifications'); const bucketA = new s3.Bucket(stack, 'MyBucket', { removalPolicy: cdk.RemovalPolicy.DESTROY, diff --git a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/lambda/index.py b/packages/@aws-cdk/custom-resource-handlers/lib/aws-s3/notifications-resource-handler/index.py similarity index 100% rename from packages/aws-cdk-lib/aws-s3/lib/notifications-resource/lambda/index.py rename to packages/@aws-cdk/custom-resource-handlers/lib/aws-s3/notifications-resource-handler/index.py diff --git a/packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/Dockerfile b/packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/Dockerfile similarity index 100% rename from packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/Dockerfile rename to packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/Dockerfile diff --git a/packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/test.sh b/packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/test.sh similarity index 89% rename from packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/test.sh rename to packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/test.sh index d336900a7c326..c524ab9ffd489 100755 --- a/packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/test.sh +++ b/packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/test.sh @@ -12,7 +12,7 @@ mkdir -p ${staging} cd ${staging} # copy src and overlay with test -cp ${script_dir}/../../lib/notifications-resource/lambda/index.py $PWD +cp ${script_dir}/../../../lib/aws-s3/notifications-resource-handler/index.py $PWD cp ${script_dir}/test_index.py $PWD cp ${script_dir}/Dockerfile $PWD diff --git a/packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/test_index.py b/packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/test_index.py similarity index 100% rename from packages/aws-cdk-lib/aws-s3/test/notifications-resource-handler/test_index.py rename to packages/@aws-cdk/custom-resource-handlers/test/aws-s3/notifications-resource-handler/test_index.py diff --git a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts index 352b958b2b336..9c969b8b06bca 100644 --- a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts +++ b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts @@ -82,7 +82,7 @@ export class NotificationsResourceHandler extends Construct { } } - const handlerSource = fs.readFileSync(path.join(__dirname, 'lambda/index.py'), 'utf8'); + const handlerSource = fs.readFileSync(path.join(__dirname, '..', '..', '..', 'custom-resource-handlers', 'dist', 'aws-s3', 'notifications-resource-handler', 'index.py'), 'utf8'); // Removing lines that starts with '#' (comment lines) in order to fit the 4096 limit const handlerSourceWithoutComments = handlerSource.replace(/^ *#.*\n?/gm, '');