From a98a98147534f89a219521a2e51a6a1e25a2ac06 Mon Sep 17 00:00:00 2001 From: msysh Date: Fri, 7 Apr 2023 04:11:27 +0900 Subject: [PATCH 1/4] feat(step-functions-tasks): Support PropagatedTagSource property for EcsRunTask (#24949) Currently, when launching an ECS task with Step Functions, it is impossible to propagate tag to task. To solve this issue, add property for PropagatedTagSource for EcsRunTask Closes #12999 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../test/ecs/integ.fargate-run-task.js | 9 +- ...ws-sfn-tasks-ecs-fargate-integ.assets.json | 6 +- ...-sfn-tasks-ecs-fargate-integ.template.json | 46 +++- .../cdk.out | 2 +- .../integ.json | 2 +- .../manifest.json | 10 +- .../tree.json | 214 ++++++++++++------ .../test/ecs/integ.fargate-run-task.ts | 9 + .../aws-stepfunctions-tasks/README.md | 2 + .../lib/ecs/run-task.ts | 11 + .../test/ecs/run-tasks.test.ts | 80 +++++++ 11 files changed, 309 insertions(+), 82 deletions(-) diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js index fc6cf5be2d6ff..5852d265cdd13 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js @@ -58,6 +58,13 @@ const definition = new sfn.Pass(stack, 'Start', { launchTarget: new tasks.EcsFargateLaunchTarget({ platformVersion: ecs.FargatePlatformVersion.VERSION1_4, }), +})).next(new tasks.EcsRunTask(stack, 'FargeateTaskWithPropagatedTag', { + cluster, + taskDefinition, + launchTarget: new tasks.EcsFargateLaunchTarget({ + platformVersion: ecs.FargatePlatformVersion.VERSION1_4, + }), + propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, })); const sm = new sfn.StateMachine(stack, 'StateMachine', { definition, @@ -66,4 +73,4 @@ new cdk.CfnOutput(stack, 'stateMachineArn', { value: sm.stateMachineArn, }); app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmFyZ2F0ZS1ydW4tdGFzay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmZhcmdhdGUtcnVuLXRhc2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsNkRBQTZEO0FBRTdEOzs7Ozs7Ozs7R0FTRztBQUNILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsaUNBQWlDLENBQUMsQ0FBQztBQUVwRSxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLGdCQUFnQixDQUFDLENBQUM7QUFFekQsd0JBQXdCO0FBQ3hCLE1BQU0sY0FBYyxHQUFHLElBQUksR0FBRyxDQUFDLHFCQUFxQixDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDckUsY0FBYyxFQUFFLEdBQUc7SUFDbkIsR0FBRyxFQUFFLEdBQUc7Q0FDVCxDQUFDLENBQUM7QUFDSCxNQUFNLG1CQUFtQixHQUFHLGNBQWMsQ0FBQyxZQUFZLENBQUMsY0FBYyxFQUFFO0lBQ3RFLEtBQUssRUFBRSxHQUFHLENBQUMsY0FBYyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFNBQVMsRUFBRSxvQkFBb0IsQ0FBQyxDQUFDO0lBQ2xGLGNBQWM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/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.assets.json index a5092dbba5075..727e6ea153ff5 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.assets.json @@ -1,7 +1,7 @@ { - "version": "30.0.0", + "version": "31.0.0", "files": { - "e24a1536363f5a0e085f665d59c23d647a03864eb45d88b8d07e2d0d8e285ee1": { + "e0fc842b7fabc881a98d67eb7dec48a397328444df14c6f4b2cd2c341ac07639": { "source": { "path": "aws-sfn-tasks-ecs-fargate-integ.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e24a1536363f5a0e085f665d59c23d647a03864eb45d88b8d07e2d0d8e285ee1.json", + "objectKey": "e0fc842b7fabc881a98d67eb7dec48a397328444df14c6f4b2cd2c341ac07639.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-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.template.json index d027193b1669d..9bb78abfc790e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/aws-sfn-tasks-ecs-fargate-integ.template.json @@ -576,6 +576,22 @@ } } }, + "FargeateTaskWithPropagatedTagSecurityGroup94A6AE70": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag/SecurityGroup", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "FargateClusterVpc377E8024" + } + } + }, "StateMachineRoleB840431D": { "Type": "AWS::IAM::Role", "Properties": { @@ -817,7 +833,7 @@ "GroupId" ] }, - "\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"TheContainer\",\"Environment\":[{\"Name\":\"SOME_KEY\",\"Value.$\":\"$.SomeKey\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskSetRevisionNumber\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"arn:", + "\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"TheContainer\",\"Environment\":[{\"Name\":\"SOME_KEY\",\"Value.$\":\"$.SomeKey\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskSetRevisionNumber\":{\"Next\":\"FargeateTaskWithPropagatedTag\",\"Type\":\"Task\",\"Resource\":\"arn:", { "Ref": "AWS::Partition" }, @@ -843,7 +859,33 @@ "GroupId" ] }, - "\"]}},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}" + "\"]}},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskWithPropagatedTag\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"arn:", + { + "Ref": "AWS::Partition" + }, + ":states:::ecs:runTask\",\"Parameters\":{\"Cluster\":\"", + { + "Fn::GetAtt": [ + "FargateCluster7CCD5F93", + "Arn" + ] + }, + "\",\"TaskDefinition\":\"awssfntasksecsfargateintegTaskDefD0F4AD10\",\"NetworkConfiguration\":{\"AwsvpcConfiguration\":{\"Subnets\":[\"", + { + "Ref": "FargateClusterVpcPrivateSubnet1Subnet9127625F" + }, + "\",\"", + { + "Ref": "FargateClusterVpcPrivateSubnet2Subnet307CEE57" + }, + "\"],\"SecurityGroups\":[\"", + { + "Fn::GetAtt": [ + "FargeateTaskWithPropagatedTagSecurityGroup94A6AE70", + "GroupId" + ] + }, + "\"]}},\"PropagateTags\":\"TASK_DEFINITION\",\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}" ] ] } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/cdk.out index ae4b03c54e770..7925065efbcc4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"30.0.0"} \ No newline at end of file +{"version":"31.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/integ.json index b5d886df0272f..ab3675c9bf242 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "30.0.0", + "version": "31.0.0", "testCases": { "integ.fargate-run-task": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/manifest.json index 92d553548b2a9..f1ee1b6e97426 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "30.0.0", + "version": "31.0.0", "artifacts": { "aws-sfn-tasks-ecs-fargate-integ.assets": { "type": "cdk:asset-manifest", @@ -17,7 +17,7 @@ "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}/e24a1536363f5a0e085f665d59c23d647a03864eb45d88b8d07e2d0d8e285ee1.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0fc842b7fabc881a98d67eb7dec48a397328444df14c6f4b2cd2c341ac07639.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -219,6 +219,12 @@ "data": "FargeateTaskSetRevisionNumberSecurityGroup916C9B0B" } ], + "/aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "FargeateTaskWithPropagatedTagSecurityGroup94A6AE70" + } + ], "/aws-sfn-tasks-ecs-fargate-integ/StateMachine/Role/Resource": [ { "type": "aws:cdk:logicalId", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/tree.json index 4391e121d8b04..f175e72b29520 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js.snapshot/tree.json @@ -20,7 +20,7 @@ "aws:cdk:cloudformation:props": {} }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecs.CfnCluster", + "fqn": "aws-cdk-lib.aws_ecs.CfnCluster", "version": "0.0.0" } }, @@ -47,7 +47,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPC", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", "version": "0.0.0" } }, @@ -91,7 +91,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -99,7 +99,7 @@ "id": "Acl", "path": "aws-sfn-tasks-ecs-fargate-integ/FargateCluster/Vpc/PublicSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -121,7 +121,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -140,7 +140,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -160,7 +160,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -180,7 +180,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -208,13 +208,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -258,7 +258,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -266,7 +266,7 @@ "id": "Acl", "path": "aws-sfn-tasks-ecs-fargate-integ/FargateCluster/Vpc/PublicSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -288,7 +288,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -307,7 +307,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -327,7 +327,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -347,7 +347,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -375,13 +375,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -425,7 +425,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -433,7 +433,7 @@ "id": "Acl", "path": "aws-sfn-tasks-ecs-fargate-integ/FargateCluster/Vpc/PrivateSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -455,7 +455,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -474,7 +474,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -494,13 +494,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -544,7 +544,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -552,7 +552,7 @@ "id": "Acl", "path": "aws-sfn-tasks-ecs-fargate-integ/FargateCluster/Vpc/PrivateSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -574,7 +574,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -593,7 +593,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -613,13 +613,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -638,7 +638,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnInternetGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", "version": "0.0.0" } }, @@ -657,19 +657,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCGatewayAttachment", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.Vpc", + "fqn": "aws-cdk-lib.aws_ec2.Vpc", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecs.Cluster", + "fqn": "aws-cdk-lib.aws_ecs.Cluster", "version": "0.0.0" } }, @@ -685,7 +685,7 @@ "id": "ImportTaskRole", "path": "aws-sfn-tasks-ecs-fargate-integ/TaskDef/TaskRole/ImportTaskRole", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -710,13 +710,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } }, @@ -770,7 +770,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition", + "fqn": "aws-cdk-lib.aws_ecs.CfnTaskDefinition", "version": "0.0.0" } }, @@ -786,7 +786,7 @@ "id": "Staging", "path": "aws-sfn-tasks-ecs-fargate-integ/TaskDef/TheContainer/AssetImage/Staging", "constructInfo": { - "fqn": "@aws-cdk/core.AssetStaging", + "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" } }, @@ -794,13 +794,13 @@ "id": "Repository", "path": "aws-sfn-tasks-ecs-fargate-integ/TaskDef/TheContainer/AssetImage/Repository", "constructInfo": { - "fqn": "@aws-cdk/aws-ecr.RepositoryBase", + "fqn": "aws-cdk-lib.aws_ecr.RepositoryBase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecr-assets.DockerImageAsset", + "fqn": "aws-cdk-lib.aws_ecr_assets.DockerImageAsset", "version": "0.0.0" } }, @@ -816,19 +816,19 @@ "aws:cdk:cloudformation:props": {} }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogGroup", + "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogGroup", + "fqn": "aws-cdk-lib.aws_logs.LogGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecs.ContainerDefinition", + "fqn": "aws-cdk-lib.aws_ecs.ContainerDefinition", "version": "0.0.0" } }, @@ -840,7 +840,7 @@ "id": "ImportExecutionRole", "path": "aws-sfn-tasks-ecs-fargate-integ/TaskDef/ExecutionRole/ImportExecutionRole", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -865,7 +865,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } }, @@ -942,25 +942,25 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Policy", + "fqn": "aws-cdk-lib.aws_iam.Policy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinition", + "fqn": "aws-cdk-lib.aws_ecs.FargateTaskDefinition", "version": "0.0.0" } }, @@ -968,7 +968,7 @@ "id": "Start", "path": "aws-sfn-tasks-ecs-fargate-integ/Start", "constructInfo": { - "fqn": "@aws-cdk/aws-stepfunctions.Pass", + "fqn": "aws-cdk-lib.aws_stepfunctions.Pass", "version": "0.0.0" } }, @@ -1000,19 +1000,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask", + "fqn": "aws-cdk-lib.aws_stepfunctions_tasks.EcsRunTask", "version": "0.0.0" } }, @@ -1044,19 +1044,63 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask", + "fqn": "aws-cdk-lib.aws_stepfunctions_tasks.EcsRunTask", + "version": "0.0.0" + } + }, + "FargeateTaskWithPropagatedTag": { + "id": "FargeateTaskWithPropagatedTag", + "path": "aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag", + "children": { + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "aws-sfn-tasks-ecs-fargate-integ/FargeateTaskWithPropagatedTag/SecurityGroup", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "FargateClusterVpc377E8024" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_stepfunctions_tasks.EcsRunTask", "version": "0.0.0" } }, @@ -1072,7 +1116,7 @@ "id": "ImportRole", "path": "aws-sfn-tasks-ecs-fargate-integ/StateMachine/Role/ImportRole", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -1097,7 +1141,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } }, @@ -1294,19 +1338,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Policy", + "fqn": "aws-cdk-lib.aws_iam.Policy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } }, @@ -1352,7 +1396,7 @@ "GroupId" ] }, - "\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"TheContainer\",\"Environment\":[{\"Name\":\"SOME_KEY\",\"Value.$\":\"$.SomeKey\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskSetRevisionNumber\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"arn:", + "\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"TheContainer\",\"Environment\":[{\"Name\":\"SOME_KEY\",\"Value.$\":\"$.SomeKey\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskSetRevisionNumber\":{\"Next\":\"FargeateTaskWithPropagatedTag\",\"Type\":\"Task\",\"Resource\":\"arn:", { "Ref": "AWS::Partition" }, @@ -1378,20 +1422,46 @@ "GroupId" ] }, - "\"]}},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}" + "\"]}},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}},\"FargeateTaskWithPropagatedTag\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"arn:", + { + "Ref": "AWS::Partition" + }, + ":states:::ecs:runTask\",\"Parameters\":{\"Cluster\":\"", + { + "Fn::GetAtt": [ + "FargateCluster7CCD5F93", + "Arn" + ] + }, + "\",\"TaskDefinition\":\"awssfntasksecsfargateintegTaskDefD0F4AD10\",\"NetworkConfiguration\":{\"AwsvpcConfiguration\":{\"Subnets\":[\"", + { + "Ref": "FargateClusterVpcPrivateSubnet1Subnet9127625F" + }, + "\",\"", + { + "Ref": "FargateClusterVpcPrivateSubnet2Subnet307CEE57" + }, + "\"],\"SecurityGroups\":[\"", + { + "Fn::GetAtt": [ + "FargeateTaskWithPropagatedTagSecurityGroup94A6AE70", + "GroupId" + ] + }, + "\"]}},\"PropagateTags\":\"TASK_DEFINITION\",\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}" ] ] } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-stepfunctions.CfnStateMachine", + "fqn": "aws-cdk-lib.aws_stepfunctions.CfnStateMachine", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-stepfunctions.StateMachine", + "fqn": "aws-cdk-lib.aws_stepfunctions.StateMachine", "version": "0.0.0" } }, @@ -1399,7 +1469,7 @@ "id": "stateMachineArn", "path": "aws-sfn-tasks-ecs-fargate-integ/stateMachineArn", "constructInfo": { - "fqn": "@aws-cdk/core.CfnOutput", + "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" } }, @@ -1407,7 +1477,7 @@ "id": "BootstrapVersion", "path": "aws-sfn-tasks-ecs-fargate-integ/BootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnParameter", + "fqn": "aws-cdk-lib.CfnParameter", "version": "0.0.0" } }, @@ -1415,13 +1485,13 @@ "id": "CheckBootstrapVersion", "path": "aws-sfn-tasks-ecs-fargate-integ/CheckBootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnRule", + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.Stack", + "fqn": "aws-cdk-lib.Stack", "version": "0.0.0" } }, @@ -1430,12 +1500,12 @@ "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.237" + "version": "10.1.270" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.App", + "fqn": "aws-cdk-lib.App", "version": "0.0.0" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts index ab311f11acf2e..6498dbf2ea9ed 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.ts @@ -64,6 +64,15 @@ const definition = new sfn.Pass(stack, 'Start', { platformVersion: ecs.FargatePlatformVersion.VERSION1_4, }), }), +).next( + new tasks.EcsRunTask(stack, 'FargeateTaskWithPropagatedTag', { + cluster, + taskDefinition, + launchTarget: new tasks.EcsFargateLaunchTarget({ + platformVersion: ecs.FargatePlatformVersion.VERSION1_4, + }), + propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, + }), ); const sm = new sfn.StateMachine(stack, 'StateMachine', { diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md index c17cc5d45ce1b..f63382cf7627a 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md @@ -469,6 +469,7 @@ const runTask = new tasks.EcsRunTask(this, 'Run', { ecs.PlacementConstraint.memberOf('blieptuut'), ], }), + propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, }); ``` @@ -516,6 +517,7 @@ const runTask = new tasks.EcsRunTask(this, 'RunFargate', { environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }], }], launchTarget: new tasks.EcsFargateLaunchTarget(), + propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, }); ``` diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/ecs/run-task.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/ecs/run-task.ts index 77124067bfe2f..1cb06fb28f151 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/ecs/run-task.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/ecs/run-task.ts @@ -71,6 +71,16 @@ export interface EcsRunTaskProps extends sfn.TaskStateBaseProps { * @see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html */ readonly launchTarget: IEcsLaunchTarget; + + /** + * Specifies whether to propagate the tags from the task definition to the task. + * An error will be received if you specify the SERVICE option when running a task. + * + * @see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-propagateTags + * + * @default - No tags are propagated. + */ + readonly propagatedTagSource?: ecs.PropagatedTagSource; } /** @@ -292,6 +302,7 @@ export class EcsRunTask extends sfn.TaskStateBase implements ec2.IConnectable { TaskDefinition: this.props.revisionNumber === undefined ? this.props.taskDefinition.family : `${this.props.taskDefinition.family}:${this.props.revisionNumber.toString()}`, NetworkConfiguration: this.networkConfiguration, Overrides: renderOverrides(this.props.containerOverrides), + PropagateTags: this.props.propagatedTagSource, ...this.props.launchTarget.bind(this, { taskDefinition: this.props.taskDefinition, cluster: this.props.cluster }).parameters, }), }; diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/ecs/run-tasks.test.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/ecs/run-tasks.test.ts index a7bfe67285af5..bb5214cd613fd 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/ecs/run-tasks.test.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/ecs/run-tasks.test.ts @@ -127,6 +127,86 @@ test('Running a task with container override and container has explicitly set a }); }); +test('Running a task without propagated tag source', () => { + const taskDefinition = new ecs.TaskDefinition(stack, 'TD', { + memoryMiB: '512', + cpu: '256', + compatibility: ecs.Compatibility.FARGATE, + }); + const containerDefinition = taskDefinition.addContainer('TheContainer', { + containerName: 'ExplicitContainerName', + image: ecs.ContainerImage.fromRegistry('foo/bar'), + memoryLimitMiB: 256, + }); + + expect(stack.resolve( + new tasks.EcsRunTask(stack, 'task', { + cluster, + taskDefinition, + containerOverrides: [ + { + containerDefinition, + environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }], + }, + ], + launchTarget: new tasks.EcsFargateLaunchTarget(), + }).toStateJson())).not.toContain('Parameters.PropagateTags'); +}); + +test('Running a task with TASK_DEFINITION as propagated tag source', () => { + const taskDefinition = new ecs.TaskDefinition(stack, 'TD', { + memoryMiB: '512', + cpu: '256', + compatibility: ecs.Compatibility.FARGATE, + }); + const containerDefinition = taskDefinition.addContainer('TheContainer', { + containerName: 'ExplicitContainerName', + image: ecs.ContainerImage.fromRegistry('foo/bar'), + memoryLimitMiB: 256, + }); + + expect(stack.resolve( + new tasks.EcsRunTask(stack, 'task', { + cluster, + taskDefinition, + containerOverrides: [ + { + containerDefinition, + environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }], + }, + ], + launchTarget: new tasks.EcsFargateLaunchTarget(), + propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, + }).toStateJson())).toHaveProperty('Parameters.PropagateTags', 'TASK_DEFINITION'); +}); + +test('Running a task with NONE as propagated tag source', () => { + const taskDefinition = new ecs.TaskDefinition(stack, 'TD', { + memoryMiB: '512', + cpu: '256', + compatibility: ecs.Compatibility.FARGATE, + }); + const containerDefinition = taskDefinition.addContainer('TheContainer', { + containerName: 'ExplicitContainerName', + image: ecs.ContainerImage.fromRegistry('foo/bar'), + memoryLimitMiB: 256, + }); + + expect(stack.resolve( + new tasks.EcsRunTask(stack, 'task', { + cluster, + taskDefinition, + containerOverrides: [ + { + containerDefinition, + environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }], + }, + ], + launchTarget: new tasks.EcsFargateLaunchTarget(), + propagatedTagSource: ecs.PropagatedTagSource.NONE, + }).toStateJson())).toHaveProperty('Parameters.PropagateTags', 'NONE'); +}); + test('Running a Fargate Task', () => { const taskDefinition = new ecs.TaskDefinition(stack, 'TD', { memoryMiB: '512', From 2bef1b0a38a32939c3ff1e24fcfbb39ed0c01390 Mon Sep 17 00:00:00 2001 From: Yoga Yu Date: Fri, 7 Apr 2023 07:05:01 +0800 Subject: [PATCH 2/4] chore(cdk-testing): Remove compiled file and update gitignore for integration testing (#24959) After the remodeling for integration testing and v2 cdk, there are some files added. However, they are ignored by the original rule. Try to remove unnecessary files and add the rules. Closes #24947. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../framework-integ/.gitignore | 7 + .../authorizers/integ.cognito-authorizer.d.ts | 1 - .../authorizers/integ.cognito-authorizer.js | 45 -- .../integ.request-authorizer.lit.d.ts | 1 - .../integ.request-authorizer.lit.js | 55 --- .../integ.token-authorizer-iam-role.d.ts | 1 - .../integ.token-authorizer-iam-role.js | 48 --- .../authorizers/integ.token-authorizer.d.ts | 1 - .../authorizers/integ.token-authorizer.js | 120 ------ .../test/integ.api-definition.asset.d.ts | 1 - .../test/integ.api-definition.asset.js | 38 -- .../test/integ.api-definition.inline.d.ts | 1 - .../test/integ.api-definition.inline.js | 68 --- .../test/integ.base-path-mapping.d.ts | 4 - .../test/integ.base-path-mapping.js | 41 -- .../test/integ.cloudwatch-disabled.d.ts | 4 - .../test/integ.cloudwatch-disabled.js | 23 - .../test/aws-apigateway/test/integ.cors.d.ts | 1 - .../test/aws-apigateway/test/integ.cors.js | 33 -- .../test/integ.domain-name.d.ts | 1 - .../aws-apigateway/test/integ.domain-name.js | 249 ----------- .../test/integ.lambda-api-nonproxy.d.ts | 1 - .../test/integ.lambda-api-nonproxy.js | 38 -- .../aws-apigateway/test/integ.lambda-api.d.ts | 1 - .../aws-apigateway/test/integ.lambda-api.js | 29 -- ....lambda-api.latebound-deploymentstage.d.ts | 1 - ...eg.lambda-api.latebound-deploymentstage.js | 32 -- .../test/integ.restapi-import.lit.d.ts | 1 - .../test/integ.restapi-import.lit.js | 101 ----- .../test/integ.restapi-metrics.d.ts | 1 - .../test/integ.restapi-metrics.js | 31 -- .../test/integ.restapi.access-log.d.ts | 1 - .../test/integ.restapi.access-log.js | 44 -- .../test/integ.restapi.books.d.ts | 1 - .../test/integ.restapi.books.js | 60 --- .../aws-apigateway/test/integ.restapi.d.ts | 1 - .../test/integ.restapi.defaults.d.ts | 1 - .../test/integ.restapi.defaults.js | 14 - .../test/aws-apigateway/test/integ.restapi.js | 90 ---- .../test/integ.restapi.multistack.d.ts | 1 - .../test/integ.restapi.multistack.js | 43 -- .../test/integ.restapi.multiuse.d.ts | 1 - .../test/integ.restapi.multiuse.js | 32 -- .../test/integ.restapi.vpc-endpoint.d.ts | 1 - .../test/integ.restapi.vpc-endpoint.js | 45 -- .../test/integ.spec-restapi.d.ts | 1 - .../aws-apigateway/test/integ.spec-restapi.js | 85 ---- .../test/integ.stepfunctions-api.d.ts | 1 - .../test/integ.stepfunctions-api.js | 51 --- .../test/integ.usage-plan.multikey.d.ts | 1 - .../test/integ.usage-plan.multikey.js | 18 - .../test/integ.usage-plan.sharing.d.ts | 1 - .../test/integ.usage-plan.sharing.js | 26 -- .../test/aws-appmesh/test/integ.mesh.d.ts | 2 - .../test/aws-appmesh/test/integ.mesh.js | 393 ------------------ .../aws-appsync/test/integ.api-import.d.ts | 1 - .../test/aws-appsync/test/integ.api-import.js | 79 ---- .../test/integ.appsync-lambda.d.ts | 1 - .../aws-appsync/test/integ.appsync-lambda.js | 76 ---- .../aws-appsync/test/integ.appsync-none.d.ts | 1 - .../aws-appsync/test/integ.appsync-none.js | 20 - .../aws-appsync/test/integ.auth-apikey.d.ts | 1 - .../aws-appsync/test/integ.auth-apikey.js | 58 --- .../test/integ.graphql-elasticsearch.d.ts | 1 - .../test/integ.graphql-elasticsearch.js | 64 --- .../aws-appsync/test/integ.graphql-iam.d.ts | 1 - .../aws-appsync/test/integ.graphql-iam.js | 92 ---- .../test/integ.graphql-opensearch.d.ts | 1 - .../test/integ.graphql-opensearch.js | 73 ---- .../test/aws-appsync/test/integ.graphql.d.ts | 1 - .../test/aws-appsync/test/integ.graphql.js | 285 ------------- .../aws-appsync/test/integ.js-resolver.d.ts | 1 - .../aws-appsync/test/integ.js-resolver.js | 87 ---- .../aws-appsync/test/integ.lambda-auth.d.ts | 1 - .../aws-appsync/test/integ.lambda-auth.js | 48 --- .../aws-appsync/test/integ.log-retention.d.ts | 1 - .../aws-appsync/test/integ.log-retention.js | 33 -- .../test/integ.queue-hook.d.ts | 1 - .../test/integ.queue-hook.js | 59 --- .../test/integ.amazonlinux2.d.ts | 2 - .../test/integ.amazonlinux2.js | 19 - .../test/integ.asg-capacity-rebalance.d.ts | 2 - .../test/integ.asg-capacity-rebalance.js | 23 - .../aws-autoscaling/test/integ.asg-lt.d.ts | 2 - .../test/aws-autoscaling/test/integ.asg-lt.js | 88 ---- .../integ.asg-w-classic-loadbalancer.d.ts | 2 - .../test/integ.asg-w-classic-loadbalancer.js | 28 -- .../test/integ.asg-w-elbv2.d.ts | 2 - .../aws-autoscaling/test/integ.asg-w-elbv2.js | 82 ---- .../test/integ.custom-scaling.d.ts | 2 - .../test/integ.custom-scaling.js | 29 -- .../test/integ.external-role.d.ts | 1 - .../test/integ.external-role.js | 25 -- .../test/integ.role-target-hook.d.ts | 13 - .../test/integ.role-target-hook.js | 71 ---- .../test/integ.spot-instances.d.ts | 2 - .../test/integ.spot-instances.js | 19 - .../aws-autoscaling/test/integ.warm-pool.d.ts | 2 - .../aws-autoscaling/test/integ.warm-pool.js | 25 -- .../test/aws-backup/test/integ.backup.d.ts | 1 - .../test/aws-backup/test/integ.backup.js | 50 --- .../test/integ.certificate-name.d.ts | 1 - .../test/integ.certificate-name.js | 37 -- .../test/integ.dns-validated-certificate.d.ts | 1 - .../test/integ.dns-validated-certificate.js | 51 --- .../test/integ.chatbot-guardrails.d.ts | 1 - .../test/integ.chatbot-guardrails.js | 21 - .../test/integ.chatbot-logretention.d.ts | 1 - .../test/integ.chatbot-logretention.js | 29 -- .../test/aws-chatbot/test/integ.chatbot.d.ts | 1 - .../test/aws-chatbot/test/integ.chatbot.js | 27 -- .../test/asset-directory-fixture/index.d.ts | 0 .../test/asset-directory-fixture/index.js | 7 - .../index.d.ts | 4 - .../index.js | 14 - .../integ.core-cross-region-references.d.ts | 1 - .../integ.core-cross-region-references.js | 81 ---- .../test/integ.core-custom-resources.d.ts | 1 - .../test/integ.core-custom-resources.js | 49 --- .../test/integ.core-deps.d.ts | 1 - .../test/integ.core-deps.js | 69 --- .../test/integ.nested-stack.d.ts | 1 - .../test/integ.nested-stack.js | 50 --- .../test/integ.nested-stacks-assets.d.ts | 1 - .../test/integ.nested-stacks-assets.js | 26 -- .../test/integ.nested-stacks-multi-refs.d.ts | 1 - .../test/integ.nested-stacks-multi-refs.js | 27 -- .../test/integ.nested-stacks-multi.d.ts | 1 - .../test/integ.nested-stacks-multi.js | 23 - ...ested-stacks-nested-export-to-sibling.d.ts | 1 - ....nested-stacks-nested-export-to-sibling.js | 17 - .../test/integ.nested-stacks-refs1.d.ts | 1 - .../test/integ.nested-stacks-refs1.js | 31 -- .../test/integ.nested-stacks-refs2.d.ts | 1 - .../test/integ.nested-stacks-refs2.js | 32 -- .../test/integ.nested-stacks-refs3.d.ts | 1 - .../test/integ.nested-stacks-refs3.js | 31 -- .../test/integ.http-origin.d.ts | 1 - .../test/integ.http-origin.js | 12 - .../test/integ.load-balancer-origin.d.ts | 1 - .../test/integ.load-balancer-origin.js | 16 - .../test/integ.origin-group.d.ts | 1 - .../test/integ.origin-group.js | 25 -- ...eg.rest-api-origin-custom-origin-path.d.ts | 1 - ...nteg.rest-api-origin-custom-origin-path.js | 18 - .../test/integ.rest-api-origin.d.ts | 1 - .../test/integ.rest-api-origin.js | 18 - .../test/integ.s3-origin-oai.d.ts | 1 - .../test/integ.s3-origin-oai.js | 17 - .../test/integ.s3-origin.d.ts | 1 - .../test/integ.s3-origin.js | 14 - .../test/integ.cloudfront-bucket-logging.d.ts | 1 - .../test/integ.cloudfront-bucket-logging.js | 52 --- .../integ.cloudfront-cross-region-cert.d.ts | 1 - .../integ.cloudfront-cross-region-cert.js | 54 --- .../test/integ.cloudfront-custom-s3.d.ts | 1 - .../test/integ.cloudfront-custom-s3.js | 32 -- .../test/integ.cloudfront-custom.d.ts | 1 - .../test/integ.cloudfront-custom.js | 25 -- .../test/integ.cloudfront-empty-root.d.ts | 1 - .../test/integ.cloudfront-empty-root.js | 26 -- .../test/integ.cloudfront-failover.d.ts | 1 - .../test/integ.cloudfront-failover.js | 21 - .../integ.cloudfront-geo-restrictions.d.ts | 1 - .../test/integ.cloudfront-geo-restrictions.js | 23 - .../test/integ.cloudfront-ipv6-disabled.d.ts | 1 - .../test/integ.cloudfront-ipv6-disabled.js | 23 - .../test/integ.cloudfront-key-group.d.ts | 1 - .../test/integ.cloudfront-key-group.js | 24 -- .../integ.cloudfront-lambda-association.d.ts | 1 - .../integ.cloudfront-lambda-association.js | 37 -- .../test/integ.cloudfront-s3.d.ts | 1 - .../test/integ.cloudfront-s3.js | 25 -- .../integ.cloudfront-security-policy.d.ts | 1 - .../test/integ.cloudfront-security-policy.js | 31 -- .../aws-cloudfront/test/integ.cloudfront.d.ts | 1 - .../aws-cloudfront/test/integ.cloudfront.js | 22 - .../test/integ.distribution-basic.d.ts | 1 - .../test/integ.distribution-basic.js | 24 -- .../test/integ.distribution-extensive.d.ts | 1 - .../test/integ.distribution-extensive.js | 26 -- .../test/integ.distribution-function.d.ts | 1 - .../test/integ.distribution-function.js | 24 -- .../test/integ.distribution-http-version.d.ts | 1 - .../test/integ.distribution-http-version.js | 29 -- .../test/integ.distribution-key-group.d.ts | 1 - .../test/integ.distribution-key-group.js | 32 -- ...nteg.distribution-lambda-cross-region.d.ts | 1 - .../integ.distribution-lambda-cross-region.js | 41 -- .../test/integ.distribution-lambda.d.ts | 1 - .../test/integ.distribution-lambda.js | 25 -- .../test/integ.distribution-origin-id.d.ts | 1 - .../test/integ.distribution-origin-id.js | 19 - .../integ.distribution-origin-shield.d.ts | 1 - .../test/integ.distribution-origin-shield.js | 20 - .../test/integ.distribution-policies.d.ts | 1 - .../test/integ.distribution-policies.js | 47 --- .../test/aws-cloudfront/test/test-origin.d.ts | 15 - .../test/aws-cloudfront/test/test-origin.js | 42 -- .../integ.cloudtrail-data-events-only.d.ts | 1 - .../test/integ.cloudtrail-data-events-only.js | 25 -- .../test/integ.cloudtrail-defaults.d.ts | 1 - .../test/integ.cloudtrail-defaults.js | 13 - .../test/integ.cloudtrail-insight.d.ts | 1 - .../test/integ.cloudtrail-insight.js | 40 -- .../integ.cloudtrail-supplied-bucket.lit.d.ts | 1 - .../integ.cloudtrail-supplied-bucket.lit.js | 43 -- .../test/integ.cloudtrail.lit.d.ts | 1 - .../test/integ.cloudtrail.lit.js | 26 -- .../test/integ.ssm-incident-alarm-action.d.ts | 1 - .../test/integ.ssm-incident-alarm-action.js | 54 --- .../test/integ.alarm-and-dashboard.d.ts | 1 - .../test/integ.alarm-and-dashboard.js | 104 ----- .../test/integ.alarm-with-label.d.ts | 1 - .../test/integ.alarm-with-label.js | 29 -- .../test/integ.composite-alarm.d.ts | 1 - .../test/integ.composite-alarm.js | 50 --- ...board-with-graphwidget-with-statistic.d.ts | 1 - ...shboard-with-graphwidget-with-statistic.js | 48 --- .../aws-cloudwatch/test/integ.dashboard.d.ts | 1 - .../aws-cloudwatch/test/integ.dashboard.js | 22 - .../test/integ.gauge-alarm.d.ts | 1 - .../aws-cloudwatch/test/integ.gauge-alarm.js | 28 -- .../test/integ.math-alarm-and-dashboard.d.ts | 1 - .../test/integ.math-alarm-and-dashboard.js | 67 --- ...kline-singlevaluewidget-and-dashboard.d.ts | 1 - ...arkline-singlevaluewidget-and-dashboard.js | 26 -- .../test/integ.asset-build-spec.d.ts | 1 - .../test/integ.asset-build-spec.js | 39 -- ...s-deep-learning-container-build-image.d.ts | 1 - ...aws-deep-learning-container-build-image.js | 21 - .../aws-codebuild/test/integ.breakpoint.d.ts | 2 - .../aws-codebuild/test/integ.breakpoint.js | 32 -- .../aws-codebuild/test/integ.caching.d.ts | 2 - .../test/aws-codebuild/test/integ.caching.js | 26 -- .../test/integ.defaults.lit.d.ts | 1 - .../aws-codebuild/test/integ.defaults.lit.js | 27 -- .../test/integ.docker-asset.lit.d.ts | 1 - .../test/integ.docker-asset.lit.js | 32 -- .../test/integ.docker-registry.lit.d.ts | 1 - .../test/integ.docker-registry.lit.js | 33 -- .../aws-codebuild/test/integ.ecr.lit.d.ts | 1 - .../test/aws-codebuild/test/integ.ecr.lit.js | 31 -- .../test/integ.github-webhook-batch.d.ts | 1 - .../test/integ.github-webhook-batch.js | 27 -- .../test/aws-codebuild/test/integ.github.d.ts | 1 - .../test/aws-codebuild/test/integ.github.js | 22 - .../test/integ.project-bucket.d.ts | 2 - .../test/integ.project-bucket.js | 23 - .../integ.project-buildspec-artifacts.d.ts | 1 - .../test/integ.project-buildspec-artifacts.js | 25 -- .../integ.project-file-system-location.d.ts | 1 - .../integ.project-file-system-location.js | 36 -- .../test/integ.project-logging.d.ts | 1 - .../test/integ.project-logging.js | 24 -- .../test/integ.project-notification.d.ts | 2 - .../test/integ.project-notification.js | 22 - ...g.project-secondary-sources-artifacts.d.ts | 1 - ...teg.project-secondary-sources-artifacts.js | 33 -- .../aws-codebuild/test/integ.project-vpc.d.ts | 2 - .../aws-codebuild/test/integ.project-vpc.js | 33 -- .../test/integ.report-group.d.ts | 1 - .../aws-codebuild/test/integ.report-group.js | 45 -- .../test/integ.codecommit-code-asset-zip.d.ts | 1 - .../test/integ.codecommit-code-asset-zip.js | 13 - .../test/integ.codecommit-code-asset.d.ts | 1 - .../test/integ.codecommit-code-asset.js | 13 - .../test/integ.codecommit-events.d.ts | 1 - .../test/integ.codecommit-events.js | 23 - .../test/integ.repository-notification.d.ts | 2 - .../test/integ.repository-notification.js | 16 - .../test/ecs/integ.deployment-config.d.ts | 1 - .../test/ecs/integ.deployment-config.js | 18 - .../test/ecs/integ.deployment-group.d.ts | 1 - .../test/ecs/integ.deployment-group.js | 216 ---------- .../test/lambda/integ.deployment-config.d.ts | 1 - .../test/lambda/integ.deployment-config.js | 18 - .../test/lambda/integ.deployment-group.d.ts | 1 - .../test/lambda/integ.deployment-group.js | 53 --- .../test/server/integ.deployment-group.d.ts | 1 - .../test/server/integ.deployment-group.js | 41 -- ...integ.profiler-group-import-functions.d.ts | 1 - .../integ.profiler-group-import-functions.js | 47 --- .../test/integ.profiler-group.d.ts | 1 - .../test/integ.profiler-group.js | 25 -- .../test/cloudformation/integ.stacksets.d.ts | 5 - .../test/cloudformation/integ.stacksets.js | 75 ---- .../integ.cfn-template-from-repo.lit.d.ts | 1 - .../test/integ.cfn-template-from-repo.lit.js | 59 --- ...bda-deployed-through-codepipeline.lit.d.ts | 1 - ...ambda-deployed-through-codepipeline.lit.js | 128 ------ .../test/integ.lambda-pipeline.d.ts | 1 - .../test/integ.lambda-pipeline.js | 42 -- ...teg.pipeilne-elastic-beanstalk-deploy.d.ts | 1 - ...integ.pipeilne-elastic-beanstalk-deploy.js | 132 ------ .../test/integ.pipeline-alexa-deploy.d.ts | 1 - .../test/integ.pipeline-alexa-deploy.js | 45 -- .../test/integ.pipeline-cfn-cross-region.d.ts | 1 - .../test/integ.pipeline-cfn-cross-region.js | 47 --- .../integ.pipeline-cfn-with-action-role.d.ts | 1 - .../integ.pipeline-cfn-with-action-role.js | 52 --- .../test/integ.pipeline-cfn.d.ts | 1 - .../test/integ.pipeline-cfn.js | 62 --- .../test/integ.pipeline-code-build-batch.d.ts | 1 - .../test/integ.pipeline-code-build-batch.js | 52 --- ...ne-code-build-multiple-inputs-outputs.d.ts | 1 - ...line-code-build-multiple-inputs-outputs.js | 81 ---- .../integ.pipeline-code-commit-build.d.ts | 1 - .../test/integ.pipeline-code-commit-build.js | 60 --- .../test/integ.pipeline-code-commit.d.ts | 1 - .../test/integ.pipeline-code-commit.js | 33 -- .../test/integ.pipeline-code-deploy-ecs.d.ts | 1 - .../test/integ.pipeline-code-deploy-ecs.js | 45 -- .../test/integ.pipeline-code-deploy.d.ts | 1 - .../test/integ.pipeline-code-deploy.js | 44 -- .../test/integ.pipeline-ecr-source.d.ts | 1 - .../test/integ.pipeline-ecr-source.js | 58 --- .../test/integ.pipeline-ecs-deploy.d.ts | 1 - .../test/integ.pipeline-ecs-deploy.js | 107 ----- ...nteg.pipeline-ecs-separate-source.lit.d.ts | 31 -- .../integ.pipeline-ecs-separate-source.lit.js | 192 --------- .../test/integ.pipeline-events.d.ts | 1 - .../test/integ.pipeline-events.js | 56 --- .../test/integ.pipeline-jenkins.d.ts | 1 - .../test/integ.pipeline-jenkins.js | 59 --- .../test/integ.pipeline-manual-approval.d.ts | 1 - .../test/integ.pipeline-manual-approval.js | 36 -- .../test/integ.pipeline-s3-deploy.d.ts | 1 - .../test/integ.pipeline-s3-deploy.js | 93 ----- .../test/integ.pipeline-stepfunctions.d.ts | 1 - .../test/integ.pipeline-stepfunctions.js | 39 -- .../test/integ.pipeline-with-replication.d.ts | 1 - .../test/integ.pipeline-with-replication.js | 62 --- ...ce-bucket-events-cross-stack-same-env.d.ts | 1 - ...urce-bucket-events-cross-stack-same-env.js | 46 -- ...integ.user-pool-client-explicit-props.d.ts | 1 - .../integ.user-pool-client-explicit-props.js | 63 --- .../test/integ.user-pool-client-secret.d.ts | 1 - .../test/integ.user-pool-client-secret.js | 27 -- .../test/integ.user-pool-custom-sender.d.ts | 1 - .../test/integ.user-pool-custom-sender.js | 44 -- .../test/integ.user-pool-domain-cfdist.d.ts | 1 - .../test/integ.user-pool-domain-cfdist.js | 25 -- .../integ.user-pool-domain-signinurl.d.ts | 1 - .../test/integ.user-pool-domain-signinurl.js | 30 -- .../test/integ.user-pool-explicit-props.d.ts | 1 - .../test/integ.user-pool-explicit-props.js | 98 ----- .../test/integ.user-pool-idp.amazon.d.ts | 1 - .../test/integ.user-pool-idp.amazon.js | 38 -- .../test/integ.user-pool-idp.apple.d.ts | 1 - .../test/integ.user-pool-idp.apple.js | 38 -- .../test/integ.user-pool-idp.google.d.ts | 1 - .../test/integ.user-pool-idp.google.js | 51 --- .../test/integ.user-pool-idp.oidc.d.ts | 1 - .../test/integ.user-pool-idp.oidc.js | 42 -- .../test/integ.user-pool-idp.saml.d.ts | 1 - .../test/integ.user-pool-idp.saml.js | 35 -- .../test/integ.user-pool-resource-server.d.ts | 1 - .../test/integ.user-pool-resource-server.js | 42 -- .../test/integ.user-pool-ses-email.d.ts | 1 - .../test/integ.user-pool-ses-email.js | 23 - .../test/integ.user-pool-signup-code.d.ts | 1 - .../test/integ.user-pool-signup-code.js | 48 --- .../test/integ.user-pool-signup-link.d.ts | 1 - .../test/integ.user-pool-signup-link.js | 53 --- .../aws-cognito/test/integ.user-pool.d.ts | 1 - .../test/aws-cognito/test/integ.user-pool.js | 15 - .../aws-config/test/integ.custompolicy.d.ts | 1 - .../aws-config/test/integ.custompolicy.js | 40 -- .../test/aws-config/test/integ.rule.d.ts | 1 - .../test/aws-config/test/integ.rule.js | 33 -- .../aws-config/test/integ.scoped-rule.d.ts | 1 - .../test/aws-config/test/integ.scoped-rule.js | 23 - .../test/integ.cluster-rotation.lit.d.ts | 1 - .../test/integ.cluster-rotation.lit.js | 28 -- .../test/aws-docdb/test/integ.cluster.d.ts | 1 - .../test/aws-docdb/test/integ.cluster.js | 47 --- .../test/integ.autoscaling.lit.d.ts | 1 - .../test/integ.autoscaling.lit.js | 27 -- .../test/integ.dynamodb.alarm-metrics.d.ts | 5 - .../test/integ.dynamodb.alarm-metrics.js | 41 -- .../aws-dynamodb/test/integ.dynamodb.d.ts | 1 - .../integ.dynamodb.deletion-protection.d.ts | 7 - .../integ.dynamodb.deletion-protection.js | 43 -- .../test/aws-dynamodb/test/integ.dynamodb.js | 137 ------ .../test/integ.dynamodb.kinesis-stream.d.ts | 1 - .../test/integ.dynamodb.kinesis-stream.js | 15 - .../test/integ.dynamodb.mixed-key-gsi.d.ts | 7 - .../test/integ.dynamodb.mixed-key-gsi.js | 30 -- .../test/integ.dynamodb.ondemand.d.ts | 1 - .../test/integ.dynamodb.ondemand.js | 121 ------ .../aws-dynamodb/test/integ.dynamodb.sse.d.ts | 1 - .../aws-dynamodb/test/integ.dynamodb.sse.js | 131 ------ .../integ.global-replicas-provisioned.d.ts | 1 - .../test/integ.global-replicas-provisioned.js | 18 - .../test/aws-dynamodb/test/integ.global.d.ts | 1 - .../test/aws-dynamodb/test/integ.global.js | 31 -- .../import-certificates-handler/index.d.ts | 6 - .../test/import-certificates-handler/index.js | 49 --- .../test/integ.bastion-host-arm-support.d.ts | 1 - .../test/integ.bastion-host-arm-support.js | 23 - .../test/aws-ec2/test/integ.bastion-host.d.ts | 1 - .../test/aws-ec2/test/integ.bastion-host.js | 16 - .../test/integ.client-vpn-endpoint.d.ts | 1 - .../aws-ec2/test/integ.client-vpn-endpoint.js | 58 --- ...re-cross-stack-string-list-references.d.ts | 6 - ...core-cross-stack-string-list-references.js | 53 --- .../test/aws-ec2/test/integ.graviton3.d.ts | 1 - .../test/aws-ec2/test/integ.graviton3.js | 31 -- .../test/integ.import-default-vpc.lit.d.ts | 1 - .../test/integ.import-default-vpc.lit.js | 33 -- .../aws-ec2/test/integ.instance-init.d.ts | 2 - .../test/aws-ec2/test/integ.instance-init.js | 52 --- .../integ.instance-multipart-userdata.d.ts | 1 - .../test/integ.instance-multipart-userdata.js | 54 --- .../test/aws-ec2/test/integ.instance.d.ts | 1 - .../test/aws-ec2/test/integ.instance.js | 35 -- .../aws-ec2/test/integ.launch-template.d.ts | 1 - .../aws-ec2/test/integ.launch-template.js | 24 -- .../aws-ec2/test/integ.nat-instances.lit.d.ts | 1 - .../aws-ec2/test/integ.nat-instances.lit.js | 32 -- .../test/aws-ec2/test/integ.ports.d.ts | 1 - .../test/aws-ec2/test/integ.ports.js | 24 -- .../test/integ.reserved-private-subnet.d.ts | 1 - .../test/integ.reserved-private-subnet.js | 39 -- .../aws-ec2/test/integ.share-vpcs.lit.d.ts | 1 - .../test/aws-ec2/test/integ.share-vpcs.lit.js | 46 -- .../test/aws-ec2/test/integ.userdata.d.ts | 2 - .../test/aws-ec2/test/integ.userdata.js | 17 - .../test/aws-ec2/test/integ.volume.d.ts | 1 - .../test/aws-ec2/test/integ.volume.js | 18 - .../test/aws-ec2/test/integ.vpc-azs.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-azs.js | 11 - .../aws-ec2/test/integ.vpc-endpoint.lit.d.ts | 1 - .../aws-ec2/test/integ.vpc-endpoint.lit.js | 41 -- .../test/integ.vpc-filter-subnets.d.ts | 1 - .../aws-ec2/test/integ.vpc-filter-subnets.js | 24 -- .../integ.vpc-flow-logs-customformat.d.ts | 1 - .../test/integ.vpc-flow-logs-customformat.js | 71 ---- .../test/integ.vpc-flow-logs-interval.d.ts | 1 - .../test/integ.vpc-flow-logs-interval.js | 71 ---- .../aws-ec2/test/integ.vpc-flow-logs.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-flow-logs.js | 119 ------ .../test/aws-ec2/test/integ.vpc-gateway.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-gateway.js | 26 -- .../test/aws-ec2/test/integ.vpc-ipam.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-ipam.js | 75 ---- .../test/aws-ec2/test/integ.vpc-lookup.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-lookup.js | 43 -- .../aws-ec2/test/integ.vpc-networkacl.d.ts | 1 - .../test/aws-ec2/test/integ.vpc-networkacl.js | 26 -- .../aws-ec2/test/integ.vpc-reserved-azs.d.ts | 1 - .../aws-ec2/test/integ.vpc-reserved-azs.js | 15 - .../test/aws-ec2/test/integ.vpc.d.ts | 1 - .../test/aws-ec2/test/integ.vpc.js | 22 - .../test/integ.vpn-pre-shared-key-token.d.ts | 1 - .../test/integ.vpn-pre-shared-key-token.js | 28 -- .../test/aws-ec2/test/integ.vpn.d.ts | 1 - .../test/aws-ec2/test/integ.vpn.js | 28 -- .../test/integ.assets-docker.d.ts | 1 - .../test/integ.assets-docker.js | 47 --- .../test/integ.assets-tarball.d.ts | 1 - .../test/integ.assets-tarball.js | 26 -- .../test/integ.nested-stacks-docker.d.ts | 1 - .../test/integ.nested-stacks-docker.js | 27 -- .../test/aws-ecr/test/integ.basic.d.ts | 1 - .../test/aws-ecr/test/integ.basic.js | 16 - .../test/aws-ecr/test/integ.imagescan.d.ts | 1 - .../test/aws-ecr/test/integ.imagescan.js | 19 - .../integ.repository-auto-delete-images.d.ts | 1 - .../integ.repository-auto-delete-images.js | 19 - ...g.alb-ecs-service-command-entry-point.d.ts | 1 - ...teg.alb-ecs-service-command-entry-point.js | 45 -- ...application-load-balanced-ecs-service.d.ts | 1 - ...g.application-load-balanced-ecs-service.js | 55 --- ...application-load-balanced-ecs-service.d.ts | 1 - ...e-application-load-balanced-ecs-service.js | 68 --- ...ple-network-load-balanced-ecs-service.d.ts | 1 - ...tiple-network-load-balanced-ecs-service.js | 53 --- ...oad-balanced-ecs-service-idle-timeout.d.ts | 1 - ...-load-balanced-ecs-service-idle-timeout.js | 82 ---- ...application-load-balanced-ecs-service.d.ts | 1 - ...e-application-load-balanced-ecs-service.js | 36 -- ...teg.network-load-balanced-ecs-service.d.ts | 1 - ...integ.network-load-balanced-ecs-service.js | 55 --- .../test/ec2/integ.scheduled-ecs-task.d.ts | 1 - .../test/ec2/integ.scheduled-ecs-task.js | 39 -- ...b-fargate-service-command-entry-point.d.ts | 1 - ...alb-fargate-service-command-entry-point.js | 28 -- ...lb-fargate-service-https-idle-timeout.d.ts | 1 - ....alb-fargate-service-https-idle-timeout.js | 36 -- .../integ.alb-fargate-service-https.d.ts | 1 - .../integ.alb-fargate-service-https.js | 35 -- .../test/fargate/integ.asset-image.d.ts | 1 - .../test/fargate/integ.asset-image.js | 29 -- ...breaker-load-balanced-fargate-service.d.ts | 1 - ...t-breaker-load-balanced-fargate-service.js | 25 -- ...deployment-controller-fargate-service.d.ts | 1 - ...o-deployment-controller-fargate-service.js | 24 -- ...aker-queue-processing-fargate-service.d.ts | 1 - ...reaker-queue-processing-fargate-service.js | 25 -- .../test/fargate/integ.executionrole.d.ts | 1 - .../test/fargate/integ.executionrole.js | 28 -- ...ication-load-balanced-fargate-service.d.ts | 1 - ...plication-load-balanced-fargate-service.js | 67 --- ...network-load-balanced-fargate-service.d.ts | 1 - ...e-network-load-balanced-fargate-service.js | 52 --- .../test/fargate/integ.l3-autocreate.d.ts | 1 - .../test/fargate/integ.l3-autocreate.js | 30 -- ...integ.l3-capacity-provider-strategies.d.ts | 1 - .../integ.l3-capacity-provider-strategies.js | 60 --- .../test/fargate/integ.l3-vpconly.d.ts | 1 - .../test/fargate/integ.l3-vpconly.js | 34 -- .../test/fargate/integ.l3.d.ts | 1 - .../aws-ecs-patterns/test/fargate/integ.l3.js | 35 -- ...network-load-balanced-fargate-service.d.ts | 1 - ...e-network-load-balanced-fargate-service.js | 52 --- ...e-processing-fargate-service-isolated.d.ts | 1 - ...eue-processing-fargate-service-isolated.js | 50 --- ...eue-processing-fargate-service-public.d.ts | 1 - ...queue-processing-fargate-service-public.js | 27 -- ...nteg.queue-processing-fargate-service.d.ts | 1 - .../integ.queue-processing-fargate-service.js | 24 -- ...ication-load-balanced-fargate-service.d.ts | 1 - ...plication-load-balanced-fargate-service.js | 32 -- .../fargate/integ.scheduled-fargate-task.d.ts | 1 - .../fargate/integ.scheduled-fargate-task.js | 35 -- .../test/fargate/integ.special-listener.d.ts | 1 - .../test/fargate/integ.special-listener.js | 34 -- .../test/ec2/integ.app-mesh-proxy-config.d.ts | 1 - .../test/ec2/integ.app-mesh-proxy-config.js | 44 -- .../aws-ecs/test/ec2/integ.bottlerocket.d.ts | 1 - .../aws-ecs/test/ec2/integ.bottlerocket.js | 16 - .../test/ec2/integ.capacity-provider.d.ts | 1 - .../test/ec2/integ.capacity-provider.js | 41 -- .../aws-ecs/test/ec2/integ.clb-host-nw.d.ts | 1 - .../aws-ecs/test/ec2/integ.clb-host-nw.js | 36 -- .../ec2/integ.cloudmap-container-port.d.ts | 1 - .../test/ec2/integ.cloudmap-container-port.js | 63 --- .../ec2/integ.default-capacity-provider.d.ts | 1 - .../ec2/integ.default-capacity-provider.js | 43 -- .../test/ec2/integ.environment-file.d.ts | 1 - .../test/ec2/integ.environment-file.js | 64 --- .../aws-ecs/test/ec2/integ.exec-command.d.ts | 1 - .../aws-ecs/test/ec2/integ.exec-command.js | 47 --- .../test/ec2/integ.firelens-s3-config.d.ts | 1 - .../test/ec2/integ.firelens-s3-config.js | 62 --- .../test/ec2/integ.graviton-bottlerocket.d.ts | 1 - .../test/ec2/integ.graviton-bottlerocket.js | 16 - .../test/aws-ecs/test/ec2/integ.graviton.d.ts | 1 - .../test/aws-ecs/test/ec2/integ.graviton.js | 16 - .../aws-ecs/test/ec2/integ.lb-awsvpc-nw.d.ts | 1 - .../aws-ecs/test/ec2/integ.lb-awsvpc-nw.js | 37 -- .../aws-ecs/test/ec2/integ.lb-bridge-nw.d.ts | 1 - .../aws-ecs/test/ec2/integ.lb-bridge-nw.js | 40 -- .../test/ec2/integ.placement-strategies.d.ts | 1 - .../test/ec2/integ.placement-strategies.js | 32 -- .../test/ec2/integ.pseudo-terminal.d.ts | 1 - .../aws-ecs/test/ec2/integ.pseudo-terminal.js | 31 -- .../aws-ecs/test/ec2/integ.sd-awsvpc-nw.d.ts | 1 - .../aws-ecs/test/ec2/integ.sd-awsvpc-nw.js | 39 -- .../aws-ecs/test/ec2/integ.sd-bridge-nw.d.ts | 1 - .../aws-ecs/test/ec2/integ.sd-bridge-nw.js | 38 -- .../test/ec2/integ.secret-json-field.d.ts | 1 - .../test/ec2/integ.secret-json-field.js | 28 -- .../aws-ecs/test/ec2/integ.spot-drain.d.ts | 1 - .../test/aws-ecs/test/ec2/integ.spot-drain.js | 38 -- .../test/ec2/integ.swap-parameters.d.ts | 1 - .../aws-ecs/test/ec2/integ.swap-parameters.js | 41 -- .../integ.add-environment-variable.d.ts | 1 - .../fargate/integ.add-environment-variable.js | 33 -- .../fargate/integ.capacity-providers.d.ts | 1 - .../test/fargate/integ.capacity-providers.js | 32 -- .../test/fargate/integ.exec-command.d.ts | 1 - .../test/fargate/integ.exec-command.js | 60 --- .../test/fargate/integ.fargate-with-efs.d.ts | 1 - .../test/fargate/integ.fargate-with-efs.js | 30 -- .../fargate/integ.firelens-cloudwatch.d.ts | 1 - .../test/fargate/integ.firelens-cloudwatch.js | 41 -- .../test/fargate/integ.lb-awsvpc-nw.d.ts | 1 - .../test/fargate/integ.lb-awsvpc-nw.js | 37 -- .../test/fargate/integ.nlb-awsvpc-nw.d.ts | 1 - .../test/fargate/integ.nlb-awsvpc-nw.js | 39 -- .../test/fargate/integ.pseudo-terminal.d.ts | 1 - .../test/fargate/integ.pseudo-terminal.js | 30 -- .../aws-ecs/test/fargate/integ.runtime.d.ts | 1 - .../aws-ecs/test/fargate/integ.runtime.js | 47 --- .../aws-ecs/test/fargate/integ.secret.d.ts | 1 - .../test/aws-ecs/test/fargate/integ.secret.js | 28 -- .../test/fargate/integ.service-connect.d.ts | 1 - .../test/fargate/integ.service-connect.js | 57 --- .../test/integ.efs-filesystem-policy.d.ts | 1 - .../test/integ.efs-filesystem-policy.js | 51 --- .../test/aws-efs/test/integ.efs.d.ts | 1 - .../test/aws-efs/test/integ.efs.js | 24 -- .../test/bucket-pinger/bucket-pinger.d.ts | 11 - .../test/bucket-pinger/bucket-pinger.js | 40 -- .../test/aws-eks/test/hello-k8s.d.ts | 53 --- .../test/aws-eks/test/hello-k8s.js | 39 -- .../test/integ-tests-kubernetes-version.d.ts | 7 - .../test/integ-tests-kubernetes-version.js | 17 - .../aws-eks/test/integ.alb-controller.d.ts | 1 - .../test/aws-eks/test/integ.alb-controller.js | 64 --- .../test/integ.eks-bottlerocket-ng.d.ts | 1 - .../aws-eks/test/integ.eks-bottlerocket-ng.js | 41 -- .../test/integ.eks-cluster-handlers-vpc.d.ts | 1 - .../test/integ.eks-cluster-handlers-vpc.js | 23 - .../integ.eks-cluster-private-endpoint.d.ts | 1 - .../integ.eks-cluster-private-endpoint.js | 46 -- .../test/aws-eks/test/integ.eks-cluster.d.ts | 1 - .../test/aws-eks/test/integ.eks-cluster.js | 298 ------------- .../aws-eks/test/integ.eks-helm-asset.d.ts | 1 - .../test/aws-eks/test/integ.eks-helm-asset.js | 87 ---- .../aws-eks/test/integ.eks-inference.d.ts | 1 - .../test/aws-eks/test/integ.eks-inference.js | 40 -- .../aws-eks/test/integ.eks-oidc-provider.d.ts | 1 - .../aws-eks/test/integ.eks-oidc-provider.js | 15 - .../integ.eks-service-account-sdk-call.d.ts | 1 - .../integ.eks-service-account-sdk-call.js | 67 --- .../aws-eks/test/integ.fargate-cluster.d.ts | 1 - .../aws-eks/test/integ.fargate-cluster.js | 23 - .../test/aws-eks/test/pinger/pinger.d.ts | 13 - .../test/aws-eks/test/pinger/pinger.js | 35 -- .../app/sdk-call.js | 12 - .../test/integ.elb.d.ts | 2 - .../test/integ.elb.js | 24 -- .../test/integ.instanceTarget.elb.d.ts | 2 - .../test/integ.instanceTarget.elb.js | 43 -- .../test/integ.cognito.d.ts | 1 - .../test/integ.cognito.js | 74 ---- .../test/integ.alb-target.d.ts | 1 - .../test/integ.alb-target.js | 45 -- .../test/integ.lambda-target.d.ts | 1 - .../test/integ.lambda-target.js | 39 -- .../test/integ.alb.attributes.d.ts | 2 - .../test/integ.alb.attributes.js | 35 -- .../test/integ.alb.d.ts | 2 - .../test/integ.alb.dualstack.d.ts | 2 - .../test/integ.alb.dualstack.js | 92 ---- .../test/integ.alb.js | 46 -- .../test/integ.alb2.d.ts | 2 - .../test/integ.alb2.js | 49 --- .../integ.connection-termination.nlb.d.ts | 2 - .../test/integ.connection-termination.nlb.js | 34 -- .../test/integ.nlb-lookup.d.ts | 1 - .../test/integ.nlb-lookup.js | 97 ----- .../test/integ.nlb.d.ts | 1 - .../test/integ.nlb.js | 34 -- .../test/integ.vpc-endpoint-service.d.ts | 1 - .../test/integ.vpc-endpoint-service.js | 43 -- .../test/integ.elasticsearch-vpc.d.ts | 1 - .../test/integ.elasticsearch-vpc.js | 39 -- .../integ.elasticsearch.advancedsecurity.d.ts | 1 - .../integ.elasticsearch.advancedsecurity.js | 27 -- .../integ.elasticsearch.custom-kms-key.d.ts | 1 - .../integ.elasticsearch.custom-kms-key.js | 44 -- .../test/integ.elasticsearch.d.ts | 1 - .../test/integ.elasticsearch.js | 48 --- .../test/integ.elasticsearch.ultrawarm.d.ts | 1 - .../test/integ.elasticsearch.ultrawarm.js | 21 - ...integ.elasticsearch.unsignedbasicauth.d.ts | 1 - .../integ.elasticsearch.unsignedbasicauth.js | 18 - .../test/aws-api/integ.aws-api.d.ts | 1 - .../test/aws-api/integ.aws-api.js | 52 --- .../test/codebuild/integ.project-events.d.ts | 2 - .../test/codebuild/integ.project-events.js | 48 --- .../integ.pipeline-event-target.d.ts | 1 - .../integ.pipeline-event-target.js | 63 --- .../test/ecs/integ.event-ec2-task.d.ts | 1 - .../test/ecs/integ.event-ec2-task.js | 47 --- .../test/ecs/integ.event-fargate-task.d.ts | 1 - .../test/ecs/integ.event-fargate-task.js | 43 -- .../test/event-bus/integ.event-bus.d.ts | 1 - .../test/event-bus/integ.event-bus.js | 22 - .../integ.kinesis-firehose-stream.d.ts | 1 - .../integ.kinesis-firehose-stream.js | 29 -- .../test/kinesis/integ.kinesis-stream.d.ts | 1 - .../test/kinesis/integ.kinesis-stream.js | 19 - .../test/lambda/integ.events.d.ts | 1 - .../test/lambda/integ.events.js | 38 -- .../test/logs/integ.log-group.d.ts | 1 - .../test/logs/integ.log-group.js | 72 ---- .../test/sns/integ.sns-event-rule-target.d.ts | 1 - .../test/sns/integ.sns-event-rule-target.js | 26 -- .../test/sqs/integ.sqs-event-rule-target.d.ts | 1 - .../test/sqs/integ.sqs-event-rule-target.js | 27 -- .../test/aws-events/test/integ.archive.d.ts | 1 - .../test/aws-events/test/integ.archive.js | 19 - .../aws-events/test/integ.connection.d.ts | 1 - .../test/aws-events/test/integ.connection.js | 36 -- .../test/integ.cross-account-rule.d.ts | 1 - .../test/integ.cross-account-rule.js | 83 ---- .../test/aws-events/test/integ.eventbus.d.ts | 1 - .../test/aws-events/test/integ.eventbus.js | 24 -- .../test/aws-events/test/integ.rule.d.ts | 1 - .../test/aws-events/test/integ.rule.js | 45 -- .../integ.lustre-file-system-with-s3.d.ts | 1 - .../test/integ.lustre-file-system-with-s3.js | 31 -- .../test/integ.lustre-file-system.d.ts | 1 - .../aws-fsx/test/integ.lustre-file-system.js | 33 -- .../test/integ.globalaccelerator.d.ts | 1 - .../test/integ.globalaccelerator.js | 48 --- .../integ.globalaccelerator-unique-name.d.ts | 1 - .../integ.globalaccelerator-unique-name.js | 14 - .../test/aws-iam/test/integ.access-key.d.ts | 1 - .../test/aws-iam/test/integ.access-key.js | 15 - .../test/integ.composite-principal.d.ts | 1 - .../aws-iam/test/integ.composite-principal.js | 19 - .../test/integ.condition-with-ref.d.ts | 1 - .../aws-iam/test/integ.condition-with-ref.js | 26 -- .../test/aws-iam/test/integ.group.d.ts | 1 - .../test/aws-iam/test/integ.group.js | 14 - .../aws-iam/test/integ.imported-role.d.ts | 1 - .../test/aws-iam/test/integ.imported-role.js | 32 -- .../aws-iam/test/integ.managed-policy.d.ts | 1 - .../test/aws-iam/test/integ.managed-policy.js | 27 -- .../aws-iam/test/integ.oidc-provider.d.ts | 1 - .../test/aws-iam/test/integ.oidc-provider.js | 35 -- .../test/integ.permissions-boundary.d.ts | 1 - .../test/integ.permissions-boundary.js | 30 -- .../test/aws-iam/test/integ.policy.d.ts | 1 - .../test/aws-iam/test/integ.policy.js | 21 - .../test/integ.principal-with-conditions.d.ts | 1 - .../test/integ.principal-with-conditions.js | 21 - .../test/aws-iam/test/integ.role.d.ts | 1 - .../test/aws-iam/test/integ.role.js | 28 -- .../aws-iam/test/integ.saml-provider.d.ts | 1 - .../test/aws-iam/test/integ.saml-provider.js | 24 -- .../test/aws-iam/test/integ.user.d.ts | 1 - .../test/aws-iam/test/integ.user.js | 37 -- .../aws-iam/test/integ.users-and-groups.d.ts | 1 - .../aws-iam/test/integ.users-and-groups.js | 25 -- .../test/integ.stream-dashboard.d.ts | 1 - .../test/integ.stream-dashboard.js | 33 -- .../test/aws-kinesis/test/integ.stream.d.ts | 1 - .../test/aws-kinesis/test/integ.stream.js | 13 - .../test/aws-kms/test/integ.key-hmac.d.ts | 1 - .../test/aws-kms/test/integ.key-hmac.js | 25 -- .../aws-kms/test/integ.key-sharing.lit.d.ts | 1 - .../aws-kms/test/integ.key-sharing.lit.js | 34 -- .../test/aws-kms/test/integ.key.d.ts | 1 - .../test/aws-kms/test/integ.key.js | 21 - .../test/integ.destinations.d.ts | 1 - .../test/integ.destinations.js | 85 ---- .../test/integ.lambda-chain.d.ts | 1 - .../test/integ.lambda-chain.js | 71 ---- .../integ.dynamodb-with-filter-criteria.d.ts | 1 - .../integ.dynamodb-with-filter-criteria.js | 40 -- .../test/integ.dynamodb.d.ts | 1 - .../test/integ.dynamodb.js | 30 -- .../test/integ.kafka-selfmanaged.d.ts | 1 - .../test/integ.kafka-selfmanaged.js | 60 --- .../test/integ.kinesis-at-timestamp.d.ts | 1 - .../test/integ.kinesis-at-timestamp.js | 21 - .../test/integ.kinesis.d.ts | 1 - .../test/integ.kinesis.js | 22 - .../test/integ.kinesiswithdlq.d.ts | 1 - .../test/integ.kinesiswithdlq.js | 42 -- .../test/integ.s3.d.ts | 1 - .../aws-lambda-event-sources/test/integ.s3.js | 24 -- .../test/integ.sns.d.ts | 1 - .../test/integ.sns.js | 18 - .../test/integ.sqs-max-concurrency.d.ts | 1 - .../test/integ.sqs-max-concurrency.js | 25 -- .../test/integ.sqs-with-filter-criteria.d.ts | 1 - .../test/integ.sqs-with-filter-criteria.js | 27 -- .../test/integ.sqs.d.ts | 1 - .../test/integ.sqs.js | 20 - .../test/test-function.d.ts | 5 - .../test/test-function.js | 20 - .../test/integ-handlers/define.d.ts | 1 - .../test/integ-handlers/define.js | 13 - .../integ-handlers/dependencies-sdk-v3.d.ts | 1 - .../integ-handlers/dependencies-sdk-v3.js | 12 - .../test/integ-handlers/dependencies.d.ts | 1 - .../test/integ-handlers/dependencies.js | 13 - .../test/integ-handlers/esm.d.ts | 1 - .../test/integ-handlers/esm.js | 10 - .../pnpm/dependencies-pnpm.d.ts | 1 - .../integ-handlers/pnpm/dependencies-pnpm.js | 10 - .../integ-handlers/ts-decorator-handler.d.ts | 1 - .../integ-handlers/ts-decorator-handler.js | 31 -- .../test/integ-handlers/ts-handler.d.ts | 1 - .../test/integ-handlers/ts-handler.js | 9 - .../test/integ-handlers/ts-web-handler.d.ts | 1 - .../test/integ-handlers/ts-web-handler.js | 13 - .../test/integ-handlers/util.d.ts | 2 - .../test/integ-handlers/util.js | 12 - .../test/integ.compilations.d.ts | 1 - .../test/integ.compilations.js | 36 -- .../test/integ.dependencies-pnpm.d.ts | 1 - .../test/integ.dependencies-pnpm.js | 36 -- .../test/integ.dependencies.d.ts | 1 - .../test/integ.dependencies.js | 54 --- .../aws-lambda-nodejs/test/integ.esm.d.ts | 1 - .../test/aws-lambda-nodejs/test/integ.esm.js | 20 - .../test/integ.function.d.ts | 1 - .../aws-lambda-nodejs/test/integ.function.js | 65 --- .../test/docker-lambda-handler/app.d.ts | 0 .../test/docker-lambda-handler/app.js | 10 - .../aws-lambda/test/integ.assets.file.d.ts | 1 - .../test/aws-lambda/test/integ.assets.file.js | 21 - .../aws-lambda/test/integ.assets.lit.d.ts | 1 - .../test/aws-lambda/test/integ.assets.lit.js | 21 - .../test/integ.autoscaling.lit.d.ts | 1 - .../aws-lambda/test/integ.autoscaling.lit.js | 48 --- .../test/aws-lambda/test/integ.bundling.d.ts | 1 - .../test/integ.bundling.docker-opts.d.ts | 1 - .../test/integ.bundling.docker-opts.js | 51 --- .../test/aws-lambda/test/integ.bundling.js | 49 --- .../test/integ.current-version.d.ts | 1 - .../aws-lambda/test/integ.current-version.js | 28 -- .../aws-lambda/test/integ.lambda-adot.d.ts | 1 - .../test/aws-lambda/test/integ.lambda-adot.js | 74 ---- .../test/integ.lambda-customize-roles.d.ts | 1 - .../test/integ.lambda-customize-roles.js | 37 -- .../test/integ.lambda-insights-mapping.d.ts | 1 - .../test/integ.lambda-insights-mapping.js | 50 --- .../test/aws-lambda/test/integ.lambda.d.ts | 1 - .../test/integ.lambda.docker-arm64.d.ts | 1 - .../test/integ.lambda.docker-arm64.js | 17 - .../aws-lambda/test/integ.lambda.docker.d.ts | 1 - .../aws-lambda/test/integ.lambda.docker.js | 27 -- .../test/integ.lambda.filesystem.d.ts | 1 - .../test/integ.lambda.filesystem.js | 85 ---- .../test/aws-lambda/test/integ.lambda.js | 34 -- .../test/integ.lambda.prov.concurrent.d.ts | 1 - .../test/integ.lambda.prov.concurrent.js | 56 --- .../test/integ.layer-version.lit.d.ts | 1 - .../test/integ.layer-version.lit.js | 29 -- .../aws-lambda/test/integ.log-retention.d.ts | 1 - .../aws-lambda/test/integ.log-retention.js | 27 -- .../aws-lambda/test/integ.permissions.d.ts | 1 - .../test/aws-lambda/test/integ.permissions.js | 15 - .../test/integ.runtime-management.d.ts | 1 - .../test/integ.runtime-management.js | 18 - .../test/integ.runtime.inlinecode.d.ts | 1 - .../test/integ.runtime.inlinecode.js | 53 --- .../aws-lambda/test/integ.vpc-lambda.d.ts | 1 - .../test/aws-lambda/test/integ.vpc-lambda.js | 16 - .../aws-lambda/test/layer-code/layer.d.ts | 1 - .../test/aws-lambda/test/layer-code/layer.js | 8 - .../test/integ.kinesis.d.ts | 1 - .../test/integ.kinesis.js | 31 -- .../test/integ.lambda.d.ts | 1 - .../test/integ.lambda.js | 77 ---- .../aws-logs/test/integ.expose-metric.d.ts | 1 - .../test/aws-logs/test/integ.expose-metric.js | 37 -- .../aws-logs/test/integ.log-retention.d.ts | 1 - .../test/aws-logs/test/integ.log-retention.js | 25 -- .../test/integ.loggroup-grantread.d.ts | 1 - .../aws-logs/test/integ.loggroup-grantread.js | 15 - .../test/integ.metricfilter-dimensions.d.ts | 1 - .../test/integ.metricfilter-dimensions.js | 30 -- .../test/integ.metricfilter-unit.d.ts | 1 - .../aws-logs/test/integ.metricfilter-unit.js | 32 -- .../aws-logs/test/integ.metricfilter.lit.d.ts | 1 - .../aws-logs/test/integ.metricfilter.lit.js | 25 -- ...g.save-logs-insights-query-definition.d.ts | 1 - ...teg.save-logs-insights-query-definition.js | 52 --- .../integ.opensearch.advancedsecurity.d.ts | 1 - .../test/integ.opensearch.advancedsecurity.js | 27 -- ...nteg.opensearch.cognitodashboardsauth.d.ts | 1 - .../integ.opensearch.cognitodashboardsauth.js | 47 --- .../test/integ.opensearch.custom-kms-key.d.ts | 1 - .../test/integ.opensearch.custom-kms-key.js | 33 -- .../test/integ.opensearch.d.ts | 1 - .../test/integ.opensearch.js | 48 --- .../test/integ.opensearch.ultrawarm.d.ts | 1 - .../test/integ.opensearch.ultrawarm.js | 21 - .../integ.opensearch.unsignedbasicauth.d.ts | 1 - .../integ.opensearch.unsignedbasicauth.js | 18 - .../test/integ.opensearch.vpc.d.ts | 1 - .../test/integ.opensearch.vpc.js | 39 -- .../test/aws-rds/test/integ.cluster-dual.d.ts | 1 - .../test/aws-rds/test/integ.cluster-dual.js | 41 -- .../test/integ.cluster-rotation.lit.d.ts | 1 - .../test/integ.cluster-rotation.lit.js | 39 -- .../test/aws-rds/test/integ.cluster-s3.d.ts | 1 - .../test/aws-rds/test/integ.cluster-s3.js | 28 -- .../test/integ.cluster-s3.mysql-8.d.ts | 1 - .../aws-rds/test/integ.cluster-s3.mysql-8.js | 26 -- .../aws-rds/test/integ.cluster-snapshot.d.ts | 1 - .../aws-rds/test/integ.cluster-snapshot.js | 92 ---- .../test/aws-rds/test/integ.cluster.d.ts | 1 - .../test/aws-rds/test/integ.cluster.js | 45 -- .../aws-rds/test/integ.instance-dual.d.ts | 1 - .../test/aws-rds/test/integ.instance-dual.js | 41 -- ...nteg.instance-from-generated-password.d.ts | 1 - .../integ.instance-from-generated-password.js | 25 -- .../test/aws-rds/test/integ.instance-gp3.d.ts | 1 - .../test/aws-rds/test/integ.instance-gp3.js | 26 -- .../test/integ.instance-s3-postgres.d.ts | 1 - .../test/integ.instance-s3-postgres.js | 20 - .../test/aws-rds/test/integ.instance-s3.d.ts | 1 - .../test/aws-rds/test/integ.instance-s3.js | 21 - .../test/aws-rds/test/integ.instance.lit.d.ts | 1 - .../test/aws-rds/test/integ.instance.lit.js | 95 ----- .../test/aws-rds/test/integ.proxy.d.ts | 1 - .../test/aws-rds/test/integ.proxy.js | 52 --- .../test/aws-rds/test/integ.read-replica.d.ts | 1 - .../test/aws-rds/test/integ.read-replica.js | 59 --- .../test/integ.rolling-instance-updates.d.ts | 1 - .../test/integ.rolling-instance-updates.js | 38 -- .../test/integ.serverless-cluster-no-vpc.d.ts | 1 - .../test/integ.serverless-cluster-no-vpc.js | 27 -- ...-cluster-secret-rotation-custom-names.d.ts | 1 - ...ss-cluster-secret-rotation-custom-names.js | 31 -- ...eg.serverless-cluster-secret-rotation.d.ts | 1 - ...nteg.serverless-cluster-secret-rotation.js | 29 -- .../test/integ.serverless-cluster.d.ts | 1 - .../aws-rds/test/integ.serverless-cluster.js | 43 -- .../aws-rds/test/snapshot-handler/index.d.ts | 3 - .../aws-rds/test/snapshot-handler/index.js | 60 --- .../integ.hosted-redirect-same-region.d.ts | 1 - .../test/integ.hosted-redirect-same-region.js | 40 -- .../test/integ.hosted-redirect.d.ts | 1 - .../test/integ.hosted-redirect.js | 44 -- .../test/integ.alb-alias-target.d.ts | 2 - .../test/integ.alb-alias-target.js | 25 -- .../test/integ.api-gateway-domain-name.d.ts | 2 - .../test/integ.api-gateway-domain-name.js | 52 --- .../test/integ.cloudfront-alias-target.d.ts | 1 - .../test/integ.cloudfront-alias-target.js | 30 -- .../integ.globalaccelerator-alias-target.d.ts | 2 - .../integ.globalaccelerator-alias-target.js | 28 -- .../integ.interface-vpc-endpoint-target.d.ts | 1 - .../integ.interface-vpc-endpoint-target.js | 35 -- .../test/integ.route53-record.d.ts | 2 - .../test/integ.route53-record.js | 27 -- .../integ.cross-account-zone-delegation.d.ts | 1 - .../integ.cross-account-zone-delegation.js | 31 -- .../integ.delete-existing-record-set.d.ts | 1 - .../test/integ.delete-existing-record-set.js | 30 -- .../test/aws-route53/test/integ.route53.d.ts | 1 - .../test/aws-route53/test/integ.route53.js | 50 --- ...nteg.vpc-endpoint-service-domain-name.d.ts | 1 - .../integ.vpc-endpoint-service-domain-name.js | 43 -- .../integ.assets.bundling.docker-opts.d.ts | 1 - .../test/integ.assets.bundling.docker-opts.js | 26 -- .../test/integ.assets.bundling.lit.d.ts | 1 - .../test/integ.assets.bundling.lit.js | 30 -- .../test/integ.assets.directory.lit.d.ts | 1 - .../test/integ.assets.directory.lit.js | 22 - .../test/integ.assets.file.lit.d.ts | 1 - .../test/integ.assets.file.lit.js | 22 - .../test/integ.assets.permissions.lit.d.ts | 1 - .../test/integ.assets.permissions.lit.js | 22 - .../test/integ.assets.refs.lit.d.ts | 1 - .../test/integ.assets.refs.lit.js | 26 -- .../test/integ.multi-assets.d.ts | 1 - .../aws-s3-assets/test/integ.multi-assets.js | 25 -- .../integ.bucket-deployment-cloudfront.d.ts | 1 - .../integ.bucket-deployment-cloudfront.js | 37 -- .../test/integ.bucket-deployment-data.d.ts | 1 - .../test/integ.bucket-deployment-data.js | 27 -- ...teg.bucket-deployment-deployed-bucket.d.ts | 1 - ...integ.bucket-deployment-deployed-bucket.js | 32 -- .../test/integ.bucket-deployment.d.ts | 1 - .../test/integ.bucket-deployment.js | 115 ----- .../test/integ.notifications.d.ts | 1 - .../test/integ.notifications.js | 26 -- .../lambda/integ.bucket-notifications.d.ts | 1 - .../test/lambda/integ.bucket-notifications.js | 28 -- .../sns/integ.sns-bucket-notifications.d.ts | 1 - .../sns/integ.sns-bucket-notifications.js | 22 - .../test/sqs/integ.bucket-notifications.d.ts | 1 - .../test/sqs/integ.bucket-notifications.js | 43 -- .../integ.bucket-auto-delete-objects.d.ts | 1 - .../test/integ.bucket-auto-delete-objects.js | 38 -- .../aws-s3/test/integ.bucket-grant-write.d.ts | 2 - .../aws-s3/test/integ.bucket-grant-write.js | 20 - .../test/integ.bucket-grantdelete-kms.d.ts | 2 - .../test/integ.bucket-grantdelete-kms.js | 22 - ...nteg.bucket-import-server-access-logs.d.ts | 2 - .../integ.bucket-import-server-access-logs.js | 36 -- .../integ.bucket-intelligent-tiering.d.ts | 1 - .../test/integ.bucket-intelligent-tiering.js | 20 - .../aws-s3/test/integ.bucket-inventory.d.ts | 2 - .../aws-s3/test/integ.bucket-inventory.js | 36 -- .../aws-s3/test/integ.bucket-object-lock.d.ts | 2 - .../aws-s3/test/integ.bucket-object-lock.js | 18 - .../aws-s3/test/integ.bucket-sharing.d.ts | 1 - .../test/aws-s3/test/integ.bucket-sharing.js | 34 -- .../test/aws-s3/test/integ.bucket.d.ts | 2 - .../aws-s3/test/integ.bucket.domain-name.d.ts | 1 - .../aws-s3/test/integ.bucket.domain-name.js | 23 - .../test/aws-s3/test/integ.bucket.js | 24 -- .../test/integ.bucket.notifications.d.ts | 2 - .../aws-s3/test/integ.bucket.notifications.js | 16 - .../test/integ.bucket.server-access-logs.d.ts | 2 - .../test/integ.bucket.server-access-logs.js | 20 - .../test/aws-s3/test/integ.bucket.url.d.ts | 1 - .../test/aws-s3/test/integ.bucket.url.js | 23 - .../test/integ.lifecycle-expiration.d.ts | 1 - .../aws-s3/test/integ.lifecycle-expiration.js | 17 - .../test/aws-s3/test/integ.lifecycle.d.ts | 1 - .../test/aws-s3/test/integ.lifecycle.js | 25 -- .../test/put-objects-handler/index.d.ts | 1 - .../aws-s3/test/put-objects-handler/index.js | 33 -- .../test/integ.hosted-rotation.d.ts | 1 - .../test/integ.hosted-rotation.js | 25 -- .../test/integ.lambda-rotation.d.ts | 1 - .../test/integ.lambda-rotation.js | 26 -- .../test/integ.replica.d.ts | 1 - .../aws-secretsmanager/test/integ.replica.js | 15 - .../test/integ.secret-name-parsed.d.ts | 1 - .../test/integ.secret-name-parsed.js | 40 -- .../test/integ.secret.lit.d.ts | 1 - .../test/integ.secret.lit.js | 50 --- .../test/integ.portfolio.d.ts | 1 - .../test/integ.portfolio.js | 77 ---- .../test/integ.product.d.ts | 1 - .../aws-servicecatalog/test/integ.product.js | 144 ------- .../integ.service-with-cname-record.lit.d.ts | 1 - .../integ.service-with-cname-record.lit.js | 19 - ...integ.service-with-http-namespace.lit.d.ts | 1 - .../integ.service-with-http-namespace.lit.js | 27 -- ...ervice-with-private-dns-namespace.lit.d.ts | 1 - ....service-with-private-dns-namespace.lit.js | 28 -- ...service-with-public-dns-namespace.lit.d.ts | 1 - ...g.service-with-public-dns-namespace.lit.js | 25 -- .../aws-ses-actions/test/integ.actions.d.ts | 1 - .../aws-ses-actions/test/integ.actions.js | 60 --- .../aws-ses/test/integ.configuration-set.d.ts | 1 - .../aws-ses/test/integ.configuration-set.js | 17 - .../aws-ses/test/integ.email-identity.d.ts | 1 - .../test/aws-ses/test/integ.email-identity.js | 24 -- .../test/aws-ses/test/integ.receipt.d.ts | 1 - .../test/aws-ses/test/integ.receipt.js | 22 - .../aws-ses/test/integ.vdm-attributes.d.ts | 1 - .../test/aws-ses/test/integ.vdm-attributes.js | 17 - .../test/integ.sns-lambda-cross-region.d.ts | 1 - .../test/integ.sns-lambda-cross-region.js | 35 -- .../test/integ.sns-lambda.d.ts | 1 - .../test/integ.sns-lambda.js | 66 --- .../test/integ.sns-sqs-cross-region.lit.d.ts | 1 - .../test/integ.sns-sqs-cross-region.lit.js | 26 -- .../test/integ.sns-sqs.d.ts | 1 - .../test/integ.sns-sqs.js | 53 --- .../test/integ.sns-sqs.lit.d.ts | 1 - .../test/integ.sns-sqs.lit.js | 29 -- .../test/aws-sns/test/integ.sns-fifo.d.ts | 1 - .../test/aws-sns/test/integ.sns-fifo.js | 19 - .../aws-sns/test/integ.sns-fifo.no-name.d.ts | 1 - .../aws-sns/test/integ.sns-fifo.no-name.js | 15 - .../test/aws-sns/test/integ.sns.d.ts | 1 - .../test/aws-sns/test/integ.sns.js | 20 - .../test/aws-sqs/test/integ.sqs.d.ts | 1 - .../test/aws-sqs/test/integ.sqs.js | 46 -- .../aws-ssm/test/integ.list-parameter.d.ts | 1 - .../test/aws-ssm/test/integ.list-parameter.js | 72 ---- .../aws-ssm/test/integ.parameter-arns.d.ts | 1 - .../test/aws-ssm/test/integ.parameter-arns.js | 25 -- .../test/integ.parameter-store-string.d.ts | 1 - .../test/integ.parameter-store-string.js | 88 ---- .../test/aws-ssm/test/integ.parameter.d.ts | 1 - .../test/aws-ssm/test/integ.parameter.js | 28 -- .../test/apigateway/integ.call-rest-api.d.ts | 1 - .../test/apigateway/integ.call-rest-api.js | 43 -- .../athena/integ.get-query-execution.d.ts | 1 - .../test/athena/integ.get-query-execution.js | 37 -- .../test/athena/integ.get-query-results.d.ts | 1 - .../test/athena/integ.get-query-results.js | 44 -- .../athena/integ.start-query-execution.d.ts | 1 - .../athena/integ.start-query-execution.js | 38 -- .../athena/integ.stop-query-execution.d.ts | 1 - .../test/athena/integ.stop-query-execution.js | 38 -- .../aws-sdk/integ.call-aws-service-sfn.d.ts | 1 - .../aws-sdk/integ.call-aws-service-sfn.js | 48 --- .../test/aws-sdk/integ.call-aws-service.d.ts | 1 - .../test/aws-sdk/integ.call-aws-service.js | 58 --- .../test/codebuild/integ.start-build.d.ts | 1 - .../test/codebuild/integ.start-build.js | 63 --- .../test/databrew/integ.start-job-run.d.ts | 1 - .../test/databrew/integ.start-job-run.js | 113 ----- .../test/dynamodb/integ.call-dynamodb.d.ts | 1 - .../test/dynamodb/integ.call-dynamodb.js | 84 ---- .../integ.stringset-after-parallel.d.ts | 1 - .../integ.stringset-after-parallel.js | 40 -- .../test/ecs/integ.ec2-run-task.d.ts | 1 - .../test/ecs/integ.ec2-run-task.js | 60 --- .../test/ecs/integ.ec2-task.d.ts | 1 - .../test/ecs/integ.ec2-task.js | 48 --- .../test/ecs/integ.fargate-run-task.d.ts | 1 - .../test/ecs/integ.fargate-run-task.js | 76 ---- .../test/ecs/integ.fargate-task.d.ts | 1 - .../test/ecs/integ.fargate-task.js | 47 --- .../test/eks/integ.call.d.ts | 1 - .../test/eks/integ.call.js | 56 --- ...teg.emr-create-cluster-with-v1-policy.d.ts | 1 - ...integ.emr-create-cluster-with-v1-policy.js | 18 - ...teg.emr-create-cluster-with-v2-policy.d.ts | 1 - ...integ.emr-create-cluster-with-v2-policy.js | 23 - .../integ.job-submission-workflow.d.ts | 1 - .../integ.job-submission-workflow.js | 85 ---- .../emrcontainers/integ.start-job-run.d.ts | 1 - .../test/emrcontainers/integ.start-job-run.js | 98 ----- .../test/eventbridge/integ.put-events.d.ts | 1 - .../test/eventbridge/integ.put-events.js | 56 --- .../test/glue/integ.glue-task.d.ts | 1 - .../test/glue/integ.glue-task.js | 57 --- .../test/glue/integ.start-job-run.d.ts | 1 - .../test/glue/integ.start-job-run.js | 56 --- .../test/integ.evaluate-expression.d.ts | 1 - .../test/integ.evaluate-expression.js | 38 -- .../test/integ.job-poller.d.ts | 1 - .../test/integ.job-poller.js | 47 --- .../test/integ.start-execution.d.ts | 1 - .../test/integ.start-execution.js | 36 -- .../test/lambda/integ.invoke-function.d.ts | 1 - .../test/lambda/integ.invoke-function.js | 50 --- .../test/lambda/integ.invoke.d.ts | 1 - .../test/lambda/integ.invoke.js | 69 --- .../lambda/integ.invoke.payload.only.d.ts | 1 - .../test/lambda/integ.invoke.payload.only.js | 67 --- .../test/lambda/integ.run-lambda.d.ts | 1 - .../test/lambda/integ.run-lambda.js | 60 --- .../test/sagemaker/integ.call-sagemaker.d.ts | 1 - .../test/sagemaker/integ.call-sagemaker.js | 111 ----- .../sagemaker/integ.create-training-job.d.ts | 1 - .../sagemaker/integ.create-training-job.js | 54 --- .../test/sns/integ.publish.d.ts | 1 - .../test/sns/integ.publish.js | 46 -- .../sqs/integ.send-message-encrypted.d.ts | 1 - .../test/sqs/integ.send-message-encrypted.js | 45 -- .../test/sqs/integ.send-message.d.ts | 1 - .../test/sqs/integ.send-message.js | 43 -- .../stepfunctions/integ.invoke-activity.d.ts | 1 - .../stepfunctions/integ.invoke-activity.js | 73 ---- .../stepfunctions/integ.start-execution.d.ts | 1 - .../stepfunctions/integ.start-execution.js | 35 -- .../aws-stepfunctions/test/fake-task.d.ts | 20 - .../test/aws-stepfunctions/test/fake-task.js | 30 -- .../test/integ.custom-state.d.ts | 1 - .../test/integ.custom-state.js | 38 -- .../test/integ.intrinsics.d.ts | 1 - .../test/integ.intrinsics.js | 54 --- .../test/integ.listAt-after-parallel.d.ts | 1 - .../test/integ.listAt-after-parallel.js | 33 -- .../test/integ.state-machine-credentials.d.ts | 1 - .../test/integ.state-machine-credentials.js | 32 -- .../test/integ.state-machine.d.ts | 1 - .../test/integ.state-machine.js | 26 -- .../test/integ.nested-stacks.d.ts | 1 - .../test/integ.nested-stacks.js | 16 - .../integ.aws-custom-resource-athena.d.ts | 1 - .../integ.aws-custom-resource-athena.js | 137 ------ .../integ.aws-custom-resource-vpc.d.ts | 1 - .../integ.aws-custom-resource-vpc.js | 36 -- .../integ.aws-custom-resource.d.ts | 2 - .../integ.aws-custom-resource.js | 82 ---- .../provider-framework/integ.provider.d.ts | 1 - .../test/provider-framework/integ.provider.js | 47 --- .../integration-test-fixtures/s3-assert.d.ts | 26 -- .../integration-test-fixtures/s3-assert.js | 71 ---- .../s3-file-handler/api.d.ts | 7 - .../s3-file-handler/api.js | 11 - .../s3-file-handler/index.d.ts | 4 - .../s3-file-handler/index.js | 71 ---- .../integration-test-fixtures/s3-file.d.ts | 31 -- .../integration-test-fixtures/s3-file.js | 64 --- .../test/integ.awscli-layer.d.ts | 1 - .../test/integ.awscli-layer.js | 44 -- .../test/integ.kubectl-layer.d.ts | 1 - .../test/integ.kubectl-layer.js | 44 -- .../test/integ.node-proxy-agent.d.ts | 1 - .../test/integ.node-proxy-agent.js | 38 -- ...g.newpipeline-with-cross-account-keys.d.ts | 1 - ...teg.newpipeline-with-cross-account-keys.js | 53 --- .../test/integ.newpipeline-with-vpc.d.ts | 1 - .../test/integ.newpipeline-with-vpc.js | 49 --- .../pipelines/test/integ.newpipeline.d.ts | 1 - .../test/pipelines/test/integ.newpipeline.js | 53 --- .../test/integ.pipeline-security.d.ts | 5 - .../pipelines/test/integ.pipeline-security.js | 94 ----- ...eg.pipeline-with-assets-single-upload.d.ts | 1 - ...nteg.pipeline-with-assets-single-upload.js | 87 ---- .../test/integ.pipeline-with-assets.d.ts | 1 - .../test/integ.pipeline-with-assets.js | 86 ---- ...ine-with-stack-outputs-in-custom-step.d.ts | 1 - ...eline-with-stack-outputs-in-custom-step.js | 72 ---- .../test/integ.pipeline-with-variables.d.ts | 1 - .../test/integ.pipeline-with-variables.js | 53 --- .../test/integ.pipeline-without-prepare.d.ts | 15 - .../test/integ.pipeline-without-prepare.js | 70 ---- .../test/pipelines/test/integ.pipeline.d.ts | 1 - .../test/pipelines/test/integ.pipeline.js | 78 ---- .../test/triggers/test/integ.triggers.d.ts | 1 - .../test/triggers/test/integ.triggers.js | 72 ---- 1190 files changed, 7 insertions(+), 26417 deletions(-) delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/sdk-call-integ-test-docker-app/app/sdk-call.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.js delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.d.ts delete mode 100644 packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.js diff --git a/packages/@aws-cdk-testing/framework-integ/.gitignore b/packages/@aws-cdk-testing/framework-integ/.gitignore index d51ed9d49b453..edcbb5e03d23d 100644 --- a/packages/@aws-cdk-testing/framework-integ/.gitignore +++ b/packages/@aws-cdk-testing/framework-integ/.gitignore @@ -1,3 +1,5 @@ +*.d.ts +*.js .LAST_BUILD *.snk @@ -6,3 +8,8 @@ junit.xml .nyc_output coverage nyc.config.js + +!**/*.snapshot/**/asset.*/*.js +!**/*.snapshot/**/asset.*/*.d.ts + +!**/*.snapshot/**/asset.*/** diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.js deleted file mode 100644 index 7a6b831ce684f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.cognito-authorizer.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cognito = require("aws-cdk-lib/aws-cognito"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -/* - * Stack verification steps: - * * 1. Get the IdToken for the created pool by adding user/app-client and using aws cognito-idp: - * * a. aws cognito-idp create-user-pool-client --user-pool-id --client-name --no-generate-secret - * * b. aws cognito-idp admin-create-user --user-pool-id --username --temporary-password - * * c. aws cognito-idp initiate-auth --client-id --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=,PASSWORD= - * * d. aws cognito-idp respond-to-auth-challenge --client-id --challenge-name --session - * * - * * 2. Verify the stack using above obtained token: - * * a. `curl -s -o /dev/null -w "%{http_code}" ` should return 401 - * * b. `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: ' ` should return 403 - * * c. `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: ' ` should return 200 - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'CognitoUserPoolsAuthorizerInteg'); -const userPool = new cognito.UserPool(stack, 'UserPool'); -const authorizer = new aws_apigateway_1.CognitoUserPoolsAuthorizer(stack, 'myauthorizer', { - cognitoUserPools: [userPool], -}); -const restApi = new aws_apigateway_1.RestApi(stack, 'myrestapi', { cloudWatchRole: true }); -restApi.root.addMethod('ANY', new aws_apigateway_1.MockIntegration({ - integrationResponses: [ - { statusCode: '200' }, - ], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [ - { statusCode: '200' }, - ], - authorizer, - authorizationType: aws_apigateway_1.AuthorizationType.COGNITO, -}); -new integ_tests_alpha_1.IntegTest(app, 'cognito-authorizer', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29nbml0by1hdXRob3JpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29nbml0by1hdXRob3JpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbURBQW1EO0FBQ25ELDZDQUF5QztBQUN6QyxrRUFBd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VyUG9vbHM6IFt1c2VyUG9vbF0sXG59KTtcblxuY29uc3QgcmVzdEFwaSA9IG5ldyBSZXN0QXBpKHN0YWNrLCAnbXlyZXN0YXBpJywgeyBjbG91ZFdhdGNoUm9sZTogdHJ1ZSB9KTtcbnJlc3RBcGkucm9vdC5hZGRNZXRob2QoJ0FOWScsIG5ldyBNb2NrSW50ZWdyYXRpb24oe1xuICBpbnRlZ3JhdGlvblJlc3BvbnNlczogW1xuICAgIHsgc3RhdHVzQ29kZTogJzIwMCcgfSxcbiAgXSxcbiAgcGFzc3Rocm91Z2hCZWhhdmlvcjogUGFzc3Rocm91Z2hCZWhhdmlvci5ORVZFUixcbiAgcmVxdWVzdFRlbXBsYXRlczoge1xuICAgICdhcHBsaWNhdGlvbi9qc29uJzogJ3sgXCJzdGF0dXNDb2RlXCI6IDIwMCB9JyxcbiAgfSxcbn0pLCB7XG4gIG1ldGhvZFJlc3BvbnNlczogW1xuICAgIHsgc3RhdHVzQ29kZTogJzIwMCcgfSxcbiAgXSxcbiAgYXV0aG9yaXplcixcbiAgYXV0aG9yaXphdGlvblR5cGU6IEF1dGhvcml6YXRpb25UeXBlLkNPR05JVE8sXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdjb2duaXRvLWF1dGhvcml6ZXInLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.js deleted file mode 100644 index bcb56b4f44e00..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.request-authorizer.lit.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -// Against the RestApi endpoint from the stack output, run -// `curl -s -o /dev/null -w "%{http_code}" ` should return 401 -// `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: deny' ?allow=yes` should return 403 -// `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: allow' ?allow=yes` should return 200 -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'RequestAuthorizerInteg'); -const authorizerFn = new lambda.Function(stack, 'MyAuthorizerFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.AssetCode.fromAsset(path.join(__dirname, 'integ.request-authorizer.handler')), -}); -const restapi = new aws_apigateway_1.RestApi(stack, 'MyRestApi', { cloudWatchRole: true }); -const authorizer = new aws_apigateway_1.RequestAuthorizer(stack, 'MyAuthorizer', { - handler: authorizerFn, - identitySources: [aws_apigateway_1.IdentitySource.header('Authorization'), aws_apigateway_1.IdentitySource.queryString('allow')], -}); -const secondAuthorizer = new aws_apigateway_1.RequestAuthorizer(stack, 'MySecondAuthorizer', { - handler: authorizerFn, - identitySources: [aws_apigateway_1.IdentitySource.header('Authorization'), aws_apigateway_1.IdentitySource.queryString('allow')], -}); -restapi.root.addMethod('ANY', new aws_apigateway_1.MockIntegration({ - integrationResponses: [ - { statusCode: '200' }, - ], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [ - { statusCode: '200' }, - ], - authorizer, -}); -restapi.root.resourceForPath('auth').addMethod('ANY', new aws_apigateway_1.MockIntegration({ - integrationResponses: [ - { statusCode: '200' }, - ], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [ - { statusCode: '200' }, - ], - authorizer: secondAuthorizer, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVxdWVzdC1hdXRob3JpemVyLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlcXVlc3QtYXV0aG9yaXplci5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELDZDQUF5QztBQUN6QywrREFBOEg7QUFFOUgsMERBQTBEO0FBQzFELG1FQUFtRTtBQUNuRSxzR0FBc0c7QUFDdEcsdUdBQXVHO0FBRXZHLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsd0JBQXdCLENBQUMsQ0FBQztBQUV2RCxNQUFNLFlBQVksR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLHNCQUFzQixFQUFFO0lBQ3RFLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7SUFDbkMsT0FBTyxFQUFFLGVBQWU7SUFDeEIsSUFBSSxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLGtDQUFrQyxDQUFDLENBQUM7Q0FDM0YsQ0FBQyxDQUFDO0FBRUgsTUFBTSxPQUFPLEdBQUcsSUFBSSx3QkFBTyxDQ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59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.js deleted file mode 100644 index 2eb65ec9a4a58..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer-iam-role.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -/* - * Stack verification steps: - * * `curl -s -o /dev/null -w "%{http_code}" ` should return 401 - * * `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: deny' ` should return 403 - * * `curl -s -o /dev/null -w "%{http_code}" -H 'Authorization: allow' ` should return 200 - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'TokenAuthorizerIAMRoleInteg'); -const authorizerFn = new lambda.Function(stack, 'MyAuthorizerFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.AssetCode.fromAsset(path.join(__dirname, 'integ.token-authorizer.handler')), -}); -const role = new iam.Role(stack, 'authorizerRole', { - assumedBy: new iam.ServicePrincipal('apigateway.amazonaws.com'), -}); -const authorizer = new aws_apigateway_1.TokenAuthorizer(stack, 'MyAuthorizer', { - handler: authorizerFn, - assumeRole: role, -}); -const restapi = new aws_apigateway_1.RestApi(stack, 'MyRestApi', { cloudWatchRole: true }); -restapi.root.addMethod('ANY', new aws_apigateway_1.MockIntegration({ - integrationResponses: [ - { statusCode: '200' }, - ], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [ - { statusCode: '200' }, - ], - authorizer, - authorizationType: aws_apigateway_1.AuthorizationType.CUSTOM, -}); -new integ_tests_alpha_1.IntegTest(app, 'iam-token-authorizer', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudG9rZW4tYXV0aG9yaXplci1pYW0tcm9sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnRva2VuLWF1dGhvcml6ZXItaWFtLXJvbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLGlEQUFpRDtBQUNqRCw2Q0FBeUM7QUFDekMsa0VBQXVEO0FBQ3ZELCtEQUErSDtBQUUvSDs7Ozs7R0FLRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsNkJBQTZCLENBQUMsQ0FBQztBQUU1RCxNQUFNLFlBQVksR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLHNCQUFzQixFQUFFO0lBQ3RFLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7SUFDbkMsT0FBTyxFQUFFLGVBQWU7SUF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xdWVzdFRlbXBsYXRlczoge1xuICAgICdhcHBsaWNhdGlvbi9qc29uJzogJ3sgXCJzdGF0dXNDb2RlXCI6IDIwMCB9JyxcbiAgfSxcbn0pLCB7XG4gIG1ldGhvZFJlc3BvbnNlczogW1xuICAgIHsgc3RhdHVzQ29kZTogJzIwMCcgfSxcbiAgXSxcbiAgYXV0aG9yaXplcixcbiAgYXV0aG9yaXphdGlvblR5cGU6IEF1dGhvcml6YXRpb25UeXBlLkNVU1RPTSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2lhbS10b2tlbi1hdXRob3JpemVyJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.js deleted file mode 100644 index 397f18b288c20..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/authorizers/integ.token-authorizer.js +++ /dev/null @@ -1,120 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'TokenAuthorizerInteg'); -const authorizerFn = new lambda.Function(stack, 'MyAuthorizerFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.AssetCode.fromAsset(path.join(__dirname, 'integ.token-authorizer.handler')), -}); -const authorizer = new aws_apigateway_1.TokenAuthorizer(stack, 'MyAuthorizer', { - handler: authorizerFn, -}); -const restapi = new aws_apigateway_1.RestApi(stack, 'MyRestApi', { - cloudWatchRole: true, - defaultMethodOptions: { - authorizer, - }, - defaultCorsPreflightOptions: { - allowOrigins: aws_apigateway_1.Cors.ALL_ORIGINS, - }, -}); -restapi.root.addMethod('ANY', new aws_apigateway_1.MockIntegration({ - integrationResponses: [ - { statusCode: '200' }, - ], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [ - { statusCode: '200' }, - ], -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'apigw-token-auth', { - testCases: [stack], -}); -const hostName = `${restapi.restApiId}.execute-api.${stack.region}.${stack.urlSuffix}`; -const testFunc = new lambda.Function(stack, 'InvokeFunction', { - memorySize: 250, - timeout: aws_cdk_lib_1.Duration.seconds(10), - code: lambda.Code.fromInline(` -const https = require('https'); -const options = { - hostname: '${hostName}', - path: '/${restapi.deploymentStage.stageName}', -}; -exports.handler = async function(event) { - console.log(event); - options.method = event.method; - if ('authorization' in event) { - options.headers = { - Authorization: event.authorization, - }; - } - let dataString = ''; - const response = await new Promise((resolve, reject) => { - const req = https.request(options, (res) => { - res.on('data', data => { - dataString += data; - }) - res.on('end', () => { - resolve({ - statusCode: res.statusCode, - body: dataString, - }); - }) - }); - req.on('error', err => { - reject({ - statusCode: 500, - body: JSON.stringify({ - cause: 'Something went wrong', - error: err, - }) - }); - }); - req.end(); - }); - return response; -} -`), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_16_X, -}); -const invokeGet = integ.assertions.invokeFunction({ - functionName: testFunc.functionName, - payload: JSON.stringify({ - method: 'GET', - authorization: 'allow', - }), -}); -invokeGet.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('200'), -})); -const invokeGetDeny = integ.assertions.invokeFunction({ - functionName: testFunc.functionName, - payload: JSON.stringify({ - method: 'GET', - authorization: 'deny', - }), -}); -invokeGetDeny.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('User is not authorized to access this resource with an explicit deny'), -})); -const invokeOptions = integ.assertions.invokeFunction({ - functionName: testFunc.functionName, - payload: JSON.stringify({ - method: 'OPTIONS', - }), -}); -invokeOptions.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('204'), -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudG9rZW4tYXV0aG9yaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnRva2VuLWF1dGhvcml6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELDZDQUFtRDtBQUNuRCxrRUFBOEU7QUFDOUUsK0RBQWtIO0FBRWxILE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQUVyRCxNQUFNLFlBQVksR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLHNCQUFzQixFQUFFO0lBQ3RFLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7SUFDbkMsT0FBTyxFQUFFLGVBQWU7SUFDeEIsSUFBSSxFQUFFLE1BQU0sQ0FBQyxTQUFT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ufSkpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.js deleted file mode 100644 index d2a29eeff2e6c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.asset.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -/* - * Stack verification steps: - * * `curl -s -o /dev/null -w "%{http_code}" ` should return HTTP code 200 - * * `curl -s -o /dev/null -w "%{http_code}" ` should return HTTP code 200 - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integtest-restapi-fromdefinition-asset'); -const api = new apigateway.SpecRestApi(stack, 'my-api', { - cloudWatchRole: true, - apiDefinition: apigateway.ApiDefinition.fromAsset(path.join(__dirname, 'sample-definition.yaml')), -}); -api.root.addResource('books').addMethod('GET', new apigateway.MockIntegration({ - integrationResponses: [{ - statusCode: '200', - }], - passthroughBehavior: apigateway.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, -}), { - methodResponses: [{ statusCode: '200' }], -}); -new cdk.CfnOutput(stack, 'PetsURL', { - value: api.urlForPath('/pets'), -}); -new cdk.CfnOutput(stack, 'BooksURL', { - value: api.urlForPath('/books'), -}); -new integ_tests_al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3V0cHV0KHN0YWNrLCAnQm9va3NVUkwnLCB7XG4gIHZhbHVlOiBhcGkudXJsRm9yUGF0aCgnL2Jvb2tzJyksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdyZXN0YXBpLWZyb21kZWZpbml0aW9uJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.js deleted file mode 100644 index 720ec61c3e085..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.api-definition.inline.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -/* - * Stack verification steps: - * * `curl -i ` should return HTTP code 200 - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integtest-restapi-fromdefinition-inline'); -const api = new apigateway.SpecRestApi(stack, 'my-api', { - cloudWatchRole: true, - apiDefinition: apigateway.ApiDefinition.fromInline({ - openapi: '3.0.2', - info: { - version: '1.0.0', - title: 'Test API for CDK', - }, - paths: { - '/pets': { - get: { - 'summary': 'Test Method', - 'operationId': 'testMethod', - 'responses': { - 200: { - description: 'A paged array of pets', - content: { - 'application/json': { - schema: { - $ref: '#/components/schemas/Empty', - }, - }, - }, - }, - }, - 'x-amazon-apigateway-integration': { - responses: { - default: { - statusCode: '200', - }, - }, - requestTemplates: { - 'application/json': '{"statusCode": 200}', - }, - passthroughBehavior: 'when_no_match', - type: 'mock', - }, - }, - }, - }, - components: { - schemas: { - Empty: { - title: 'Empty Schema', - type: 'object', - }, - }, - }, - }), -}); -new cdk.CfnOutput(stack, 'PetsURL', { - value: api.urlForPath('/pets'), -}); -new integ_tests_alpha_1.IntegTest(app, 'inline-api-definition', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBpLWRlZmluaXRpb24uaW5saW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXBpLWRlZmluaXRpb24uaW5saW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCx5REFBeUQ7QUFFekQ7OztHQUdHO0FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSx5Q0FBeUMsQ0FBQyxDQUFDO0FBRTVFLE1BQU0sR0FBRyxHQUFHLElBQUksVUFBVSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQ3RELGNBQWMsRUFBRSxJQUFJO0lBQ3BCLGFBQWEsRUFBRSxVQUFVLENBQUMsYUFBYSxDQUFDLFVBQVUsQ0FBQztRQUNqRCxPQUFPLEVBQUUsT0FBTztRQUNoQixJQUFJLEVBQUU7WUFDSixPQUFPLEVBQUUsT0FBTztZQUNoQixLQUFLLEVBQUUsa0JBQWtCO1NBQzFCO1FBQ0QsS0FBSyxFQUFFO1lBQ0wsT0FBTyxFQUFFO2dCQUNQLEdBQUcsR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GFnZWQgYXJyYXkgb2YgcGV0cycsXG4gICAgICAgICAgICAgIGNvbnRlbnQ6IHtcbiAgICAgICAgICAgICAgICAnYXBwbGljYXRpb24vanNvbic6IHtcbiAgICAgICAgICAgICAgICAgIHNjaGVtYToge1xuICAgICAgICAgICAgICAgICAgICAkcmVmOiAnIy9jb21wb25lbnRzL3NjaGVtYXMvRW1wdHknLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICAgICd4LWFtYXpvbi1hcGlnYXRld2F5LWludGVncmF0aW9uJzoge1xuICAgICAgICAgICAgcmVzcG9uc2VzOiB7XG4gICAgICAgICAgICAgIGRlZmF1bHQ6IHtcbiAgICAgICAgICAgICAgICBzdGF0dXNDb2RlOiAnMjAwJyxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICByZXF1ZXN0VGVtcGxhdGVzOiB7XG4gICAgICAgICAgICAgICdhcHBsaWNhdGlvbi9qc29uJzogJ3tcInN0YXR1c0NvZGVcIjogMjAwfScsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgcGFzc3Rocm91Z2hCZWhhdmlvcjogJ3doZW5fbm9fbWF0Y2gnLFxuICAgICAgICAgICAgdHlwZTogJ21vY2snLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH0sXG4gICAgY29tcG9uZW50czoge1xuICAgICAgc2NoZW1hczoge1xuICAgICAgICBFbXB0eToge1xuICAgICAgICAgIHRpdGxlOiAnRW1wdHkgU2NoZW1hJyxcbiAgICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdQZXRzVVJMJywge1xuICB2YWx1ZTogYXBpLnVybEZvclBhdGgoJy9wZXRzJyksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdpbmxpbmUtYXBpLWRlZmluaXRpb24nLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.d.ts deleted file mode 100644 index 921aedfe13e58..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -export declare class TestStack extends cdk.Stack { - constructor(scope: cdk.App, id: string); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.js deleted file mode 100644 index d9c3158efe11d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.base-path-mapping.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestStack = void 0; -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const restApi = new apigateway.RestApi(this, 'Api'); - restApi.root.addMethod('GET'); - const domainName = apigateway.DomainName.fromDomainNameAttributes(this, 'Domain', { - domainName: 'domainName', - domainNameAliasHostedZoneId: 'domainNameAliasHostedZoneId', - domainNameAliasTarget: 'domainNameAliasTarget', - }); - new apigateway.BasePathMapping(this, 'MappingOne', { - domainName, - restApi, - }); - new apigateway.BasePathMapping(this, 'MappingTwo', { - domainName, - restApi, - basePath: 'path', - attachToStage: false, - }); - new apigateway.BasePathMapping(this, 'MappingThree', { - domainName, - restApi, - basePath: 'api/v1/multi-level-path', - attachToStage: false, - }); - } -} -exports.TestStack = TestStack; -const app = new cdk.App(); -const testStack = new TestStack(app, 'test-stack'); -new integ_tests_alpha_1.IntegTest(app, 'base-path-mapping', { - testCases: [testStack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYmFzZS1wYXRoLW1hcHBpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5iYXNlLXBhdGgtbWFwcGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELHlEQUF5RDtBQUV6RCxNQUFhLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUN0QyxZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxPQUFPLEdBQUcsSUFBSSxVQUFVLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUVwRCxPQUFPLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUU5QixNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsVUFBVSxDQUFDLHdCQUF3QixDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFDaEYsVUFBVSxFQUFFLFlBQVk7WUFDeEIsMkJBQTJCLEVBQUUsNkJBQTZCO1lBQzFELHFCQUFxQixFQUFFLHVCQUF1QjtTQUMvQyxDQUFDLENBQUM7UUFFSCxJQUFJLFVBQVUsQ0FBQyxlQUFlLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRTtZQUNqRCxVQUFVO1lBQ1YsT0FBTztTQUNSLENBQUMsQ0FBQztRQUVILElBQUksVUFBVSxDQUFDLGVBQWU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3RTdGFjayhhcHAsICd0ZXN0LXN0YWNrJyk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnYmFzZS1wYXRoLW1hcHBpbmcnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RTdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.d.ts deleted file mode 100644 index ff2c8a3bc89fe..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -export declare class Test extends cdk.Stack { - constructor(scope: cdk.App, id: string); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.js deleted file mode 100644 index bda660af8f83b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cloudwatch-disabled.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Test = void 0; -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const api = new apigateway.RestApi(this, 'my-api', { - retainDeployments: true, - }); - api.root.addMethod('GET'); // must have at least one method or an API definition - } -} -exports.Test = Test; -const app = new cdk.App(); -new integ_tests_alpha_1.IntegTest(app, 'cloudwatch-logs-disabled', { - testCases: [ - new Test(app, 'default-api'), - ], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR3YXRjaC1kaXNhYm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zcyBUZXN0IGV4dGVuZHMgY2RrLlN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IGNkay5BcHAsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuICAgIGNvbnN0IGFwaSA9IG5ldyBhcGlnYXRld2F5LlJlc3RBcGkodGhpcywgJ215LWFwaScsIHtcbiAgICAgIHJldGFpbkRlcGxveW1lbnRzOiB0cnVlLFxuICAgIH0pO1xuICAgIGFwaS5yb290LmFkZE1ldGhvZCgnR0VUJyk7IC8vIG11c3QgaGF2ZSBhdCBsZWFzdCBvbmUgbWV0aG9kIG9yIGFuIEFQSSBkZWZpbml0aW9uXG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2xvdWR3YXRjaC1sb2dzLWRpc2FibGVkJywge1xuICB0ZXN0Q2FzZXM6IFtcbiAgICBuZXcgVGVzdChhcHAsICdkZWZhdWx0LWFwaScpLFxuICBdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.js deleted file mode 100644 index 82fca8a53979c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.cors.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const api = new apigw.RestApi(this, 'cors-api-test', { - cloudWatchRole: true, - }); - const handler = new lambda.Function(this, 'handler', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromAsset(path.join(__dirname, 'integ.cors.handler')), - }); - const twitch = api.root.addResource('twitch'); - const backend = new apigw.LambdaIntegration(handler); - twitch.addMethod('GET', backend); // GET /twitch - twitch.addMethod('POST', backend); // POST /twitch - twitch.addMethod('DELETE', backend); // DELETE /twitch - twitch.addCorsPreflight({ allowOrigins: ['https://google.com', 'https://www.test-cors.org'] }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'cors-twitch-test'); -new integ_tests_alpha_1.IntegTest(app, 'cors', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELDZDQUFxRDtBQUNyRCxrRUFBdUQ7QUFFdkQsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxlQUFlLEVBQUU7WUFDbkQsY0FBYyxFQUFFLElBQUk7U0FDckIsQ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GEuQ29kZS5mcm9tQXNzZXQocGF0aC5qb2luKF9fZGlybmFtZSwgJ2ludGVnLmNvcnMuaGFuZGxlcicpKSxcbiAgICB9KTtcblxuICAgIGNvbnN0IHR3aXRjaCA9IGFwaS5yb290LmFkZFJlc291cmNlKCd0d2l0Y2gnKTtcbiAgICBjb25zdCBiYWNrZW5kID0gbmV3IGFwaWd3LkxhbWJkYUludGVncmF0aW9uKGhhbmRsZXIpO1xuXG4gICAgdHdpdGNoLmFkZE1ldGhvZCgnR0VUJywgYmFja2VuZCk7IC8vIEdFVCAvdHdpdGNoXG4gICAgdHdpdGNoLmFkZE1ldGhvZCgnUE9TVCcsIGJhY2tlbmQpOyAvLyBQT1NUIC90d2l0Y2hcbiAgICB0d2l0Y2guYWRkTWV0aG9kKCdERUxFVEUnLCBiYWNrZW5kKTsgLy8gREVMRVRFIC90d2l0Y2hcbiAgICB0d2l0Y2guYWRkQ29yc1ByZWZsaWdodCh7IGFsbG93T3JpZ2luczogWydodHRwczovL2dvb2dsZS5jb20nLCAnaHR0cHM6Ly93d3cudGVzdC1jb3JzLm9yZyddIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3RTdGFjayhhcHAsICdjb3JzLXR3aXRjaC10ZXN0Jyk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2NvcnMnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.js deleted file mode 100644 index 8760458e80ac2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.domain-name.js +++ /dev/null @@ -1,249 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_certificatemanager_1 = require("aws-cdk-lib/aws-certificatemanager"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const constructs_1 = require("constructs"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME || process.env.DOMAIN_NAME; -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID || process.env.HOSTED_ZONE_ID; -const certArn = process.env.CDK_INTEG_CERT_ARN || process.env.CERT_ARN; -if (!domainName || !certArn || !hostedZoneId) { - throw new Error('Env vars DOMAIN_NAME, HOSTED_ZONE_ID, and CERT_ARN must be set'); -} -/** - * ------------------------------------------------------- - * ------------------------- GIVEN------------------------ - * ------------------------------------------------------- - */ -const app = new cdk.App(); -const testCase = new cdk.Stack(app, 'integ-apigw-domain-name-mapping'); -class Api extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - this.restApi = new apigw.RestApi(this, 'IntegApi' + props.statusCode, { - endpointTypes: [apigw.EndpointType.REGIONAL], - }); - this.resource = this.restApi.root.addResource(props.path); - const integration = this.createIntegration(props.statusCode); - const options = { - methodResponses: [{ - statusCode: props.statusCode, - }], - }; - this.restApi.root.addMethod('GET', integration, options); - this.resource.addMethod('GET', integration, options); - } - addResource(path, statusCode, resource) { - const subResource = (resource ?? this.resource).addResource(path); - const integration = this.createIntegration(statusCode); - subResource.addMethod('GET', integration, { - methodResponses: [{ statusCode }], - }); - } - addRootResource(path, statusCode) { - const subResource = this.restApi.root.addResource(path); - const integration = this.createIntegration(statusCode); - subResource.addMethod('GET', integration, { - methodResponses: [{ statusCode }], - }); - return subResource; - } - createIntegration(statusCode) { - return new apigw.MockIntegration({ - requestTemplates: { 'application/json': `{ statusCode: ${Number(statusCode)} }` }, - integrationResponses: [{ - statusCode: statusCode, - responseTemplates: { - 'application/json': JSON.stringify({ message: 'Hello, world' }), - }, - }], - }); - } -} -/** - * ------------------------------------------------------- - * ------------------------- WHEN ------------------------ - * ------------------------------------------------------- - */ -const certificate = aws_certificatemanager_1.Certificate.fromCertificateArn(testCase, 'Cert', certArn); -const api1 = new Api(testCase, 'IntegApi1', { - statusCode: '201', - path: 'items', -}); -const api2 = new Api(testCase, 'IntegApi2', { - statusCode: '202', - path: 'items', -}); -/** - * Test 1 - * - * Create an initial BasePathMapping for (none) - * Then use a mixture of `addBasePathMapping` and `addApiMapping` - * to test that they can be used together - */ -const domain = new apigw.DomainName(testCase, 'IntegDomain', { - domainName, - securityPolicy: apigw.SecurityPolicy.TLS_1_2, - certificate, - mapping: api1.restApi, -}); -new aws_route53_1.CfnRecordSet(testCase, 'IntegDomainRecord', { - name: domainName, - type: 'A', - hostedZoneId, - aliasTarget: { - hostedZoneId: domain.domainNameAliasHostedZoneId, - dnsName: domain.domainNameAliasDomainName, - }, -}); -domain.addBasePathMapping(api1.restApi, { - basePath: 'orders', -}); -domain.addApiMapping(api2.restApi.deploymentStage, { - basePath: 'orders/v2', -}); -domain.addApiMapping(api1.restApi.deploymentStage, { - basePath: 'orders/v1', -}); -/** - * Test 2 - * - * Create an initial BasePathMapping for 'orders' - * and then add an ApiMapping for a multi-level path - */ -const secondDomain = new apigw.DomainName(testCase, 'Integ2Domain', { - domainName: `another-${domainName}`, - securityPolicy: apigw.SecurityPolicy.TLS_1_2, - certificate, - mapping: api1.restApi, - basePath: 'orders', -}); -new aws_route53_1.CfnRecordSet(testCase, 'Integ2DomainRecord', { - name: `another-${domainName}`, - type: 'A', - hostedZoneId, - aliasTarget: { - hostedZoneId: secondDomain.domainNameAliasHostedZoneId, - dnsName: secondDomain.domainNameAliasDomainName, - }, -}); -secondDomain.addApiMapping(api2.restApi.deploymentStage, { - basePath: 'orders/v2', -}); -/** - * Test 3 - * - * Test that you can create an initial BasePathMapping (none) - * and then add additional base path mappings - */ -const thirdDomain = new apigw.DomainName(testCase, 'Integ3Domain', { - domainName: `yet-another-${domainName}`, - securityPolicy: apigw.SecurityPolicy.TLS_1_2, - certificate, - mapping: api1.restApi, -}); -new aws_route53_1.CfnRecordSet(testCase, 'Integ3DomainRecord', { - name: `yet-another-${domainName}`, - type: 'A', - hostedZoneId, - aliasTarget: { - hostedZoneId: thirdDomain.domainNameAliasHostedZoneId, - dnsName: thirdDomain.domainNameAliasDomainName, - }, -}); -thirdDomain.addBasePathMapping(api2.restApi, { - basePath: 'v2', -}); -/** - * ------------------------------------------------------- - * ------------------------- THEN ------------------------ - * ------------------------------------------------------- - */ -const integ = new integ_tests_alpha_1.IntegTest(app, 'domain-name-mapping-test', { - testCases: [testCase], - enableLookups: true, -}); -const invoke = new aws_lambda_1.Function(testCase, 'InvokeApi', { - code: aws_lambda_1.Code.fromInline(` -const https = require('https'); -exports.handler = async function(event) { - console.log(event); - const options = { - hostname: event.hostname, - path: event.path, - }; - let dataString = ''; - const response = await new Promise((resolve, reject) => { - const req = https.get(options, (res) => { - res.on('data', data => { - dataString += data; - }) - res.on('end', () => { - resolve({ - statusCode: res.statusCode, - body: dataString, - }); - }) - }); - req.on('error', err => { - reject({ - statusCode: 500, - body: JSON.stringify({ - cause: 'Something went wrong', - error: err, - }) - }); - }); - req.end(); - }); - return response; -} - -`), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_16_X, -}); -const api1Invoke = integ.assertions.invokeFunction({ - functionName: invoke.functionName, - payload: JSON.stringify({ - hostname: domain.domainName, - path: '/orders/v1/items', - }), -}); -api1Invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('201'), -})); -const api2Invoke = integ.assertions.invokeFunction({ - functionName: invoke.functionName, - payload: JSON.stringify({ - hostname: domain.domainName, - path: '/orders/v2/items', - }), -}); -api2Invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('202'), -})); -const domain2api1Invoke = integ.assertions.invokeFunction({ - functionName: invoke.functionName, - payload: JSON.stringify({ - hostname: secondDomain.domainName, - path: '/orders/items', - }), -}); -domain2api1Invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('201'), -})); -const domain2api2Invoke = integ.assertions.invokeFunction({ - functionName: invoke.functionName, - payload: JSON.stringify({ - hostname: secondDomain.domainName, - path: '/orders/v2/items', - }), -}); -domain2api2Invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.stringLikeRegexp('202'), -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZG9tYWluLW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kb21haW4tbmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtFQUFpRTtBQUNqRSx1REFBaUU7QUFDakUseURBQXVEO0FBQ3ZELG1DQUFtQztBQUNuQyxrRUFJb0M7QUFDcEMsMkNBQXVDO0FBQ3ZDLG9EQUFvRDtBQUVwRCxNQUFNLFVBQVUsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLHFCQUFxQixJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsV0FBVyxDQUFDO0FBQ2hGLE1BQU0sWUFBWSxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsd0JBQXdCLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUM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H0pLFxufSk7XG5kb21haW4yYXBpMkludm9rZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIFBheWxvYWQ6IE1hdGNoLnN0cmluZ0xpa2VSZWdleHAoJzIwMicpLFxufSkpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.js deleted file mode 100644 index b086d03476bd0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api-nonproxy.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -class LambdaApiIntegrationOptionsNonProxyIntegrationStack extends aws_cdk_lib_1.Stack { - constructor(scope) { - super(scope, 'LambdaApiIntegrationOptionsNonProxyIntegrationStack'); - const fn = new aws_lambda_1.Function(this, 'myfn', { - code: aws_lambda_1.Code.fromInline('foo'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', - }); - new aws_apigateway_1.LambdaRestApi(this, 'lambdarestapi', { - cloudWatchRole: true, - handler: fn, - integrationOptions: { - proxy: false, - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.WHEN_NO_MATCH, - integrationResponses: [ - { - statusCode: '200', - responseTemplates: { - 'application/json': JSON.stringify({ message: 'Hello, word' }), - }, - }, - ], - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new LambdaApiIntegrationOptionsNonProxyIntegrationStack(app); -new integ_tests_alpha_1.IntegTest(app, 'lambda-non-proxy-integration', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWFwaS1ub25wcm94eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWJkYS1hcGktbm9ucHJveHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBaUU7QUFDakUsNkNBQXlDO0FBQ3pDLGtFQUF1RDtBQUV2RCwrREFBZ0Y7QUFFaEYsTUFBTSxtREFBb0QsU0FBUSxtQkFBSztJQUNyRSxZQUFZLEtBQWdCO1FBQzFCLEtBQUssQ0FBQyxLQUFLLEVBQUUscURBQXFELENBQUMsQ0FBQztRQUVwRSxNQUFNLEVBQUUsR0FBRyxJQUFJLHFCQUFRLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRTtZQUNwQyxJQUFJLEVBQUUsaUJBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO1lBQzVCLE9BQU8sRUFBRSxvQkFBTyxDQUFDLFdBQVc7WUFDNUIsT0FBTyxFQUFFLGVBQWU7U0FDekIsQ0FBQyxDQUFDO1FBRUgsSUFBSSw4QkFBYSxDQUFDLElBQUksRUFBRSxlQUFlLEVBQUU7WUFDdkMsY0FBYyxFQUFFLElBQUk7WUFDcEIsT0FBTyxFQUFFLEVBQUU7WUFDWCxrQkFBa0IsRUFBRTtnQkFDbEIsS0FBSyxFQUFFLEtBQUs7Z0JBQ1osbUJBQW1CLEVBQUUsb0NBQW1CLENBQUMsYUFBYTtnQkFDdEQsb0JB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YW1iZGEtbm9uLXByb3h5LWludGVncmF0aW9uJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.js deleted file mode 100644 index 925abcecafc75..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -class LambdaApiIntegrationOptionsStack extends aws_cdk_lib_1.Stack { - constructor(scope) { - super(scope, 'LambdaApiIntegrationOptionsStack'); - const fn = new aws_lambda_1.Function(this, 'myfn', { - code: aws_lambda_1.Code.fromInline('foo'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', - }); - new aws_apigateway_1.LambdaRestApi(this, 'lambdarestapi', { - handler: fn, - cloudWatchRole: true, - integrationOptions: { - timeout: aws_cdk_lib_1.Duration.seconds(1), - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new LambdaApiIntegrationOptionsStack(app); -new integ_tests_alpha_1.IntegTest(app, 'lambda-integration', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/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gfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgTGFtYmRhQXBpSW50ZWdyYXRpb25PcHRpb25zU3RhY2soYXBwKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnbGFtYmRhLWludGVncmF0aW9uJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.js deleted file mode 100644 index d519266af0019..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.lambda-api.latebound-deploymentstage.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -class LateBoundDeploymentStageStack extends aws_cdk_lib_1.Stack { - constructor(scope) { - super(scope, 'LateBoundDeploymentStageStack'); - const fn = new aws_lambda_1.Function(this, 'myfn', { - code: aws_lambda_1.Code.fromInline('foo'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', - }); - const api = new aws_apigateway_1.LambdaRestApi(this, 'lambdarestapi', { - cloudWatchRole: true, - deploy: false, - handler: fn, - }); - api.deploymentStage = new aws_apigateway_1.Stage(this, 'stage', { - deployment: new aws_apigateway_1.Deployment(this, 'deployment', { - api, - }), - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new LateBoundDeploymentStageStack(app); -new integ_tests_alpha_1.IntegTest(app, 'lambda-api-latebound-deploymentstage', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWFwaS5sYXRlYm91bmQtZGVwbG95bWVudHN0YWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtYmRhLWFwaS5sYXRlYm91bmQtZGVwbG95bWVudHN0YWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsdURBQWlFO0FBQ2pFLDZDQUF5QztBQUN6QyxrRUFBdUQ7QUFFdkQsK0RBQThFO0FBRTlFLE1BQU0sNkJBQThCLFNBQVEsbUJBQUs7SUFDL0MsWUFBWSxLQUFnQjtRQUMxQixLQUFLLENBQUMsS0FBSyxFQUFFLCtCQUErQixDQUFDLENBQUM7UUFFOUMsTUFBTSxFQUFFLEdBQUcsSUFBSSxxQkFBUSxDQUFDLElBQUksRUFBRSxNQUFNLEVBQUU7WUFDcEMsSUFBSSxFQUFFLGlCQUFJLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQztZQUM1QixPQUFPLEVBQUUsb0JBQU8sQ0FBQyxXQUFXO1lBQzVCLE9BQU8sRUFBRSxlQUFlO1NBQ3pCLENBQUMsQ0FBQztRQUVILE1BQU0sR0FBRyxHQUFHLElBQUksOEJBQWEsQ0FBQyxJQUFJLEVBQUUsZUFBZSxFQUFFO1lBQ25ELGNBQWMsRUFBRSxJQUFJO1lBQ3BCLE1BQU0sRUFBRSxLQUFLO1lBQ2IsT0FBTyxFQU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b3VuZERlcGxveW1lbnRTdGFnZVN0YWNrJyk7XG5cbiAgICBjb25zdCBmbiA9IG5ldyBGdW5jdGlvbih0aGlzLCAnbXlmbicsIHtcbiAgICAgIGNvZGU6IENvZGUuZnJvbUlubGluZSgnZm9vJyksXG4gICAgICBydW50aW1lOiBSdW50aW1lLk5PREVKU18xNF9YLFxuICAgICAgaGFuZGxlcjogJ2luZGV4LmhhbmRsZXInLFxuICAgIH0pO1xuXG4gICAgY29uc3QgYXBpID0gbmV3IExhbWJkYVJlc3RBcGkodGhpcywgJ2xhbWJkYXJlc3RhcGknLCB7XG4gICAgICBjbG91ZFdhdGNoUm9sZTogdHJ1ZSxcbiAgICAgIGRlcGxveTogZmFsc2UsXG4gICAgICBoYW5kbGVyOiBmbixcbiAgICB9KTtcblxuICAgIGFwaS5kZXBsb3ltZW50U3RhZ2UgPSBuZXcgU3RhZ2UodGhpcywgJ3N0YWdlJywge1xuICAgICAgZGVwbG95bWVudDogbmV3IERlcGxveW1lbnQodGhpcywgJ2RlcGxveW1lbnQnLCB7XG4gICAgICAgIGFwaSxcbiAgICAgIH0pLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IExhdGVCb3VuZERlcGxveW1lbnRTdGFnZVN0YWNrKGFwcCk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2xhbWJkYS1hcGktbGF0ZWJvdW5kLWRlcGxveW1lbnRzdGFnZScsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.js deleted file mode 100644 index b4a73894021f0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-import.lit.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway"); -/** - * This file showcases how to split up a RestApi's Resources and Methods across nested stacks. - * - * The root stack 'RootStack' first defines a RestApi. - * Two nested stacks BooksStack and PetsStack, create corresponding Resources '/books' and '/pets'. - * They are then deployed to a 'prod' Stage via a third nested stack - DeployStack. - * - * To verify this worked, go to the APIGateway - */ -class RootStack extends aws_cdk_lib_1.Stack { - constructor(scope) { - super(scope, 'integ-restapi-import-RootStack'); - const restApi = new aws_apigateway_1.RestApi(this, 'RestApi', { - cloudWatchRole: true, - deploy: false, - }); - restApi.root.addMethod('ANY'); - const petsStack = new PetsStack(this, { - restApiId: restApi.restApiId, - rootResourceId: restApi.restApiRootResourceId, - }); - const booksStack = new BooksStack(this, { - restApiId: restApi.restApiId, - rootResourceId: restApi.restApiRootResourceId, - }); - new DeployStack(this, { - restApiId: restApi.restApiId, - methods: petsStack.methods.concat(booksStack.methods), - }); - new aws_cdk_lib_1.CfnOutput(this, 'PetsURL', { - value: `https://${restApi.restApiId}.execute-api.${this.region}.amazonaws.com/prod/pets`, - }); - new aws_cdk_lib_1.CfnOutput(this, 'BooksURL', { - value: `https://${restApi.restApiId}.execute-api.${this.region}.amazonaws.com/prod/books`, - }); - } -} -class PetsStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, props) { - super(scope, 'integ-restapi-import-PetsStack', props); - this.methods = []; - const api = aws_apigateway_1.RestApi.fromRestApiAttributes(this, 'RestApi', { - restApiId: props.restApiId, - rootResourceId: props.rootResourceId, - }); - const method = api.root.addResource('pets').addMethod('GET', new aws_apigateway_1.MockIntegration({ - integrationResponses: [{ - statusCode: '200', - }], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, - }), { - methodResponses: [{ statusCode: '200' }], - }); - this.methods.push(method); - } -} -class BooksStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, props) { - super(scope, 'integ-restapi-import-BooksStack', props); - this.methods = []; - const api = aws_apigateway_1.RestApi.fromRestApiAttributes(this, 'RestApi', { - restApiId: props.restApiId, - rootResourceId: props.rootResourceId, - }); - const method = api.root.addResource('books').addMethod('GET', new aws_apigateway_1.MockIntegration({ - integrationResponses: [{ - statusCode: '200', - }], - passthroughBehavior: aws_apigateway_1.PassthroughBehavior.NEVER, - requestTemplates: { - 'application/json': '{ "statusCode": 200 }', - }, - }), { - methodResponses: [{ statusCode: '200' }], - }); - this.methods.push(method); - } -} -class DeployStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, props) { - super(scope, 'integ-restapi-import-DeployStack', props); - const deployment = new aws_apigateway_1.Deployment(this, 'Deployment', { - api: aws_apigateway_1.RestApi.fromRestApiId(this, 'RestApi', props.restApiId), - }); - if (props.methods) { - for (const method of props.methods) { - deployment.node.addDependency(method); - } - } - new aws_apigateway_1.Stage(this, 'Stage', { deployment }); - } -} -new RootStack(new aws_cdk_lib_1.App()); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS1pbXBvcnQubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVzdGFwaS1pbXBvcnQubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW1GO0FBRW5GLCtEQUFzSDtBQUV0SDs7Ozs7Ozs7R0FRRztBQUVILE1B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wZSwgJ2ludGVnLXJlc3RhcGktaW1wb3J0LURlcGxveVN0YWNrJywgcHJvcHMpO1xuXG4gICAgY29uc3QgZGVwbG95bWVudCA9IG5ldyBEZXBsb3ltZW50KHRoaXMsICdEZXBsb3ltZW50Jywge1xuICAgICAgYXBpOiBSZXN0QXBpLmZyb21SZXN0QXBpSWQodGhpcywgJ1Jlc3RBcGknLCBwcm9wcy5yZXN0QXBpSWQpLFxuICAgIH0pO1xuICAgIGlmIChwcm9wcy5tZXRob2RzKSB7XG4gICAgICBmb3IgKGNvbnN0IG1ldGhvZCBvZiBwcm9wcy5tZXRob2RzKSB7XG4gICAgICAgIGRlcGxveW1lbnQubm9kZS5hZGREZXBlbmRlbmN5KG1ldGhvZCk7XG4gICAgICB9XG4gICAgfVxuICAgIG5ldyBTdGFnZSh0aGlzLCAnU3RhZ2UnLCB7IGRlcGxveW1lbnQgfSk7XG4gIH1cbn1cblxubmV3IFJvb3RTdGFjayhuZXcgQXBwKCkpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.js deleted file mode 100644 index 3ce70eb31489c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-metrics.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'restapi-metrics'); -const restApi = new apigw.RestApi(stack, 'Api', { cloudWatchRole: true }); -const stage = restApi.deploymentStage; -const method = restApi.root.addMethod('GET'); -new cloudwatch.Alarm(stack, 'RestApiAlarm', { - metric: restApi.metricClientError(), - evaluationPeriods: 1, - threshold: 1, -}); -new cloudwatch.Alarm(stack, 'MethodAlarm', { - metric: method.metricServerError(stage), - evaluationPeriods: 1, - threshold: 1, -}); -new cloudwatch.Alarm(stack, 'StageAlarm', { - metric: stage.metricCount(), - evaluationPeriods: 1, - threshold: 1, -}); -new integ.IntegTest(app, 'MetricsTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS1tZXRyaWNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVzdGFwaS1tZXRyaWNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsb0RBQW9EO0FBRXBELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsaUJBQWlCLENBQUMsQ0FBQztBQUNwRCxNQUFNLE9BQU8sR0FBRyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLGNBQWMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDO0FBQzFFLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyxlQUFlLENBQUM7QUFDdEMsTUFBTSxNQUFNLEdBQUcsT0FBTyx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 No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.js deleted file mode 100644 index b7ab95dfb5472..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.access-log.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const logs = require("aws-cdk-lib/aws-logs"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const testFormat = apigateway.AccessLogFormat.custom(JSON.stringify({ - requestId: apigateway.AccessLogField.contextRequestId(), - sourceIp: apigateway.AccessLogField.contextIdentitySourceIp(), - method: apigateway.AccessLogField.contextHttpMethod(), - callerAccountId: apigateway.AccessLogField.contextCallerAccountId(), - ownerAccountId: apigateway.AccessLogField.contextOwnerAccountId(), - userContext: { - sub: apigateway.AccessLogField.contextAuthorizerClaims('sub'), - email: apigateway.AccessLogField.contextAuthorizerClaims('email'), - }, - clientCertPem: apigateway.AccessLogField.contextIdentityClientCertPem(), - subjectDN: apigateway.AccessLogField.contextIdentityClientCertSubjectDN(), - issunerDN: apigateway.AccessLogField.contextIdentityClientCertIssunerDN(), - serialNumber: apigateway.AccessLogField.contextIdentityClientCertSerialNumber(), - validityNotBefore: apigateway.AccessLogField.contextIdentityClientCertValidityNotBefore(), - validityNotAfter: apigateway.AccessLogField.contextIdentityClientCertValidityNotAfter(), - })); - const logGroup = new logs.LogGroup(this, 'MyLogGroup'); - const api = new apigateway.RestApi(this, 'MyApi', { - cloudWatchRole: true, - deployOptions: { - accessLogDestination: new apigateway.LogGroupLogDestination(logGroup), - accessLogFormat: testFormat, - }, - }); - api.root.addMethod('GET'); - } -} -const app = new cdk.App(); -const testCase = new Test(app, 'test-apigateway-access-logs'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-access-logs', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5hY2Nlc3MtbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVzdGFwaS5hY2Nlc3MtbG9nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQTZDO0FBQzdDLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQseURBQXlEO0FBRXpELE1BQU0sSUFBSyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzFCLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLFVBQVUsR0FBRyxVQUFVLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDO1lBQ2xFLFNBQVMsRUFBRSxVQUFVLENBQUMsY0FBYyxDQUFDLGdCQUFnQixFQUFFO1lBQ3ZELFFBQVEsRUFBRSxVQUFVLENBQUMsY0FBYyxDQUFDLHVCQUF1QixFQUFFO1lBQzdELE1BQU0sRUFBRSxVQUFVLENBQUMsY0FBYyxDQUFDLGlCQUFpQixFQUFFO1lBQ3JELGVBQWUsRUFBRSxVQUFVLENBQUMsY0FBYyxDQUFDLHNCQUFzQixFQUFFO1lBQ25FLG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ydFZhbGlkaXR5Tm90QmVmb3JlKCksXG4gICAgICB2YWxpZGl0eU5vdEFmdGVyOiBhcGlnYXRld2F5LkFjY2Vzc0xvZ0ZpZWxkLmNvbnRleHRJZGVudGl0eUNsaWVudENlcnRWYWxpZGl0eU5vdEFmdGVyKCksXG4gICAgfSkpO1xuXG4gICAgY29uc3QgbG9nR3JvdXAgPSBuZXcgbG9ncy5Mb2dHcm91cCh0aGlzLCAnTXlMb2dHcm91cCcpO1xuICAgIGNvbnN0IGFwaSA9IG5ldyBhcGlnYXRld2F5LlJlc3RBcGkodGhpcywgJ015QXBpJywge1xuICAgICAgY2xvdWRXYXRjaFJvbGU6IHRydWUsXG4gICAgICBkZXBsb3lPcHRpb25zOiB7XG4gICAgICAgIGFjY2Vzc0xvZ0Rlc3RpbmF0aW9uOiBuZXcgYXBpZ2F0ZXdheS5Mb2dHcm91cExvZ0Rlc3RpbmF0aW9uKGxvZ0dyb3VwKSxcbiAgICAgICAgYWNjZXNzTG9nRm9ybWF0OiB0ZXN0Rm9ybWF0LFxuICAgICAgfSxcbiAgICB9KTtcbiAgICBhcGkucm9vdC5hZGRNZXRob2QoJ0dFVCcpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3QoYXBwLCAndGVzdC1hcGlnYXRld2F5LWFjY2Vzcy1sb2dzJyk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2FwaWdhdGV3YXktYWNjZXNzLWxvZ3MnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.js deleted file mode 100644 index 60b4ba7026f8a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.books.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -class BookStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const booksHandler = new apigw.LambdaIntegration(new lambda.Function(this, 'BooksHandler', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${echoHandlerCode}`), - })); - const bookHandler = new apigw.LambdaIntegration(new lambda.Function(this, 'BookHandler', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${echoHandlerCode}`), - })); - const hello = new apigw.LambdaIntegration(new lambda.Function(this, 'Hello', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${helloCode}`), - })); - const api = new apigw.RestApi(this, 'books-api', { cloudWatchRole: true }); - api.root.addMethod('ANY', hello); - const books = api.root.addResource('books', { - defaultIntegration: booksHandler, - defaultMethodOptions: { authorizationType: apigw.AuthorizationType.IAM }, - }); - books.addMethod('GET'); - books.addMethod('POST'); - const book = books.addResource('{book_id}', { - defaultIntegration: bookHandler, - // note that authorization type is inherited from /books - }); - book.addMethod('GET'); - book.addMethod('DELETE'); - } -} -const app = new cdk.App(); -const testCase = new BookStack(app, 'restapi-books-example'); -new integ_tests_alpha_1.IntegTest(app, 'restapi-books', { - testCases: [testCase], -}); -function echoHandlerCode(event, _, callback) { - return callback(undefined, { - isBase64Encoded: false, - statusCode: 200, - headers: { 'content-type': 'application/json' }, - body: JSON.stringify(event), - }); -} -function helloCode(_event, _context, callback) { - return callback(undefined, { - statusCode: 200, - body: 'hello, world!', - }); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5ib29rcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlc3RhcGkuYm9va3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCxvREFBb0Q7QUFFcEQsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sWUFBWSxHQUFHLElBQUksS0FBSyxDQUFDLGlCQUFpQixDQUFDLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsY0FBYyxFQUFFO1lBQ3pGLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7WUFDbkMsT0FBTyxFQUFFLGVBQWU7WUFDeEIsSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLHFCQUFxQixlQUFlLEVBQUUsQ0FBQztTQUNyRSxDQUFDLENBQUMsQ0FBQztRQUVKLE1BQU0sV0FBVyxHQUFHLElBQUksS0FBSyxDQUFDLGlCQUFpQixDQUFDLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsYUFBYSxFQUFFO1lBQ3ZGLE9BQU8sRUFBRSxNQ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5hZGRNZXRob2QoJ0dFVCcpO1xuICAgIGJvb2suYWRkTWV0aG9kKCdERUxFVEUnKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBCb29rU3RhY2soYXBwLCAncmVzdGFwaS1ib29rcy1leGFtcGxlJyk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3Jlc3RhcGktYm9va3MnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuXG5mdW5jdGlvbiBlY2hvSGFuZGxlckNvZGUoZXZlbnQ6IGFueSwgXzogYW55LCBjYWxsYmFjazogYW55KSB7XG4gIHJldHVybiBjYWxsYmFjayh1bmRlZmluZWQsIHtcbiAgICBpc0Jhc2U2NEVuY29kZWQ6IGZhbHNlLFxuICAgIHN0YXR1c0NvZGU6IDIwMCxcbiAgICBoZWFkZXJzOiB7ICdjb250ZW50LXR5cGUnOiAnYXBwbGljYXRpb24vanNvbicgfSxcbiAgICBib2R5OiBKU09OLnN0cmluZ2lmeShldmVudCksXG4gIH0pO1xufVxuXG5mdW5jdGlvbiBoZWxsb0NvZGUoX2V2ZW50OiBhbnksIF9jb250ZXh0OiBhbnksIGNhbGxiYWNrOiBhbnkpIHtcbiAgcmV0dXJuIGNhbGxiYWNrKHVuZGVmaW5lZCwge1xuICAgIHN0YXR1c0NvZGU6IDIwMCxcbiAgICBib2R5OiAnaGVsbG8sIHdvcmxkIScsXG4gIH0pO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.js deleted file mode 100644 index 69df90410f285..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.defaults.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'test-apigateway-restapi-defaults'); -const api = new apigateway.RestApi(stack, 'my-api', { cloudWatchRole: true }); -// at least one method is required -api.root.addMethod('GET'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-restapi-defaults', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5kZWZhdWx0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlc3RhcGkuZGVmYXVsdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBR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diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.js deleted file mode 100644 index 24599f986c215..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const api = new apigateway.RestApi(this, 'my-api', { - retainDeployments: true, - cloudWatchRole: true, - minCompressionSize: aws_cdk_lib_1.Size.bytes(1024), - deployOptions: { - cacheClusterEnabled: true, - stageName: 'beta', - description: 'beta stage', - loggingLevel: apigateway.MethodLoggingLevel.INFO, - dataTraceEnabled: true, - methodOptions: { - '/api/appliances/GET': { - cachingEnabled: true, - }, - }, - }, - }); - const handler = new lambda.Function(this, 'MyHandler', { - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handlerCode}`), - handler: 'index.handler', - }); - const v1 = api.root.addResource('v1'); - const integration = new apigateway.LambdaIntegration(handler); - const toys = v1.addResource('toys'); - const getToysMethod = toys.addMethod('GET', integration, { apiKeyRequired: true }); - toys.addMethod('POST'); - toys.addMethod('PUT'); - const appliances = v1.addResource('appliances:all'); - appliances.addMethod('GET'); - const books = v1.addResource('books'); - books.addMethod('GET', integration); - books.addMethod('POST', integration); - function handlerCode(event, _, callback) { - return callback(undefined, { - isBase64Encoded: false, - statusCode: 200, - headers: { 'content-type': 'application/json' }, - body: JSON.stringify(event), - }); - } - const key = api.addApiKey('ApiKey'); - const plan = api.addUsagePlan('UsagePlan', { - name: 'Basic', - apiKey: key, - description: 'Free tier monthly usage plan', - throttle: { rateLimit: 5 }, - quota: { - limit: 10000, - period: apigateway.Period.MONTH, - }, - }); - plan.addApiStage({ - stage: api.deploymentStage, - throttle: [ - { - method: getToysMethod, - throttle: { - rateLimit: 10, - burstLimit: 2, - }, - }, - ], - }); - const testDeploy = new apigateway.Deployment(this, 'TestDeployment', { - api, - retainDeployments: false, - }); - const testStage = new apigateway.Stage(this, 'TestStage', { - deployment: testDeploy, - }); - testStage.addApiKey('MyTestApiKey'); - } -} -const app = new cdk.App(); -const testCase = new Test(app, 'test-apigateway-restapi'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-restapi', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlc3RhcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLDZDQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQseURBQXlEO0FBRXpELE1BQU0sSUFBSyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzFCLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLEdBQUcsR0FBRyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRTtZQUNqRCxpQkFBaUIsRUFBRSxJQUFJO1lBQ3ZCLGNBQWMsRUFBRSxJQUFJO1lBQ3BCLGtCQUFrQixFQUFFLGtCQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQztZQUNwQyxhQUFhLEVBQUU7Z0JBQ2IsbUJBQW1CLEVBQUUsSUFBSTtnQkFDekIsU0FBUyxFQUFFLE1BQU07Z0JBQ2pC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cmV0YWluRGVwbG95bWVudHM6IGZhbHNlLFxuICAgIH0pO1xuICAgIGNvbnN0IHRlc3RTdGFnZSA9IG5ldyBhcGlnYXRld2F5LlN0YWdlKHRoaXMsICdUZXN0U3RhZ2UnLCB7XG4gICAgICBkZXBsb3ltZW50OiB0ZXN0RGVwbG95LFxuICAgIH0pO1xuICAgIHRlc3RTdGFnZS5hZGRBcGlLZXkoJ015VGVzdEFwaUtleScpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3QoYXBwLCAndGVzdC1hcGlnYXRld2F5LXJlc3RhcGknKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnYXBpZ2F0ZXdheS1yZXN0YXBpJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcblxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.js deleted file mode 100644 index 5a87026827730..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multistack.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apig = require("aws-cdk-lib/aws-apigateway"); -class FirstStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.firstLambda = new lambda.Function(this, 'firstLambda', { - functionName: 'FirstLambda', - code: lambda.Code.fromInline(`exports.handler = async function(event) { - return { - 'headers': { 'Content-Type': 'text/plain' }, - 'statusCode': 200 - } - }`), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }); - } -} -class SecondStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const api = new apig.RestApi(this, 'BooksApi', { - cloudWatchRole: true, - restApiName: 'SecondRestAPI', - }); - api.root.addMethod('ANY'); - const booksApi = api.root.addResource('books'); - const lambdaIntegration = new apig.LambdaIntegration(props.lambda); - booksApi.addMethod('GET', lambdaIntegration); - } -} -const app = new cdk.App(); -const first = new FirstStack(app, 'FirstStack'); -const testCase = new SecondStack(app, 'SecondStack', { lambda: first.firstLambda }); -// will deploy dependent stacks, i.e. first -new integ_tests_alpha_1.IntegTest(app, 'restapi-multistack', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5tdWx0aXN0YWNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVzdGFwaS5tdWx0aXN0YWNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFFdkQsbURBQW1EO0FBRW5ELE1BQU0sVUFBVyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBR2hDLFlBQVksS0FBMkIsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDekUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLGFBQWEsRUFBR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HByb3BzLmxhbWJkYSk7XG4gICAgYm9va3NBcGkuYWRkTWV0aG9kKCdHRVQnLCBsYW1iZGFJbnRlZ3JhdGlvbik7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IGZpcnN0ID0gbmV3IEZpcnN0U3RhY2soYXBwLCAnRmlyc3RTdGFjaycpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgU2Vjb25kU3RhY2soYXBwLCAnU2Vjb25kU3RhY2snLCB7IGxhbWJkYTogZmlyc3QuZmlyc3RMYW1iZGEgfSk7XG5cbi8vIHdpbGwgZGVwbG95IGRlcGVuZGVudCBzdGFja3MsIGkuZS4gZmlyc3Rcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAncmVzdGFwaS1tdWx0aXN0YWNrJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.js deleted file mode 100644 index 6925fa968806a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.multiuse.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -class MultiStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const hello = new apigw.LambdaIntegration(new lambda.Function(this, 'Hello', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${helloCode}`), - })); - const api = new apigw.RestApi(this, 'hello-api', { cloudWatchRole: true }); - api.root.resourceForPath('/hello').addMethod('GET', hello); - const api2 = new apigw.RestApi(this, 'second-api', { cloudWatchRole: true }); - api2.root.resourceForPath('/hello').addMethod('GET', hello); - } -} -const app = new cdk.App(); -const testCase = new MultiStack(app, 'restapi-multiuse-example'); -new integ_tests_alpha_1.IntegTest(app, 'restapi-multiuse', { - testCases: [testCase], -}); -function helloCode(_event, _context, callback) { - return callback(undefined, { - statusCode: 200, - body: 'hello, world!', - }); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS5tdWx0aXVzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlc3RhcGkubXVsdGl1c2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCxvREFBb0Q7QUFFcEQsTUFBTSxVQUFXLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDaEMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sS0FBSyxHQUFHLElBQUksS0FBSyxDQUFDLGlCQUFpQixDQUFDLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsT0FBTyxFQUFFO1lBQzNFLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7WUFDbkMsT0FBTyxFQUFFLGVBQWU7WUFDeEIsS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CB7IGNsb3VkV2F0Y2hSb2xlOiB0cnVlIH0pO1xuICAgIGFwaTIucm9vdC5yZXNvdXJjZUZvclBhdGgoJy9oZWxsbycpLmFkZE1ldGhvZCgnR0VUJywgaGVsbG8pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBNdWx0aVN0YWNrKGFwcCwgJ3Jlc3RhcGktbXVsdGl1c2UtZXhhbXBsZScpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3Jlc3RhcGktbXVsdGl1c2UnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuXG5mdW5jdGlvbiBoZWxsb0NvZGUoX2V2ZW50OiBhbnksIF9jb250ZXh0OiBhbnksIGNhbGxiYWNrOiBhbnkpIHtcbiAgcmV0dXJuIGNhbGxiYWNrKHVuZGVmaW5lZCwge1xuICAgIHN0YXR1c0NvZGU6IDIwMCxcbiAgICBib2R5OiAnaGVsbG8sIHdvcmxkIScsXG4gIH0pO1xufVxuXG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.js deleted file mode 100644 index e83c9ffe4f531..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -/* - * Stack verification steps: - * * curl https://-.execute-api.us-east-1.amazonaws.com/prod/ - * The above command must be executed in the vpc - */ -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'MyVpc', {}); - const vpcEndpoint = vpc.addInterfaceEndpoint('MyVpcEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.APIGATEWAY, - }); - const api = new apigateway.RestApi(this, 'MyApi', { - cloudWatchRole: true, - endpointConfiguration: { - types: [apigateway.EndpointType.PRIVATE], - vpcEndpoints: [vpcEndpoint], - }, - policy: new iam.PolicyDocument({ - statements: [ - new iam.PolicyStatement({ - principals: [new iam.AnyPrincipal()], - actions: ['execute-api:Invoke'], - effect: iam.Effect.ALLOW, - }), - ], - }), - }); - api.root.addMethod('GET'); - } -} -const app = new cdk.App(); -const testCase = new Test(app, 'test-apigateway-vpcendpoint'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-vpcendpoint', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdGFwaS52cGMtZW5kcG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5yZXN0YXBpLnZwYy1lbmRwb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCx5REFBeUQ7QUFFekQ7Ozs7R0FJRztBQUNILE1BQU0sSUFBSyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzFCLFlB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heS12cGNlbmRwb2ludCcsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js deleted file mode 100644 index 2463291c9eba6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.spec-restapi.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const api = new apigateway.SpecRestApi(this, 'my-api', { - apiDefinition: apigateway.ApiDefinition.fromAsset(path.join(__dirname, 'sample-definition.yaml')), - disableExecuteApiEndpoint: true, - minCompressionSize: aws_cdk_lib_1.Size.bytes(1024), - retainDeployments: true, - cloudWatchRole: true, - deployOptions: { - cacheClusterEnabled: true, - stageName: 'beta', - description: 'beta stage', - loggingLevel: apigateway.MethodLoggingLevel.INFO, - dataTraceEnabled: true, - methodOptions: { - '/api/appliances/GET': { - cachingEnabled: true, - }, - }, - }, - }); - const handler = new lambda.Function(this, 'MyHandler', { - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handlerCode}`), - handler: 'index.handler', - }); - const v1 = api.root.addResource('v1'); - const integration = new apigateway.LambdaIntegration(handler); - const toys = v1.addResource('toys'); - const getToysMethod = toys.addMethod('GET', integration, { apiKeyRequired: true }); - toys.addMethod('POST'); - toys.addMethod('PUT'); - const appliances = v1.addResource('appliances'); - appliances.addMethod('GET'); - const books = v1.addResource('books'); - books.addMethod('GET', integration); - books.addMethod('POST', integration); - function handlerCode(event, _, callback) { - return callback(undefined, { - isBase64Encoded: false, - statusCode: 200, - headers: { 'content-type': 'application/json' }, - body: JSON.stringify(event), - }); - } - const key = api.addApiKey('ApiKey'); - const plan = api.addUsagePlan('UsagePlan', { - name: 'Basic', - apiKey: key, - description: 'Free tier monthly usage plan', - throttle: { rateLimit: 5 }, - quota: { - limit: 10000, - period: apigateway.Period.MONTH, - }, - }); - plan.addApiStage({ - stage: api.deploymentStage, - throttle: [ - { - method: getToysMethod, - throttle: { - rateLimit: 10, - burstLimit: 2, - }, - }, - ], - }); - } -} -const app = new cdk.App(); -const testCase = new Test(app, 'test-apigateway-spec-restapi'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-spec-restapi', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3BlYy1yZXN0YXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3BlYy1yZXN0YXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLGlEQUFpRDtBQUNqRCxtQ0FBbUM7QUFDbkMsNkNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCx5REFBeUQ7QUFFekQsTUFBTSxJQUFLLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDMUIsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUF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GFwaS5kZXBsb3ltZW50U3RhZ2UsXG4gICAgICB0aHJvdHRsZTogW1xuICAgICAgICB7XG4gICAgICAgICAgbWV0aG9kOiBnZXRUb3lzTWV0aG9kLFxuICAgICAgICAgIHRocm90dGxlOiB7XG4gICAgICAgICAgICByYXRlTGltaXQ6IDEwLFxuICAgICAgICAgICAgYnVyc3RMaW1pdDogMixcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBUZXN0KGFwcCwgJ3Rlc3QtYXBpZ2F0ZXdheS1zcGVjLXJlc3RhcGknKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnYXBpZ2F0ZXdheS1zcGVjLXJlc3RhcGknLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.js deleted file mode 100644 index 38235065c12bb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.stepfunctions-api.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const apigw = require("aws-cdk-lib/aws-apigateway"); -/** - * Stack verification steps: - * * `curl -X POST 'https://.execute-api..amazonaws.com/prod' \ - * * -d '{"key":"Hello"}' -H 'Content-Type: application/json'` - * The above should return a "Hello" response - */ -class StepFunctionsRestApiDeploymentStack extends cdk.Stack { - constructor(scope) { - super(scope, 'StepFunctionsRestApiDeploymentStack'); - const passTask = new sfn.Pass(this, 'PassTask', { - result: { value: 'Hello' }, - }); - const stateMachine = new sfn.StateMachine(this, 'StateMachine', { - definition: passTask, - stateMachineType: sfn.StateMachineType.EXPRESS, - }); - const api = new apigw.StepFunctionsRestApi(this, 'StepFunctionsRestApi', { - deploy: false, - cloudWatchRole: true, - stateMachine: stateMachine, - headers: true, - path: false, - querystring: false, - requestContext: { - accountId: true, - userArn: true, - }, - }); - api.deploymentStage = new apigw.Stage(this, 'stage', { - deployment: new apigw.Deployment(this, 'deployment', { - api, - }), - }); - new cdk.CfnOutput(this, 'ApiEndpoint', { - value: api.url, - }); - } -} -const app = new cdk.App(); -const testCase = new StepFunctionsRestApiDeploymentStack(app); -new integ_tests_alpha_1.IntegTest(app, 'step-functions-restapi', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RlcGZ1bmN0aW9ucy1hcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zdGVwZnVuY3Rpb25zLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBRXZELG9EQUFvRDtBQUVwRDs7Ozs7R0FLRztBQUVILE1BQU0sbUNBQW9DLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDekQsWUFBWSxLQUFnQjtRQUMxQixLQUFLLENBQUMsS0FBSyxFQUFFLHFDQUFxQyxDQUFDLENBQUM7UUFFcEQ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3cuRGVwbG95bWVudCh0aGlzLCAnZGVwbG95bWVudCcsIHtcbiAgICAgICAgYXBpLFxuICAgICAgfSksXG4gICAgfSk7XG5cbiAgICBuZXcgY2RrLkNmbk91dHB1dCh0aGlzLCAnQXBpRW5kcG9pbnQnLCB7XG4gICAgICB2YWx1ZTogYXBpLnVybCxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgU3RlcEZ1bmN0aW9uc1Jlc3RBcGlEZXBsb3ltZW50U3RhY2soYXBwKTtcblxubmV3IEludGVnVGVzdChhcHAsICdzdGVwLWZ1bmN0aW9ucy1yZXN0YXBpJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.js deleted file mode 100644 index 8daf5e4108c87..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.multikey.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Test extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const usageplan = new apigateway.UsagePlan(this, 'myusageplan'); - const apikey1 = new apigateway.ApiKey(this, 'myapikey1'); - const apikey2 = new apigateway.ApiKey(this, 'myapikey2'); - usageplan.addApiKey(apikey1); - usageplan.addApiKey(apikey2); - } -} -const app = new cdk.App(); -new Test(app, 'test-apigateway-usageplan-multikey'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNhZ2UtcGxhbi5tdWx0aWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzYWdlLXBsYW4ubXVsdGlrZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMseURBQXlEO0FBRXpELE1BQU0sSUFBSyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzFCLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLFNBQVMsR0FBRyxJQUFJLFVBQVUsQ0FBQyxTQUFTLENBQUMsSUFBSSxFQUFFLGFBQWEsQ0FBQyxDQUFDO1FBQ2hFLE1BQU0sT0FBTyxHQUFHLElBQUksVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsV0FBVyxDQUFDLENBQUM7UUFDekQsTUFBTSxPQUFPLEdBQUcsSUFBSSxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztRQUN6RCxTQUFTLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQzdCLFNBQVMsQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDL0IsQ0FBQztDQUNGO0FBRUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsSUFBSSxJQUFJLENBQUMsR0FBRyxFQUFFLG9DQUFvQyxDQUFDLENBQUM7QUFFcEQsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGFwaWdhdGV3YXkgZnJvbSAnYXdzLWNkay1saWIvYXdzLWFwaWdhdGV3YXknO1xuXG5jbGFzcyBUZXN0IGV4dGVuZHMgY2RrLlN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IGNkay5BcHAsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgY29uc3QgdXNhZ2VwbGFuID0gbmV3IGFwaWdhdGV3YXkuVXNhZ2VQbGFuKHRoaXMsICdteXVzYWdlcGxhbicpO1xuICAgIGNvbnN0IGFwaWtleTEgPSBuZXcgYXBpZ2F0ZXdheS5BcGlLZXkodGhpcywgJ215YXBpa2V5MScpO1xuICAgIGNvbnN0IGFwaWtleTIgPSBuZXcgYXBpZ2F0ZXdheS5BcGlLZXkodGhpcywgJ215YXBpa2V5MicpO1xuICAgIHVzYWdlcGxhbi5hZGRBcGlLZXkoYXBpa2V5MSk7XG4gICAgdXNhZ2VwbGFuLmFkZEFwaUtleShhcGlrZXkyKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgVGVzdChhcHAsICd0ZXN0LWFwaWdhdGV3YXktdXNhZ2VwbGFuLW11bHRpa2V5Jyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.js b/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.js deleted file mode 100644 index 18199326aff66..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.usage-plan.sharing.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const cdk = require("aws-cdk-lib"); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -class Create extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - this.usagePlan = new apigateway.UsagePlan(this, 'myusageplan'); - } -} -class Import extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id); - const usageplan = apigateway.UsagePlan.fromUsagePlanId(this, 'myusageplan', props.usagePlan.usagePlanId); - const apikey = new apigateway.ApiKey(this, 'myapikey'); - usageplan.addApiKey(apikey); - } -} -const app = new cdk.App(); -const test = new Create(app, 'test-apigateway-usageplan-create'); -new Import(app, 'test-apigateway-usageplan-import', { - usagePlan: test.usagePlan, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNhZ2UtcGxhbi5zaGFyaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNhZ2UtcGxhbi5zaGFyaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsZ0JBQWdCO0FBQ2hCLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFHekQsTUFBTSxNQUFPLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFHNUIsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxVQUFVLENBQUMs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GFwcCwgJ3Rlc3QtYXBpZ2F0ZXdheS11c2FnZXBsYW4taW1wb3J0Jywge1xuICB1c2FnZVBsYW46IHRlc3QudXNhZ2VQbGFuLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.d.ts deleted file mode 100644 index bad9eaec3e91c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import * as cdk from 'aws-cdk-lib'; -export declare const app: cdk.App; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.js deleted file mode 100644 index 429847cb8f886..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.js +++ /dev/null @@ -1,393 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.app = void 0; -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cloudmap = require("aws-cdk-lib/aws-servicediscovery"); -const cdk = require("aws-cdk-lib"); -const appmesh = require("aws-cdk-lib/aws-appmesh"); -exports.app = new cdk.App(); -const stack = new cdk.Stack(exports.app, 'mesh-stack', {}); -const vpc = new ec2.Vpc(stack, 'vpc', { - natGateways: 1, -}); -const namespace = new cloudmap.PrivateDnsNamespace(stack, 'test-namespace', { - vpc, - name: 'domain.local', -}); -const mesh = new appmesh.Mesh(stack, 'mesh'); -new appmesh.Mesh(stack, 'mesh-with-preference', { - serviceDiscovery: { - ipPreference: appmesh.IpPreference.IPV4_ONLY, - }, -}); -const router = mesh.addVirtualRouter('router', { - listeners: [ - appmesh.VirtualRouterListener.http(), - ], -}); -const virtualService = new appmesh.VirtualService(stack, 'service', { - virtualServiceProvider: appmesh.VirtualServiceProvider.virtualRouter(router), - virtualServiceName: 'service1.domain.local', -}); -const node = mesh.addVirtualNode('node', { - serviceDiscovery: appmesh.ServiceDiscovery.dns(`node1.${namespace.namespaceName}`, undefined, appmesh.IpPreference.IPV4_ONLY), - listeners: [appmesh.VirtualNodeListener.http({ - healthCheck: appmesh.HealthCheck.http({ - healthyThreshold: 3, - path: '/check-path', - }), - })], - backends: [appmesh.Backend.virtualService(virtualService)], -}); -node.addBackend(appmesh.Backend.virtualService(new appmesh.VirtualService(stack, 'service-2', { - virtualServiceName: 'service2.domain.local', - virtualServiceProvider: appmesh.VirtualServiceProvider.none(mesh), -}))); -router.addRoute('route-1', { - routeSpec: appmesh.RouteSpec.http({ - weightedTargets: [ - { - virtualNode: node, - weight: 50, - }, - ], - match: { - path: appmesh.HttpRoutePathMatch.startsWith('/'), - }, - timeout: { - idle: cdk.Duration.seconds(10), - perRequest: cdk.Duration.seconds(10), - }, - }), -}); -const node2 = mesh.addVirtualNode('node2', { - serviceDiscovery: appmesh.ServiceDiscovery.dns(`node2.${namespace.namespaceName}`), - listeners: [appmesh.VirtualNodeListener.http({ - healthCheck: appmesh.HealthCheck.http({ - healthyThreshold: 3, - interval: cdk.Duration.seconds(5), - path: '/check-path2', - timeout: cdk.Duration.seconds(2), - unhealthyThreshold: 2, - }), - })], - backendDefaults: { - tlsClientPolicy: { - validation: { - trust: appmesh.TlsValidationTrust.file('path/to/cert'), - }, - }, - }, - backends: [appmesh.Backend.virtualService(new appmesh.VirtualService(stack, 'service-3', { - virtualServiceName: 'service3.domain.local', - virtualServiceProvider: appmesh.VirtualServiceProvider.none(mesh), - }))], -}); -const node3 = mesh.addVirtualNode('node3', { - serviceDiscovery: appmesh.ServiceDiscovery.dns(`node3.${namespace.namespaceName}`), - listeners: [appmesh.VirtualNodeListener.http({ - healthCheck: appmesh.HealthCheck.http({ - healthyThreshold: 3, - interval: cdk.Duration.seconds(5), - path: '/check-path3', - timeout: cdk.Duration.seconds(2), - unhealthyThreshold: 2, - }), - })], - backendDefaults: { - tlsClientPolicy: { - validation: { - trust: appmesh.TlsValidationTrust.file('path-to-certificate'), - }, - }, - }, - accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'), -}); -const node4 = mesh.addVirtualNode('node4', { - serviceDiscovery: appmesh.ServiceDiscovery.dns(`node4.${namespace.namespaceName}`, appmesh.DnsResponseType.ENDPOINTS), - listeners: [appmesh.VirtualNodeListener.http({ - tls: { - mode: appmesh.TlsMode.STRICT, - certificate: appmesh.TlsCertificate.sds('spiffe://domain.local/backend-service'), - mutualTlsValidation: { - trust: appmesh.TlsValidationTrust.sds('spiffe://domain.local'), - subjectAlternativeNames: appmesh.SubjectAlternativeNames.matchingExactly('client.domain.local'), - }, - }, - healthCheck: appmesh.HealthCheck.http({ - healthyThreshold: 3, - interval: cdk.Duration.seconds(5), - path: '/check-path3', - timeout: cdk.Duration.seconds(2), - unhealthyThreshold: 2, - }), - })], - backendDefaults: { - tlsClientPolicy: { - mutualTlsCertificate: appmesh.TlsCertificate.file('path/to/certChain', 'path/to/privateKey'), - validation: { - subjectAlternativeNames: appmesh.SubjectAlternativeNames.matchingExactly('mymesh.local'), - trust: appmesh.TlsValidationTrust.file('path-to-certificate'), - }, - }, - }, - accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'), -}); -node4.addBackend(appmesh.Backend.virtualService(new appmesh.VirtualService(stack, 'service-4', { - virtualServiceName: 'service4.domain.local', - virtualServiceProvider: appmesh.VirtualServiceProvider.none(mesh), -}))); -router.addRoute('route-2', { - routeSpec: appmesh.RouteSpec.http({ - weightedTargets: [ - { - virtualNode: node2, - weight: 30, - }, - ], - match: { - path: appmesh.HttpRoutePathMatch.startsWith('/path2'), - }, - timeout: { - idle: cdk.Duration.seconds(11), - perRequest: cdk.Duration.seconds(11), - }, - }), -}); -router.addRoute('route-3', { - routeSpec: appmesh.RouteSpec.tcp({ - weightedTargets: [ - { - virtualNode: node3, - weight: 20, - }, - ], - timeout: { - idle: cdk.Duration.seconds(12), - }, - }), -}); -router.addRoute('route-4', { - routeSpec: appmesh.RouteSpec.grpc({ - weightedTargets: [ - { - virtualNode: node4, - weight: 20, - }, - ], - timeout: { - idle: cdk.Duration.seconds(12), - }, - match: { - serviceName: 'test', - }, - }), -}); -router.addRoute('route-matching', { - routeSpec: appmesh.RouteSpec.http2({ - weightedTargets: [{ virtualNode: node3 }], - match: { - path: appmesh.HttpRoutePathMatch.startsWith('/'), - method: appmesh.HttpRouteMethod.POST, - protocol: appmesh.HttpRouteProtocol.HTTPS, - headers: [ - appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueStartsWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueEndsWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueMatchesRegex('Content-Type', 'application/.*'), - appmesh.HeaderMatch.valuesIsInRange('Content-Type', 1, 5), - appmesh.HeaderMatch.valueIsNot('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotStartWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotEndWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotMatchRegex('Content-Type', 'application/.*'), - appmesh.HeaderMatch.valuesIsNotInRange('Content-Type', 1, 5), - ], - }, - }), -}); -router.addRoute('route-http2-retry', { - routeSpec: appmesh.RouteSpec.http2({ - weightedTargets: [{ virtualNode: node3 }], - retryPolicy: { - httpRetryEvents: [appmesh.HttpRetryEvent.CLIENT_ERROR], - tcpRetryEvents: [appmesh.TcpRetryEvent.CONNECTION_ERROR], - retryAttempts: 5, - retryTimeout: cdk.Duration.seconds(1), - }, - }), -}); -router.addRoute('route-5', { - routeSpec: appmesh.RouteSpec.http2({ - priority: 10, - weightedTargets: [{ virtualNode: node2 }], - }), -}); -router.addRoute('route-grpc-retry', { - routeSpec: appmesh.RouteSpec.grpc({ - weightedTargets: [{ virtualNode: node3 }], - match: { serviceName: 'servicename' }, - retryPolicy: { - grpcRetryEvents: [appmesh.GrpcRetryEvent.DEADLINE_EXCEEDED], - httpRetryEvents: [appmesh.HttpRetryEvent.CLIENT_ERROR], - tcpRetryEvents: [appmesh.TcpRetryEvent.CONNECTION_ERROR], - retryAttempts: 5, - retryTimeout: cdk.Duration.seconds(1), - }, - }), -}); -router.addRoute('route-6', { - routeSpec: appmesh.RouteSpec.http2({ - weightedTargets: [ - { - virtualNode: node2, - weight: 30, - }, - ], - match: { - path: appmesh.HttpRoutePathMatch.regex('regex'), - queryParameters: [ - appmesh.QueryParameterMatch.valueIs('query-field', 'value'), - ], - }, - }), -}); -router.addRoute('route-7', { - routeSpec: appmesh.RouteSpec.grpc({ - weightedTargets: [ - { - virtualNode: node4, - weight: 20, - }, - ], - match: { - serviceName: 'test-service', - methodName: 'test-method', - metadata: [ - appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'), - ], - }, - }), -}); -const gateway = mesh.addVirtualGateway('gateway1', { - accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'), - virtualGatewayName: 'gateway1', -}); -new appmesh.VirtualGateway(stack, 'gateway2', { - mesh: mesh, - listeners: [appmesh.VirtualGatewayListener.http({ - port: 443, - healthCheck: appmesh.HealthCheck.http({ - interval: cdk.Duration.seconds(10), - }), - tls: { - mode: appmesh.TlsMode.STRICT, - certificate: appmesh.TlsCertificate.file('path/to/certChain', 'path/to/privateKey'), - }, - })], -}); -new appmesh.VirtualGateway(stack, 'gateway3', { - mesh: mesh, - listeners: [appmesh.VirtualGatewayListener.http({ - port: 443, - healthCheck: appmesh.HealthCheck.http({ - interval: cdk.Duration.seconds(10), - }), - tls: { - mode: appmesh.TlsMode.STRICT, - certificate: appmesh.TlsCertificate.sds('secret_certificate'), - mutualTlsValidation: { - trust: appmesh.TlsValidationTrust.file('path/to/certChain'), - }, - }, - })], - backendDefaults: { - tlsClientPolicy: { - mutualTlsCertificate: appmesh.TlsCertificate.sds('secret_validation'), - validation: { - trust: appmesh.TlsValidationTrust.file('path/to/certChain'), - }, - }, - }, -}); -gateway.addGatewayRoute('gateway1-route-http', { - routeSpec: appmesh.GatewayRouteSpec.http({ - routeTarget: virtualService, - }), -}); -gateway.addGatewayRoute('gateway1-route-http-2', { - routeSpec: appmesh.GatewayRouteSpec.http({ - routeTarget: virtualService, - match: { - path: appmesh.HttpGatewayRoutePathMatch.startsWith('/', ''), - hostname: appmesh.GatewayRouteHostnameMatch.exactly('example.com'), - method: appmesh.HttpRouteMethod.POST, - headers: [ - appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueStartsWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueEndsWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueMatchesRegex('Content-Type', 'application/.*'), - appmesh.HeaderMatch.valuesIsInRange('Content-Type', 1, 5), - appmesh.HeaderMatch.valueIsNot('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotStartWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotEndWith('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueDoesNotMatchRegex('Content-Type', 'application/.*'), - appmesh.HeaderMatch.valuesIsNotInRange('Content-Type', 1, 5), - ], - queryParameters: [ - appmesh.QueryParameterMatch.valueIs('query-field', 'value'), - ], - rewriteRequestHostname: true, - }, - }), -}); -gateway.addGatewayRoute('gateway1-route-http2', { - routeSpec: appmesh.GatewayRouteSpec.http2({ - routeTarget: virtualService, - }), -}); -gateway.addGatewayRoute('gateway1-route-http2-2', { - routeSpec: appmesh.GatewayRouteSpec.http2({ - routeTarget: virtualService, - match: { - path: appmesh.HttpGatewayRoutePathMatch.exactly('/exact', '/rewrittenpath'), - }, - }), -}); -gateway.addGatewayRoute('gateway1-route-http2-3', { - routeSpec: appmesh.GatewayRouteSpec.http2({ - routeTarget: virtualService, - match: { - path: appmesh.HttpGatewayRoutePathMatch.regex('regex'), - }, - }), -}); -gateway.addGatewayRoute('gateway1-route-grpc', { - routeSpec: appmesh.GatewayRouteSpec.grpc({ - routeTarget: virtualService, - match: { - serviceName: virtualService.virtualServiceName, - }, - }), -}); -gateway.addGatewayRoute('gateway1-route-grpc-2', { - routeSpec: appmesh.GatewayRouteSpec.grpc({ - routeTarget: virtualService, - match: { - hostname: appmesh.GatewayRouteHostnameMatch.exactly('example.com'), - metadata: [ - appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'), - appmesh.HeaderMatch.valueIsNot('Content-Type', 'text/html'), - appmesh.HeaderMatch.valueStartsWith('Content-Type', 'application/'), - appmesh.HeaderMatch.valueDoesNotStartWith('Content-Type', 'text/'), - appmesh.HeaderMatch.valueEndsWith('Content-Type', '/json'), - appmesh.HeaderMatch.valueDoesNotEndWith('Content-Type', '/json+foobar'), - appmesh.HeaderMatch.valueMatchesRegex('Content-Type', 'application/.*'), - appmesh.HeaderMatch.valueDoesNotMatchRegex('Content-Type', 'text/.*'), - appmesh.HeaderMatch.valuesIsInRange('Max-Forward', 1, 5), - appmesh.HeaderMatch.valuesIsNotInRange('Max-Forward', 1, 5), - ], - rewriteRequestHostname: false, - }, - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWVzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm1lc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQTJDO0FBQzNDLDZEQUE2RDtBQUM3RCxtQ0FBbUM7QUFDbkMsbURBQW1EO0FBRXRDLFFBQUEsR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRWpDLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxXQUFHLEVBQUUsWUFBWSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBRW5ELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUU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FwcGxpY2F0aW9uL2pzb24nKSxcbiAgICAgICAgYXBwbWVzaC5IZWFkZXJNYXRjaC52YWx1ZUlzTm90KCdDb250ZW50LVR5cGUnLCAndGV4dC9odG1sJyksXG4gICAgICAgIGFwcG1lc2guSGVhZGVyTWF0Y2gudmFsdWVTdGFydHNXaXRoKCdDb250ZW50LVR5cGUnLCAnYXBwbGljYXRpb24vJyksXG4gICAgICAgIGFwcG1lc2guSGVhZGVyTWF0Y2gudmFsdWVEb2VzTm90U3RhcnRXaXRoKCdDb250ZW50LVR5cGUnLCAndGV4dC8nKSxcbiAgICAgICAgYXBwbWVzaC5IZWFkZXJNYXRjaC52YWx1ZUVuZHNXaXRoKCdDb250ZW50LVR5cGUnLCAnL2pzb24nKSxcbiAgICAgICAgYXBwbWVzaC5IZWFkZXJNYXRjaC52YWx1ZURvZXNOb3RFbmRXaXRoKCdDb250ZW50LVR5cGUnLCAnL2pzb24rZm9vYmFyJyksXG4gICAgICAgIGFwcG1lc2guSGVhZGVyTWF0Y2gudmFsdWVNYXRjaGVzUmVnZXgoJ0NvbnRlbnQtVHlwZScsICdhcHBsaWNhdGlvbi8uKicpLFxuICAgICAgICBhcHBtZXNoLkhlYWRlck1hdGNoLnZhbHVlRG9lc05vdE1hdGNoUmVnZXgoJ0NvbnRlbnQtVHlwZScsICd0ZXh0Ly4qJyksXG4gICAgICAgIGFwcG1lc2guSGVhZGVyTWF0Y2gudmFsdWVzSXNJblJhbmdlKCdNYXgtRm9yd2FyZCcsIDEsIDUpLFxuICAgICAgICBhcHBtZXNoLkhlYWRlck1hdGNoLnZhbHVlc0lzTm90SW5SYW5nZSgnTWF4LUZvcndhcmQnLCAxLCA1KSxcbiAgICAgIF0sXG4gICAgICByZXdyaXRlUmVxdWVzdEhvc3RuYW1lOiBmYWxzZSxcbiAgICB9LFxuICB9KSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.js deleted file mode 100644 index f0da224cfcab5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.api-import.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -/// !cdk-integ * -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const db = require("aws-cdk-lib/aws-dynamodb"); -const cdk = require("aws-cdk-lib"); -const appsync = require("aws-cdk-lib/aws-appsync"); -/* - * Creates an Appsync GraphQL API in a separate stack. - * Add dependencies to imported api. - * - * Stack verification steps: - * Install dependencies and deploy integration test. Check if data sources are - * connected to the GraphQL Api - * - * -- cdk deploy --app 'node integ.api-import.js' stack -- start -- - * -- aws appsync list-graphql-apis -- obtain api id -- - * -- aws appsync list-data-sources --api-id [api_id] -- testDS/None -- - * -- cdk destroy --app 'node integ.api-import.js' stack baseStack -- clean -- - */ -const app = new cdk.App(); -const baseStack = new cdk.Stack(app, 'baseStack'); -const baseApi = new appsync.GraphqlApi(baseStack, 'baseApi', { - name: 'baseApi', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), -}); -const stack = new cdk.Stack(app, 'stack'); -const api = appsync.GraphqlApi.fromGraphqlApiAttributes(stack, 'Api', { - graphqlApiId: `${baseApi.apiId}`, -}); -const testTable = new db.Table(stack, 'TestTable', { - billingMode: db.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'id', - type: db.AttributeType.STRING, - }, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const testDS = api.addDynamoDbDataSource('ds', testTable); -testDS.createResolver('QueryGetTests', { - typeName: 'Query', - fieldName: 'getTests', - requestMappingTemplate: appsync.MappingTemplate.dynamoDbScanTable(), - responseMappingTemplate: appsync.MappingTemplate.dynamoDbResultList(), -}); -testDS.createResolver('MutationAddTest', { - typeName: 'Mutation', - fieldName: 'addTest', - requestMappingTemplate: appsync.MappingTemplate.dynamoDbPutItem(appsync.PrimaryKey.partition('id').auto(), appsync.Values.projecting('test')), - responseMappingTemplate: appsync.MappingTemplate.dynamoDbResultItem(), -}); -const api2 = appsync.GraphqlApi.fromGraphqlApiAttributes(stack, 'api2', { - graphqlApiId: baseApi.apiId, - graphqlApiArn: baseApi.arn, -}); -const none = api2.addNoneDataSource('none'); -const func = none.createFunction('PipelineFunction', { - name: 'pipeline_function', - requestMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - })), - responseMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: 'v1', - })), -}); -new appsync.Resolver(stack, 'pipeline_resolver', { - api: api2, - typeName: 'test', - fieldName: 'version', - pipelineConfig: [func], - requestMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - })), - responseMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: 'v1', - })), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBpLWltcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFwaS1pbXBvcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGdCQUFnQjs7QUFFaEIsNkJBQTZCO0FBQzdCLCtDQUErQztBQUMvQyxtQ0FBbUM7QUFDbkMsbURBQW1EO0FBRW5EOzs7Ozs7Ozs7Ozs7R0FZRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sU0FBUyxHQ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B9KSksXG59KTtcblxubmV3IGFwcHN5bmMuUmVzb2x2ZXIoc3RhY2ssICdwaXBlbGluZV9yZXNvbHZlcicsIHtcbiAgYXBpOiBhcGkyLFxuICB0eXBlTmFtZTogJ3Rlc3QnLFxuICBmaWVsZE5hbWU6ICd2ZXJzaW9uJyxcbiAgcGlwZWxpbmVDb25maWc6IFtmdW5jXSxcbiAgcmVxdWVzdE1hcHBpbmdUZW1wbGF0ZTogYXBwc3luYy5NYXBwaW5nVGVtcGxhdGUuZnJvbVN0cmluZyhKU09OLnN0cmluZ2lmeSh7XG4gICAgdmVyc2lvbjogJzIwMTctMDItMjgnLFxuICB9KSksXG4gIHJlc3BvbnNlTWFwcGluZ1RlbXBsYXRlOiBhcHBzeW5jLk1hcHBpbmdUZW1wbGF0ZS5mcm9tU3RyaW5nKEpTT04uc3RyaW5naWZ5KHtcbiAgICB2ZXJzaW9uOiAndjEnLFxuICB9KSksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.js deleted file mode 100644 index 345803a7571ca..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -/// !cdk-integ * -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const appsync = require("aws-cdk-lib/aws-appsync"); -/* - * Creates an Appsync GraphQL API and schema in a code-first approach. - * - * Stack verification steps: - * Deploy stack, get api key and endpoinScalarType. Check if schema connects to data source. - * - * -- bash verify.integ.appsync-lambda.sh --start -- start -- - * -- aws appsync list-graphql-apis -- obtain apiId & endpoint -- - * -- aws appsync list-api-keys --api-id [apiId] -- obtain api key -- - * -- bash verify.integ.appsync-lambda.sh --check [apiKey] [url] -- check if success -- - * -- bash verify.integ.appsync-lambda.sh --clean -- clean -- - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'stack'); -const api = new appsync.GraphqlApi(stack, 'LambdaAPI', { - name: 'LambdaAPI', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.lambda.graphql')), -}); -const func = new lambda.Function(stack, 'func', { - code: lambda.Code.fromAsset(path.join(__dirname, 'verify/lambda-tutorial')), - handler: 'lambda-tutorial.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const lambdaDS = api.addLambdaDataSource('LambdaDS', func); -const requestPayload = (field, { withArgs = false, withSource = false }) => { - const _field = `"field": "${field}"`; - const _args = '"arguments": $utils.toJson($context.arguments)'; - const _source = '"source": $utils.toJson($context.source)'; - const _payload = [_field]; - if (withArgs) - _payload.push(_args); - if (withSource) - _payload.push(_source); - return _payload.reduce((acc, v) => `${acc} ${v},`, '{').slice(0, -1) + '}'; -}; -const responseMappingTemplate = appsync.MappingTemplate.lambdaResult(); -lambdaDS.createResolver('QueryGetPost', { - typeName: 'Query', - fieldName: 'getPost', - requestMappingTemplate: appsync.MappingTemplate.lambdaRequest(requestPayload('getPost', { withArgs: true })), - responseMappingTemplate, -}); -lambdaDS.createResolver('QueryAllPosts', { - typeName: 'Query', - fieldName: 'allPosts', - requestMappingTemplate: appsync.MappingTemplate.lambdaRequest(requestPayload('allPosts', {})), - responseMappingTemplate, -}); -lambdaDS.createResolver('MutationAddPost', { - typeName: 'Mutation', - fieldName: 'addPost', - requestMappingTemplate: appsync.MappingTemplate.lambdaRequest(requestPayload('addPost', { withArgs: true })), - responseMappingTemplate, -}); -lambdaDS.createResolver('PostRelatedPosts', { - typeName: 'Post', - fieldName: 'relatedPosts', - requestMappingTemplate: appsync.MappingTemplate.lambdaRequest(requestPayload('relatedPosts', { withSource: true }), 'BatchInvoke'), - responseMappingTemplate, -}); -lambdaDS.createResolver('PostRelatedPostsMaxBatchSize', { - typeName: 'Post', - fieldName: 'relatedPostsMaxBatchSize', - requestMappingTemplate: appsync.MappingTemplate.lambdaRequest(requestPayload('relatedPostsMaxBatchSize', { withSource: true }), 'BatchInvoke'), - responseMappingTemplate, - maxBatchSize: 2, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBwc3luYy1sYW1iZGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hcHBzeW5jLWxhbWJkYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsZ0JBQWdCOztBQUVoQiw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELG1DQUFtQztBQUNuQyxtREFBbUQ7QUFFbkQ7Ozs7Ozs7Ozs7O0dBV0c7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBRTFDLE1BQU0sR0FBRyxHQUFHLElBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFO0lBQ3JELElBQUksRUFBRSxXQUFXO0lBQ2pCLE1BQU0sRUFBRSxPQUFPLENBQUMsVUFBVSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSx3QkFBd0IsQ0FBQyxD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G9zdHMnLCB7XG4gIHR5cGVOYW1lOiAnUG9zdCcsXG4gIGZpZWxkTmFtZTogJ3JlbGF0ZWRQb3N0cycsXG4gIHJlcXVlc3RNYXBwaW5nVGVtcGxhdGU6IGFwcHN5bmMuTWFwcGluZ1RlbXBsYXRlLmxhbWJkYVJlcXVlc3QocmVxdWVzdFBheWxvYWQoJ3JlbGF0ZWRQb3N0cycsIHsgd2l0aFNvdXJjZTogdHJ1ZSB9KSwgJ0JhdGNoSW52b2tlJyksXG4gIHJlc3BvbnNlTWFwcGluZ1RlbXBsYXRlLFxufSk7XG5cbmxhbWJkYURTLmNyZWF0ZVJlc29sdmVyKCdQb3N0UmVsYXRlZFBvc3RzTWF4QmF0Y2hTaXplJywge1xuICB0eXBlTmFtZTogJ1Bvc3QnLFxuICBmaWVsZE5hbWU6ICdyZWxhdGVkUG9zdHNNYXhCYXRjaFNpemUnLFxuICByZXF1ZXN0TWFwcGluZ1RlbXBsYXRlOiBhcHBzeW5jLk1hcHBpbmdUZW1wbGF0ZS5sYW1iZGFSZXF1ZXN0KHJlcXVlc3RQYXlsb2FkKCdyZWxhdGVkUG9zdHNNYXhCYXRjaFNpemUnLCB7IHdpdGhTb3VyY2U6IHRydWUgfSksICdCYXRjaEludm9rZScpLFxuICByZXNwb25zZU1hcHBpbmdUZW1wbGF0ZSxcbiAgbWF4QmF0Y2hTaXplOiAyLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.js deleted file mode 100644 index cbdbd8bd54d12..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-none.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const appsync = require("aws-cdk-lib/aws-appsync"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'stack'); -const api = new appsync.GraphqlApi(stack, 'NoneAPI', { - name: 'NoneAPI', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.none.graphql')), -}); -api.addNoneDataSource('NoneDS', { - name: cdk.Lazy.string({ produce() { return 'NoneDS'; } }), -}); -new integ_tests_alpha_1.IntegTest(app, 'api', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBwc3luYy1ub25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXBwc3luYy1ub25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsbURBQW1EO0FBRW5ELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFFMUMsTUFBTSxHQUFHLEdBQUcsSUFBSSxPQUFPLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDbkQsSUFBSSxFQUFFLFNBQVM7SUFDZixNQUFNLEVBQUUsT0FBTyxDQUFDLFVBQVUsQ0FBQyxT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CdOb25lRFMnLCB7XG4gIG5hbWU6IGNkay5MYXp5LnN0cmluZyh7IHByb2R1Y2UoKTogc3RyaW5nIHsgcmV0dXJuICdOb25lRFMnOyB9IH0pLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnYXBpJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.js deleted file mode 100644 index eb90883d2206b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.auth-apikey.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_appsync_1 = require("aws-cdk-lib/aws-appsync"); -/* - * Creates an Appsync GraphQL API with API_KEY authorization. - * Testing for API_KEY Authorization. - * - * Stack verification steps: - * Deploy stack, get api-key and endpoint. - * Check if authorization occurs with empty get. - * - * -- bash verify.integ.auth-apikey.sh --start -- deploy stack -- - * -- aws appsync list-graphql-apis -- obtain api id && endpoint -- - * -- aws appsync list-api-keys --api-id [API ID] -- obtain api key -- - * -- bash verify.integ.auth-apikey.sh --check [APIKEY] [ENDPOINT] -- check if fails/success -- - * -- bash verify.integ.auth-apikey.sh --clean -- clean dependencies/stack -- - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-appsync-integ'); -const api = new aws_appsync_1.GraphqlApi(stack, 'Api', { - name: 'Integ_Test_APIKey', - schema: aws_appsync_1.SchemaFile.fromAsset((0, path_1.join)(__dirname, 'appsync.auth.graphql')), - authorizationConfig: { - defaultAuthorization: { - authorizationType: aws_appsync_1.AuthorizationType.API_KEY, - apiKeyConfig: { - // Rely on default expiration date provided by the API so we have a deterministic snapshot - expires: undefined, - }, - }, - }, -}); -const testTable = new aws_dynamodb_1.Table(stack, 'TestTable', { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'id', - type: aws_dynamodb_1.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const testDS = api.addDynamoDbDataSource('testDataSource', testTable); -testDS.createResolver('QueryGetTests', { - typeName: 'Query', - fieldName: 'getTests', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbScanTable(), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -testDS.createResolver('MutationAddTest', { - typeName: 'Mutation', - fieldName: 'addTest', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey.partition('id').auto(), aws_appsync_1.Values.projecting('test')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXV0aC1hcGlrZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hdXRoLWFwaWtleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUE0QjtBQUM1QiwyREFBNkU7QUFDN0UsNkNBQXdEO0FBQ3hELHlEQUF5SDtBQUV6SDs7Ozs7Ozs7Ozs7OztHQWFHO0FB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bXBsYXRlOiBNYXBwaW5nVGVtcGxhdGUuZHluYW1vRGJSZXN1bHRMaXN0KCksXG59KTtcblxudGVzdERTLmNyZWF0ZVJlc29sdmVyKCdNdXRhdGlvbkFkZFRlc3QnLCB7XG4gIHR5cGVOYW1lOiAnTXV0YXRpb24nLFxuICBmaWVsZE5hbWU6ICdhZGRUZXN0JyxcbiAgcmVxdWVzdE1hcHBpbmdUZW1wbGF0ZTogTWFwcGluZ1RlbXBsYXRlLmR5bmFtb0RiUHV0SXRlbShQcmltYXJ5S2V5LnBhcnRpdGlvbignaWQnKS5hdXRvKCksIFZhbHVlcy5wcm9qZWN0aW5nKCd0ZXN0JykpLFxuICByZXNwb25zZU1hcHBpbmdUZW1wbGF0ZTogTWFwcGluZ1RlbXBsYXRlLmR5bmFtb0RiUmVzdWx0SXRlbSgpLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.js deleted file mode 100644 index b8ff09001d7a0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-elasticsearch.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const appsync = require("aws-cdk-lib/aws-appsync"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'appsync-elasticsearch'); -const user = new aws_iam_1.User(stack, 'User'); -const domain = new es.Domain(stack, 'Domain', { - version: es.ElasticsearchVersion.V7_1, - removalPolicy: cdk.RemovalPolicy.DESTROY, - fineGrainedAccessControl: { - masterUserArn: user.userArn, - }, - encryptionAtRest: { - enabled: true, - }, - nodeToNodeEncryption: true, - enforceHttps: true, -}); -const api = new appsync.GraphqlApi(stack, 'api', { - name: 'api', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), -}); -const ds = api.addElasticsearchDataSource('ds', domain); -ds.createResolver('QueryGetTests', { - typeName: 'Query', - fieldName: 'getTests', - requestMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - operation: 'GET', - path: '/id/post/_search', - params: { - headers: {}, - queryString: {}, - body: { - from: 0, - size: 50, - }, - }, - })), - responseMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - operation: 'GET', - path: '/id/post/_search', - params: { - headers: {}, - queryString: {}, - body: { - from: 0, - size: 50, - query: { - term: { - author: '$util.toJson($context.arguments.author)', - }, - }, - }, - }, - })), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3JhcGhxbC1lbGFzdGljc2VhcmNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ3JhcGhxbC1lbGFzdGljc2VhcmNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLG9EQUFvRDtBQUNwRCxpREFBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG1EQUFtRDtBQUVuRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEd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1F1ZXJ5JyxcbiAgZmllbGROYW1lOiAnZ2V0VGVzdHMnLFxuICByZXF1ZXN0TWFwcGluZ1RlbXBsYXRlOiBhcHBzeW5jLk1hcHBpbmdUZW1wbGF0ZS5mcm9tU3RyaW5nKEpTT04uc3RyaW5naWZ5KHtcbiAgICB2ZXJzaW9uOiAnMjAxNy0wMi0yOCcsXG4gICAgb3BlcmF0aW9uOiAnR0VUJyxcbiAgICBwYXRoOiAnL2lkL3Bvc3QvX3NlYXJjaCcsXG4gICAgcGFyYW1zOiB7XG4gICAgICBoZWFkZXJzOiB7fSxcbiAgICAgIHF1ZXJ5U3RyaW5nOiB7fSxcbiAgICAgIGJvZHk6IHtcbiAgICAgICAgZnJvbTogMCxcbiAgICAgICAgc2l6ZTogNTAsXG4gICAgICB9LFxuICAgIH0sXG4gIH0pKSxcbiAgcmVzcG9uc2VNYXBwaW5nVGVtcGxhdGU6IGFwcHN5bmMuTWFwcGluZ1RlbXBsYXRlLmZyb21TdHJpbmcoSlNPTi5zdHJpbmdpZnkoe1xuICAgIHZlcnNpb246ICcyMDE3LTAyLTI4JyxcbiAgICBvcGVyYXRpb246ICdHRVQnLFxuICAgIHBhdGg6ICcvaWQvcG9zdC9fc2VhcmNoJyxcbiAgICBwYXJhbXM6IHtcbiAgICAgIGhlYWRlcnM6IHt9LFxuICAgICAgcXVlcnlTdHJpbmc6IHt9LFxuICAgICAgYm9keToge1xuICAgICAgICBmcm9tOiAwLFxuICAgICAgICBzaXplOiA1MCxcbiAgICAgICAgcXVlcnk6IHtcbiAgICAgICAgICB0ZXJtOiB7XG4gICAgICAgICAgICBhdXRob3I6ICckdXRpbC50b0pzb24oJGNvbnRleHQuYXJndW1lbnRzLmF1dGhvciknLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH0sXG4gIH0pKSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.js deleted file mode 100644 index b1829e03c67d6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-iam.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_appsync_1 = require("aws-cdk-lib/aws-appsync"); -/* - * Creates an Appsync GraphQL API and Lambda with IAM Roles. - * Testing for IAM Auth and grantFullAccess. - * - * Stack verification steps: - * Install dependencies and deploy integration test. Invoke Lambda - * function with different permissions to test policies. - * - * -- bash verify.integ.graphql-iam.sh --start -- get dependencies/deploy -- - * -- aws lambda list-functions -- obtain testFail/testQuery -- - * -- aws lambda invoke /dev/stdout --function-name [FAIL] -- fails beacuse no IAM Role` -- - * -- aws lambda invoke /dev/stdout --function-name [Query]-- succeeds with empty get ` -- - * -- bash verify.integ.graphql-iam.sh --clean -- clean dependencies/deploy -- - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-appsync-integ'); -const userPool = new aws_cognito_1.UserPool(stack, 'Pool', { - userPoolName: 'myPool', -}); -const api = new aws_appsync_1.GraphqlApi(stack, 'Api', { - name: 'Integ_Test_IAM', - schema: aws_appsync_1.SchemaFile.fromAsset((0, path_1.join)(__dirname, 'integ.graphql-iam.graphql')), - authorizationConfig: { - defaultAuthorization: { - authorizationType: aws_appsync_1.AuthorizationType.USER_POOL, - userPoolConfig: { - userPool, - defaultAction: aws_appsync_1.UserPoolDefaultAction.ALLOW, - }, - }, - additionalAuthorizationModes: [ - { - authorizationType: aws_appsync_1.AuthorizationType.IAM, - }, - ], - }, -}); -const testTable = new aws_dynamodb_1.Table(stack, 'TestTable', { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'id', - type: aws_dynamodb_1.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const testDS = api.addDynamoDbDataSource('ds', testTable, { name: 'testDataSource' }); -testDS.createResolver('QueryGetTest', { - typeName: 'Query', - fieldName: 'getTest', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -testDS.createResolver('QueryGetTests', { - typeName: 'Query', - fieldName: 'getTests', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbScanTable(), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -testDS.createResolver('MutationAddTest', { - typeName: 'Mutation', - fieldName: 'addTest', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey.partition('id').auto(), aws_appsync_1.Values.projecting('test')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -const lambdaIAM = new aws_iam_1.Role(stack, 'LambdaIAM', { assumedBy: new aws_iam_1.ServicePrincipal('lambda') }); -api.grant(lambdaIAM, aws_appsync_1.IamResource.custom('types/Query/fields/getTests'), 'appsync:graphql'); -api.grant(lambdaIAM, aws_appsync_1.IamResource.ofType('test'), 'appsync:GraphQL'); -api.grantMutation(lambdaIAM, 'addTest'); -new aws_lambda_1.Function(stack, 'testQuery', { - code: aws_lambda_1.Code.fromAsset((0, path_1.join)(__dirname, 'verify/iam-query')), - handler: 'iam-query.handler', - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - environment: { APPSYNC_ENDPOINT: api.graphqlUrl }, - role: lambdaIAM, -}); -new aws_lambda_1.Function(stack, 'testFail', { - code: aws_lambda_1.Code.fromAsset((0, path_1.join)(__dirname, 'verify/iam-query')), - handler: 'iam-query.handler', - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - environment: { APPSYNC_ENDPOINT: api.graphqlUrl }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3JhcGhxbC1pYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5ncmFwaHFsLWlhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUE0QjtBQUM1Qix5REFBbUQ7QUFDbkQsMkRBQTZFO0FBQzdFLGlEQUE2RDtBQUM3RCx1REFBaUU7QUFDakUsNkNBQXdEO0FBQ3hELHlEQVNpQztBQUVqQzs7Ozs7Ozs7Ozs7OztHQWFHO0FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxtQkFBbUIsQ0FBQyxDQUFDO0FBQ2xELE1BQU0sUUFBUSxHQUFHLElBQUksc0JBQVEsQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFO0lBQzNDLFlBQVksRUFBRSxRQUFRO0NBQ3ZCLENBQUMsQ0FBQztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksd0JBQVUsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFO0lBQ3ZDLElBQUksRUFBRSxnQkFBZ0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WVyeScpKSxcbiAgaGFuZGxlcjogJ2lhbS1xdWVyeS5oYW5kbGVyJyxcbiAgcnVudGltZTogUnVudGltZS5OT0RFSlNfMTRfWCxcbiAgZW52aXJvbm1lbnQ6IHsgQVBQU1lOQ19FTkRQT0lOVDogYXBpLmdyYXBocWxVcmwgfSxcbiAgcm9sZTogbGFtYmRhSUFNLFxufSk7XG5uZXcgRnVuY3Rpb24oc3RhY2ssICd0ZXN0RmFpbCcsIHtcbiAgY29kZTogQ29kZS5mcm9tQXNzZXQoam9pbihfX2Rpcm5hbWUsICd2ZXJpZnkvaWFtLXF1ZXJ5JykpLFxuICBoYW5kbGVyOiAnaWFtLXF1ZXJ5LmhhbmRsZXInLFxuICBydW50aW1lOiBSdW50aW1lLk5PREVKU18xNF9YLFxuICBlbnZpcm9ubWVudDogeyBBUFBTWU5DX0VORFBPSU5UOiBhcGkuZ3JhcGhxbFVybCB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.js deleted file mode 100644 index e9cf55ef318bf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql-opensearch.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const appsync = require("aws-cdk-lib/aws-appsync"); -class OpensSearch23Stack extends cdk.Stack { - constructor(scope) { - super(scope, 'appsync-opensearch'); - const user = new aws_iam_1.User(this, 'User'); - const domain = new opensearch.Domain(this, 'Domain', { - version: opensearch.EngineVersion.OPENSEARCH_2_3, - removalPolicy: cdk.RemovalPolicy.DESTROY, - fineGrainedAccessControl: { - masterUserArn: user.userArn, - }, - encryptionAtRest: { - enabled: true, - }, - nodeToNodeEncryption: true, - enforceHttps: true, - }); - const api = new appsync.GraphqlApi(this, 'api', { - name: 'api', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), - }); - const ds = api.addOpenSearchDataSource('ds', domain); - ds.createResolver('QueryGetTests', { - typeName: 'Query', - fieldName: 'getTests', - requestMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - operation: 'GET', - path: '/id/post/_search', - params: { - headers: {}, - queryString: {}, - body: { - from: 0, - size: 50, - }, - }, - })), - responseMappingTemplate: appsync.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - operation: 'GET', - path: '/id/post/_search', - params: { - headers: {}, - queryString: {}, - body: { - from: 0, - size: 50, - query: { - term: { - author: '$util.toJson($context.arguments.author)', - }, - }, - }, - }, - })), - }); - } -} -const app = new cdk.App(); -const testCase = new OpensSearch23Stack(app); -new integ_tests_alpha_1.IntegTest(app, 'opensearch-2.3-stack', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3JhcGhxbC1vcGVuc2VhcmNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ3JhcGhxbC1vcGVuc2VhcmNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLGlE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gICBoZWFkZXJzOiB7fSxcbiAgICAgICAgICBxdWVyeVN0cmluZzoge30sXG4gICAgICAgICAgYm9keToge1xuICAgICAgICAgICAgZnJvbTogMCxcbiAgICAgICAgICAgIHNpemU6IDUwLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9KSksXG4gICAgICByZXNwb25zZU1hcHBpbmdUZW1wbGF0ZTogYXBwc3luYy5NYXBwaW5nVGVtcGxhdGUuZnJvbVN0cmluZyhKU09OLnN0cmluZ2lmeSh7XG4gICAgICAgIHZlcnNpb246ICcyMDE3LTAyLTI4JyxcbiAgICAgICAgb3BlcmF0aW9uOiAnR0VUJyxcbiAgICAgICAgcGF0aDogJy9pZC9wb3N0L19zZWFyY2gnLFxuICAgICAgICBwYXJhbXM6IHtcbiAgICAgICAgICBoZWFkZXJzOiB7fSxcbiAgICAgICAgICBxdWVyeVN0cmluZzoge30sXG4gICAgICAgICAgYm9keToge1xuICAgICAgICAgICAgZnJvbTogMCxcbiAgICAgICAgICAgIHNpemU6IDUwLFxuICAgICAgICAgICAgcXVlcnk6IHtcbiAgICAgICAgICAgICAgdGVybToge1xuICAgICAgICAgICAgICAgIGF1dGhvcjogJyR1dGlsLnRvSnNvbigkY29udGV4dC5hcmd1bWVudHMuYXV0aG9yKScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9KSksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IE9wZW5zU2VhcmNoMjNTdGFjayhhcHApO1xubmV3IEludGVnVGVzdChhcHAsICdvcGVuc2VhcmNoLTIuMy1zdGFjaycsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.js deleted file mode 100644 index 527efd71aa7ca..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.graphql.js +++ /dev/null @@ -1,285 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_appsync_1 = require("aws-cdk-lib/aws-appsync"); -/* - * Creates an Appsync GraphQL API and with multiple tables. - * Testing for importing, querying, and mutability. - * - * Stack verification steps: - * Add to a table through appsync GraphQL API. - * Read from a table through appsync API. - * - * -- aws appsync list-graphql-apis -- obtain apiId -- - * -- aws appsync get-graphql-api --api-id [apiId] -- obtain GraphQL endpoint -- - * -- aws appsync list-api-keys --api-id [apiId] -- obtain api key -- - * -- bash verify.integ.graphql.sh [apiKey] [url] -- shows query and mutation -- - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-appsync-integ'); -const userPool = new aws_cognito_1.UserPool(stack, 'Pool', { - userPoolName: 'myPool', -}); -const api = new aws_appsync_1.GraphqlApi(stack, 'Api', { - name: 'demoapi', - schema: aws_appsync_1.SchemaFile.fromAsset((0, path_1.join)(__dirname, 'integ.graphql.graphql')), - authorizationConfig: { - defaultAuthorization: { - authorizationType: aws_appsync_1.AuthorizationType.USER_POOL, - userPoolConfig: { - userPool, - }, - }, - additionalAuthorizationModes: [ - { - authorizationType: aws_appsync_1.AuthorizationType.API_KEY, - }, - ], - }, -}); -const noneDS = api.addNoneDataSource('none', { name: 'None' }); -noneDS.createResolver('QuerygetServiceVersion', { - typeName: 'Query', - fieldName: 'getServiceVersion', - requestMappingTemplate: aws_appsync_1.MappingTemplate.fromString(JSON.stringify({ - version: '2017-02-28', - })), - responseMappingTemplate: aws_appsync_1.MappingTemplate.fromString(JSON.stringify({ - version: 'v1', - })), -}); -const customerTable = new aws_dynamodb_1.Table(stack, 'CustomerTable', { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'id', - type: aws_dynamodb_1.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const orderTable = new aws_dynamodb_1.Table(stack, 'OrderTable', { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'customer', - type: aws_dynamodb_1.AttributeType.STRING, - }, - sortKey: { - name: 'order', - type: aws_dynamodb_1.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -orderTable.addGlobalSecondaryIndex({ - indexName: 'orderIndex', - partitionKey: { - name: 'order', - type: aws_dynamodb_1.AttributeType.STRING, - }, - sortKey: { - name: 'customer', - type: aws_dynamodb_1.AttributeType.STRING, - }, -}); -new aws_dynamodb_1.Table(stack, 'PaymentTable', { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: { - name: 'id', - type: aws_dynamodb_1.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const paymentTable = aws_dynamodb_1.Table.fromTableName(stack, 'ImportedPaymentTable', 'PaymentTable'); -const customerDS = api.addDynamoDbDataSource('customerDs', customerTable, { name: 'Customer' }); -const orderDS = api.addDynamoDbDataSource('orderDs', orderTable, { name: 'Order' }); -const paymentDS = api.addDynamoDbDataSource('paymentDs', paymentTable, { name: 'Payment' }); -customerDS.createResolver('QueryGetCustomers', { - typeName: 'Query', - fieldName: 'getCustomers', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbScanTable(), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -customerDS.createResolver('QueryGetCustomer', { - typeName: 'Query', - fieldName: 'getCustomer', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('QueryGetCusomtersNotConsistent', { - typeName: 'Query', - fieldName: 'getCustomersNotConsistent', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbScanTable(false), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -customerDS.createResolver('QueryGetCustomerNotConsistent', { - typeName: 'Query', - fieldName: 'getCustomerNotConsistent', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id', false), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('QueryGetCustomersConsistent', { - typeName: 'Query', - fieldName: 'getCustomersConsistent', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbScanTable(true), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -customerDS.createResolver('QueryGetCustomerConsistent', { - typeName: 'Query', - fieldName: 'getCustomerConsistent', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id', true), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('MutationAddCustomer', { - typeName: 'Mutation', - fieldName: 'addCustomer', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey.partition('id').auto(), aws_appsync_1.Values.projecting('customer')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('MutationSaveCustomer', { - typeName: 'Mutation', - fieldName: 'saveCustomer', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey.partition('id').is('id'), aws_appsync_1.Values.projecting('customer')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('MutationSaveCustomerWithFirstOrder', { - typeName: 'Mutation', - fieldName: 'saveCustomerWithFirstOrder', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey - .partition('order').auto() - .sort('customer').is('customer.id'), aws_appsync_1.Values - .projecting('order') - .attribute('referral').is('referral')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -customerDS.createResolver('MutationRemoveCustomer', { - typeName: 'Mutation', - fieldName: 'removeCustomer', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbDeleteItem('id', 'id'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -const ops = [ - { suffix: 'Eq', op: aws_appsync_1.KeyCondition.eq }, - { suffix: 'Lt', op: aws_appsync_1.KeyCondition.lt }, - { suffix: 'Le', op: aws_appsync_1.KeyCondition.le }, - { suffix: 'Gt', op: aws_appsync_1.KeyCondition.gt }, - { suffix: 'Ge', op: aws_appsync_1.KeyCondition.ge }, -]; -for (const { suffix, op } of ops) { - orderDS.createResolver(`QueryGetCustomerOrders${suffix}`, { - typeName: 'Query', - fieldName: 'getCustomerOrders' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('customer', 'customer')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); - orderDS.createResolver(`QueryGetOrderCustomers${suffix}`, { - typeName: 'Query', - fieldName: 'getOrderCustomers' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('order', 'order'), 'orderIndex'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); -} -for (const { suffix, op } of ops) { - orderDS.createResolver(`QueryGetCustomerOrdersNotConsistent${suffix}`, { - typeName: 'Query', - fieldName: 'getCustomerOrdersNotConsistent' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('customer', 'customer'), undefined, false), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); - orderDS.createResolver(`QueryGetOrderCustomersNotConsistent${suffix}`, { - typeName: 'Query', - fieldName: 'getOrderCustomersNotConsistent' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('order', 'order'), 'orderIndex', false), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); -} -for (const { suffix, op } of ops) { - orderDS.createResolver(`QueryGetCustomerOrdersConsistent${suffix}`, { - typeName: 'Query', - fieldName: 'getCustomerOrdersConsistent' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('customer', 'customer'), undefined, true), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); - orderDS.createResolver(`QueryGetOrderCustomersConsistent${suffix}`, { - typeName: 'Query', - fieldName: 'getOrderCustomersConsistent' + suffix, - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(op('order', 'order'), 'orderIndex', true), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), - }); -} -orderDS.createResolver('QueryGetCustomerOrdersFilter', { - typeName: 'Query', - fieldName: 'getCustomerOrdersFilter', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(aws_appsync_1.KeyCondition.eq('customer', 'customer').and(aws_appsync_1.KeyCondition.beginsWith('order', 'order'))), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -orderDS.createResolver('QueryGetCustomerOrdersBetween', { - typeName: 'Query', - fieldName: 'getCustomerOrdersBetween', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(aws_appsync_1.KeyCondition.eq('customer', 'customer').and(aws_appsync_1.KeyCondition.between('order', 'order1', 'order2'))), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -orderDS.createResolver('QueryGetOrderCustomersFilter', { - typeName: 'Query', - fieldName: 'getOrderCustomersFilter', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(aws_appsync_1.KeyCondition.eq('order', 'order').and(aws_appsync_1.KeyCondition.beginsWith('customer', 'customer'))), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -orderDS.createResolver('QueryGetOrderCustomersBetween', { - typeName: 'Query', - fieldName: 'getOrderCustomersBetween', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbQuery(aws_appsync_1.KeyCondition.eq('order', 'order').and(aws_appsync_1.KeyCondition.between('customer', 'customer1', 'customer2')), 'orderIndex'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultList(), -}); -paymentDS.createResolver('QueryGetPayment', { - typeName: 'Query', - fieldName: 'getPayment', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id'), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -paymentDS.createResolver('QueryGetPaymentConsistent', { - typeName: 'Query', - fieldName: 'getPaymentConsistent', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbGetItem('id', 'id', true), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -paymentDS.createResolver('MutationSavePayment', { - typeName: 'Mutation', - fieldName: 'savePayment', - requestMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbPutItem(aws_appsync_1.PrimaryKey.partition('id').auto(), aws_appsync_1.Values.projecting('payment')), - responseMappingTemplate: aws_appsync_1.MappingTemplate.dynamoDbResultItem(), -}); -const httpDS = api.addHttpDataSource('ds', 'https://aws.amazon.com/', { name: 'http' }); -httpDS.createResolver('MutationDoPostOnAws', { - typeName: 'Mutation', - fieldName: 'doPostOnAws', - requestMappingTemplate: aws_appsync_1.MappingTemplate.fromString(`{ - "version": "2018-05-29", - "method": "POST", - # if full path is https://api.xxxxxxxxx.com/posts then resourcePath would be /posts - "resourcePath": "/path/123", - "params":{ - "body": $util.toJson($ctx.args), - "headers":{ - "Content-Type": "application/json", - "Authorization": "$ctx.request.headers.Authorization" - } - } - }`), - responseMappingTemplate: aws_appsync_1.MappingTemplate.fromString(` - ## Raise a GraphQL field error in case of a datasource invocation error - #if($ctx.error) - $util.error($ctx.error.message, $ctx.error.type) - #end - ## if the response status code is not 200, then return an error. Else return the body ** - #if($ctx.result.statusCode == 200) - ## If response is 200, return the body. - $ctx.result.body - #else - ## If response is not 200, append the response to error block. - $utils.appendError($ctx.result.body, "$ctx.result.statusCode") - #end - `), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3JhcGhxbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmdyYXBocWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBNEI7QUFDNUIseURBQW1EO0FBQ25ELDJEQUE2RTtBQUM3RSw2Q0FBd0Q7QUFDeEQseURBUWlDO0FBRWpDOzs7Ozs7Ozs7Ozs7R0FZRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUVsRCxNQUFNLFFBQVEsR0FBRyxJQUFJLHNCQUFRLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRTtJQUMzQyxZQUFZLEVBQUUsUUFBUTtDQUN2QixDQUFDLENBQUM7QUFFSCxNQUFNLEdBQUcsR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zdC5oZWFkZXJzLkF1dGhvcml6YXRpb25cIlxuICAgICAgICB9XG4gICAgfVxuICB9YCksXG4gIHJlc3BvbnNlTWFwcGluZ1RlbXBsYXRlOiBNYXBwaW5nVGVtcGxhdGUuZnJvbVN0cmluZyhgXG4gICAgIyMgUmFpc2UgYSBHcmFwaFFMIGZpZWxkIGVycm9yIGluIGNhc2Ugb2YgYSBkYXRhc291cmNlIGludm9jYXRpb24gZXJyb3JcbiAgICAjaWYoJGN0eC5lcnJvcilcbiAgICAgICR1dGlsLmVycm9yKCRjdHguZXJyb3IubWVzc2FnZSwgJGN0eC5lcnJvci50eXBlKVxuICAgICNlbmRcbiAgICAjIyBpZiB0aGUgcmVzcG9uc2Ugc3RhdHVzIGNvZGUgaXMgbm90IDIwMCwgdGhlbiByZXR1cm4gYW4gZXJyb3IuIEVsc2UgcmV0dXJuIHRoZSBib2R5ICoqXG4gICAgI2lmKCRjdHgucmVzdWx0LnN0YXR1c0NvZGUgPT0gMjAwKVxuICAgICAgICAjIyBJZiByZXNwb25zZSBpcyAyMDAsIHJldHVybiB0aGUgYm9keS5cbiAgICAgICAgJGN0eC5yZXN1bHQuYm9keVxuICAgICNlbHNlXG4gICAgICAgICMjIElmIHJlc3BvbnNlIGlzIG5vdCAyMDAsIGFwcGVuZCB0aGUgcmVzcG9uc2UgdG8gZXJyb3IgYmxvY2suXG4gICAgICAgICR1dGlscy5hcHBlbmRFcnJvcigkY3R4LnJlc3VsdC5ib2R5LCBcIiRjdHgucmVzdWx0LnN0YXR1c0NvZGVcIilcbiAgICAjZW5kXG4gIGApLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.js deleted file mode 100644 index 8fff45900a611..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const logs = require("aws-cdk-lib/aws-logs"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const appsync = require("aws-cdk-lib/aws-appsync"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'AppSyncJsResolverTestStack'); -const logConfig = { - retention: logs.RetentionDays.ONE_WEEK, -}; -const api = new appsync.GraphqlApi(stack, 'JsResolverApi', { - name: 'JsResolverApi', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.js-resolver.graphql')), - logConfig, -}); -const db = new dynamodb.Table(stack, 'DynamoTable', { - partitionKey: { - name: 'id', - type: dynamodb.AttributeType.STRING, - }, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const dataSource = api.addDynamoDbDataSource('DynamoDataSource', db); -const addTestFunc = dataSource.createFunction('AddTestFunction', { - name: 'addTestFunc', - runtime: appsync.FunctionRuntime.JS_1_0_0, - code: appsync.Code.fromAsset(path.join(__dirname, 'integ-assets', 'appsync-js-resolver.js')), -}); -new appsync.Resolver(stack, 'AddTestResolver', { - api, - typeName: 'Mutation', - fieldName: 'addTest', - code: appsync.Code.fromAsset(path.join(__dirname, 'integ-assets', 'appsync-js-pipeline.js')), - runtime: appsync.FunctionRuntime.JS_1_0_0, - pipelineConfig: [addTestFunc], -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'JsResolverIntegTest', { testCases: [stack] }); -/** - * Handler that calls our api with an `addTest` Mutation - */ -const invoke = new lambda.Function(stack, 'InvokeApi', { - code: lambda.Code.fromAsset(path.join(__dirname, 'integ-assets/js-resolver-assertion')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_18_X, -}); -const addTestInvoke = integ.assertions.invokeFunction({ - functionName: invoke.functionName, - payload: JSON.stringify({ - hostname: api.graphqlUrl, - apiKey: api.apiKey, - }), -}); -/** - * Assert result returned on API has a generated ID and the passed name. - */ -addTestInvoke.assertAtPath('Payload.data.addTest.name', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('123')); -addTestInvoke.assertAtPath('Payload.data.addTest.id', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('.+')); -/** - * Generated ID of the item added in the previous handler - */ -const addTestResultId = addTestInvoke.getAttString('Payload.data.addTest.id'); -/** - * Try to find the item added in the DynamoDB data source. - */ -const getItemCall = integ.assertions.awsApiCall('DynamoDB', 'getItem', { - TableName: db.tableName, - Key: { - id: { - S: addTestResultId, - }, - }, -}); -getItemCall.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Item: { - name: { - S: '123', - }, - id: { - S: addTestResultId, - }, - }, -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuanMtcmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5qcy1yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixxREFBcUQ7QUFDckQsaURBQWlEO0FBQ2pELDZDQUE2QztBQUM3QyxtQ0FBbUM7QUFDbkMsa0VBQXVFO0FBQ3ZFLG1EQUFtRDtBQUVuRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcs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hlIGl0ZW0gYWRkZWQgaW4gdGhlIHByZXZpb3VzIGhhbmRsZXJcbiAqL1xuY29uc3QgYWRkVGVzdFJlc3VsdElkID0gYWRkVGVzdEludm9rZS5nZXRBdHRTdHJpbmcoJ1BheWxvYWQuZGF0YS5hZGRUZXN0LmlkJyk7XG5cbi8qKlxuICogVHJ5IHRvIGZpbmQgdGhlIGl0ZW0gYWRkZWQgaW4gdGhlIER5bmFtb0RCIGRhdGEgc291cmNlLlxuICovXG5jb25zdCBnZXRJdGVtQ2FsbCA9IGludGVnLmFzc2VydGlvbnMuYXdzQXBpQ2FsbCgnRHluYW1vREInLCAnZ2V0SXRlbScsIHtcbiAgVGFibGVOYW1lOiBkYi50YWJsZU5hbWUsXG4gIEtleToge1xuICAgIGlkOiB7XG4gICAgICBTOiBhZGRUZXN0UmVzdWx0SWQsXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5nZXRJdGVtQ2FsbC5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIEl0ZW06IHtcbiAgICBuYW1lOiB7XG4gICAgICBTOiAnMTIzJyxcbiAgICB9LFxuICAgIGlkOiB7XG4gICAgICBTOiBhZGRUZXN0UmVzdWx0SWQsXG4gICAgfSxcbiAgfSxcbn0pKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.js deleted file mode 100644 index f4d8fa1f027ad..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const appsync = require("aws-cdk-lib/aws-appsync"); -class GraphQLApiLambdaAuthStack extends cdk.Stack { - constructor(scope) { - super(scope, 'appsync-lambda-auth'); - const func = new lambda.Function(this, 'func', { - code: lambda.Code.fromAsset(path.join(__dirname, 'verify/lambda-tutorial')), - handler: 'lambda-tutorial.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }); - new appsync.GraphqlApi(this, 'api1', { - name: 'api1', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), - authorizationConfig: { - defaultAuthorization: { - authorizationType: appsync.AuthorizationType.LAMBDA, - lambdaAuthorizerConfig: { - handler: func, - }, - }, - }, - }); - new appsync.GraphqlApi(this, 'api2', { - name: 'api2', - schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), - authorizationConfig: { - defaultAuthorization: { - authorizationType: appsync.AuthorizationType.LAMBDA, - lambdaAuthorizerConfig: { - handler: func, - }, - }, - }, - }); - } -} -const app = new cdk.App(); -const testCase = new GraphQLApiLambdaAuthStack(app); -new integ_tests_alpha_1.IntegTest(app, 'GraphQlApiLambdaAuth', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWF1dGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sYW1iZGEtYXV0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUV2RCxtREFBbUQ7QUF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NzZXQoXG4gICAgICAgIHBhdGguam9pbihfX2Rpcm5hbWUsICdhcHBzeW5jLnRlc3QuZ3JhcGhxbCcpLFxuICAgICAgKSxcbiAgICAgIGF1dGhvcml6YXRpb25Db25maWc6IHtcbiAgICAgICAgZGVmYXVsdEF1dGhvcml6YXRpb246IHtcbiAgICAgICAgICBhdXRob3JpemF0aW9uVHlwZTogYXBwc3luYy5BdXRob3JpemF0aW9uVHlwZS5MQU1CREEsXG4gICAgICAgICAgbGFtYmRhQXV0aG9yaXplckNvbmZpZzoge1xuICAgICAgICAgICAgaGFuZGxlcjogZnVuYyxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgR3JhcGhRTEFwaUxhbWJkYUF1dGhTdGFjayhhcHApO1xubmV3IEludGVnVGVzdChhcHAsICdHcmFwaFFsQXBpTGFtYmRhQXV0aCcsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.js b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.js deleted file mode 100644 index 3b4ba468075d8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.log-retention.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_appsync_1 = require("aws-cdk-lib/aws-appsync"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'AppSyncIntegLogRetention'); -const retentionTime = aws_logs_1.RetentionDays.ONE_WEEK; -const logConfig = { - retention: retentionTime, -}; -const api = new aws_appsync_1.GraphqlApi(stack, 'GraphqlApi', { - authorizationConfig: {}, - name: 'IntegLogRetention', - schema: aws_appsync_1.SchemaFile.fromAsset((0, path_1.join)(__dirname, 'appsync.test.graphql')), - logConfig, -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -const describe = integ.assertions.awsApiCall('CloudWatchLogs', 'describeLogGroups', { - logGroupNamePrefix: api.logGroup.logGroupName, -}); -describe.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - logGroups: [ - { - logGroupName: api.logGroup.logGroupName, - retentionInDays: retentionTime, - }, - ], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9nLXJldGVudGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxvZy1yZXRlbnRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBNEI7QUFDNUIsbURBQXFEO0FBQ3JELDZDQUF5QztBQUN6QyxrRUFBdUU7QUFDdkUseURBQTRFO0FBRTVFLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztBQUd6RCxNQUFNLGFBQWEsR0FBRyx3QkFBYSxDQUFDLFFBQVEsQ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hcGkubG9nR3JvdXAubG9nR3JvdXBOYW1lLFxuICB9KTtcblxuZGVzY3JpYmUuZXhwZWN0KEV4cGVjdGVkUmVzdWx0Lm9iamVjdExpa2Uoe1xuICBsb2dHcm91cHM6IFtcbiAgICB7XG4gICAgICBsb2dHcm91cE5hbWU6IGFwaS5sb2dHcm91cC5sb2dHcm91cE5hbWUsXG4gICAgICByZXRlbnRpb25JbkRheXM6IHJldGVudGlvblRpbWUsXG4gICAgfSxcbiAgXSxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.js deleted file mode 100644 index 4e97053b4d7b2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling-hooktargets/test/integ.queue-hook.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const scaling = require("aws-cdk-lib/aws-autoscaling"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_sqs_1 = require("aws-cdk-lib/aws-sqs"); -const aws_ssm_1 = require("aws-cdk-lib/aws-ssm"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_autoscaling_hooktargets_1 = require("aws-cdk-lib/aws-autoscaling-hooktargets"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const queue = new aws_sqs_1.Queue(this, 'HookQueue'); - this.queueUrl = queue.queueUrl; - const group = new scaling.AutoScalingGroup(this, 'Group', { - vpc: new aws_ec2_1.Vpc(this, 'Vpc'), - maxCapacity: 1, - minCapacity: 0, - instanceType: aws_ec2_1.InstanceType.of(aws_ec2_1.InstanceClass.T3, aws_ec2_1.InstanceSize.SMALL), - machineImage: { - getImage: () => { - return { - osType: aws_ec2_1.OperatingSystemType.LINUX, - userData: aws_ec2_1.UserData.forLinux(), - imageId: aws_ssm_1.StringParameter.fromStringParameterName(this, 'al2022AMI', '/aws/service/ami-amazon-linux-latest/al2022-ami-kernel-default-x86_64').stringValue, - }; - }, - }, - }); - this.groupName = group.autoScalingGroupName; - const hook = group.addLifecycleHook('scaleout', { - lifecycleTransition: scaling.LifecycleTransition.INSTANCE_LAUNCHING, - notificationTarget: new aws_autoscaling_hooktargets_1.QueueHook(queue), - }); - this.hookName = hook.lifecycleHookName; - } -} -const testCase = new TestStack(app, 'integ-autoscalinghook-queue'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'queue-hook-test', { - testCases: [testCase], -}); -const setDesired = integ.assertions.awsApiCall('AutoScaling', 'setDesiredCapacity', { - AutoScalingGroupName: testCase.groupName, - DesiredCapacity: 1, -}); -const message = integ.assertions.awsApiCall('SQS', 'receiveMessage', { - QueueUrl: testCase.queueUrl, -}); -message.assertAtPath('Messages.0.Body.LifecycleTransition', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('autoscaling:EC2_INSTANCE_LAUNCHING')).waitForAssertions(); -const token = message.getAttString('Messages.0.Body.LifecycleActionToken'); -const completeAction = integ.assertions.awsApiCall('AutoScaling', 'completeLifecycleAction', { - AutoScalingGroupName: testCase.groupName, - LifecycleActionResult: 'CONTINUE', - LifecycleActionToken: token, - LifecycleHookName: testCase.hookName, -}); -setDesired.next(message.next(completeAction)); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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QWN0aW9uLFxuICApLFxuKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.js deleted file mode 100644 index b31fa07df4771..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.amazonlinux2.js +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new autoscaling.AutoScalingGroup(stack, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), - maxInstanceLifetime: cdk.Duration.days(7), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYW1hem9ubGludXgyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYW1hem9ubGludXgyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBL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9zY2FsaW5nJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWF1dG9zY2FsaW5nLWludGVnJyk7XG5cbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVlBDJywge1xuICBtYXhBenM6IDIsXG59KTtcblxubmV3IGF1dG9zY2FsaW5nLkF1dG9TY2FsaW5nR3JvdXAoc3RhY2ssICdGbGVldCcsIHtcbiAgdnBjLFxuICBpbnN0YW5jZVR5cGU6IGVjMi5JbnN0YW5jZVR5cGUub2YoZWMyLkluc3RhbmNlQ2xhc3MuQlVSU1RBQkxFMiwgZWMyLkluc3RhbmNlU2l6ZS5NSUNSTyksXG4gIG1hY2hpbmVJbWFnZTogbmV3IGVjMi5BbWF6b25MaW51eEltYWdlKHsgZ2VuZXJhdGlvbjogZWMyLkFtYXpvbkxpbnV4R2VuZXJhdGlvbi5BTUFaT05fTElOVVhfMiB9KSxcbiAgbWF4SW5zdGFuY2VMaWZldGltZTogY2RrLkR1cmF0aW9uLmRheXMoNyksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.js deleted file mode 100644 index c6e60025aa57c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-capacity-rebalance.js +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new autoscaling.AutoScalingGroup(stack, 'CapacityRebalance', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), - capacityRebalance: true, -}); -new integ.IntegTest(app, 'CapacityRebalanceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNnLWNhcGFjaXR5LXJlYmFsYW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFzZy1jYXBhY2l0eS1yZWJhbGFuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsMkRBQTJEO0FBRTNELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkJBQTJCLENBQUMsQ0FBQztBQUU5RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxN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N0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVlBDJywge1xuICBtYXhBenM6IDIsXG59KTtcblxubmV3IGF1dG9zY2FsaW5nLkF1dG9TY2FsaW5nR3JvdXAoc3RhY2ssICdDYXBhY2l0eVJlYmFsYW5jZScsIHtcbiAgdnBjLFxuICBpbnN0YW5jZVR5cGU6IGVjMi5JbnN0YW5jZVR5cGUub2YoZWMyLkluc3RhbmNlQ2xhc3MuQlVSU1RBQkxFMiwgZWMyLkluc3RhbmNlU2l6ZS5NSUNSTyksXG4gIG1hY2hpbmVJbWFnZTogbmV3IGVjMi5BbWF6b25MaW51eEltYWdlKHsgZ2VuZXJhdGlvbjogZWMyLkFtYXpvbkxpbnV4R2VuZXJhdGlvbi5BTUFaT05fTElOVVhfMiB9KSxcbiAgY2FwYWNpdHlSZWJhbGFuY2U6IHRydWUsXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdDYXBhY2l0eVJlYmFsYW5jZVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.js deleted file mode 100644 index 0ded5a89a749c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-lt.js +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); -const lt = new ec2.LaunchTemplate(stack, 'MainLT', { - instanceType: new ec2.InstanceType('t3.micro'), - machineImage: new ec2.AmazonLinuxImage({ - generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2, - cpuType: ec2.AmazonLinuxCpuType.X86_64, - }), -}); -const ltOverrideT4g = new ec2.LaunchTemplate(stack, 'T4gLT', { - instanceType: new ec2.InstanceType('t4g.micro'), - machineImage: new ec2.AmazonLinuxImage({ - generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2, - cpuType: ec2.AmazonLinuxCpuType.ARM_64, - }), -}); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new autoscaling.AutoScalingGroup(stack, 'AsgFromLT', { - vpc, - launchTemplate: lt, - minCapacity: 0, - maxCapacity: 10, - desiredCapacity: 5, -}); -new autoscaling.AutoScalingGroup(stack, 'AsgWithDefaultInstanceWarmup', { - vpc, - launchTemplate: lt, - defaultInstanceWarmup: cdk.Duration.seconds(5), -}); -new autoscaling.AutoScalingGroup(stack, 'AsgFromMip', { - vpc, - mixedInstancesPolicy: { - instancesDistribution: { - onDemandPercentageAboveBaseCapacity: 50, - }, - launchTemplate: lt, - launchTemplateOverrides: [ - { instanceType: new ec2.InstanceType('t3.micro') }, - { instanceType: new ec2.InstanceType('t3a.micro') }, - { instanceType: new ec2.InstanceType('t4g.micro'), launchTemplate: ltOverrideT4g }, - ], - }, - minCapacity: 0, - maxCapacity: 10, - desiredCapacity: 5, -}); -new autoscaling.AutoScalingGroup(stack, 'AsgFromMipWithoutDistribution', { - vpc, - mixedInstancesPolicy: { - launchTemplate: lt, - launchTemplateOverrides: [ - { instanceType: new ec2.InstanceType('t3.micro') }, - { instanceType: new ec2.InstanceType('t3a.micro') }, - { instanceType: new ec2.InstanceType('t4g.micro'), launchTemplate: ltOverrideT4g }, - ], - }, - minCapacity: 0, - maxCapacity: 10, - desiredCapacity: 5, -}); -new autoscaling.AutoScalingGroup(stack, 'AsgWithGp3Blockdevice', { - minCapacity: 0, - maxCapacity: 10, - desiredCapacity: 5, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage(), - blockDevices: [{ - deviceName: 'ebs', - mappingEnabled: true, - volume: autoscaling.BlockDeviceVolume.ebs(15, { - deleteOnTermination: true, - encrypted: true, - volumeType: autoscaling.EbsDeviceVolumeType.GP3, - throughput: 125, - }), - }], - vpc, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNnLWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXNnLWx0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMkRBQTJEO0FBRTNELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUV0RCxNQUFNLEVBQUUsR0FBRyxJQUFJLEdBQUcsQ0FBQyxjQUFjLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUNqRCxZQUFZLEVBQUUsSUFBSSxHQUFHLENBQUMsWUFBWSxDQUFDLFVBQVUsQ0FBQztJQUM5QyxZQUFZLEVBQUUsSUFBSSxHQUFHLENBQUMsZ0JBQWdCLENBQUM7UUFDckMsVUFBVSxFQUFFLEdBQUcsQ0FBQyxxQkFBcUIsQ0FBQyxjQU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WxpbmcuQmxvY2tEZXZpY2VWb2x1bWUuZWJzKDE1LCB7XG4gICAgICBkZWxldGVPblRlcm1pbmF0aW9uOiB0cnVlLFxuICAgICAgZW5jcnlwdGVkOiB0cnVlLFxuICAgICAgdm9sdW1lVHlwZTogYXV0b3NjYWxpbmcuRWJzRGV2aWNlVm9sdW1lVHlwZS5HUDMsXG4gICAgICB0aHJvdWdocHV0OiAxMjUsXG4gICAgfSksXG4gIH1dLFxuICB2cGMsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.js deleted file mode 100644 index ffc6639d338ee..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-classic-loadbalancer.js +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elb = require("aws-cdk-lib/aws-elasticloadbalancing"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-asg-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 3, -}); -const asg = new autoscaling.AutoScalingGroup(stack, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage(), -}); -const lb = new elb.LoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, - healthCheck: { - port: 80, - }, -}); -lb.addTarget(asg); -lb.addListener({ externalPort: 80 }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNnLXctY2xhc3NpYy1sb2FkYmFsYW5jZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hc2ctdy1jbGFzc2ljLWxvYWRiYWxhbmNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsNERBQTREO0FBQzVELG1DQUFtQztBQUNuQywyREFBMkQ7QUFFM0QsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxtQkFBbUIsQ0FBQyxDQUFDO0FBRXRELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFO0lBQ3BDLE1BQU0sRUFBRSxDQUFDO0NBQ1YsQ0FBQyxDQUFDO0FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxXQUFXLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTtJQUMzRCxHQUFHO0lBQ0gsWUFBWSxFQUFFLEdBQUcsQ0FBQyxZQUFZLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsVUFBVSxFQUFFLEdBQUcsQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDO0lBQ3ZGLFlBQVksRUFBRSxJQUFJ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IGluc3RhbmNlVHlwZTogZWMyLkluc3RhbmNlVHlwZS5vZihlYzIuSW5zdGFuY2VDbGFzcy5CVVJTVEFCTEUyLCBlYzIuSW5zdGFuY2VTaXplLk1JQ1JPKSxcbiAgbWFjaGluZUltYWdlOiBuZXcgZWMyLkFtYXpvbkxpbnV4SW1hZ2UoKSxcbn0pO1xuXG5jb25zdCBsYiA9IG5ldyBlbGIuTG9hZEJhbGFuY2VyKHN0YWNrLCAnTEInLCB7XG4gIHZwYyxcbiAgaW50ZXJuZXRGYWNpbmc6IHRydWUsXG4gIGhlYWx0aENoZWNrOiB7XG4gICAgcG9ydDogODAsXG4gIH0sXG59KTtcblxubGIuYWRkVGFyZ2V0KGFzZyk7XG5sYi5hZGRMaXN0ZW5lcih7IGV4dGVybmFsUG9ydDogODAgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.js deleted file mode 100644 index 5057e2863b85e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.asg-w-elbv2.js +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -class ElbV2AsgStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC', { - maxAzs: 2, - }); - const asg = new autoscaling.AutoScalingGroup(this, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage(), - }); - const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { - vpc, - internetFacing: true, - }); - const listener = lb.addListener('Listener', { - port: 80, - }); - listener.addTargets('Target', { - port: 80, - targets: [asg], - }); - listener.connections.allowDefaultPortFromAnyIpv4('Open to the world'); - asg.scaleOnRequestCount('AModestLoad', { - targetRequestsPerSecond: 1, - }); - } -} -class ElbV2AsgAtgStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC', { - maxAzs: 2, - }); - const alb = new elbv2.ApplicationLoadBalancer(this, 'alb', { - vpc, - internetFacing: true, - }); - const listener = alb.addListener('Listener', { - port: 80, - open: true, - }); - const asg = new autoscaling.AutoScalingGroup(this, 'Asg', { - vpc, - instanceType: new ec2.InstanceType('t3.micro'), - machineImage: new ec2.AmazonLinuxImage(), - }); - const atg1 = new elbv2.ApplicationTargetGroup(this, 'ATG1', { - port: 443, - vpc, - }); - const atg2 = new elbv2.ApplicationTargetGroup(this, 'ATG2', { - port: 443, - vpc, - }); - listener.addAction('tgs', { - action: aws_elasticloadbalancingv2_1.ListenerAction.weightedForward([ - { targetGroup: atg1, weight: 1 }, - { targetGroup: atg2, weight: 1 }, - ]), - }); - asg.attachToApplicationTargetGroup(atg1); - asg.attachToApplicationTargetGroup(atg2); - } -} -const app = new cdk.App(); -new integ.IntegTest(app, 'LambdaTest', { - testCases: [ - new ElbV2AsgStack(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nLCB7XG4gICAgICBhY3Rpb246IExpc3RlbmVyQWN0aW9uLndlaWdodGVkRm9yd2FyZChbXG4gICAgICAgIHsgdGFyZ2V0R3JvdXA6IGF0ZzEsIHdlaWdodDogMSB9LFxuICAgICAgICB7IHRhcmdldEdyb3VwOiBhdGcyLCB3ZWlnaHQ6IDEgfSxcbiAgICAgIF0pLFxuICAgIH0pO1xuXG4gICAgYXNnLmF0dGFjaFRvQXBwbGljYXRpb25UYXJnZXRHcm91cChhdGcxKTtcbiAgICBhc2cuYXR0YWNoVG9BcHBsaWNhdGlvblRhcmdldEdyb3VwKGF0ZzIpO1xuICB9XG59XG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0xhbWJkYVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW1xuICAgIG5ldyBFbGJWMkFzZ1N0YWNrKGFwcCwgJ2F3cy1jZGstYXNnLWludGVnJyksXG4gICAgbmV3IEVsYlYyQXNnQXRnU3RhY2soYXBwLCAnYXdzLWNkay1hc2ctYXRnLWludGVnJyksXG4gIF0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.js deleted file mode 100644 index 03ca6d723b18c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.custom-scaling.js +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const asg = new autoscaling.AutoScalingGroup(stack, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), -}); -asg.scaleOnSchedule('ScaleUpInTheMorning', { - schedule: autoscaling.Schedule.cron({ hour: '8', minute: '0' }), - minCapacity: 5, -}); -asg.scaleOnSchedule('ScaleDownAtNight', { - schedule: autoscaling.Schedule.cron({ hour: '20', minute: '0' }), - maxCapacity: 2, -}); -asg.scaleOnCpuUtilization('KeepCPUReasonable', { - targetUtilizationPercent: 50, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3VzdG9tLXNjYWxpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jdXN0b20tc2NhbGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJEQUEyRDtBQUUzRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDJCQUEyQixDQUFDLENBQUM7QUFFOUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRU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3duQXROaWdodCcsIHtcbiAgc2NoZWR1bGU6IGF1dG9zY2FsaW5nLlNjaGVkdWxlLmNyb24oeyBob3VyOiAnMjAnLCBtaW51dGU6ICcwJyB9KSxcbiAgbWF4Q2FwYWNpdHk6IDIsXG59KTtcblxuYXNnLnNjYWxlT25DcHVVdGlsaXphdGlvbignS2VlcENQVVJlYXNvbmFibGUnLCB7XG4gIHRhcmdldFV0aWxpemF0aW9uUGVyY2VudDogNTAsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.js deleted file mode 100644 index cd4ea3f592d7f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.external-role.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const asg = require("aws-cdk-lib/aws-autoscaling"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'VPC'); - const role = new iam.Role(this, 'Role', { - assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'), - }); - new asg.AutoScalingGroup(this, 'ASG', { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.MICRO), - vpc, - machineImage: new ec2.AmazonLinuxImage(), - role, - }); - } -} -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gIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAnaW50ZWctaWFtLWV4dGVybmFsLXJvbGUnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.d.ts deleted file mode 100644 index 4ef6af2cee1d8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as sns from 'aws-cdk-lib/aws-sns'; -import * as cdk from 'aws-cdk-lib'; -import * as constructs from 'constructs'; -import * as autoscaling from 'aws-cdk-lib/aws-autoscaling'; -export declare class FakeNotificationTarget implements autoscaling.ILifecycleHookTarget { - private readonly topic; - constructor(topic: sns.ITopic); - private createRole; - bind(_scope: constructs.Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig; -} -export declare class TestStack extends cdk.Stack { - constructor(scope: cdk.App, id: string, props?: cdk.StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.js deleted file mode 100644 index b7dee8da6198a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.role-target-hook.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestStack = exports.FakeNotificationTarget = void 0; -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -class FakeNotificationTarget { - constructor(topic) { - this.topic = topic; - } - createRole(scope, _role) { - let role = _role; - if (!role) { - role = new iam.Role(scope, 'Role', { - assumedBy: new iam.ServicePrincipal('autoscaling.amazonaws.com'), - }); - } - return role; - } - bind(_scope, options) { - const role = this.createRole(options.lifecycleHook, options.role); - this.topic.grantPublish(role); - return { - notificationTargetArn: this.topic.topicArn, - createdRole: role, - }; - } -} -exports.FakeNotificationTarget = FakeNotificationTarget; -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - let vpc = new ec2.Vpc(this, 'myVpcAuto', {}); - const myrole = new iam.Role(this, 'MyRole', { - assumedBy: new iam.ServicePrincipal('autoscaling.amazonaws.com'), - }); - const topic = new sns.Topic(this, 'topic', {}); - const topic2 = new sns.Topic(this, 'topic2', {}); - const asg = new autoscaling.AutoScalingGroup(this, 'ASG', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage(), - healthCheck: autoscaling.HealthCheck.ec2(), - }); - // no role or notificationTarget - new autoscaling.LifecycleHook(this, 'LCHookNoRoleNoTarget', { - autoScalingGroup: asg, - lifecycleTransition: autoscaling.LifecycleTransition.INSTANCE_TERMINATING, - }); - // no role with notificationTarget - new autoscaling.LifecycleHook(this, 'LCHookNoRoleTarget', { - notificationTarget: new FakeNotificationTarget(topic), - autoScalingGroup: asg, - lifecycleTransition: autoscaling.LifecycleTransition.INSTANCE_TERMINATING, - }); - // role with target - new autoscaling.LifecycleHook(this, 'LCHookRoleTarget', { - notificationTarget: new FakeNotificationTarget(topic2), - role: myrole, - autoScalingGroup: asg, - lifecycleTransition: autoscaling.LifecycleTransition.INSTANCE_TERMINATING, - }); - } -} -exports.TestStack = TestStack; -const app = new cdk.App(); -new TestStack(app, 'integ-role-target-hook'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucm9sZS10YXJnZXQtaG9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b2xlLFxuICAgICAgYXV0b1NjYWxpbmdHcm91cDogYXNnLFxuICAgICAgbGlmZWN5Y2xlVHJhbnNpdGlvbjogYXV0b3NjYWxpbmcuTGlmZWN5Y2xlVHJhbnNpdGlvbi5JTlNUQU5DRV9URVJNSU5BVElORyxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2ludGVnLXJvbGUtdGFyZ2V0LWhvb2snKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.js deleted file mode 100644 index 90d90962b9c1a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.spot-instances.js +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new autoscaling.AutoScalingGroup(stack, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.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FLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIjIS91c3IvYmluL2VudiBub2RlXG5pbXBvcnQgKiBhcyBlYzIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWVjMic7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgYXV0b3NjYWxpbmcgZnJvbSAnYXdzLWNkay1saWIvYXdzLWF1dG9zY2FsaW5nJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWF1dG9zY2FsaW5nLWludGVnJyk7XG5cbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVlBDJywge1xuICBtYXhBenM6IDIsXG59KTtcblxubmV3IGF1dG9zY2FsaW5nLkF1dG9TY2FsaW5nR3JvdXAoc3RhY2ssICdGbGVldCcsIHtcbiAgdnBjLFxuICBpbnN0YW5jZVR5cGU6IGVjMi5JbnN0YW5jZVR5cGUub2YoZWMyLkluc3RhbmNlQ2xhc3MuQlVSU1RBQkxFMiwgZWMyLkluc3RhbmNlU2l6ZS5NSUNSTyksXG4gIG1hY2hpbmVJbWFnZTogbmV3IGVjMi5BbWF6b25MaW51eEltYWdlKHsgZ2VuZXJhdGlvbjogZWMyLkFtYXpvbkxpbnV4R2VuZXJhdGlvbi5BTUFaT05fTElOVVhfMiB9KSxcbiAgc3BvdFByaWNlOiAnMC4yMCcsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.js b/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.js deleted file mode 100644 index e736c0239739d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-autoscaling/test/integ.warm-pool.js +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -/** - * Stack verification steps: - * - * -- aws autoscaling describe-warm-pool --auto-scaling-group-name ASG has 0 and 'Stopped' as MinSize and PoolState, respectively. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-autoscaling-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const asg = new autoscaling.AutoScalingGroup(stack, 'Fleet', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), - autoScalingGroupName: 'ASG', -}); -asg.addWarmPool(); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcud2FybS1wb29sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcud2FybS1wb29sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMkRBQTJEO0FBRTNEOzs7O0dBSUc7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ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dG8tc2NhbGluZy1ncm91cC1uYW1lIEFTRyBoYXMgMCBhbmQgJ1N0b3BwZWQnIGFzIE1pblNpemUgYW5kIFBvb2xTdGF0ZSwgcmVzcGVjdGl2ZWx5LlxuICovXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstYXV0b3NjYWxpbmctaW50ZWcnKTtcblxuY29uc3QgdnBjID0gbmV3IGVjMi5WcGMoc3RhY2ssICdWUEMnLCB7XG4gIG1heEF6czogMixcbn0pO1xuXG5jb25zdCBhc2cgPSBuZXcgYXV0b3NjYWxpbmcuQXV0b1NjYWxpbmdHcm91cChzdGFjaywgJ0ZsZWV0Jywge1xuICB2cGMsXG4gIGluc3RhbmNlVHlwZTogZWMyLkluc3RhbmNlVHlwZS5vZihlYzIuSW5zdGFuY2VDbGFzcy5CVVJTVEFCTEUyLCBlYzIuSW5zdGFuY2VTaXplLk1JQ1JPKSxcbiAgbWFjaGluZUltYWdlOiBuZXcgZWMyLkFtYXpvbkxpbnV4SW1hZ2UoeyBnZW5lcmF0aW9uOiBlYzIuQW1hem9uTGludXhHZW5lcmF0aW9uLkFNQVpPTl9MSU5VWF8yIH0pLFxuICBhdXRvU2NhbGluZ0dyb3VwTmFtZTogJ0FTRycsXG59KTtcblxuYXNnLmFkZFdhcm1Qb29sKCk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.js b/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.js deleted file mode 100644 index 7d3bb961ab0cc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-backup/test/integ.backup.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const efs = require("aws-cdk-lib/aws-efs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const backup = require("aws-cdk-lib/aws-backup"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new dynamodb.Table(this, 'Table', { - partitionKey: { - name: 'id', - type: dynamodb.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - const fs = new efs.CfnFileSystem(this, 'FileSystem'); - fs.applyRemovalPolicy(aws_cdk_lib_1.RemovalPolicy.DESTROY); - const vault = new backup.BackupVault(this, 'Vault', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - lockConfiguration: { - minRetention: aws_cdk_lib_1.Duration.days(5), - }, - }); - const secondaryVault = new backup.BackupVault(this, 'SecondaryVault', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - lockConfiguration: { - minRetention: aws_cdk_lib_1.Duration.days(5), - }, - }); - const plan = backup.BackupPlan.dailyWeeklyMonthly5YearRetention(this, 'Plan', vault); - plan.addSelection('Selection', { - resources: [ - backup.BackupResource.fromConstruct(this), - backup.BackupResource.fromTag('stage', 'prod'), // Resources that are tagged stage=prod - ], - }); - plan.addRule(new backup.BackupPlanRule({ - copyActions: [{ - destinationBackupVault: secondaryVault, - moveToColdStorageAfter: aws_cdk_lib_1.Duration.days(30), - deleteAfter: aws_cdk_lib_1.Duration.days(120), - }], - })); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-backup'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYmFja3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dGVyOiBEdXJhdGlvbi5kYXlzKDMwKSxcbiAgICAgICAgZGVsZXRlQWZ0ZXI6IER1cmF0aW9uLmRheXMoMTIwKSxcbiAgICAgIH1dLFxuICAgIH0pKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1iYWNrdXAnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.js deleted file mode 100644 index 6c9fb2bfbba02..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.certificate-name.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_certificatemanager_1 = require("aws-cdk-lib/aws-certificatemanager"); -/** - * In order to test this you need to have a valid public hosted zone that you can use - * to request certificates for. - * -*/ -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; -if (!hostedZoneId) - throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID"'); -const hostedZoneName = process.env.CDK_INTEG_HOSTED_ZONE_NAME ?? process.env.HOSTED_ZONE_NAME; -if (!hostedZoneName) - throw new Error('For this test you must provide your own HostedZoneName as an env var "HOSTED_ZONE_NAME"'); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; -if (!domainName) - throw new Error('For this test you must provide your own Domain Name as an env var "DOMAIN_NAME"'); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-certificate-name'); -const hostedZone = aws_route53_1.PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId, - zoneName: hostedZoneName, -}); -new aws_certificatemanager_1.Certificate(stack, 'Certificate', { - domainName, - certificateName: 'This is a test name', - validation: aws_certificatemanager_1.CertificateValidation.fromDns(hostedZone), -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-test', { - testCases: [stack], - diffAssets: true, - enableLookups: true, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2VydGlmaWNhdGUtbmFtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNlcnRpZmljYXRlLW5hbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBMkQ7QUFDM0QsNkNBQXlDO0FBQ3pDLGtFQUF1RDtBQUN2RCwrRUFBd0Y7QUFFeEY7Ozs7RUFJRTtBQUNGLE1BQU0sWUFBWSxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsd0JBQXdCLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUM7QUFDeEYsSUFBSSxDQUFDLFlBQVk7SUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLHFGQUFxRixDQUFDLENBQUM7QUFDMUgsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQywwQkFBMEIsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLGdCQUFnQixDQUFDO0FBQzlGLElBQUksQ0FBQyxjQU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lbnYuRE9NQUlOX05BTUU7XG5pZiAoIWRvbWFpbk5hbWUpIHRocm93IG5ldyBFcnJvcignRm9yIHRoaXMgdGVzdCB5b3UgbXVzdCBwcm92aWRlIHlvdXIgb3duIERvbWFpbiBOYW1lIGFzIGFuIGVudiB2YXIgXCJET01BSU5fTkFNRVwiJyk7XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2ludGVnLWNlcnRpZmljYXRlLW5hbWUnKTtcbmNvbnN0IGhvc3RlZFpvbmUgPSBQdWJsaWNIb3N0ZWRab25lLmZyb21Ib3N0ZWRab25lQXR0cmlidXRlcyhzdGFjaywgJ0hvc3RlZFpvbmUnLCB7XG4gIGhvc3RlZFpvbmVJZCxcbiAgem9uZU5hbWU6IGhvc3RlZFpvbmVOYW1lLFxufSk7XG5cbm5ldyBDZXJ0aWZpY2F0ZShzdGFjaywgJ0NlcnRpZmljYXRlJywge1xuICBkb21haW5OYW1lLFxuICBjZXJ0aWZpY2F0ZU5hbWU6ICdUaGlzIGlzIGEgdGVzdCBuYW1lJyxcbiAgdmFsaWRhdGlvbjogQ2VydGlmaWNhdGVWYWxpZGF0aW9uLmZyb21EbnMoaG9zdGVkWm9uZSksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdpbnRlZy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGRpZmZBc3NldHM6IHRydWUsXG4gIGVuYWJsZUxvb2t1cHM6IHRydWUsXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.js b/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.js deleted file mode 100644 index 5ed5f7a1f3141..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-certificatemanager/test/integ.dns-validated-certificate.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_certificatemanager_1 = require("aws-cdk-lib/aws-certificatemanager"); -/** - * In order to test this you need to have a valid public hosted zone that you can use - * to request certificates for. Currently there is not a great way to test scenarios that involve - * multiple deploys so this is what I did to test these scenarios. - * - * 1. comment out the `cert.applyRemovalPolicy` line to create the certificate - * 2. Run `yarn integ --update-on-failed --no-clean` - * 3. uncomment the line to apply the removal policy - * 4. Run `yarn integ --update-on-failed --no-clean` to validate that changing - * that property does not cause a new certificate to be created - * 5. Run `yarn integ --force` to run the test again. Since we didn't pass `--no-clean` - * the stack will be deleted - * 6. Validate that the certificate was not deleted. - * 7. Delete the certificate manually. - */ -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; -if (!hostedZoneId) - throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID"'); -const hostedZoneName = process.env.CDK_INTEG_HOSTED_ZONE_NAME ?? process.env.HOSTED_ZONE_NAME; -if (!hostedZoneName) - throw new Error('For this test you must provide your own HostedZoneName as an env var "HOSTED_ZONE_NAME"'); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; -if (!domainName) - throw new Error('For this test you must provide your own Domain Name as an env var "DOMAIN_NAME"'); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-dns-validated-certificate'); -const hostedZone = aws_route53_1.PublicHostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId, - zoneName: hostedZoneName, -}); -const cert = new aws_certificatemanager_1.DnsValidatedCertificate(stack, 'Certificate', { - domainName, - hostedZone, - validation: aws_certificatemanager_1.CertificateValidation.fromDns(hostedZone), -}); -cert.applyRemovalPolicy(aws_cdk_lib_1.RemovalPolicy.RETAIN); -new aws_cdk_lib_1.CfnOutput(stack, 'CertificateArn', { - value: `https://${stack.region}.console.aws.amazon.com/acm/home?region=${stack.region}#/certificates/${aws_cdk_lib_1.Fn.select(1, aws_cdk_lib_1.Fn.split('/', cert.certificateArn))}`, -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-test', { - testCases: [stack], - diffAssets: true, - enableLookups: true, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZG5zLXZhbGlkYXRlZC1jZXJ0aWZpY2F0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRucy12YWxpZGF0ZWQtY2VydGlmaWNhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBMkQ7QUFDM0QsNkNBQXVFO0FBQ3ZFLGtFQUF1RDtBQUN2RCwrRUFBb0c7QUFFcEc7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxNQUFNLFlBQVksR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDO0FBQ3hGLElBQUksQ0FBQyxZQUFZO0lBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxxRkFBcUYsQ0FBQyxDQUFDO0FBQzFILE1BQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsMEJBQTBCLElBQUksT0FBTyxDQ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nQuYXBwbHlSZW1vdmFsUG9saWN5KFJlbW92YWxQb2xpY3kuUkVUQUlOKTtcbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdDZXJ0aWZpY2F0ZUFybicsIHtcbiAgdmFsdWU6IGBodHRwczovLyR7c3RhY2sucmVnaW9ufS5jb25zb2xlLmF3cy5hbWF6b24uY29tL2FjbS9ob21lP3JlZ2lvbj0ke3N0YWNrLnJlZ2lvbn0jL2NlcnRpZmljYXRlcy8ke0ZuLnNlbGVjdCgxLCBGbi5zcGxpdCgnLycsIGNlcnQuY2VydGlmaWNhdGVBcm4pKX1gLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW50ZWctdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBkaWZmQXNzZXRzOiB0cnVlLFxuICBlbmFibGVMb29rdXBzOiB0cnVlLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.js b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.js deleted file mode 100644 index 61b4ba7a1250c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-guardrails.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const chatbot = require("aws-cdk-lib/aws-chatbot"); -class ChatbotGuardrailsInteg extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const guardrailPolicy = iam.ManagedPolicy.fromAwsManagedPolicyName('CloudWatchReadOnlyAccess'); - new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', { - slackChannelConfigurationName: 'test-channel', - slackWorkspaceId: 'T49239U4W', - slackChannelId: 'C0187JABUE9', - guardrailPolicies: [guardrailPolicy], - }); - } -} -const app = new cdk.App(); -new ChatbotGuardrailsInteg(app, 'ChatbotGuardrailsInteg'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2hhdGJvdC1ndWFyZHJhaWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2hhdGJvdC1ndWFyZHJhaWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxtREFBbUQ7QUFFbkQsTUFBTSxzQkFBdUIsU0FBUSxHQUFHLENBQUMsS0FBSztJQUM1QyxZQUFZLEtBQWMsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDNUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxlQUFlLEdBQUcsR0FBRyxDQUFDLGFBQWEsQ0FBQyx3QkFBd0IsQ0FBQywwQkFBMEIsQ0FBQyxDQUFDO1FBRS9GLElBQUksT0FBTyxDQUFDLHlCQUF5QixDQUFDLElBQUksRUFBRSxnQkFBZ0IsRUFBRTtZQUM1RCw2QkFBNkIsRUFBRSxjQUFjO1lBQzdDLGdCQUFnQixFQUFFLFdBQVc7WUFDN0IsY0FBYyxFQUFFLGFBQWE7WUFDN0IsaUJBQWlCLEVBQUUsQ0FBQyxlQUFlLENBQUM7U0FDckMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBRUQsTUFBTSxHQUFHLEdBQ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gIGd1YXJkcmFpbFBvbGljaWVzOiBbZ3VhcmRyYWlsUG9saWN5XSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgQ2hhdGJvdEd1YXJkcmFpbHNJbnRlZyhhcHAsICdDaGF0Ym90R3VhcmRyYWlsc0ludGVnJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.js b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.js deleted file mode 100644 index 401dfa07cf8ad..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot-logretention.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const logs = require("aws-cdk-lib/aws-logs"); -const cdk = require("aws-cdk-lib"); -const chatbot = require("aws-cdk-lib/aws-chatbot"); -class ChatbotLogRetentionInteg extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', { - slackChannelConfigurationName: 'test-channel', - slackWorkspaceId: 'T49239U4W', - slackChannelId: 'C0187JABUE9', - loggingLevel: chatbot.LoggingLevel.NONE, - logRetention: logs.RetentionDays.ONE_MONTH, - }); - slackChannel.addToRolePolicy(new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: [ - 's3:GetObject', - ], - resources: ['arn:aws:s3:::abc/xyz/123.txt'], - })); - } -} -const app = new cdk.App(); -new ChatbotLogRetentionInteg(app, 'ChatbotLogRetentionInteg'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2hhdGJvdC1sb2dyZXRlbnRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jaGF0Ym90LWxvZ3JldGVudGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyw2Q0FBNkM7QUFDN0MsbUNBQW1DO0FBQ25DLG1EQUFtRDtBQUVuRCxNQUFNLHdCQUF5QixTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzlDLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLFlBQVksR0FBRyxJQUFJLE9BQU8sQ0FBQyx5QkFBeUIsQ0FBQyxJQUFJLEVBQUUsZ0JBQWdCLEVBQUU7WUFDakYsNkJBQTZCLEVBQUUsY0FBYztZQUM3QyxnQkFBZ0IsRUFBRSxXQUFXO1lBQzdCLGNBQWMsRUFBRSxhQUFhO1lBQzdCLFlBQVksRUFBRSxPQUFPLENBQUMsWUFBWSxDQUFDLElBQUk7WUFDdkMsWUFBWSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsU0FBUztTQUMzQyxDQUFDLENBQUM7UUFFSCxZQUFZLENBQUMsZUFBZSxDQUFDLElBQUksR0FBRyxDQUFDLGVBQWUsQ0FBQztZQUNuRCxNQUFNLEVBQUUsR0FBRyxDQUFDLE1BQU0sQ0FBQyxLQUFLO1lBQ3hCLE9BQU8sRUFBRTtnQkFDUCxjQUFjO2FBQ2Y7WUFDRCxTQUFTLEVBQUUsQ0FBQ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8geW91ciBzbGFjayBjaGFubmVsIGlkXG4gICAgICBsb2dnaW5nTGV2ZWw6IGNoYXRib3QuTG9nZ2luZ0xldmVsLk5PTkUsXG4gICAgICBsb2dSZXRlbnRpb246IGxvZ3MuUmV0ZW50aW9uRGF5cy5PTkVfTU9OVEgsXG4gICAgfSk7XG5cbiAgICBzbGFja0NoYW5uZWwuYWRkVG9Sb2xlUG9saWN5KG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgICAgIGVmZmVjdDogaWFtLkVmZmVjdC5BTExPVyxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAgJ3MzOkdldE9iamVjdCcsXG4gICAgICBdLFxuICAgICAgcmVzb3VyY2VzOiBbJ2Fybjphd3M6czM6OjphYmMveHl6LzEyMy50eHQnXSxcbiAgICB9KSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxubmV3IENoYXRib3RMb2dSZXRlbnRpb25JbnRlZyhhcHAsICdDaGF0Ym90TG9nUmV0ZW50aW9uSW50ZWcnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.js b/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.js deleted file mode 100644 index d38ea6740182e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-chatbot/test/integ.chatbot.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const chatbot = require("aws-cdk-lib/aws-chatbot"); -class ChatbotInteg extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel', { - slackChannelConfigurationName: 'test-channel', - slackWorkspaceId: 'T49239U4W', - slackChannelId: 'C0187JABUE9', - loggingLevel: chatbot.LoggingLevel.NONE, - }); - slackChannel.addToRolePolicy(new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: [ - 's3:GetObject', - ], - resources: ['arn:aws:s3:::abc/xyz/123.txt'], - })); - } -} -const app = new cdk.App(); -new ChatbotInteg(app, 'ChatbotInteg'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2hhdGJvdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNoYXRib3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG1EQUFtRDtBQUVuRCxNQUFNLFlBQWEsU0FBUSxHQUFHLENBQUMsS0FBSztJQUNsQyxZQUFZLEtBQWMsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDNUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxZQUFZLEdBQUcsSUFBSSxPQUFPLENBQUMseUJBQXlCLENBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFFO1lBQ2pGLDZCQUE2QixFQUFFLGNBQWM7WUFDN0MsZ0JBQWdCLEVBQUUsV0FBVztZQUM3QixjQUFjLEVBQUUsYUFBYTtZQUM3QixZQUFZLEVBQUUsT0FBTyxDQUFDLFlBQVksQ0FBQyxJQUFJO1NBQ3hDLENBQUMsQ0FBQztRQUVILFlBQVksQ0FBQyxlQUFlLENB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IHdvcmtzcGFjZSBpZFxuICAgICAgc2xhY2tDaGFubmVsSWQ6ICdDMDE4N0pBQlVFOScsIC8vIG1vZGlmeSB0byB5b3VyIHNsYWNrIGNoYW5uZWwgaWRcbiAgICAgIGxvZ2dpbmdMZXZlbDogY2hhdGJvdC5Mb2dnaW5nTGV2ZWwuTk9ORSxcbiAgICB9KTtcblxuICAgIHNsYWNrQ2hhbm5lbC5hZGRUb1JvbGVQb2xpY3kobmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoe1xuICAgICAgZWZmZWN0OiBpYW0uRWZmZWN0LkFMTE9XLFxuICAgICAgYWN0aW9uczogW1xuICAgICAgICAnczM6R2V0T2JqZWN0JyxcbiAgICAgIF0sXG4gICAgICByZXNvdXJjZXM6IFsnYXJuOmF3czpzMzo6OmFiYy94eXovMTIzLnR4dCddLFxuICAgIH0pKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgQ2hhdGJvdEludGVnKGFwcCwgJ0NoYXRib3RJbnRlZycpO1xuXG5hcHAuc3ludGgoKTtcblxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.d.ts deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.js deleted file mode 100644 index cce6804af247b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/asset-directory-fixture/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -/* eslint-disable no-console */ -exports.handler = async (evt) => { - console.error(JSON.stringify(evt, undefined, 2)); - return 'hello, world!'; -}; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0JBQStCO0FBRS9CLE9BQU8sQ0FBQyxPQUFPLEdBQUcsS0FBSyxFQUFFLEdBQVEsRUFBRSxFQUFFO0lBQ25DLE9BQU8sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDakQsT0FBTyxlQUFlLENBQUM7QUFDekIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuXG5leHBvcnRzLmhhbmRsZXIgPSBhc3luYyAoZXZ0OiBhbnkpID0+IHtcbiAgY29uc29sZS5lcnJvcihKU09OLnN0cmluZ2lmeShldnQsIHVuZGVmaW5lZCwgMikpO1xuICByZXR1cm4gJ2hlbGxvLCB3b3JsZCEnO1xufTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.d.ts deleted file mode 100644 index ecf4e703f2422..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare function handler(event: any): { - PhysicalResourceId: any; - Data: any; -}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.js deleted file mode 100644 index efc1b5a46c8e5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/core-custom-resource-provider-fixture/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -/* eslint-disable no-console */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -function handler(event) { - console.log('I am a custom resource'); - console.log({ ...event, ResponseURL: undefined }); - return { - PhysicalResourceId: event.ResourceProperties.physicalResourceId, - Data: event.ResourceProperties.attributes, - }; -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0JBQStCOzs7QUFFL0IsU0FBZ0IsT0FBTyxDQUFDLEtBQVU7SUFDaEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyx3QkFBd0IsQ0FBQyxDQUFDO0lBQ3RDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxHQUFHLEtBQUssRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQztJQUNsRCxPQUFPO1FBQ0wsa0JBQWtCLEVBQUUsS0FBSyxDQUFDLGtCQUFrQixDQUFDLGtCQUFrQjtRQUMvRCxJQUFJLEVBQUUsS0FBSyxDQUFDLGtCQUFrQixDQUFDLFVBQVU7S0FDMUMsQ0FBQztBQUNKLENBQUM7QUFQRCwwQkFPQyIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLWNvbnNvbGUgKi9cblxuZXhwb3J0IGZ1bmN0aW9uIGhhbmRsZXIoZXZlbnQ6IGFueSkge1xuICBjb25zb2xlLmxvZygnSSBhbSBhIGN1c3RvbSByZXNvdXJjZScpO1xuICBjb25zb2xlLmxvZyh7IC4uLmV2ZW50LCBSZXNwb25zZVVSTDogdW5kZWZpbmVkIH0pO1xuICByZXR1cm4ge1xuICAgIFBoeXNpY2FsUmVzb3VyY2VJZDogZXZlbnQuUmVzb3VyY2VQcm9wZXJ0aWVzLnBoeXNpY2FsUmVzb3VyY2VJZCxcbiAgICBEYXRhOiBldmVudC5SZXNvdXJjZVByb3BlcnRpZXMuYXR0cmlidXRlcyxcbiAgfTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.js deleted file mode 100644 index b14a705f44982..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-cross-region-references.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_sqs_1 = require("aws-cdk-lib/aws-sqs"); -const aws_ssm_1 = require("aws-cdk-lib/aws-ssm"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const constructs_1 = require("constructs"); -// GIVEN -const app = new aws_cdk_lib_1.App({ - treeMetadata: false, -}); -class ProducerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id, { - env: { - region: 'us-east-1', - }, - crossRegionReferences: true, - }); - const nested = new aws_cdk_lib_1.NestedStack(this, 'IntegNested'); - this.queue = new aws_sqs_1.Queue(this, 'IntegQueue'); - this.nestedQueue = new aws_sqs_1.Queue(nested, 'NestedIntegQueue'); - } -} -class ConsumerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, { - ...props, - env: { - region: 'us-east-2', - }, - crossRegionReferences: true, - }); - const nested = new aws_cdk_lib_1.NestedStack(this, 'IntegNested'); - props.queues.forEach((queue, i) => { - new aws_ssm_1.StringParameter(this, 'IntegParameter' + i, { - parameterName: 'integ-parameter' + i, - stringValue: queue.queueName, - }); - new aws_ssm_1.StringParameter(nested, 'IntegNestedParameter' + i, { - parameterName: 'integ-nested-parameter' + i, - stringValue: queue.queueName, - }); - }); - } -} -class TestCase extends constructs_1.Construct { - constructor(scope, id) { - super(scope, id); - this.producer = new ProducerStack(app, 'cross-region-producer'); - this.testCase = new ConsumerStack(app, 'cross-region-consumer', { - queues: [this.producer.queue, this.producer.nestedQueue], - }); - } -} -const testCase1 = new TestCase(app, 'TestCase1'); -// THEN -const integ = new integ_tests_alpha_1.IntegTest(app, 'cross-region-references', { - testCases: [testCase1.testCase], - stackUpdateWorkflow: false, -}); -/** - * Test that if the references are still in use, deleting the producer - * stack will fail - * - * When the test cleans up it will delete the consumer then the producer, which should - * test that the parameters are cleaned up correctly. - */ -integ.assertions.awsApiCall('CloudFormation', 'deleteStack', { - StackName: testCase1.producer.stackName, -}).next(integ.assertions.awsApiCall('CloudFormation', 'describeStacks', { - StackName: testCase1.producer.stackName, -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Stacks: integ_tests_alpha_1.Match.arrayWith([ - integ_tests_alpha_1.Match.objectLike({ - StackName: testCase1.producer.stackName, - StackStatus: 'DELETE_FAILED', - }), - ]), -})).waitForAssertions()); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29yZS1jcm9zcy1yZWdpb24tcmVmZXJlbmNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNvcmUtY3Jvc3MtcmVnaW9uLXJlZmVyZW5jZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBb0Q7QUFDcEQsaURBQXNEO0FBQ3RELDZD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ubmV4dChcbiAgaW50ZWcuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdDbG91ZEZvcm1hdGlvbicsICdkZXNjcmliZVN0YWNrcycsIHtcbiAgICBTdGFja05hbWU6IHRlc3RDYXNlMS5wcm9kdWNlci5zdGFja05hbWUsXG4gIH0pLmV4cGVjdChFeHBlY3RlZFJlc3VsdC5vYmplY3RMaWtlKHtcbiAgICBTdGFja3M6IE1hdGNoLmFycmF5V2l0aChbXG4gICAgICBNYXRjaC5vYmplY3RMaWtlKHtcbiAgICAgICAgU3RhY2tOYW1lOiB0ZXN0Q2FzZTEucHJvZHVjZXIuc3RhY2tOYW1lLFxuICAgICAgICBTdGFja1N0YXR1czogJ0RFTEVURV9GQUlMRUQnLFxuICAgICAgfSksXG4gICAgXSksXG4gIH0pKS53YWl0Rm9yQXNzZXJ0aW9ucygpLFxuKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.js deleted file mode 100644 index 74fcefa103d1a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-custom-resources.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/* - * Stack verification steps: - * - Deploy with `--no-clean` - * - Verify that the CloudFormation stack outputs have the following values: - * - Ref: "MyPhysicalReflectBack" - * - GetAtt.Attribute1: "foo" - * - GetAtt.Attribute2: 1234 - */ -const aws_cdk_lib_1 = require("aws-cdk-lib"); -/* eslint-disable @aws-cdk/no-core-construct */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const resourceType = 'Custom::Reflect'; - const lengthyResourceType = 'Custom::Given_Resource_Type_Is_Exactly_Sixty_Characters_Long'; - const serviceToken = aws_cdk_lib_1.CustomResourceProvider.getOrCreate(this, resourceType, { - codeDirectory: `${__dirname}/core-custom-resource-provider-fixture`, - runtime: aws_cdk_lib_1.CustomResourceProviderRuntime.NODEJS_14_X, - description: 'veni vidi vici', - }); - const cr = new aws_cdk_lib_1.CustomResource(this, 'MyResource', { - resourceType, - serviceToken, - properties: { - physicalResourceId: 'MyPhysicalReflectBack', - attributes: { - Attribute1: 'foo', - Attribute2: 1234, - }, - }, - }); - new aws_cdk_lib_1.CustomResource(this, 'MyLengthyTypeResource', { - resourceType: lengthyResourceType, - serviceToken, - properties: { - physicalResourceId: 'MyPhysicalLengthyType', - }, - }); - new aws_cdk_lib_1.CfnOutput(this, 'Ref', { value: cr.ref }); - new aws_cdk_lib_1.CfnOutput(this, 'GetAtt.Attribute1', { value: aws_cdk_lib_1.Token.asString(cr.getAtt('Attribute1')) }); - new aws_cdk_lib_1.CfnOutput(this, 'GetAtt.Attribute2', { value: aws_cdk_lib_1.Token.asString(cr.getAtt('Attribute2')) }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'custom-resource-test'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29yZS1jdXN0b20tcmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29yZS1jdXN0b20tcmVzb3VyY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7Ozs7R0FPRztBQUNILDZDQUFrSTtBQUdsSSwrQ0FBK0M7QUFFL0MsTUFBTSxTQUFVLFNBQV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1dGUxOiAnZm9vJyxcbiAgICAgICAgICBBdHRyaWJ1dGUyOiAxMjM0LFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9KTtcblxuICAgIG5ldyBDdXN0b21SZXNvdXJjZSh0aGlzLCAnTXlMZW5ndGh5VHlwZVJlc291cmNlJywge1xuICAgICAgcmVzb3VyY2VUeXBlOiBsZW5ndGh5UmVzb3VyY2VUeXBlLFxuICAgICAgc2VydmljZVRva2VuLFxuICAgICAgcHJvcGVydGllczoge1xuICAgICAgICBwaHlzaWNhbFJlc291cmNlSWQ6ICdNeVBoeXNpY2FsTGVuZ3RoeVR5cGUnLFxuICAgICAgfSxcbiAgICB9KTtcblxuICAgIG5ldyBDZm5PdXRwdXQodGhpcywgJ1JlZicsIHsgdmFsdWU6IGNyLnJlZiB9KTtcbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdHZXRBdHQuQXR0cmlidXRlMScsIHsgdmFsdWU6IFRva2VuLmFzU3RyaW5nKGNyLmdldEF0dCgnQXR0cmlidXRlMScpKSB9KTtcbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdHZXRBdHQuQXR0cmlidXRlMicsIHsgdmFsdWU6IFRva2VuLmFzU3RyaW5nKGNyLmdldEF0dCgnQXR0cmlidXRlMicpKSB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2N1c3RvbS1yZXNvdXJjZS10ZXN0Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.js deleted file mode 100644 index 8fa7284d13455..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.core-deps.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/* - * Real replaceDependency use case to test - * - * TestStack verification steps: - * - Deploy with `--no-clean` - * - Verify that the CloudFormation stack LogRetention CfnResource dependencies list CustomPolicy, not DefaultPolicy - * - * TestNestedStack verification steps: - * - Deploy with `--no-clean` - * - Verify that Stack2 lists Stack1 in DependsOn - */ -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - new lambda.Function(this, 'MyLambda', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - logRetention: aws_logs_1.RetentionDays.ONE_DAY, - }); - const logRetentionFunction = this.node.tryFindChild('LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a'); - const serviceRole = logRetentionFunction.node.tryFindChild('ServiceRole'); - const defaultPolicy = serviceRole.node.tryFindChild('DefaultPolicy').node.defaultChild; - const customPolicy = new iam.CfnManagedPolicy(this, 'CustomPolicy', { - policyDocument: defaultPolicy.policyDocument, - roles: defaultPolicy.roles, - }); - const logRetentionResource = logRetentionFunction.node.tryFindChild('Resource'); - // Without replacing the dependency, Cfn will reject the template because it references this non-existent logical id - logRetentionResource.replaceDependency(defaultPolicy, customPolicy); - serviceRole.node.tryRemoveChild('DefaultPolicy'); - } -} -class TestNestedStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const stack1 = new aws_cdk_lib_1.NestedStack(this, 'Stack1'); - const stack2 = new aws_cdk_lib_1.NestedStack(this, 'Stack2'); - const resource1 = new lambda.Function(stack1, 'Lambda1', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }).node.defaultChild; - const resource2 = new lambda.Function(stack2, 'Lambda2', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }).node.defaultChild; - // The following two statements should cancel each other out - resource1.addDependency(resource2); - resource1.removeDependency(resource2); - resource2.addDependency(resource1); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'replace-depends-on-test'); -const nestedStack = new TestNestedStack(app, 'nested-stack-depends-test'); -new integ.IntegTest(app, 'DependsOnTest', { - testCases: [stack, nestedStack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29yZS1kZXBzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29yZS1kZXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7Ozs7Ozs7R0FVRztBQUNILDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsbURBQXFEO0FBQ3JELDZDQUFtRTtBQUNuRSxvREFBb0Q7QUFHcEQsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVU7UUFDdEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNqQixJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUNwQyxJQUFJLEVBQUUsSUFBSSxNQUFNLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQztZQUNsQyxPQUFPLEVBQUUsZUFBZTtZQUN4QixPQUFPLEVBQ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-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.js deleted file mode 100644 index a8a93b9749f36..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stack.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const sns_subscriptions = require("aws-cdk-lib/aws-sns-subscriptions"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -class MyNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id, props) { - const topicNamePrefixLogicalId = 'TopicNamePrefix'; - super(scope, id, { - parameters: { - [topicNamePrefixLogicalId]: props.topicNamePrefix, // pass in a parameter to the nested stack - }, - description: props.description, - }); - const topicNamePrefixParameter = new aws_cdk_lib_1.CfnParameter(this, 'TopicNamePrefix', { type: 'String' }); - for (let i = 0; i < props.topicCount; ++i) { - const topic = new sns.Topic(this, `topic-${i}`, { displayName: `${topicNamePrefixParameter.valueAsString}-${i}` }); - // since the subscription resources are defined in the subscriber's stack, this - // will add an SNS subscription resource to the parent stack that reference this topic. - if (props.subscriber) { - topic.addSubscription(new sns_subscriptions.SqsSubscription(props.subscriber)); - } - } - if (props.subscriber) { - new lambda.Function(this, 'fn', { - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline('console.error("hi")'), - handler: 'index.handler', - environment: { - TOPIC_ARN: props.siblingTopic?.topicArn ?? '', - QUEUE_URL: props.subscriber.queueUrl, // nested stack references a resource in the parent - }, - }); - } - } -} -class MyTestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const queue = new sqs.Queue(this, 'SubscriberQueue'); - new MyNestedStack(this, 'NestedStack1', { topicCount: 3, topicNamePrefix: 'Prefix1', subscriber: queue }); - new MyNestedStack(this, 'NestedStack2', { topicCount: 2, topicNamePrefix: 'Prefix2', description: 'This is secound nested stack.' }); - } -} -const app = new aws_cdk_lib_1.App(); -new MyTestStack(app, 'nested-stacks-test'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubmVzdGVkLXN0YWNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELDJDQUEyQztBQUMzQyx1RUFBdUU7QUFDdkUsMkNBQTJDO0FBQzNDLDZDQUFvRTtBQWFwRSxNQUFNLGFBQWMsU0FBUSx5QkFBVztJQUNyQyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQXlCO1FBQ2pFLE1BQU0sd0JBQXdCLEdBQUcsaUJBQWlCLENBQUM7UUFFbkQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUU7WUFDZixVQUFVLEVBQUU7Z0JBQ1YsQ0FBQyx3QkFBd0IsQ0FBQyxFQUFFLEtBQUssQ0FBQyxlQUFlLEVBQUUsMENBQTBDO2FBQzlGO1lBQ0QsV0FBVyxFQUFFLEtBQUssQ0FBQyxXQUFXO1NBQy9CLENBQUMsQ0FBQztRQUVILE1BQU0sd0JBQXdCLEdBQUcsSUFBSSwwQkFBWSxDQUFDLElBQUksRUFBRSxpQkFBaUIsRUFBRSxFQUFFLElBQUksRUFBRSxRQ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BpYz8udG9waWNBcm4gPz8gJycsXG4gICAgICAgICAgUVVFVUVfVVJMOiBwcm9wcy5zdWJzY3JpYmVyLnF1ZXVlVXJsLCAvLyBuZXN0ZWQgc3RhY2sgcmVmZXJlbmNlcyBhIHJlc291cmNlIGluIHRoZSBwYXJlbnRcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxufVxuXG5jbGFzcyBNeVRlc3RTdGFjayBleHRlbmRzIFN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCk7XG5cbiAgICBjb25zdCBxdWV1ZSA9IG5ldyBzcXMuUXVldWUodGhpcywgJ1N1YnNjcmliZXJRdWV1ZScpO1xuXG4gICAgbmV3IE15TmVzdGVkU3RhY2sodGhpcywgJ05lc3RlZFN0YWNrMScsIHsgdG9waWNDb3VudDogMywgdG9waWNOYW1lUHJlZml4OiAnUHJlZml4MScsIHN1YnNjcmliZXI6IHF1ZXVlIH0pO1xuICAgIG5ldyBNeU5lc3RlZFN0YWNrKHRoaXMsICdOZXN0ZWRTdGFjazInLCB7IHRvcGljQ291bnQ6IDIsIHRvcGljTmFtZVByZWZpeDogJ1ByZWZpeDInLCBkZXNjcmlwdGlvbjogJ1RoaXMgaXMgc2Vjb3VuZCBuZXN0ZWQgc3RhY2suJyB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgTXlUZXN0U3RhY2soYXBwLCAnbmVzdGVkLXN0YWNrcy10ZXN0Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.js deleted file mode 100644 index 37ab96a99fad5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-assets.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -/* eslint-disable @aws-cdk/no-core-construct */ -class MyNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id) { - super(scope, id); - new lambda.Function(this, 'Handler', { - code: lambda.Code.fromAsset(path.join(__dirname, 'asset-directory-fixture')), - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - }); - } -} -class ParentStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - new MyNestedStack(this, 'Nested'); - } -} -const app = new aws_cdk_lib_1.App(); -new ParentStack(app, 'nested-stacks-assets'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1hc3NldHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXN0ZWQtc3RhY2tzLWFzc2V0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixpREFBaUQ7QUFDakQsNkNBQXNEO0FBR3RELCtDQUErQztBQUUvQyxNQUFNLGFBQWMsU0FBUSx5QkFBVztJQUNyQyxZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0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Xh0ZW5kcyBOZXN0ZWRTdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgbmV3IGxhbWJkYS5GdW5jdGlvbih0aGlzLCAnSGFuZGxlcicsIHtcbiAgICAgIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21Bc3NldChwYXRoLmpvaW4oX19kaXJuYW1lLCAnYXNzZXQtZGlyZWN0b3J5LWZpeHR1cmUnKSksXG4gICAgICBydW50aW1lOiBsYW1iZGEuUnVudGltZS5OT0RFSlNfMTRfWCxcbiAgICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgICB9KTtcbiAgfVxufVxuXG5jbGFzcyBQYXJlbnRTdGFjayBleHRlbmRzIFN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCk7XG5cbiAgICBuZXcgTXlOZXN0ZWRTdGFjayh0aGlzLCAnTmVzdGVkJyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFBhcmVudFN0YWNrKGFwcCwgJ25lc3RlZC1zdGFja3MtYXNzZXRzJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.js deleted file mode 100644 index af63c271a3088..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi-refs.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const app = new aws_cdk_lib_1.App(); -const top = new aws_cdk_lib_1.Stack(app, 'nested-stacks-multi-refs'); -const level1 = new sns.Topic(top, 'Level1'); -const nested1 = new aws_cdk_lib_1.NestedStack(top, 'Nested1'); -const nested2 = new aws_cdk_lib_1.NestedStack(nested1, 'Nested2'); -const nested3 = new aws_cdk_lib_1.NestedStack(nested2, 'Nested3'); -// WHEN -const level2 = new sns.Topic(nested2, 'Level2ReferencesLevel1', { - displayName: shortName(level1.topicName), -}); -new sns.Topic(nested3, 'Level3ReferencesLevel1', { - displayName: shortName(level1.topicName), -}); -new sns.Topic(nested3, 'Level3ReferencesLevel2', { - displayName: shortName(level2.topicName), -}); -app.synth(); -// topicName is too long for displayName, so just take the second part: -// Stack1-NestedUnderStack1NestedStackNestedUnderStack1NestedStackResourceF616305B-EM64TEGA04J9-TopicInNestedUnderStack115E329C4-HEO7NLYC1AFL -function shortName(topicName) { - return aws_cdk_lib_1.Fn.select(1, aws_cdk_lib_1.Fn.split('-', topicName)); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1tdWx0aS1yZWZzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubmVzdGVkLXN0YWNrcy1tdWx0aS1yZWZzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDZDQUEwRDtBQUUxRCxNQUFNLEdBQUcsR0FBRyxJQUFJL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cmVuY2VzTGV2ZWwyJywge1xuICBkaXNwbGF5TmFtZTogc2hvcnROYW1lKGxldmVsMi50b3BpY05hbWUpLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuXG4vLyB0b3BpY05hbWUgaXMgdG9vIGxvbmcgZm9yIGRpc3BsYXlOYW1lLCBzbyBqdXN0IHRha2UgdGhlIHNlY29uZCBwYXJ0OlxuLy8gU3RhY2sxLU5lc3RlZFVuZGVyU3RhY2sxTmVzdGVkU3RhY2tOZXN0ZWRVbmRlclN0YWNrMU5lc3RlZFN0YWNrUmVzb3VyY2VGNjE2MzA1Qi1FTTY0VEVHQTA0SjktVG9waWNJbk5lc3RlZFVuZGVyU3RhY2sxMTVFMzI5QzQtSEVPN05MWUMxQUZMXG5mdW5jdGlvbiBzaG9ydE5hbWUodG9waWNOYW1lOiBzdHJpbmcpIHtcbiAgcmV0dXJuIEZuLnNlbGVjdCgxLCBGbi5zcGxpdCgnLScsIHRvcGljTmFtZSkpO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.js deleted file mode 100644 index 6cab7e9c8105b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-multi.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -/* eslint-disable @aws-cdk/no-core-construct */ -class YourNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id) { - super(scope, id); - new sns.Topic(this, 'YourResource'); - } -} -class MyNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id) { - super(scope, id); - new sns.Topic(this, 'MyResource'); - new YourNestedStack(this, 'NestedChild'); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'nested-stacks-multi'); -new MyNestedStack(stack, 'NestedStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1tdWx0aS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5lc3RlZC1zdGFja3MtbXVsdGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsNkNBQXNEO0FBR3RELCtDQUErQztBQUUvQyxNQUFNLGVBQWdCLFNBQVEseUJBQVc7SUFDdkMsWUFBWSxLQUFnQixFQUFFLEVBQVU7UUFDdEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLGNBQWMsQ0FBQyxDQUFDO0lBQ3RDLENBQUM7Q0FDRjtBQUVELE1BQU0sYUFBYyxTQUFRLHlCQUFXO0lBQ3JDLFlBQVksS0FBZ0IsRUFBRSxFQUFVO1FBQ3RDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxZQUFZLENBQUMsQ0FBQztRQUVsQyxJQUFJLGVBQWUsQ0FBQyxJQUFJLEVBQUUsYUFBYSxDQUFDLENBQUM7SUFDM0MsQ0FBQztDQUNGO0F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TtcbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ25lc3RlZC1zdGFja3MtbXVsdGknKTtcbm5ldyBNeU5lc3RlZFN0YWNrKHN0YWNrLCAnTmVzdGVkU3RhY2snKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.js deleted file mode 100644 index 608a47881a942..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-nested-export-to-sibling.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -/// !cdk-integ Stack1 Stack2 -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const app = new aws_cdk_lib_1.App(); -const stack1 = new aws_cdk_lib_1.Stack(app, 'Stack1'); -const stack2 = new aws_cdk_lib_1.Stack(app, 'Stack2'); -const nestedUnderStack1 = new aws_cdk_lib_1.NestedStack(stack1, 'NestedUnderStack1'); -const topicInNestedUnderStack1 = new sns.Topic(nestedUnderStack1, 'TopicInNestedUnderStack1'); -new sns.Topic(stack2, 'TopicInStack2', { - // topicName is too long for displayName, so just take the second part: - // Stack1-NestedUnderStack1NestedStackNestedUnderStack1NestedStackResourceF616305B-EM64TEGA04J9-TopicInNestedUnderStack115E329C4-HEO7NLYC1AFL - displayName: aws_cdk_lib_1.Fn.select(1, aws_cdk_lib_1.Fn.split('-', topicInNestedUnderStack1.topicName)), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1uZXN0ZWQtZXhwb3J0LXRvLXNpYmxpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXN0ZWQtc3RhY2tzLW5lc3RlZC1leHBvcnQtdG8tc2libGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNEJBQTRCOztBQUU1QiwyQ0FBMkM7QUFDM0MsNkNBQTBEO0FBRTFELE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sTUFBTSxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsUUFBUSxDQUFDLENBQUM7QUFDeEMsTUFBTSxNQUFNLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxRQUFRLENBQUMsQ0FBQztBQUV4QyxNQUFNLGlCQUFpQixHQUFHLElBQUkseUJBQVcsQ0FBQyxNQUFNLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUN2RSxNQUFNLHdCQUF3QixHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxpQkFBaUIsRUFBRSwwQkFBMEIsQ0FBQyxDQUFDO0FBRTlGLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsZUFBZSxFQUFFO0lBQ3JDLHVFQUF1RTtJQUN2RSw2SUFBNkk7SUFDN0ksV0FBVyxFQUFFLGdCQUFFLENBQUMsTUFBTSxDQUFDLENBQUMsRUFBRSxnQkFBRSxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsd0JBQXdCLENBQUMsU0FBUyxDQUFD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0ZWRVbmRlclN0YWNrMS50b3BpY05hbWUpKSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.js deleted file mode 100644 index fde8b8b8c87a6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs1.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/// !cdk-integ * -Object.defineProperty(exports, "__esModule", { value: true }); -// nested stack references a resource from a non-nested non-parent stack -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -class ConsumerNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id, topic) { - super(scope, id); - new sns.Topic(this, 'ConsumerTopic', { - displayName: `Consumer of ${topic.topicName}`, - }); - } -} -class ProducerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - this.topic = new sns.Topic(this, 'MyTopic'); - } -} -class ParentStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, topic) { - super(scope, id); - new ConsumerNestedStack(this, 'Nested1', topic); - } -} -const app = new aws_cdk_lib_1.App(); -const producer = new ProducerStack(app, 'nest-stacks-refs1-producer'); -new ParentStack(app, 'nested-stacks-refs1-parent-with-consumer', producer.topic); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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SB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIHRoaXMudG9waWMgPSBuZXcgc25zLlRvcGljKHRoaXMsICdNeVRvcGljJyk7XG4gIH1cbn1cblxuY2xhc3MgUGFyZW50U3RhY2sgZXh0ZW5kcyBTdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIHRvcGljOiBzbnMuVG9waWMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgbmV3IENvbnN1bWVyTmVzdGVkU3RhY2sodGhpcywgJ05lc3RlZDEnLCB0b3BpYyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3QgcHJvZHVjZXIgPSBuZXcgUHJvZHVjZXJTdGFjayhhcHAsICduZXN0LXN0YWNrcy1yZWZzMS1wcm9kdWNlcicpO1xubmV3IFBhcmVudFN0YWNrKGFwcCwgJ25lc3RlZC1zdGFja3MtcmVmczEtcGFyZW50LXdpdGgtY29uc3VtZXInLCBwcm9kdWNlci50b3BpYyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.js deleted file mode 100644 index 9379b310647f4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs2.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// non-nested non-parent stack consumes a resource from a nested stack -class ProducerNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id) { - super(scope, id); - this.topic = new sns.Topic(this, 'MyTopic'); - } -} -class ParentStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const nested = new ProducerNestedStack(this, 'Nested1'); - this.topic = nested.topic; - } -} -class ConsumerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, topic) { - super(scope, id); - new sns.Topic(this, 'ConsumerTopic', { - displayName: `Consuming ${aws_cdk_lib_1.Fn.select(2, aws_cdk_lib_1.Fn.split('-', topic.topicName))}`, // just shorten because display name is limited - }); - } -} -const app = new aws_cdk_lib_1.App(); -const parent = new ParentStack(app, 'nested-stacks-refs2-parent-with-producer'); -new ConsumerStack(app, 'nested-stacks-refs2-consumer', parent.topic); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1yZWZzMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5lc3RlZC1zdGFja3MtcmVmczIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQkFBZ0I7QUFDaEIsMkNBQTJDO0FBQzNDLDZDQUEwRDtBQUcxRCxzRUFBc0U7QUFFdEUsTUFBTSxtQkFBb0IsU0FBUSx5QkFBVztJQUczQyxZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxTQUFTLENBQUMsQ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VyKHNjb3BlLCBpZCk7XG5cbiAgICBuZXcgc25zLlRvcGljKHRoaXMsICdDb25zdW1lclRvcGljJywge1xuICAgICAgZGlzcGxheU5hbWU6IGBDb25zdW1pbmcgJHtGbi5zZWxlY3QoMiwgRm4uc3BsaXQoJy0nLCB0b3BpYy50b3BpY05hbWUpKX1gLCAvLyBqdXN0IHNob3J0ZW4gYmVjYXVzZSBkaXNwbGF5IG5hbWUgaXMgbGltaXRlZFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHBhcmVudCA9IG5ldyBQYXJlbnRTdGFjayhhcHAsICduZXN0ZWQtc3RhY2tzLXJlZnMyLXBhcmVudC13aXRoLXByb2R1Y2VyJyk7XG5uZXcgQ29uc3VtZXJTdGFjayhhcHAsICduZXN0ZWQtc3RhY2tzLXJlZnMyLWNvbnN1bWVyJywgcGFyZW50LnRvcGljKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.js deleted file mode 100644 index 4427243881104..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudformation/test/integ.nested-stacks-refs3.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const sns = require("aws-cdk-lib/aws-sns"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// references between siblings -class ProducerNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id) { - super(scope, id); - this.topic = new sns.Topic(this, 'MyTopic'); - } -} -class ConsumerNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id, topic) { - super(scope, id); - new sns.Topic(this, 'ConsumerTopic', { - displayName: `Consuming ${aws_cdk_lib_1.Fn.select(2, aws_cdk_lib_1.Fn.split('-', topic.topicName))}`, // just shorten because display name is limited - }); - } -} -class ParentStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const nested = new ProducerNestedStack(this, 'Nested1'); - new ConsumerNestedStack(this, 'Nested2', nested.topic); - } -} -const app = new aws_cdk_lib_1.App(); -new ParentStack(app, 'nested-stacks-refs3-siblings'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1yZWZzMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5lc3RlZC1zdGFja3MtcmVmczMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQkFBZ0I7QUFDaEIsMkNBQTJDO0FBQzNDLDZDQUEwRDtBQUcxRCw4QkFBOEI7QUFFOUIsTUFBTSxtQkFBb0IsU0FBUSx5QkFBVztJQUczQyxZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxTQUFTLENBQUMsQ0FBQztJQUM5QyxDQUFDO0NBQ0Y7QUFFRCxNQUFNLG1CQUFvQixTQUFRLHlCQUFXO0lBQzNDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBZ0I7UUFDeEQsS0FBSy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RlZC50b3BpYyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5uZXcgUGFyZW50U3RhY2soYXBwLCAnbmVzdGVkLXN0YWNrcy1yZWZzMy1zaWJsaW5ncycpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.js deleted file mode 100644 index eb790a2f3aad1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.http-origin.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const cdk = require("aws-cdk-lib"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-http-origin'); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaHR0cC1vcmlnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5odHRwLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUF5RDtBQUN6RCxtQ0FBbUM7QUFDbkMsOERBQThEO0FBRTlELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsd0JBQXdCLENBQUMsQ0FBQztBQUUzRCxJQUFJLFVBQVUsQ0FBQyxZQUFZLENBQUMsS0FBSyxFQUFFLGNBQWMsRUFBRTtJQUNqRCxlQUFlLEVBQUUsRUFBRSxNQUFNLEVBQUUsSUFBSSxPQUFPLENBQUMsVUFBVSxDQUFDLGlCQUFpQixDQUFDLEVBQUU7Q0FDdkUsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2xvdWRmcm9udCBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWRmcm9udCc7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgb3JpZ2lucyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWRmcm9udC1vcmlnaW5zJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2Nsb3VkZnJvbnQtaHR0cC1vcmlnaW4nKTtcblxubmV3IGNsb3VkZnJvbnQuRGlzdHJpYnV0aW9uKHN0YWNrLCAnRGlzdHJpYnV0aW9uJywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHsgb3JpZ2luOiBuZXcgb3JpZ2lucy5IdHRwT3JpZ2luKCd3d3cuZXhhbXBsZS5jb20nKSB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.js deleted file mode 100644 index ad37b06826392..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.load-balancer-origin.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-load-balancer-origin'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const loadbalancer = new elbv2.ApplicationLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.LoadBalancerV2Origin(loadbalancer) }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9hZC1iYWxhbmNlci1vcmlnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sb2FkLWJhbGFuY2VyLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUF5RDtBQUN6RCwyQ0FBMkM7QUFDM0MsZ0VBQWdFO0FBQ2hFLG1DQUFtQztBQUNuQyw4REFBOEQ7QUFFOUQsTUFBTSxHQUFH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QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdjbG91ZGZyb250LWxvYWQtYmFsYW5jZXItb3JpZ2luJyk7XG5cbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVnBjJywgeyBtYXhBenM6IDIgfSk7XG5jb25zdCBsb2FkYmFsYW5jZXIgPSBuZXcgZWxidjIuQXBwbGljYXRpb25Mb2FkQmFsYW5jZXIoc3RhY2ssICdMQicsIHsgdnBjLCBpbnRlcm5ldEZhY2luZzogdHJ1ZSB9KTtcblxubmV3IGNsb3VkZnJvbnQuRGlzdHJpYnV0aW9uKHN0YWNrLCAnRGlzdHJpYnV0aW9uJywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHsgb3JpZ2luOiBuZXcgb3JpZ2lucy5Mb2FkQmFsYW5jZXJWMk9yaWdpbihsb2FkYmFsYW5jZXIpIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.js deleted file mode 100644 index 7759c6f6821a3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.origin-group.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-origin-group'); -const bucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const originGroup = new origins.OriginGroup({ - primaryOrigin: new origins.S3Origin(bucket), - fallbackOrigin: new origins.HttpOrigin('www.example.com'), -}); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: originGroup }, - additionalBehaviors: { - '/api': { - origin: originGroup, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3JpZ2luLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcub3JpZ2luLWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsOERBQThEO0FBRTlELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUseUJBQXlCLENBQUMsQ0FBQztBQUU1RCxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUM1QyxhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUVILE1BQU0sV0FBVyxHQUFHLElBQUksT0FBTyxDQUFDLFdBQVcsQ0FBQztJQUMxQyxhQUFhLEVBQUUsSUFBSSxPQUFPLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQztJQUMzQyxjQUFjLEVBQUU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2lucy5IdHRwT3JpZ2luKCd3d3cuZXhhbXBsZS5jb20nKSxcbn0pO1xuXG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0cmlidXRpb24nLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjogeyBvcmlnaW46IG9yaWdpbkdyb3VwIH0sXG4gIGFkZGl0aW9uYWxCZWhhdmlvcnM6IHtcbiAgICAnL2FwaSc6IHtcbiAgICAgIG9yaWdpbjogb3JpZ2luR3JvdXAsXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.js deleted file mode 100644 index ed1a34a885dee..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin-custom-origin-path.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudfront-rest-api-origin-custom-origin-path'); -const api = new apigateway.RestApi(stack, 'RestApi', { endpointTypes: [apigateway.EndpointType.REGIONAL], cloudWatchRole: true }); -api.root.addMethod('GET'); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.RestApiOrigin(api, { originPath: '/' }) }, -}); -new integ_tests_alpha_1.IntegTest(app, 'rest-api-origin-custom-origin-path', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdC1hcGktb3JpZ2luLWN1c3RvbS1vcmlnaW4tcGF0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlc3QtYXBpLW9yaWdpbi1jdXN0b20tb3JpZ2luLXBhdGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBeUQ7QUFDekQseURBQXlEO0FBQ3pELG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsOERBQThEO0FBRTlELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscURBQXFELENBQUMsQ0FBQztBQUV4RixNQUFNLEdBQUcsR0FBRyxJQUFJLFVBQVUsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRSxFQUFFLGFBQWEsRUFBRSxDQUFDLFVBQVUsQ0FBQyxZQUFZLENBQUMsUUFBUSxDQUFDLEVBQUUsY0FBYyxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7QUFDbEksR0FBRyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7QUFFMUIsSUFBSSxVQUFVLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxjQUFjLEVBQUU7SUFDakQsZUFBZSxFQ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uKHN0YWNrLCAnRGlzdHJpYnV0aW9uJywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHsgb3JpZ2luOiBuZXcgb3JpZ2lucy5SZXN0QXBpT3JpZ2luKGFwaSwgeyBvcmlnaW5QYXRoOiAnLycgfSkgfSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3Jlc3QtYXBpLW9yaWdpbi1jdXN0b20tb3JpZ2luLXBhdGgnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.js deleted file mode 100644 index 97b456d60e572..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.rest-api-origin.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudfront-rest-api-origin'); -const api = new apigateway.RestApi(stack, 'RestApi', { endpointTypes: [apigateway.EndpointType.REGIONAL], cloudWatchRole: true }); -api.root.addMethod('GET'); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.RestApiOrigin(api) }, -}); -new integ_tests_alpha_1.IntegTest(app, 'rest-api-origin', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzdC1hcGktb3JpZ2luLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVzdC1hcGktb3JpZ2luLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELHlEQUF5RDtBQUN6RCxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELDhEQUE4RDtBQUU5RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGtDQUFrQyxDQUFDLENBQUM7QUFFckUsTUFBTSxHQUFHLEdBQUcsSUFBSSxVQUFVLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUUsRUFBRSxhQUFhLEVBQUUsQ0FBQyxVQUFVLENBQUMsWUFBWSxDQUFDLFFBQVEsQ0FBQyxFQUFFLGNBQWMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxDQUFDO0FBQ2xJLEdBQUcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBRTFCLElBQUksVUFBVSxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsY0FBYyxFQUFFO0lBQ2pELGVBQWUsRUFBRSxFQUFFLE1BQU0sRUFBRSxJQUFJLE9BQU8sQ0FBQyxhQUFhLENBQUMsR0FBRyxDQUFDLEVBQUU7Q0FDNUQsQ0FBQyxDQUFDO0FBRUgsSUFBSSw2QkFBUyxDQUFDLEdBQUcsRUFBRSxpQkFBaU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iBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.js deleted file mode 100644 index bb5a4f540a550..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin-oai.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-s3-origin-oai'); -const bucket = new s3.Bucket(stack, 'Bucket'); -const originAccessIdentity = new cloudfront.OriginAccessIdentity(stack, 'OriginAccessIdentity', { - comment: 'Identity for bucket provided by test', -}); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.S3Origin(bucket, { originAccessIdentity }) }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuczMtb3JpZ2luLW9haS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnMzLW9yaWdpbi1vYWkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBeUQ7QUFDekQseUNBQX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cgY2RrLlN0YWNrKGFwcCwgJ2Nsb3VkZnJvbnQtczMtb3JpZ2luLW9haScpO1xuXG5jb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnQnVja2V0Jyk7XG5jb25zdCBvcmlnaW5BY2Nlc3NJZGVudGl0eSA9IG5ldyBjbG91ZGZyb250Lk9yaWdpbkFjY2Vzc0lkZW50aXR5KHN0YWNrLCAnT3JpZ2luQWNjZXNzSWRlbnRpdHknLCB7XG4gIGNvbW1lbnQ6ICdJZGVudGl0eSBmb3IgYnVja2V0IHByb3ZpZGVkIGJ5IHRlc3QnLFxufSk7XG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0cmlidXRpb24nLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjogeyBvcmlnaW46IG5ldyBvcmlnaW5zLlMzT3JpZ2luKGJ1Y2tldCwgeyBvcmlnaW5BY2Nlc3NJZGVudGl0eSB9KSB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.js deleted file mode 100644 index 7887478c78b05..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.s3-origin.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const origins = require("aws-cdk-lib/aws-cloudfront-origins"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-s3-origin'); -const bucket = new s3.Bucket(stack, 'Bucket'); -new cloudfront.Distribution(stack, 'Distribution', { - defaultBehavior: { origin: new origins.S3Origin(bucket) }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuczMtb3JpZ2luLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuczMtb3JpZ2luLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsOERBQThEO0FBRTlELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQUV6RCxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBQzlDLElBQUksVUFBVSxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsY0FBYyxFQUFFO0lBQ2pELGVBQWUsRUFBRSxFQUFFLE1BQU0sRUFBRSxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLEVBQUU7Q0FDMUQsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2xvdWRmcm9udCBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWRmcm9udCc7XG5pbXBvcnQgKiBhcyBzMyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtczMnO1xuaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIG9yaWdpbnMgZnJvbSAnYXdzLWNkay1saWIvYXdzLWNsb3VkZnJvbnQtb3JpZ2lucyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdjbG91ZGZyb250LXMzLW9yaWdpbicpO1xuXG5jb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnQnVja2V0Jyk7XG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0cmlidXRpb24nLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjogeyBvcmlnaW46IG5ldyBvcmlnaW5zLlMzT3JpZ2luKGJ1Y2tldCkgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.js deleted file mode 100644 index ecf94fc525182..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-bucket-logging.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); -const loggingBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'AnAmazingWebsiteProbably', { - originConfigs: [ - { - originHeaders: { - 'X-Custom-Header': 'somevalue', - }, - customOriginSource: { - domainName: 'brelandm.a2z.com', - }, - behaviors: [ - { - isDefaultBehavior: true, - }, - ], - }, - ], - loggingConfig: { - bucket: loggingBucket, - includeCookies: true, - prefix: 'test-prefix', - }, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'AnAmazingWebsiteProbably2', { - originConfigs: [ - { - originHeaders: { - 'X-Custom-Header': 'somevalue', - }, - customOriginSource: { - domainName: 'brelandm.a2z.com', - }, - behaviors: [ - { - isDefaultBehavior: true, - }, - ], - }, - ], - loggingConfig: {}, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1idWNrZXQtbG9nZ2luZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsb3VkZnJvbnQtYnVja2V0LWxvZ2dpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDJCQUEyQixDQUFDLENBQUM7QUFFOUQsTUFBTSxhQUFhLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQ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GFjaywgJ0FuQW1hemluZ1dlYnNpdGVQcm9iYWJseTInLCB7XG4gIG9yaWdpbkNvbmZpZ3M6IFtcbiAgICB7XG4gICAgICBvcmlnaW5IZWFkZXJzOiB7XG4gICAgICAgICdYLUN1c3RvbS1IZWFkZXInOiAnc29tZXZhbHVlJyxcbiAgICAgIH0sXG4gICAgICBjdXN0b21PcmlnaW5Tb3VyY2U6IHtcbiAgICAgICAgZG9tYWluTmFtZTogJ2JyZWxhbmRtLmEyei5jb20nLFxuICAgICAgfSxcbiAgICAgIGJlaGF2aW9yczogW1xuICAgICAgICB7XG4gICAgICAgICAgaXNEZWZhdWx0QmVoYXZpb3I6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0sXG4gIF0sXG4gIGxvZ2dpbmdDb25maWc6IHt9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.js deleted file mode 100644 index 8d992a388a005..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-cross-region-cert.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const acm = require("aws-cdk-lib/aws-certificatemanager"); -const route53 = require("aws-cdk-lib/aws-route53"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const account = process.env.CDK_INTEG_ACCOUNT ?? process.env.CDK_DEFAULT_ACCOUNT; -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; -if (!hostedZoneId) - throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID"'); -const hostedZoneName = process.env.CDK_INTEG_HOSTED_ZONE_NAME ?? process.env.HOSTED_ZONE_NAME; -if (!hostedZoneName) - throw new Error('For this test you must provide your own HostedZoneName as an env var "HOSTED_ZONE_NAME"'); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; -if (!domainName) - throw new Error('For this test you must provide your own Domain Name as an env var "DOMAIN_NAME"'); -const app = new cdk.App({ - treeMetadata: false, -}); -const acmStack = new cdk.Stack(app, 'integ-acm-stack', { - env: { - region: 'us-east-1', - account, - }, - crossRegionReferences: true, -}); -const cloudFrontStack = new cdk.Stack(app, 'integ-cloudfront-stack', { - env: { - region: 'us-east-2', - account, - }, - crossRegionReferences: true, -}); -const hostedZone = route53.PublicHostedZone.fromHostedZoneAttributes(acmStack, 'HostedZone', { - hostedZoneId, - zoneName: hostedZoneName, -}); -const cert = new acm.Certificate(acmStack, 'Cert', { - domainName, - validation: acm.CertificateValidation.fromDns(hostedZone), -}); -new cloudfront.Distribution(cloudFrontStack, 'Distro', { - defaultBehavior: { origin: new test_origin_1.TestOrigin(domainName) }, - certificate: cert, - domainNames: [domainName], -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-cloudfront-cross-region-acm', { - testCases: [cloudFrontStack], - diffAssets: false, - enableLookups: true, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1jcm9zcy1yZWdpb24tY2VydC5qcyIsInNvdXJjZVJvb3QiOiIiL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pvbmUnLCB7XG4gIGhvc3RlZFpvbmVJZCxcbiAgem9uZU5hbWU6IGhvc3RlZFpvbmVOYW1lLFxufSk7XG5cbmNvbnN0IGNlcnQgPSBuZXcgYWNtLkNlcnRpZmljYXRlKGFjbVN0YWNrLCAnQ2VydCcsIHtcbiAgZG9tYWluTmFtZSxcbiAgdmFsaWRhdGlvbjogYWNtLkNlcnRpZmljYXRlVmFsaWRhdGlvbi5mcm9tRG5zKGhvc3RlZFpvbmUpLFxufSk7XG5cbm5ldyBjbG91ZGZyb250LkRpc3RyaWJ1dGlvbihjbG91ZEZyb250U3RhY2ssICdEaXN0cm8nLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjogeyBvcmlnaW46IG5ldyBUZXN0T3JpZ2luKGRvbWFpbk5hbWUpIH0sXG4gIGNlcnRpZmljYXRlOiBjZXJ0LFxuICBkb21haW5OYW1lczogW2RvbWFpbk5hbWVdLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW50ZWctY2xvdWRmcm9udC1jcm9zcy1yZWdpb24tYWNtJywge1xuICB0ZXN0Q2FzZXM6IFtjbG91ZEZyb250U3RhY2tdLFxuICBkaWZmQXNzZXRzOiBmYWxzZSxcbiAgZW5hYmxlTG9va3VwczogdHJ1ZSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.js deleted file mode 100644 index a4ff98641bbb3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom-s3.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const bucket = new s3.Bucket(this, 'Bucket', { - publicReadAccess: true, - websiteIndexDocument: 'index.html', - websiteErrorDocument: '404.html', - }); - new cloudfront.CloudFrontWebDistribution(this, 'Distribution', { - viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS, - priceClass: cloudfront.PriceClass.PRICE_CLASS_200, - originConfigs: [ - { - behaviors: [{ isDefaultBehavior: true }], - customOriginSource: { - originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY, - domainName: bucket.bucketWebsiteDomainName, - }, - }, - ], - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cloudfront-custom-s3-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1jdXN0b20tczMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZGZyb250LWN1c3RvbS1zMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUF5QztBQUN6Qyw2Q0FBeUM7QUFFekMseURBQXlEO0FBRXpELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVO1FBQ3RDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQ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3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjbG91ZGZyb250LWN1c3RvbS1zMy1pbnRlZycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.js deleted file mode 100644 index 33f46e1e64480..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-custom.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); -new cloudfront.CloudFrontWebDistribution(stack, 'AnAmazingWebsiteProbably', { - originConfigs: [ - { - originHeaders: { - 'X-Custom-Header': 'somevalue', - }, - customOriginSource: { - domainName: 'brelandm.a2z.com', - }, - behaviors: [ - { - isDefaultBehavior: true, - }, - ], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1jdXN0b20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZGZyb250LWN1c3RvbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLG1DQUFtQztBQ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FsdWUnLFxuICAgICAgfSxcbiAgICAgIGN1c3RvbU9yaWdpblNvdXJjZToge1xuICAgICAgICBkb21haW5OYW1lOiAnYnJlbGFuZG0uYTJ6LmNvbScsXG4gICAgICB9LFxuICAgICAgYmVoYXZpb3JzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBpc0RlZmF1bHRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.js deleted file mode 100644 index 2283571e9f726..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-empty-root.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); -new cloudfront.CloudFrontWebDistribution(stack, 'AnAmazingWebsiteProbably', { - originConfigs: [ - { - originHeaders: { - 'X-Custom-Header': 'somevalue', - }, - customOriginSource: { - domainName: 'brelandm.a2z.com', - }, - behaviors: [ - { - isDefaultBehavior: true, - }, - ], - }, - ], - defaultRootObject: '', -}); -app.synth(); -//# sourceMappingURL=data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ZnJvbnQtY3VzdG9tJyk7XG5cbm5ldyBjbG91ZGZyb250LkNsb3VkRnJvbnRXZWJEaXN0cmlidXRpb24oc3RhY2ssICdBbkFtYXppbmdXZWJzaXRlUHJvYmFibHknLCB7XG4gIG9yaWdpbkNvbmZpZ3M6IFtcbiAgICB7XG4gICAgICBvcmlnaW5IZWFkZXJzOiB7XG4gICAgICAgICdYLUN1c3RvbS1IZWFkZXInOiAnc29tZXZhbHVlJyxcbiAgICAgIH0sXG4gICAgICBjdXN0b21PcmlnaW5Tb3VyY2U6IHtcbiAgICAgICAgZG9tYWluTmFtZTogJ2JyZWxhbmRtLmEyei5jb20nLFxuICAgICAgfSxcbiAgICAgIGJlaGF2aW9yczogW1xuICAgICAgICB7XG4gICAgICAgICAgaXNEZWZhdWx0QmVoYXZpb3I6IHRydWUsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0sXG4gIF0sXG4gIGRlZmF1bHRSb290T2JqZWN0OiAnJyxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.js deleted file mode 100644 index 1cbcf65554fd7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-failover.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudfront-failover'); -const dist = new cloudfront.CloudFrontWebDistribution(stack, 'Distribution', { - originConfigs: [{ - behaviors: [{ isDefaultBehavior: true }], - s3OriginSource: { - s3BucketSource: new s3.Bucket(stack, 'bucket1'), - }, - failoverS3OriginSource: { - s3BucketSource: new s3.Bucket(stack, 'bucket2'), - }, - failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR], - }], -}); -new cdk.CfnOutput(stack, 'DistributionDomainName', { value: dist.domainName }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1mYWlsb3Zlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsb3VkZnJvbnQtZmFpbG92ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDJCQUEyQixDQUFDLENBQUM7QUFFOUQsTUFBTSxJQUFJLEdBQUcsSUFBSSxVQUFVLENBQUMseUJBQXlCLENBQUMsS0FBSyxFQUFFLGNBQWMsRUFBRTtJQUMzRSxhQUFhLEVBQUUsQ0FBQztZQUNkLFNBQVMsRUFBRSxDQUFDLEVBQUUsaUJBQWlCLEVBQUUsSUFBSSxFQUFFLENBQUM7WUFDeEMsY0FBYyxFQUFFO2dCQUNkLGNBQWMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFNBQV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HtcbiAgICAgIHMzQnVja2V0U291cmNlOiBuZXcgczMuQnVja2V0KHN0YWNrLCAnYnVja2V0MicpLFxuICAgIH0sXG4gICAgZmFpbG92ZXJDcml0ZXJpYVN0YXR1c0NvZGVzOiBbY2xvdWRmcm9udC5GYWlsb3ZlclN0YXR1c0NvZGUuSU5URVJOQUxfU0VSVkVSX0VSUk9SXSxcbiAgfV0sXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdEaXN0cmlidXRpb25Eb21haW5OYW1lJywgeyB2YWx1ZTogZGlzdC5kb21haW5OYW1lIH0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.js deleted file mode 100644 index e4c632b38a75a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-geo-restrictions.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cloudfront-geo-restrictions'); -const sourceBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'MyDistribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: sourceBucket, - }, - behaviors: [{ isDefaultBehavior: true }], - }, - ], - geoRestriction: cloudfront.GeoRestriction.allowlist('US', 'GB'), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1nZW8tcmVzdHJpY3Rpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2xvdWRmcm9udC1nZW8tcmVzdHJpY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDO0FBRWhFLE1BQU0sWUFBWSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQ2xELGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87Q0FDekMsQ0FBQyxDQUFDO0FBRUgsSUFBSSxVQUFVLENBQUMseUJBQXlCLENBQUMsS0FBSyxFQUFFLGdCQUFnQixFQUFFO0lBQ2hFLGFBQWEsRUFBRTtRQUNiO1lBQ0UsY0FBYyxFQUFFO2dCQUNkLGNBQWMsRUFBRSxZQUFZO2FBQzdCO1lBQ0QsU0FBUyxFQUFFLENBQUMsRUFBRSxpQkFBaUIsRUFBRSxJQUFJLEVBQUUsQ0FBQztTQUN6QztLQUNGO0lBQ0QsY0FBYyxFQUFFLFVBQVUsQ0FBQyxjQUFjLENBQUMsU0FBUyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUM7Q0FDaEUsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgczMgZnJvbSAnYXdzLWNkay1saWIvYXdzLXMzJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBjbG91ZGZyb250IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jbG91ZGZyb250JztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2Nsb3VkZnJvbnQtZ2VvLXJlc3RyaWN0aW9ucycpO1xuXG5jb25zdCBzb3VyY2VCdWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnQnVja2V0Jywge1xuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBjbG91ZGZyb250LkNsb3VkRnJvbnRXZWJEaXN0cmlidXRpb24oc3RhY2ssICdNeURpc3RyaWJ1dGlvbicsIHtcbiAgb3JpZ2luQ29uZmlnczogW1xuICAgIHtcbiAgICAgIHMzT3JpZ2luU291cmNlOiB7XG4gICAgICAgIHMzQnVja2V0U291cmNlOiBzb3VyY2VCdWNrZXQsXG4gICAgICB9LFxuICAgICAgYmVoYXZpb3JzOiBbeyBpc0RlZmF1bHRCZWhhdmlvcjogdHJ1ZSB9XSxcbiAgICB9LFxuICBdLFxuICBnZW9SZXN0cmljdGlvbjogY2xvdWRmcm9udC5HZW9SZXN0cmljdGlvbi5hbGxvd2xpc3QoJ1VTJywgJ0dCJyksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.js deleted file mode 100644 index 0669be843befb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-ipv6-disabled.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); -const sourceBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'MyDistribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: sourceBucket, - }, - behaviors: [{ isDefaultBehavior: true }], - }, - ], - enableIpV6: false, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1pcHY2LWRpc2FibGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2xvdWRmcm9udC1pcHY2LWRpc2FibGVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQU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3IGNsb3VkZnJvbnQuQ2xvdWRGcm9udFdlYkRpc3RyaWJ1dGlvbihzdGFjaywgJ015RGlzdHJpYnV0aW9uJywge1xuICBvcmlnaW5Db25maWdzOiBbXG4gICAge1xuICAgICAgczNPcmlnaW5Tb3VyY2U6IHtcbiAgICAgICAgczNCdWNrZXRTb3VyY2U6IHNvdXJjZUJ1Y2tldCxcbiAgICAgIH0sXG4gICAgICBiZWhhdmlvcnM6IFt7IGlzRGVmYXVsdEJlaGF2aW9yOiB0cnVlIH1dLFxuICAgIH0sXG4gIF0sXG4gIGVuYWJsZUlwVjY6IGZhbHNlLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.js deleted file mode 100644 index e2ab7af92f0f6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-key-group.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); -new cloudfront.KeyGroup(stack, 'AwesomeKeyGroup', { - items: [ - new cloudfront.PublicKey(stack, 'AwesomePublicKey', { - encodedKey: `-----BEGIN PUBLIC KEY----- - MIIBIjANBgkqhkiG9w0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5K1ZYdWd1amZhclRVNjVJZVo2UUFVYkxNc1d1Wk9JaTVKbjh6QXd4XG4gICAgICBOUUlEQVFBQlxuICAgICAgLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4gICAgICBgLFxuICAgIH0pLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.js deleted file mode 100644 index 134ab5bb5239b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-lambda-association.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); -const sourceBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const lambdaFunction = new lambda.Function(stack, 'Lambda', { - code: lambda.Code.fromInline('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const lambdaVersion = new lambda.Version(stack, 'LambdaVersion', { - lambda: lambdaFunction, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'MyDistribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: sourceBucket, - }, - behaviors: [{ - isDefaultBehavior: true, - lambdaFunctionAssociations: [{ - eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST, - lambdaFunction: lambdaVersion, - }], - }], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1sYW1iZGEtYXNzb2NpYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZGZyb250LWxhbWJkYS1hc3NvY2lhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG9CQUFvQixDQUFDLENBQUM7QUFFdkQsTUFBTSxZQUFZLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDbEQsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztDQUN6QyxDQUFDLENBQUM7QUFFSCxNQUFNLGNBQWMsR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUMxRCxJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO0lBQ25DLE9BQU8sRUFBRSxlQUFlO0lBQ3hCLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7Q0FDcEMsQ0FBQyxDQUFDO0F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iAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5jb25zdCBsYW1iZGFGdW5jdGlvbiA9IG5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssICdMYW1iZGEnLCB7XG4gIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21JbmxpbmUoJ2ZvbycpLFxuICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gIHJ1bnRpbWU6IGxhbWJkYS5SdW50aW1lLk5PREVKU18xNF9YLFxufSk7XG5cbmNvbnN0IGxhbWJkYVZlcnNpb24gPSBuZXcgbGFtYmRhLlZlcnNpb24oc3RhY2ssICdMYW1iZGFWZXJzaW9uJywge1xuICBsYW1iZGE6IGxhbWJkYUZ1bmN0aW9uLFxufSk7XG5cbm5ldyBjbG91ZGZyb250LkNsb3VkRnJvbnRXZWJEaXN0cmlidXRpb24oc3RhY2ssICdNeURpc3RyaWJ1dGlvbicsIHtcbiAgb3JpZ2luQ29uZmlnczogW1xuICAgIHtcbiAgICAgIHMzT3JpZ2luU291cmNlOiB7XG4gICAgICAgIHMzQnVja2V0U291cmNlOiBzb3VyY2VCdWNrZXQsXG4gICAgICB9LFxuICAgICAgYmVoYXZpb3JzOiBbe1xuICAgICAgICBpc0RlZmF1bHRCZWhhdmlvcjogdHJ1ZSxcbiAgICAgICAgbGFtYmRhRnVuY3Rpb25Bc3NvY2lhdGlvbnM6IFt7XG4gICAgICAgICAgZXZlbnRUeXBlOiBjbG91ZGZyb250LkxhbWJkYUVkZ2VFdmVudFR5cGUuT1JJR0lOX1JFUVVFU1QsXG4gICAgICAgICAgbGFtYmRhRnVuY3Rpb246IGxhbWJkYVZlcnNpb24sXG4gICAgICAgIH1dLFxuICAgICAgfV0sXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.js deleted file mode 100644 index f6efed45c85cf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-s3.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudfront-s3'); -const bucket = new s3.Bucket(stack, 'Bucket', { removalPolicy: cdk.RemovalPolicy.DESTROY }); -const oai = new cloudfront.CfnCloudFrontOriginAccessIdentity(stack, 'OAI', { - cloudFrontOriginAccessIdentityConfig: { - comment: 'Allows CloudFront to reach the bucket!', - }, -}); -const oaiImported = cloudfront.OriginAccessIdentity.fromOriginAccessIdentityId(stack, 'OAIImported', oai.ref); -const dist = new cloudfront.CloudFrontWebDistribution(stack, 'Distribution', { - originConfigs: [{ - behaviors: [{ isDefaultBehavior: true }], - s3OriginSource: { - s3BucketSource: bucket, - originAccessIdentity: oaiImported, - }, - }], -}); -new cdk.CfnOutput(stack, 'DistributionDomainName', { value: dist.domainName }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1zMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsb3VkZnJvbnQtczMudHMiX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bihzdGFjaywgJ0Rpc3RyaWJ1dGlvbicsIHtcbiAgb3JpZ2luQ29uZmlnczogW3tcbiAgICBiZWhhdmlvcnM6IFt7IGlzRGVmYXVsdEJlaGF2aW9yOiB0cnVlIH1dLFxuICAgIHMzT3JpZ2luU291cmNlOiB7XG4gICAgICBzM0J1Y2tldFNvdXJjZTogYnVja2V0LFxuICAgICAgb3JpZ2luQWNjZXNzSWRlbnRpdHk6IG9haUltcG9ydGVkLFxuICAgIH0sXG4gIH1dLFxufSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnRGlzdHJpYnV0aW9uRG9tYWluTmFtZScsIHsgdmFsdWU6IGRpc3QuZG9tYWluTmFtZSB9KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.js deleted file mode 100644 index 123fe574e69f9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront-security-policy.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront-custom'); -new cloudfront.CloudFrontWebDistribution(stack, 'AnAmazingWebsiteProbably', { - originConfigs: [ - { - originHeaders: { - 'X-Custom-Header': 'somevalue', - }, - customOriginSource: { - domainName: 'brelandm.a2z.com', - }, - behaviors: [ - { - isDefaultBehavior: true, - }, - ], - }, - ], - aliasConfiguration: { - acmCertRef: 'arn:aws:acm:us-east-1:1111111:certificate/11-3336f1-44483d-adc7-9cd375c5169d', - names: ['test.test.com'], - sslMethod: cloudfront.SSLMethod.SNI, - securityPolicy: cloudfront.SecurityPolicyProtocol.TLS_V1, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1zZWN1cml0eS1wb2xpY3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZGZyb250LXNlY3VyaXR5LXBvbGljeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSwyQkFBMkIsQ0FBQyxDQUFDO0FBRTlELElBQUksVUFBVSxDQUFDLHlCQUF5QixDQUFDLEtBQUssRUFBRSwwQkFBMEIsRUFBRTtJQUMxRSxhQUFhLEVBQUU7UUFDYjtZQUNFLGFBQWEsRUFBRTtnQkFDYixpQkFBaUIsRUFBRSxXQUFXO2FBQy9CO1lBQ0Qsa0JBQWtCLEVBQUU7Z0JBQ2xCLFVBQVUsRUFBRSxrQkFBa0I7YUFDL0I7WUFDRCxTQUFTLEVBQUU7Z0JBQ1Q7b0JBQ0UsaUJBQWlCLEVBQUUsSUFBSTtpQkFDeEI7YUFDRjtTQUNGO0tBQ0Y7SUFDRCxrQkFBa0IsRUFBRTtRQUNsQixVQUFVLEVBQUUsOEVBQThFO1FBQzFGLEtBQUssRUFBRSxDQUFDLGVBQWUs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tYWRjNy05Y2QzNzVjNTE2OWQnLFxuICAgIG5hbWVzOiBbJ3Rlc3QudGVzdC5jb20nXSxcbiAgICBzc2xNZXRob2Q6IGNsb3VkZnJvbnQuU1NMTWV0aG9kLlNOSSxcbiAgICBzZWN1cml0eVBvbGljeTogY2xvdWRmcm9udC5TZWN1cml0eVBvbGljeVByb3RvY29sLlRMU19WMSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.js deleted file mode 100644 index f2e87fd68d79b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.cloudfront.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); -const sourceBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new cloudfront.CloudFrontWebDistribution(stack, 'MyDistribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: sourceBucket, - }, - behaviors: [{ isDefaultBehavior: true }], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50Z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uQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWNsb3VkZnJvbnQnKTtcblxuY29uc3Qgc291cmNlQnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ0J1Y2tldCcsIHtcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5uZXcgY2xvdWRmcm9udC5DbG91ZEZyb250V2ViRGlzdHJpYnV0aW9uKHN0YWNrLCAnTXlEaXN0cmlidXRpb24nLCB7XG4gIG9yaWdpbkNvbmZpZ3M6IFtcbiAgICB7XG4gICAgICBzM09yaWdpblNvdXJjZToge1xuICAgICAgICBzM0J1Y2tldFNvdXJjZTogc291cmNlQnVja2V0LFxuICAgICAgfSxcbiAgICAgIGJlaGF2aW9yczogW3sgaXNEZWZhdWx0QmVoYXZpb3I6IHRydWUgfV0sXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.js deleted file mode 100644 index 037b50f24c302..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-basic.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-basic'); -const distribution = new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { origin: new test_origin_1.TestOrigin('www.example.com') }, -}); -const role1 = new iam.Role(stack, 'Role1', { - assumedBy: new iam.AccountRootPrincipal(), -}); -const role2 = new iam.Role(stack, 'Role2', { - assumedBy: new iam.AccountRootPrincipal(), -}); -distribution.grantCreateInvalidation(role1); -distribution.grant(role2, 'cloudfront:ListInvalidations'); -new integ_tests_alpha_1.IntegTest(stack, 'distribution-basic-test', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWJhc2ljLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZGlzdHJpYnV0aW9uLWJhc2ljLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsK0NBQTJDO0FBQzNDLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDBCQUEwQixDQUFDLENBQUM7QUFFN0QsTUFBTSxZQUFZLEdBQUcsSUFBSSxVQUFVLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDOUQsZUFBZSxFQUFFLEVBQUUsTUFBTSxFQUFFLElBQUksd0JBQVUsQ0FBQyxpQkFBaUIsQ0FBQyxFQUFFO0NBQy9ELENBQUMsQ0FB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ycpO1xuXG5jb25zdCBkaXN0cmlidXRpb24gPSBuZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0Jywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHsgb3JpZ2luOiBuZXcgVGVzdE9yaWdpbignd3d3LmV4YW1wbGUuY29tJykgfSxcbn0pO1xuXG5jb25zdCByb2xlMSA9IG5ldyBpYW0uUm9sZShzdGFjaywgJ1JvbGUxJywge1xuICBhc3N1bWVkQnk6IG5ldyBpYW0uQWNjb3VudFJvb3RQcmluY2lwYWwoKSxcbn0pO1xuY29uc3Qgcm9sZTIgPSBuZXcgaWFtLlJvbGUoc3RhY2ssICdSb2xlMicsIHtcbiAgYXNzdW1lZEJ5OiBuZXcgaWFtLkFjY291bnRSb290UHJpbmNpcGFsKCksXG59KTtcbmRpc3RyaWJ1dGlvbi5ncmFudENyZWF0ZUludmFsaWRhdGlvbihyb2xlMSk7XG5kaXN0cmlidXRpb24uZ3JhbnQocm9sZTIsICdjbG91ZGZyb250Okxpc3RJbnZhbGlkYXRpb25zJyk7XG5cbm5ldyBJbnRlZ1Rlc3Qoc3RhY2ssICdkaXN0cmlidXRpb24tYmFzaWMtdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.js deleted file mode 100644 index e0896ddcc31bf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-extensive.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-extensive'); -new cloudfront.Distribution(stack, 'MyDist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com', { - originShieldRegion: 'us-west-2', - }), - }, - comment: 'a test', - defaultRootObject: 'index.html', - enabled: true, - enableIpv6: true, - enableLogging: true, - geoRestriction: cloudfront.GeoRestriction.whitelist('US', 'GB'), - httpVersion: cloudfront.HttpVersion.HTTP2, - logFilePrefix: 'logs/', - logIncludesCookies: true, - priceClass: cloudfront.PriceClass.PRICE_CLASS_100, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWV4dGVuc2l2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRpc3RyaWJ1dGlvbi1leHRlbnNpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsK0NBQTJDO0FBQzNDLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDhCQUE4QixDQUFDLENBQUM7QUFFakUsSUFBSSxVQUFVLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDM0MsZUFBZSxFQUFFO1FBQ2YsTUFBTSxFQUFFLElBQUksd0JBQVUsQ0FBQyxpQkFBaU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J3VzLXdlc3QtMicsXG4gICAgfSksXG4gIH0sXG4gIGNvbW1lbnQ6ICdhIHRlc3QnLFxuICBkZWZhdWx0Um9vdE9iamVjdDogJ2luZGV4Lmh0bWwnLFxuICBlbmFibGVkOiB0cnVlLFxuICBlbmFibGVJcHY2OiB0cnVlLFxuICBlbmFibGVMb2dnaW5nOiB0cnVlLFxuICBnZW9SZXN0cmljdGlvbjogY2xvdWRmcm9udC5HZW9SZXN0cmljdGlvbi53aGl0ZWxpc3QoJ1VTJywgJ0dCJyksXG4gIGh0dHBWZXJzaW9uOiBjbG91ZGZyb250Lkh0dHBWZXJzaW9uLkhUVFAyLFxuICBsb2dGaWxlUHJlZml4OiAnbG9ncy8nLFxuICBsb2dJbmNsdWRlc0Nvb2tpZXM6IHRydWUsXG4gIHByaWNlQ2xhc3M6IGNsb3VkZnJvbnQuUHJpY2VDbGFzcy5QUklDRV9DTEFTU18xMDAsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.js deleted file mode 100644 index 1ea498c05cb99..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-function.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-function', { env: { region: 'eu-west-1' } }); -const cfFunction = new cloudfront.Function(stack, 'Function', { - code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'), -}); -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com'), - cachePolicy: cloudfront.CachePolicy.CACHING_DISABLED, - functionAssociations: [{ - function: cfFunction, - eventType: cloudfront.FunctionEventType.VIEWER_REQUEST, - }], - }, -}); -new cdk.CfnOutput(stack, 'FunctionArn', { value: cfFunction.functionArn }); -new cdk.CfnOutput(stack, 'FunctionStage', { value: cfFunction.functionStage }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWZ1bmN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZGlzdHJpYnV0aW9uLWZ1bmN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLCtDQUEyQztBQUMzQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2QkFBNkIsRUFBRSxFQUFFLEdBQUcsRUFBRSxFQUFFLE1BQU0sRUFBRSxXQUFXLEVBQUUsRUFBRSxDQUFDLENBQUM7QUFFbEcsTUFBTSxVQUFVLEdBQUcsSUFBSSxVQUFVLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDNUQsSUFBSSxFQUFFLFVBQVUsQ0FBQyxZQUFZLENBQUMsVUFBVSxDQUFDLGtEQUFrRCxDQUFDO0NBQzdGLENBQUMsQ0FBQztBQUVIL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QgY2ZGdW5jdGlvbiA9IG5ldyBjbG91ZGZyb250LkZ1bmN0aW9uKHN0YWNrLCAnRnVuY3Rpb24nLCB7XG4gIGNvZGU6IGNsb3VkZnJvbnQuRnVuY3Rpb25Db2RlLmZyb21JbmxpbmUoJ2Z1bmN0aW9uIGhhbmRsZXIoZXZlbnQpIHsgcmV0dXJuIGV2ZW50LnJlcXVlc3QgfScpLFxufSk7XG5cbm5ldyBjbG91ZGZyb250LkRpc3RyaWJ1dGlvbihzdGFjaywgJ0Rpc3QnLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjoge1xuICAgIG9yaWdpbjogbmV3IFRlc3RPcmlnaW4oJ3d3dy5leGFtcGxlLmNvbScpLFxuICAgIGNhY2hlUG9saWN5OiBjbG91ZGZyb250LkNhY2hlUG9saWN5LkNBQ0hJTkdfRElTQUJMRUQsXG4gICAgZnVuY3Rpb25Bc3NvY2lhdGlvbnM6IFt7XG4gICAgICBmdW5jdGlvbjogY2ZGdW5jdGlvbixcbiAgICAgIGV2ZW50VHlwZTogY2xvdWRmcm9udC5GdW5jdGlvbkV2ZW50VHlwZS5WSUVXRVJfUkVRVUVTVCxcbiAgICB9XSxcbiAgfSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0Z1bmN0aW9uQXJuJywgeyB2YWx1ZTogY2ZGdW5jdGlvbi5mdW5jdGlvbkFybiB9KTtcbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnRnVuY3Rpb25TdGFnZScsIHsgdmFsdWU6IGNmRnVuY3Rpb24uZnVuY3Rpb25TdGFnZSB9KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.js deleted file mode 100644 index d8cd8daf2c39a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-http-version.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-http-version'); -new cloudfront.Distribution(stack, 'Http11', { - defaultBehavior: { origin: new test_origin_1.TestOrigin('www.example.com') }, - httpVersion: cloudfront.HttpVersion.HTTP1_1, -}); -new cloudfront.Distribution(stack, 'Http2', { - defaultBehavior: { origin: new test_origin_1.TestOrigin('www.example.com') }, - httpVersion: cloudfront.HttpVersion.HTTP2, -}); -new cloudfront.Distribution(stack, 'Http2and3', { - defaultBehavior: { origin: new test_origin_1.TestOrigin('www.example.com') }, - httpVersion: cloudfront.HttpVersion.HTTP2_AND_3, -}); -new cloudfront.Distribution(stack, 'Http3', { - defaultBehavior: { origin: new test_origin_1.TestOrigin('www.example.com') }, - httpVersion: cloudfront.HttpVersion.HTTP3, -}); -new integ_tests_alpha_1.IntegTest(app, 'DistributionHttpVersion', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWh0dHAtdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRpc3RyaWJ1dGlvbi1odHRwLXZlcnNpb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yaWdpbignd3d3LmV4YW1wbGUuY29tJykgfSxcbiAgaHR0cFZlcnNpb246IGNsb3VkZnJvbnQuSHR0cFZlcnNpb24uSFRUUDIsXG59KTtcbm5ldyBjbG91ZGZyb250LkRpc3RyaWJ1dGlvbihzdGFjaywgJ0h0dHAyYW5kMycsIHtcbiAgZGVmYXVsdEJlaGF2aW9yOiB7IG9yaWdpbjogbmV3IFRlc3RPcmlnaW4oJ3d3dy5leGFtcGxlLmNvbScpIH0sXG4gIGh0dHBWZXJzaW9uOiBjbG91ZGZyb250Lkh0dHBWZXJzaW9uLkhUVFAyX0FORF8zLFxufSk7XG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdIdHRwMycsIHtcbiAgZGVmYXVsdEJlaGF2aW9yOiB7IG9yaWdpbjogbmV3IFRlc3RPcmlnaW4oJ3d3dy5leGFtcGxlLmNvbScpIH0sXG4gIGh0dHBWZXJzaW9uOiBjbG91ZGZyb250Lkh0dHBWZXJzaW9uLkhUVFAzLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnRGlzdHJpYnV0aW9uSHR0cFZlcnNpb24nLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.js deleted file mode 100644 index 720524c51f0b1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-key-group.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-key-group'); -const publicKey = `-----BEGIN PUBLIC KEY----- -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAudf8/iNkQgdvjEdm6xYS -JAyxd/kGTbJfQNg9YhInb7TSm0dGu0yx8yZ3fnpmxuRPqJIlaVr+fT4YRl71gEYa -dlhHmnVegyPNjP9dNqZ7zwNqMEPOPnS/NOHbJj1KYKpn1f8pPNycQ5MQCntKGnSj -6fc+nbcC0joDvGz80xuy1W4hLV9oC9c3GT26xfZb2jy9MVtA3cppNuTwqrFi3t6e -0iGpraxZlT5wewjZLpQkngqYr6s3aucPAZVsGTEYPo4nD5mswmtZOm+tgcOrivtD -/3sD/qZLQ6c5siqyS8aTraD6y+VXugujfarTU65IeZ6QAUbLMsWuZOIi5Jn8zAwx -NQIDAQAB ------END PUBLIC KEY-----`; -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com'), - trustedKeyGroups: [ - new cloudfront.KeyGroup(stack, 'MyKeyGroup', { - items: [ - new cloudfront.PublicKey(stack, 'MyPublicKey', { - encodedKey: publicKey, - }), - ], - }), - ], - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWtleS1ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRpc3RyaWJ1dGlvbi1rZXktZ3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFD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xpY0tleSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgXSxcbiAgICAgIH0pLFxuICAgIF0sXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.js deleted file mode 100644 index 51ec940dd56d6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda-cross-region.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const region = 'eu-west-1'; -const stack = new cdk.Stack(app, 'integ-distribution-lambda-cross-region', { env: { region: region } }); -const lambdaFunction = new cloudfront.experimental.EdgeFunction(stack, 'Lambda', { - code: lambda.Code.fromInline('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const lambdaFunction2 = new cloudfront.experimental.EdgeFunction(stack, 'Lambda2', { - code: lambda.Code.fromInline('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - stackId: `edge-lambda-stack-${region}-2`, -}); -lambdaFunction.addAlias('live'); -lambdaFunction2.addAlias('live'); -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com'), - cachePolicy: cloudfront.CachePolicy.CACHING_DISABLED, - edgeLambdas: [ - { - functionVersion: lambdaFunction.currentVersion, - eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST, - }, - { - functionVersion: lambdaFunction2.currentVersion, - eventType: cloudfront.LambdaEdgeEventType.ORIGIN_RESPONSE, - }, - ], - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWxhbWJkYS1jcm9zcy1yZWdpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kaXN0cmlidXRpb24tbGFtYmRhLWNyb3NzLXJlZ2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGdCQUFnQjtBQUNoQixpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLCtDQUEyQztBQUMzQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxNQUFNLEdBQUcsV0FBVyxDQUFDO0FBQzNCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsd0NBQXdDLEVBQUUsRUFBRSxHQUFHLEVBQUUsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBRXhHLE1BQU0sY0FBYyxHQUFHLElBQUksVUFBVSxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUMvRSxJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDO0lBQ25DLE9BQU8sRUFBRSxlQUFlO0lBQ3hCLE9BQU8s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dlLWxhbWJkYS1zdGFjay0ke3JlZ2lvbn0tMmAsXG59KTtcblxubGFtYmRhRnVuY3Rpb24uYWRkQWxpYXMoJ2xpdmUnKTtcbmxhbWJkYUZ1bmN0aW9uMi5hZGRBbGlhcygnbGl2ZScpO1xuXG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0Jywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHtcbiAgICBvcmlnaW46IG5ldyBUZXN0T3JpZ2luKCd3d3cuZXhhbXBsZS5jb20nKSxcbiAgICBjYWNoZVBvbGljeTogY2xvdWRmcm9udC5DYWNoZVBvbGljeS5DQUNISU5HX0RJU0FCTEVELFxuICAgIGVkZ2VMYW1iZGFzOiBbXG4gICAgICB7XG4gICAgICAgIGZ1bmN0aW9uVmVyc2lvbjogbGFtYmRhRnVuY3Rpb24uY3VycmVudFZlcnNpb24sXG4gICAgICAgIGV2ZW50VHlwZTogY2xvdWRmcm9udC5MYW1iZGFFZGdlRXZlbnRUeXBlLk9SSUdJTl9SRVFVRVNULFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgZnVuY3Rpb25WZXJzaW9uOiBsYW1iZGFGdW5jdGlvbjIuY3VycmVudFZlcnNpb24sXG4gICAgICAgIGV2ZW50VHlwZTogY2xvdWRmcm9udC5MYW1iZGFFZGdlRXZlbnRUeXBlLk9SSUdJTl9SRVNQT05TRSxcbiAgICAgIH0sXG4gICAgXSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.js deleted file mode 100644 index c2c2b804b6906..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-lambda.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-lambda', { env: { region: 'us-east-1' } }); -const lambdaFunction = new lambda.Function(stack, 'Lambda', { - code: lambda.Code.fromInline('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com'), - cachePolicy: cloudfront.CachePolicy.CACHING_DISABLED, - edgeLambdas: [{ - functionVersion: lambdaFunction.currentVersion, - eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST, - }], - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLWxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRpc3RyaWJ1dGlvbi1sYW1iZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLCtDQUEyQztBQUMzQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFD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G91ZGZyb250JztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdpbnRlZy1kaXN0cmlidXRpb24tbGFtYmRhJywgeyBlbnY6IHsgcmVnaW9uOiAndXMtZWFzdC0xJyB9IH0pO1xuXG5jb25zdCBsYW1iZGFGdW5jdGlvbiA9IG5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssICdMYW1iZGEnLCB7XG4gIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21JbmxpbmUoJ2ZvbycpLFxuICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gIHJ1bnRpbWU6IGxhbWJkYS5SdW50aW1lLk5PREVKU18xNF9YLFxufSk7XG5cbm5ldyBjbG91ZGZyb250LkRpc3RyaWJ1dGlvbihzdGFjaywgJ0Rpc3QnLCB7XG4gIGRlZmF1bHRCZWhhdmlvcjoge1xuICAgIG9yaWdpbjogbmV3IFRlc3RPcmlnaW4oJ3d3dy5leGFtcGxlLmNvbScpLFxuICAgIGNhY2hlUG9saWN5OiBjbG91ZGZyb250LkNhY2hlUG9saWN5LkNBQ0hJTkdfRElTQUJMRUQsXG4gICAgZWRnZUxhbWJkYXM6IFt7XG4gICAgICBmdW5jdGlvblZlcnNpb246IGxhbWJkYUZ1bmN0aW9uLmN1cnJlbnRWZXJzaW9uLFxuICAgICAgZXZlbnRUeXBlOiBjbG91ZGZyb250LkxhbWJkYUVkZ2VFdmVudFR5cGUuT1JJR0lOX1JFUVVFU1QsXG4gICAgfV0sXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.js deleted file mode 100644 index 0f15d0de02875..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-id.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-origin-id'); -const origin = new test_origin_1.TestOrigin('www.example.com', { originId: 'my-custom-origin-id' }); -const distribution = new cloudfront.Distribution(stack, 'TestDistribution', { - defaultBehavior: { origin }, -}); -distribution.addBehavior('/second', origin); -distribution.addBehavior('/third', origin); -new integ_tests_alpha_1.IntegTest(app, 'DistributionOriginId', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLW9yaWdpbi1pZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRpc3RyaWJ1dGlvbi1vcmlnaW4taWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELCtDQUEyQztBQUMzQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRU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c3RPcmlnaW4oJ3d3dy5leGFtcGxlLmNvbScsIHsgb3JpZ2luSWQ6ICdteS1jdXN0b20tb3JpZ2luLWlkJyB9KTtcblxuY29uc3QgZGlzdHJpYnV0aW9uID0gbmV3IGNsb3VkZnJvbnQuRGlzdHJpYnV0aW9uKHN0YWNrLCAnVGVzdERpc3RyaWJ1dGlvbicsIHtcbiAgZGVmYXVsdEJlaGF2aW9yOiB7IG9yaWdpbiB9LFxufSk7XG5kaXN0cmlidXRpb24uYWRkQmVoYXZpb3IoJy9zZWNvbmQnLCBvcmlnaW4pO1xuZGlzdHJpYnV0aW9uLmFkZEJlaGF2aW9yKCcvdGhpcmQnLCBvcmlnaW4pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0Rpc3RyaWJ1dGlvbk9yaWdpbklkJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.js deleted file mode 100644 index ed7ef62a5345b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-origin-shield.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-origin-shield'); -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com', { - originShieldEnabled: false, - }), - }, -}); -new integ_tests_alpha_1.IntegTest(app, 'DistributionOriginShield', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGlzdHJpYnV0aW9uLW9yaWdpbi1zaGllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kaXN0cmlidXRpb24tb3JpZ2luLXNoaWVsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsK0NBQTJDO0FBQzNDLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGtDQUFrQyxDQUFDLENBQUM7QUFFckUsSUFBSSxVQUFVLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDekMsZUFBZSxFQUFFO1FBQ2YsTUFBTSxFQUFFLElBQUksd0JBQVUsQ0FBQyxpQkFBaUIsRUFBRTtZQUN4QyxtQkFBbUIsRUFBRSxLQUFLO1NBQzNCLENBQUM7S0FDSDtDQUNGLENBQUMsQ0FBQztBQUVILElBQUksNkJBQVMsQ0FBQyxHQUFHLEVBQUUsMEJBQTBCLEVBQUU7SUFDN0MsU0FBUyxFQUFFLENBQUMsS0FBSyxDQUFDO0NBQ25CLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBJbnRlZ1Rlc3QgfSBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBUZXN0T3JpZ2luIH0gZnJvbSAnLi90ZXN0LW9yaWdpbic7XG5pbXBvcnQgKiBhcyBjbG91ZGZyb250IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jbG91ZGZyb250JztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdpbnRlZy1kaXN0cmlidXRpb24tb3JpZ2luLXNoaWVsZCcpO1xuXG5uZXcgY2xvdWRmcm9udC5EaXN0cmlidXRpb24oc3RhY2ssICdEaXN0Jywge1xuICBkZWZhdWx0QmVoYXZpb3I6IHtcbiAgICBvcmlnaW46IG5ldyBUZXN0T3JpZ2luKCd3d3cuZXhhbXBsZS5jb20nLCB7XG4gICAgICBvcmlnaW5TaGllbGRFbmFibGVkOiBmYWxzZSxcbiAgICB9KSxcbiAgfSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0Rpc3RyaWJ1dGlvbk9yaWdpblNoaWVsZCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.js deleted file mode 100644 index 12f32ffa533e2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/integ.distribution-policies.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const test_origin_1 = require("./test-origin"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const aws_cloudfront_1 = require("aws-cdk-lib/aws-cloudfront"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-distribution-policies'); -const cachePolicy = new cloudfront.CachePolicy(stack, 'CachePolicy', { - cachePolicyName: 'ACustomCachePolicy', -}); -const originRequestPolicy = new cloudfront.OriginRequestPolicy(stack, 'OriginRequestPolicy', { - originRequestPolicyName: 'ACustomOriginRequestPolicy', - headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Forwarded-Proto'), -}); -const responseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(stack, 'ResponseHeadersPolicy', { - responseHeadersPolicyName: 'ACustomResponseHeadersPolicy', - corsBehavior: { - accessControlAllowCredentials: false, - accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'], - accessControlAllowMethods: ['GET', 'POST'], - accessControlAllowOrigins: ['*'], - accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'], - accessControlMaxAge: cdk.Duration.seconds(600), - originOverride: true, - }, - removeHeaders: ['Server'], - serverTimingSamplingRate: 50, -}); -new cloudfront.Distribution(stack, 'Dist', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example.com'), - cachePolicy, - originRequestPolicy, - responseHeadersPolicy, - }, -}); -new cloudfront.Distribution(stack, 'Dist-2', { - defaultBehavior: { - origin: new test_origin_1.TestOrigin('www.example-2.com'), - cachePolicy, - originRequestPolicy: aws_cloudfront_1.OriginRequestPolicy.ALL_VIEWER_EXCEPT_HOST_HEADER, - responseHeadersPolic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VQVF9IT1NUX0hFQURFUixcbiAgICByZXNwb25zZUhlYWRlcnNQb2xpY3ksXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.d.ts deleted file mode 100644 index 883253a4f06ff..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Construct } from 'constructs'; -import { CfnDistribution, IOrigin, OriginBase, OriginBindConfig, OriginBindOptions, OriginProps } from 'aws-cdk-lib/aws-cloudfront'; -/** Used for testing common Origin functionality */ -export declare class TestOrigin extends OriginBase { - constructor(domainName: string, props?: OriginProps); - protected renderCustomOriginConfig(): CfnDistribution.CustomOriginConfigProperty | undefined; -} -export declare class TestOriginGroup implements IOrigin { - private readonly primaryDomainName; - private readonly secondaryDomainName; - constructor(primaryDomainName: string, secondaryDomainName: string); - bind(scope: Construct, options: OriginBindOptions): OriginBindConfig; -} -export declare function defaultOrigin(domainName?: string, originId?: string): IOrigin; -export declare function defaultOriginGroup(): IOrigin; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.js deleted file mode 100644 index cddd035d40047..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront/test/test-origin.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultOriginGroup = exports.defaultOrigin = exports.TestOriginGroup = exports.TestOrigin = void 0; -const aws_cloudfront_1 = require("aws-cdk-lib/aws-cloudfront"); -/** Used for testing common Origin functionality */ -class TestOrigin extends aws_cloudfront_1.OriginBase { - constructor(domainName, props = {}) { super(domainName, props); } - renderCustomOriginConfig() { - return { originProtocolPolicy: aws_cloudfront_1.OriginProtocolPolicy.HTTPS_ONLY }; - } -} -exports.TestOrigin = TestOrigin; -class TestOriginGroup { - constructor(primaryDomainName, secondaryDomainName) { - this.primaryDomainName = primaryDomainName; - this.secondaryDomainName = secondaryDomainName; - } - /* eslint-disable @aws-cdk/no-core-construct */ - bind(scope, options) { - const primaryOrigin = new TestOrigin(this.primaryDomainName); - const secondaryOrigin = new TestOrigin(this.secondaryDomainName); - const primaryOriginConfig = primaryOrigin.bind(scope, options); - return { - originProperty: primaryOriginConfig.originProperty, - failoverConfig: { - failoverOrigin: secondaryOrigin, - }, - }; - } -} -exports.TestOriginGroup = TestOriginGroup; -function defaultOrigin(domainName, originId) { - return new TestOrigin(domainName ?? 'www.example.com', { - originId, - }); -} -exports.defaultOrigin = defaultOrigin; -function defaultOriginGroup() { - return new TestOriginGroup('www.example.com', 'foo.example.com'); -} -exports.defaultOriginGroup = defaultOriginGroup; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1vcmlnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXN0LW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwrREFBMEo7QUFFMUosbURBQW1EO0FBQ25ELE1BQWEsVUFBVyxTQUFRLDJCQUFVO0lBQ3hDLFlBQVksVUFBa0IsRUFBRSxRQUFxQixFQUFFLElBQUksS0FBSyxDQUFDLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUUsd0JBQXdCO1FBQ2hDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxxQ0FBb0IsQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNuRSxDQUFDO0NBQ0Y7QUFMRCxnQ0FLQztBQUVELE1BQWEsZUFBZTtJQUMxQixZQUE2QixpQkFBeUIsRUFBbUIsbUJBQTJCO1FBQXZFLHNCQUFpQixHQ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lKTtcbiAgICBjb25zdCBzZWNvbmRhcnlPcmlnaW4gPSBuZXcgVGVzdE9yaWdpbih0aGlzLnNlY29uZGFyeURvbWFpbk5hbWUpO1xuXG4gICAgY29uc3QgcHJpbWFyeU9yaWdpbkNvbmZpZyA9IHByaW1hcnlPcmlnaW4uYmluZChzY29wZSwgb3B0aW9ucyk7XG4gICAgcmV0dXJuIHtcbiAgICAgIG9yaWdpblByb3BlcnR5OiBwcmltYXJ5T3JpZ2luQ29uZmlnLm9yaWdpblByb3BlcnR5LFxuICAgICAgZmFpbG92ZXJDb25maWc6IHtcbiAgICAgICAgZmFpbG92ZXJPcmlnaW46IHNlY29uZGFyeU9yaWdpbixcbiAgICAgIH0sXG4gICAgfTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZGVmYXVsdE9yaWdpbihkb21haW5OYW1lPzogc3RyaW5nLCBvcmlnaW5JZD86IHN0cmluZyk6IElPcmlnaW4ge1xuICByZXR1cm4gbmV3IFRlc3RPcmlnaW4oZG9tYWluTmFtZSA/PyAnd3d3LmV4YW1wbGUuY29tJywge1xuICAgIG9yaWdpbklkLFxuICB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRlZmF1bHRPcmlnaW5Hcm91cCgpOiBJT3JpZ2luIHtcbiAgcmV0dXJuIG5ldyBUZXN0T3JpZ2luR3JvdXAoJ3d3dy5leGFtcGxlLmNvbScsICdmb28uZXhhbXBsZS5jb20nKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.js deleted file mode 100644 index 095f1beb65fb2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-data-events-only.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudtrail-data-events'); -const bucket = new s3.Bucket(stack, 'Bucket', { removalPolicy: cdk.RemovalPolicy.DESTROY }); -const lambdaFunction = new lambda.Function(stack, 'LambdaFunction', { - runtime: lambda.Runtime.NODEJS_18_X, - handler: 'hello.handler', - code: lambda.Code.fromInline('exports.handler = {}'), -}); -const trail = new cloudtrail.Trail(stack, 'Trail', { - managementEvents: cloudtrail.ReadWriteType.NONE, -}); -trail.addLambdaEventSelector([lambdaFunction]); -trail.addS3EventSelector([{ bucket }]); -new integ.IntegTest(app, 'CloudTrailDataEventsOnlyTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR0cmFpbC1kYXRhLWV2ZW50cy1vbmx5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2xvdWR0cmFpbC1kYXRhLWV2ZW50cy1vbmx5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELHlEQUF5RDtBQUV6RCxNQUFNLEdBQ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5hZGRMYW1iZGFFdmVudFNlbGVjdG9yKFtsYW1iZGFGdW5jdGlvbl0pO1xudHJhaWwuYWRkUzNFdmVudFNlbGVjdG9yKFt7IGJ1Y2tldCB9XSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnQ2xvdWRUcmFpbERhdGFFdmVudHNPbmx5VGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.js deleted file mode 100644 index 9d44fd48d60e2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-defaults.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudtrail-defaults'); -new cloudtrail.Trail(stack, 'Trail'); -new integ.IntegTest(app, 'CloudTrailDefaultsTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR0cmFpbC1kZWZhdWx0cy5qcyIsInNvdXJjZV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dENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.js deleted file mode 100644 index ddb8f5d5b48e0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-insight.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-cloudtrail-inshights-test'); -const cloudTrailPrincipal = new iam.ServicePrincipal('cloudtrail.amazonaws.com'); -const Trailbucket = new s3.Bucket(stack, 'S3', { - encryption: s3.BucketEncryption.UNENCRYPTED, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -Trailbucket.addToResourcePolicy(new iam.PolicyStatement({ - resources: [Trailbucket.bucketArn], - actions: ['s3:GetBucketAcl'], - principals: [cloudTrailPrincipal], -})); -Trailbucket.addToResourcePolicy(new iam.PolicyStatement({ - resources: [Trailbucket.arnForObjects(`AWSLogs/${aws_cdk_lib_1.Stack.of(stack).account}/*`)], - actions: ['s3:PutObject'], - principals: [cloudTrailPrincipal], - conditions: { - StringEquals: { 's3:x-amz-acl': 'bucket-owner-full-control' }, - }, -})); -new cloudtrail.Trail(stack, 'Trail', { - bucket: Trailbucket, - insightTypes: [ - cloudtrail.InsightType.API_CALL_RATE, - cloudtrail.InsightType.API_ERROR_RATE, - ], -}); -new integ.IntegTest(app, 'aws-cdk-cloudtrail-inshights', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR0cmFpbC1pbnNpZ2h0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2xvdWR0cmFpbC1pbnNpZ2h0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLHlDQUF5QztBQUN6Qyw2Q0FBd0Q7QUFDeEQsb0RBQW9EO0FBRXBELHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLG1DQUFtQyxDQUFDLENBQUM7QUFFbEUsTUFBTSxtQkFBbUIsR0FBRyxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQywwQkFBMEIsQ0FBQyxDQUFDO0FBRWpGLE1BQU0sV0FBVyxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsSUFBSSxFQUFFO0lBQzdDLFVBQVUsRUFBRSxFQUFFLENBQUMsZ0JBQWdCLENBQUMsV0FBVztJQUMzQyxhQUFhLEVBQUUsMkJBQWEsQ0FBQyxPQUFPO0lBQ3BDLGlCQUFpQixFQUFFLElBQUk7Q0FDeEIsQ0FBQyxDQUFDO0FBRUgsV0FBVyxDQUFD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0LmFkZFRvUmVzb3VyY2VQb2xpY3kobmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoe1xuICByZXNvdXJjZXM6IFtUcmFpbGJ1Y2tldC5hcm5Gb3JPYmplY3RzKGBBV1NMb2dzLyR7U3RhY2sub2Yoc3RhY2spLmFjY291bnR9LypgKV0sXG4gIGFjdGlvbnM6IFsnczM6UHV0T2JqZWN0J10sXG4gIHByaW5jaXBhbHM6IFtjbG91ZFRyYWlsUHJpbmNpcGFsXSxcbiAgY29uZGl0aW9uczoge1xuICAgIFN0cmluZ0VxdWFsczogeyAnczM6eC1hbXotYWNsJzogJ2J1Y2tldC1vd25lci1mdWxsLWNvbnRyb2wnIH0sXG4gIH0sXG59KSk7XG5cbm5ldyBjbG91ZHRyYWlsLlRyYWlsKHN0YWNrLCAnVHJhaWwnLCB7XG4gIGJ1Y2tldDogVHJhaWxidWNrZXQsXG4gIGluc2lnaHRUeXBlczogW1xuICAgIGNsb3VkdHJhaWwuSW5zaWdodFR5cGUuQVBJX0NBTExfUkFURSxcbiAgICBjbG91ZHRyYWlsLkluc2lnaHRUeXBlLkFQSV9FUlJPUl9SQVRFLFxuICBdLFxufSk7XG5cblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWNsb3VkdHJhaWwtaW5zaGlnaHRzJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.js deleted file mode 100644 index f2b289dec73f2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail-supplied-bucket.lit.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudtrail'); -const bucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const lambdaFunction = new lambda.Function(stack, 'LambdaFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'hello.handler', - code: lambda.Code.fromInline('exports.handler = {}'), -}); -// using exctecy the same code as inside the cloudtrail class to produce the supplied bucket and policy -const cloudTrailPrincipal = new iam.ServicePrincipal('cloudtrail.amazonaws.com'); -const Trailbucket = new s3.Bucket(stack, 'S3', { - encryption: s3.BucketEncryption.UNENCRYPTED, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -Trailbucket.addToResourcePolicy(new iam.PolicyStatement({ - resources: [Trailbucket.bucketArn], - actions: ['s3:GetBucketAcl'], - principals: [cloudTrailPrincipal], -})); -Trailbucket.addToResourcePolicy(new iam.PolicyStatement({ - resources: [Trailbucket.arnForObjects(`AWSLogs/${cdk.Stack.of(stack).account}/*`)], - actions: ['s3:PutObject'], - principals: [cloudTrailPrincipal], - conditions: { - StringEquals: { 's3:x-amz-acl': 'bucket-owner-full-control' }, - }, -})); -const trail = new cloudtrail.Trail(stack, 'Trail', { bucket: Trailbucket }); -trail.addLambdaEventSelector([lambdaFunction]); -trail.addS3EventSelector([{ bucket }]); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR0cmFpbC1zdXBwbGllZC1idWNrZXQubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2xvdWR0cmFpbC1zdXBwbGllZC1idWNrZXQubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLGlEQUFpRDtBQUNqRCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBRW5DLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGtCQUFrQixDQUFDLENBQUM7QUFFckQsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDNUMsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztJQUN4QyxpQkFBaUIsRUFBRSxJQUFJO0NBQ3hCLENBQUMsQ0FBQztBQUNILE1BQU0sY0FBYyxHQUFHLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDbEUsT0FBTyxFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVztJQUNuQyxPQUFPLEVBQUUsZUFBZTtJQUN4QixJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsc0JBQXNCLENBQUM7Q0FDckQsQ0FBQyxDQUFDO0FBRUgsdUdBQXVHO0FBQ3ZHLE1BQU0sbUJBQW1CLE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LFxuICBwcmluY2lwYWxzOiBbY2xvdWRUcmFpbFByaW5jaXBhbF0sXG4gIGNvbmRpdGlvbnM6IHtcbiAgICBTdHJpbmdFcXVhbHM6IHsgJ3MzOngtYW16LWFjbCc6ICdidWNrZXQtb3duZXItZnVsbC1jb250cm9sJyB9LFxuICB9LFxufSkpO1xuXG5jb25zdCB0cmFpbCA9IG5ldyBjbG91ZHRyYWlsLlRyYWlsKHN0YWNrLCAnVHJhaWwnLCB7IGJ1Y2tldDogVHJhaWxidWNrZXQgfSk7XG5cbnRyYWlsLmFkZExhbWJkYUV2ZW50U2VsZWN0b3IoW2xhbWJkYUZ1bmN0aW9uXSk7XG50cmFpbC5hZGRTM0V2ZW50U2VsZWN0b3IoW3sgYnVja2V0IH1dKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.js deleted file mode 100644 index e042e6aaa9e63..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudtrail/test/integ.cloudtrail.lit.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-cloudtrail'); -const bucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const topic = new sns.Topic(stack, 'Topic'); -const lambdaFunction = new lambda.Function(stack, 'LambdaFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'hello.handler', - code: lambda.Code.fromInline('exports.handler = {}'), -}); -const trail = new cloudtrail.Trail(stack, 'Trail', { - snsTopic: topic, -}); -trail.addLambdaEventSelector([lambdaFunction]); -trail.addS3EventSelector([{ bucket }]); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWR0cmFpbC5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZHRyYWlsLmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCx5Q0FBeUM7QUFDekMsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFFekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxrQkFBa0IsQ0FBQyxDQUFDO0FBRXJELE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQzVDLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87SUFDeEMsaUJBQWlCLEVBQUUsSUFBSTtDQUN4QixDQUFDLENBQUM7QUFDSCxNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0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cblxuY29uc3QgYnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ0J1Y2tldCcsIHtcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgYXV0b0RlbGV0ZU9iamVjdHM6IHRydWUsXG59KTtcbmNvbnN0IHRvcGljID0gbmV3IHNucy5Ub3BpYyhzdGFjaywgJ1RvcGljJyk7XG5jb25zdCBsYW1iZGFGdW5jdGlvbiA9IG5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssICdMYW1iZGFGdW5jdGlvbicsIHtcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gIGhhbmRsZXI6ICdoZWxsby5oYW5kbGVyJyxcbiAgY29kZTogbGFtYmRhLkNvZGUuZnJvbUlubGluZSgnZXhwb3J0cy5oYW5kbGVyID0ge30nKSxcbn0pO1xuXG5jb25zdCB0cmFpbCA9IG5ldyBjbG91ZHRyYWlsLlRyYWlsKHN0YWNrLCAnVHJhaWwnLCB7XG4gIHNuc1RvcGljOiB0b3BpYyxcbn0pO1xudHJhaWwuYWRkTGFtYmRhRXZlbnRTZWxlY3RvcihbbGFtYmRhRnVuY3Rpb25dKTtcbnRyYWlsLmFkZFMzRXZlbnRTZWxlY3RvcihbeyBidWNrZXQgfV0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.js deleted file mode 100644 index a37ea09af2ec2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch-actions/test/integ.ssm-incident-alarm-action.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const kms = require("aws-cdk-lib/aws-kms"); -const ssmIncidents = require("aws-cdk-lib/aws-ssmincidents"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudwatchActions = require("aws-cdk-lib/aws-cloudwatch-actions"); -class SsmIncidentAlarmActionIntegrationTestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const responsePlanName = 'test-response-plan'; - const key = new kms.Key(this, 'Key', { - pendingWindow: aws_cdk_lib_1.Duration.days(7), - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - const replicationSet = new ssmIncidents.CfnReplicationSet(this, 'ReplicationSet', { - deletionProtected: false, - regions: [{ - regionName: this.region, - regionConfiguration: { - sseKmsKeyId: key.keyArn, - }, - }], - }); - const responsePlan = new ssmIncidents.CfnResponsePlan(this, 'ResponsePlan', { - name: responsePlanName, - incidentTemplate: { - title: 'Incident Title', - impact: 1, - }, - }); - responsePlan.node.addDependency(replicationSet); - const metric = new cloudwatch.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric [AVG: ${AVG}]', - }); - const alarm = new cloudwatch.Alarm(this, 'Alarm1', { - metric, - threshold: 100, - evaluationPeriods: 3, - }); - alarm.node.addDependency(responsePlan); - alarm.addAlarmAction(new cloudwatchActions.SsmIncidentAction(responsePlanName)); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new SsmIncidentAlarmActionIntegrationTestStack(app, 'SsmIncidentAlarmActionIntegrationTestStack'); -new integ.IntegTest(app, 'SsmIncidentManagerAlarmActionTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3NtLWluY2lkZW50LWFsYXJtLWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNzbS1pbmNpZGVudC1hbGFybS1hY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBeUQ7QUFDekQsMkNBQTJDO0FBQzNDLDZEQUE2RDtBQUM3RCw2Q0FBOEU7QUFDOUUsb0RBQW9EO0FBRXBELHdFQUF3RTtBQUV4RSxNQUFNLDBDQUEyQyxTQUFRLG1CQUFLO0lBRTVELFlBQVksS0FBVSxFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUNwRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLGdCQUFnQixHQUFHLG9CQUFvQixDQUFDO1FBRTlDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsS0FBSyxFQUFFO1lBQ25DLGFBQWEsRUFBRSxzQkFBUSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7WUFDL0IsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztTQUNyQyxDQUFDLENBQUM7UUFDSCxNQUFNLGNBQWMsR0FBRyxJQUFJLFlBQVksQ0FBQyxpQkFBaUIsQ0FBQyxJQUFJLEVBQUUsZ0JBQWdCLEVBQUU7WUFDaEYsaUJBQWlCLEVBQUUsS0FBSztZQUN4QixPQUFPLEVBQUUsQ0FBQztvQkFDUixVQUFVLEVBQUUsSUFBSSxDQUFDLE1BQU07b0JBQ3ZCLG1CQUFtQixFQUFFO3dCQUNuQixXQUFXLEVBQUUsR0FBRyxD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aWMsXG4gICAgICB0aHJlc2hvbGQ6IDEwMCxcbiAgICAgIGV2YWx1YXRpb25QZXJpb2RzOiAzLFxuICAgIH0pO1xuICAgIGFsYXJtLm5vZGUuYWRkRGVwZW5kZW5jeShyZXNwb25zZVBsYW4pO1xuXG4gICAgYWxhcm0uYWRkQWxhcm1BY3Rpb24obmV3IGNsb3Vkd2F0Y2hBY3Rpb25zLlNzbUluY2lkZW50QWN0aW9uKHJlc3BvbnNlUGxhbk5hbWUpKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFNzbUluY2lkZW50QWxhcm1BY3Rpb25JbnRlZ3JhdGlvblRlc3RTdGFjayhhcHAsICdTc21JbmNpZGVudEFsYXJtQWN0aW9uSW50ZWdyYXRpb25UZXN0U3RhY2snKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdTc21JbmNpZGVudE1hbmFnZXJBbGFybUFjdGlvblRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.js deleted file mode 100644 index ac8bed91aff7e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-and-dashboard.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -// Integration test to deploy some resources, create an alarm on it and create a dashboard. -// -// Because literally every other library is going to depend on @aws-cdk/aws-cloudwatch, we drop down -// to the very lowest level to create CloudFormation resources by hand, without even generated -// library support. -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudwatch-alarms'); -const queue = new cdk.CfnResource(stack, 'queue', { type: 'AWS::SQS::Queue' }); -const numberOfMessagesVisibleMetric = new cloudwatch.Metric({ - namespace: 'AWS/SQS', - metricName: 'ApproximateNumberOfMessagesVisible', - dimensionsMap: { QueueName: queue.getAtt('QueueName').toString() }, -}); -const sentMessageSizeMetric = new cloudwatch.Metric({ - namespace: 'AWS/SQS', - metricName: 'SentMessageSize', - dimensionsMap: { QueueName: queue.getAtt('QueueName').toString() }, -}); -const alarm = numberOfMessagesVisibleMetric.createAlarm(stack, 'Alarm', { - threshold: 100, - evaluationPeriods: 3, - datapointsToAlarm: 2, -}); -const dashboard = new cloudwatch.Dashboard(stack, 'Dash', { - dashboardName: 'MyCustomDashboardName', - start: '-9H', - end: '2018-12-17T06:00:00.000Z', - periodOverride: cloudwatch.PeriodOverride.INHERIT, -}); -dashboard.addWidgets(new cloudwatch.TextWidget({ markdown: '# This is my dashboard' }), new cloudwatch.TextWidget({ markdown: 'you like?' })); -dashboard.addWidgets(new cloudwatch.AlarmWidget({ - title: 'Messages in queue', - alarm, -})); -dashboard.addWidgets(new cloudwatch.AlarmStatusWidget({ - title: 'Firing alarms', - alarms: [alarm], -})); -dashboard.addWidgets(new cloudwatch.GraphWidget({ - title: 'More messages in queue with alarm annotation', - left: [numberOfMessagesVisibleMetric], - leftAnnotations: [alarm.toAnnotation()], -})); -dashboard.addWidgets(new cloudwatch.SingleValueWidget({ - title: 'Current messages in queue', - metrics: [numberOfMessagesVisibleMetric], -})); -dashboard.addWidgets(new cloudwatch.LogQueryWidget({ - title: 'Errors in my log group', - logGroupNames: ['my-log-group'], - queryString: `fields @message - | filter @message like /Error/`, -})); -dashboard.addWidgets(new cloudwatch.LogQueryWidget({ - title: 'Errors in my log group - bar', - view: cloudwatch.LogQueryVisualizationType.BAR, - logGroupNames: ['my-log-group'], - queryString: `fields @message - | filter @message like /Error/`, -})); -dashboard.addWidgets(new cloudwatch.LogQueryWidget({ - title: 'Errors in my log group - line', - view: cloudwatch.LogQueryVisualizationType.LINE, - logGroupNames: ['my-log-group'], - queryString: `fields @message - | filter @message like /Error/`, -})); -dashboard.addWidgets(new cloudwatch.LogQueryWidget({ - title: 'Errors in my log group - stacked', - view: cloudwatch.LogQueryVisualizationType.STACKEDAREA, - logGroupNames: ['my-log-group'], - queryString: `fields @message - | filter @message like /Error/`, -})); -dashboard.addWidgets(new cloudwatch.LogQueryWidget({ - title: 'Errors in my log group - pie', - view: cloudwatch.LogQueryVisualizationType.PIE, - logGroupNames: ['my-log-group'], - queryString: `fields @message - | filter @message like /Error/`, -})); -dashboard.addWidgets(new cloudwatch.SingleValueWidget({ - title: 'Sent message size', - metrics: [sentMessageSizeMetric], - fullPrecision: false, -})); -dashboard.addWidgets(new cloudwatch.SingleValueWidget({ - title: 'Sent message size with full precision', - metrics: [sentMessageSizeMetric], - fullPrecision: true, -})); -dashboard.addWidgets(new cloudwatch.CustomWidget({ - title: 'My custom alarm', - functionArn: 'arn:aws:lambda:us-west-2:123456789012:function:my-function', -})); -new integ_tests_alpha_1.IntegTest(app, 'cdk-cloudwatch-alarms-integ-test', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxhcm0tYW5kLWRhc2hib2FyZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYXJtLWFuZC1kYXNoYm9hcmQudHMiXSwibmFtZXMiOltd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OmZ1bmN0aW9uOm15LWZ1bmN0aW9uJyxcbn0pKTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstY2xvdWR3YXRjaC1hbGFybXMtaW50ZWctdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.js deleted file mode 100644 index d5399c349b4d2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.alarm-with-label.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -class AlarmWithLabelIntegrationTest extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const testMetric = new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric [AVG: ${AVG}]', - }); - new aws_cloudwatch_1.Alarm(this, 'Alarm1', { - metric: testMetric, - threshold: 100, - evaluationPeriods: 3, - }); - testMetric.createAlarm(this, 'Alarm2', { - threshold: 100, - evaluationPeriods: 3, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-cloudwatch-alarms-with-label-integ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ID0gbmV3IEFwcCgpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1jbG91ZHdhdGNoLWFsYXJtcy13aXRoLWxhYmVsLWludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW25ldyBBbGFybVdpdGhMYWJlbEludGVncmF0aW9uVGVzdChhcHAsICdBbGFybVdpdGhMYWJlbEludGVncmF0aW9uVGVzdCcpXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.js deleted file mode 100644 index 8d824a87d3284..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.composite-alarm.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -class CompositeAlarmIntegrationTest extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const testMetric = new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - }); - const alarm1 = new aws_cloudwatch_1.Alarm(this, 'Alarm1', { - metric: testMetric, - threshold: 100, - evaluationPeriods: 3, - }); - const alarm2 = new aws_cloudwatch_1.Alarm(this, 'Alarm2', { - metric: testMetric, - threshold: 1000, - evaluationPeriods: 3, - }); - const alarm3 = new aws_cloudwatch_1.Alarm(this, 'Alarm3', { - metric: testMetric, - threshold: 10000, - evaluationPeriods: 3, - }); - const alarm4 = new aws_cloudwatch_1.Alarm(this, 'Alarm4', { - metric: testMetric, - threshold: 100000, - evaluationPeriods: 3, - }); - const alarm5 = new aws_cloudwatch_1.Alarm(this, 'Alarm5', { - alarmName: 'Alarm with space in name', - metric: testMetric, - threshold: 100000, - evaluationPeriods: 3, - }); - const alarmRule = aws_cloudwatch_1.AlarmRule.anyOf(aws_cloudwatch_1.AlarmRule.allOf(aws_cloudwatch_1.AlarmRule.anyOf(alarm1, aws_cloudwatch_1.AlarmRule.fromAlarm(alarm2, aws_cloudwatch_1.AlarmState.OK), alarm3, alarm5), aws_cloudwatch_1.AlarmRule.not(aws_cloudwatch_1.AlarmRule.fromAlarm(alarm4, aws_cloudwatch_1.AlarmState.INSUFFICIENT_DATA))), aws_cloudwatch_1.AlarmRule.fromBoolean(false)); - new aws_cloudwatch_1.CompositeAlarm(this, 'CompositeAlarm', { - alarmRule, - actionsSuppressor: alarm5, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-composite-alarm', { - testCases: [new CompositeAlarmIntegrationTest(app, 'CompositeAlarmIntegrationTest')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29tcG9zaXRlLWFsYXJtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29tcG9zaXRlLWFsYXJtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQXFEO0FBQ3JELGtFQUF1RDtBQUN2RCwrREFBa0c7QUFFbEcsTUFBTSw2QkFBOEIsU0FBUSxtQkFBSztJQUUvQyxZQUFZLEtBQVUsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDcEQsS0FBSyxDQUFDLEtBQUssRUFBR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bmV3IENvbXBvc2l0ZUFsYXJtSW50ZWdyYXRpb25UZXN0KGFwcCwgJ0NvbXBvc2l0ZUFsYXJtSW50ZWdyYXRpb25UZXN0JyldLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.js deleted file mode 100644 index 518564e118248..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard-with-graphwidget-with-statistic.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -class DashboardWithGraphWidgetWithStatisticIntegrationTest extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const dashboard = new aws_cloudwatch_1.Dashboard(this, 'Dash'); - const widget = new aws_cloudwatch_1.GraphWidget({ - title: 'My fancy graph', - left: [ - new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric left 1 - p99', - statistic: aws_cloudwatch_1.Stats.p(99), - }), - new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric left 2 - TC_10P_90P', - statistic: aws_cloudwatch_1.Stats.tc(10, 90), - }), - new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric left 3 - TS(5%:95%)', - statistic: 'TS(5%:95%)', - }), - ], - right: [ - new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - label: 'Metric right 1 - p90.1234', - statistic: 'p90.1234', - }), - ], - }); - dashboard.addWidgets(widget); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-dashboard-with-graph-widget-with-statistic', { - testCases: [new DashboardWithGraphWidgetWithStatisticIntegrationTest(app, 'DashboardWithGraphWidgetWithStatisticIntegrationTest')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGFzaGJvYXJkLXdpdGgtZ3JhcGh3aWRnZXQtd2l0aC1zdGF0aXN0aWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kYXNoYm9hcmQtd2l0aC1ncmFwaHdpZGdldC13aXRoLXN0YXRpc3RpYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFxRDtBQUNyRCxrRUFBdUQ7QUFDdkQsK0RBQW1GO0FBRW5GLE1BQU0sb0RBQXFELFNBQVEsbUJBQUs7SUFDdEUsWUFBWSxLQUFVLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQ3BELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sU0FBUyxHQUFHLElBQUksMEJBQVMsQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFOUMsTUFBTSxNQUFNLEdBQUcsSUFBSSw0QkFBVyxDQUFDO1lBQzdCLEtBQUssRUFBRSxnQkFBZ0I7WUFDdkIsSUFBSSxFQUFFO2dCQU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--git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.js deleted file mode 100644 index a83154991a83d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.dashboard.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'DashboardIntegrationTestStack'); -const dashboard = new cloudwatch.Dashboard(stack, 'Dash', { - defaultInterval: cdk.Duration.days(7), -}); -dashboard.addWidgets(new cloudwatch.TextWidget({ - markdown: 'I don\'t have a background', - background: aws_cloudwatch_1.TextWidgetBackground.TRANSPARENT, -})); -new cdk.CfnOutput(stack, 'DashboardArn', { - value: dashboard.dashboardArn, -}); -new integ.IntegTest(app, 'DashboardIntegrationTest', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGFzaGJvYXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZGFzaGJvYXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCx5REFBeUQ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dFdpZGdldEJhY2tncm91bmQgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWR3YXRjaCc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdEYXNoYm9hcmRJbnRlZ3JhdGlvblRlc3RTdGFjaycpO1xuXG5jb25zdCBkYXNoYm9hcmQgPSBuZXcgY2xvdWR3YXRjaC5EYXNoYm9hcmQoc3RhY2ssICdEYXNoJywge1xuICBkZWZhdWx0SW50ZXJ2YWw6IGNkay5EdXJhdGlvbi5kYXlzKDcpLFxufSk7XG5cbmRhc2hib2FyZC5hZGRXaWRnZXRzKG5ldyBjbG91ZHdhdGNoLlRleHRXaWRnZXQoe1xuICBtYXJrZG93bjogJ0kgZG9uXFwndCBoYXZlIGEgYmFja2dyb3VuZCcsXG4gIGJhY2tncm91bmQ6IFRleHRXaWRnZXRCYWNrZ3JvdW5kLlRSQU5TUEFSRU5ULFxufSkpO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0Rhc2hib2FyZEFybicsIHtcbiAgdmFsdWU6IGRhc2hib2FyZC5kYXNoYm9hcmRBcm4sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdEYXNoYm9hcmRJbnRlZ3JhdGlvblRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.js deleted file mode 100644 index f09ee9315856a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.gauge-alarm.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'gauge-alarm'); -const queue = new cdk.CfnResource(stack, 'queue', { type: 'AWS::SQS::Queue' }); -const numberOfMessagesVisibleMetric = new cloudwatch.Metric({ - namespace: 'AWS/SQS', - metricName: 'ApproximateNumberOfMessagesVisible', - dimensionsMap: { QueueName: queue.getAtt('QueueName').toString() }, -}); -const dashboard = new cloudwatch.Dashboard(stack, 'Dash', { - dashboardName: 'MyCustomGaugeAlarm', -}); -dashboard.addWidgets(new cloudwatch.GaugeWidget({ - leftYAxis: { - max: 500, - min: 0, - }, - width: 24, - metrics: [numberOfMessagesVisibleMetric], -})); -new integ.IntegTest(app, 'GaugeAlarmIntegrationTest', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2F1Z2UtYWxhcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5nYXVnZS1hbGFybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQseURBQXlEO0FBRXpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFFaEQsTUFBTSx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AgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.js deleted file mode 100644 index dd25fe0bb5a7f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.math-alarm-and-dashboard.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -// Integration test to deploy some resources, create an alarm on it and create a dashboard. -// -// Because literally every other library is going to depend on @aws-cdk/aws-cloudwatch, we drop down -// to the very lowest level to create CloudFormation resources by hand, without even generated -// library support. -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudwatch'); -const queue = new cdk.CfnResource(stack, 'queue', { type: 'AWS::SQS::Queue' }); -const metricA = new cloudwatch.Metric({ - namespace: 'AWS/SQS', - metricName: 'ApproximateNumberOfMessagesVisible', - dimensionsMap: { QueueName: queue.getAtt('QueueName').toString() }, - period: cdk.Duration.seconds(10), - label: 'Visible Messages', -}); -const metricB = new cloudwatch.Metric({ - namespace: 'AWS/SQS', - metricName: 'ApproximateNumberOfMessagesNotVisible', - dimensionsMap: { QueueName: queue.getAtt('QueueName').toString() }, - period: cdk.Duration.seconds(30), - label: 'NotVisible Messages', -}); -const sumExpression = new cloudwatch.MathExpression({ - expression: 'm1+m2', - usingMetrics: { - m1: metricA, - m2: metricB, - }, - label: 'Total Messages', - period: cdk.Duration.minutes(1), -}); -const alarm = sumExpression.createAlarm(stack, 'Alarm', { - threshold: 100, - evaluationPeriods: 3, -}); -const dashboard = new cloudwatch.Dashboard(stack, 'Dash', { - dashboardName: 'MyMathExpressionDashboardName', -}); -dashboard.addWidgets(new cloudwatch.AlarmWidget({ - title: 'Total messages in queue', - alarm, -})); -dashboard.addWidgets(new cloudwatch.GraphWidget({ - title: 'More total messages in queue with alarm annotation', - left: [sumExpression], - right: [metricA, metricB], - leftAnnotations: [alarm.toAnnotation()], -})); -dashboard.addWidgets(new cloudwatch.GraphWidget({ - title: 'Percentage of messages in each queue as pie chart', - left: [metricA, metricB], - view: cloudwatch.GraphWidgetView.PIE, - setPeriodToTimeRange: true, -})); -dashboard.addWidgets(new cloudwatch.SingleValueWidget({ - title: 'Current total messages in queue', - metrics: [sumExpression], -})); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-math-alarm-and-dashboard', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWF0aC1hbGFybS1hbmQtZGFzaGJvYXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubWF0aC1hbGFybS1hbmQtZGFzaGJvYXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyRkFBMkY7QUFDM0YsRUFBRTtBQUNGLG9HQUFvRztBQUNwRyw4RkFBOEY7QUFDOUYsbUJBQW1COztBQUVuQixtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtB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XNzYWdlcyBpbiBlYWNoIHF1ZXVlIGFzIHBpZSBjaGFydCcsXG4gIGxlZnQ6IFttZXRyaWNBLCBtZXRyaWNCXSxcbiAgdmlldzogY2xvdWR3YXRjaC5HcmFwaFdpZGdldFZpZXcuUElFLFxuICBzZXRQZXJpb2RUb1RpbWVSYW5nZTogdHJ1ZSxcbn0pKTtcblxuZGFzaGJvYXJkLmFkZFdpZGdldHMobmV3IGNsb3Vkd2F0Y2guU2luZ2xlVmFsdWVXaWRnZXQoe1xuICB0aXRsZTogJ0N1cnJlbnQgdG90YWwgbWVzc2FnZXMgaW4gcXVldWUnLFxuICBtZXRyaWNzOiBbc3VtRXhwcmVzc2lvbl0sXG59KSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLW1hdGgtYWxhcm0tYW5kLWRhc2hib2FyZCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.js deleted file mode 100644 index 859837bedb2ff..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.sparkline-singlevaluewidget-and-dashboard.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const dashboard = new aws_cloudwatch_1.Dashboard(this, 'Dashboard'); - const testMetric = new aws_cloudwatch_1.Metric({ - namespace: 'CDK/Test', - metricName: 'Metric', - }); - const widget = new aws_cloudwatch_1.SingleValueWidget({ - metrics: [testMetric], - sparkline: true, - }); - dashboard.addWidgets(widget); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'aws-cdk-cloudwatch-singlevaluewidget-sparkline-integ'); -new integ_tests_alpha_1.IntegTest(app, 'singlevaluewidget-with-sparkline', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3BhcmtsaW5lLXNpbmdsZXZhbHVld2lkZ2V0LWFuZC1kYXNoYm9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zcGFya2xpbmUtc2luZ2xldmFsdWV3aWRnZXQtYW5kLWRhc2hib2FyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFxRDtBQUNyRCxrRUFBdUQ7QUFDdkQsK0RBQWtGO0FBRWxGLE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBVSxFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUNwRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLFNBQVMsR0FBRyxJQUFJLDBCQUFTLENBQUMsSUFBSSxFQUFFLFdBQVcsQ0FBQyxDQUFDO1FBRW5ELE1BQU0sVUFBVSxHQUFHLElBQUksdUJBQU0sQ0FBQztZQUM1QixTQUFTLE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EYXNoYm9hcmQnKTtcblxuICAgIGNvbnN0IHRlc3RNZXRyaWMgPSBuZXcgTWV0cmljKHtcbiAgICAgIG5hbWVzcGFjZTogJ0NESy9UZXN0JyxcbiAgICAgIG1ldHJpY05hbWU6ICdNZXRyaWMnLFxuICAgIH0pO1xuXG4gICAgY29uc3Qgd2lkZ2V0ID0gbmV3IFNpbmdsZVZhbHVlV2lkZ2V0KHtcbiAgICAgIG1ldHJpY3M6IFt0ZXN0TWV0cmljXSxcbiAgICAgIHNwYXJrbGluZTogdHJ1ZSxcbiAgICB9KTtcblxuICAgIGRhc2hib2FyZC5hZGRXaWRnZXRzKHdpZGdldCk7XG4gIH1cbn1cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLWNsb3Vkd2F0Y2gtc2luZ2xldmFsdWV3aWRnZXQtc3BhcmtsaW5lLWludGVnJyk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3NpbmdsZXZhbHVld2lkZ2V0LXdpdGgtc3BhcmtsaW5lJywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.js deleted file mode 100644 index 3f77197688509..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'CodeBuildAssetBuildSpecStack'); -// Create a codebuild project using a local asset as the buildspec file -const buildSpec = codebuild.BuildSpec.fromAsset(path.resolve(__dirname, 'build-spec-asset.yml')); -const project = new codebuild.Project(stack, 'MyProject', { - buildSpec, -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'AssetBuildSpecTest', { testCases: [stack] }); -const getBuildProject = integ.assertions.awsApiCall('CodeBuild', 'batchGetProjects', { - names: [project.projectName], -}); -getBuildProject.assertAtPath('projects.0.name.buildspec', integ_tests_alpha_1.ExpectedResult.exact(project.projectName)); -getBuildProject.assertAtPath('projects.0.source.buildspec', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('.+')); -const getBuildProjectBuildSpecArn = getBuildProject.getAttString('projects.0.source.buildspec'); -// Assert that the buildspec for the project is in fact an S3 object arn -// by parsing it and calling `getObject`. -const { resource, resourceName } = cdk.Arn.parse(getBuildProjectBuildSpecArn); -integ.assertions.awsApiCall('S3', 'getObject', { - Bucket: resource, - Key: resourceName, -}); -// Kick off a build -const startBuild = integ.assertions.awsApiCall('CodeBuild', 'startBuild', { - projectName: project.projectName, -}); -// Describe the build and wait for the status to be successful -integ.assertions.awsApiCall('CodeBuild', 'batchGetBuilds', { - ids: [startBuild.getAttString('build.id')], -}).assertAtPath('builds.0.buildStatus', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('SUCCEEDED')).waitForAssertions({ - totalTimeout: cdk.Duration.minutes(5), - interval: cdk.Duration.seconds(30), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXQtYnVpbGQtc3BlYy5qcyIsInNvdX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wcm9qZWN0TmFtZSxcbn0pO1xuXG4vLyBEZXNjcmliZSB0aGUgYnVpbGQgYW5kIHdhaXQgZm9yIHRoZSBzdGF0dXMgdG8gYmUgc3VjY2Vzc2Z1bFxuaW50ZWcuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdDb2RlQnVpbGQnLCAnYmF0Y2hHZXRCdWlsZHMnLCB7XG4gIGlkczogW3N0YXJ0QnVpbGQuZ2V0QXR0U3RyaW5nKCdidWlsZC5pZCcpXSxcbn0pLmFzc2VydEF0UGF0aChcbiAgJ2J1aWxkcy4wLmJ1aWxkU3RhdHVzJyxcbiAgRXhwZWN0ZWRSZXN1bHQuc3RyaW5nTGlrZVJlZ2V4cCgnU1VDQ0VFREVEJyksXG4pLndhaXRGb3JBc3NlcnRpb25zKHtcbiAgdG90YWxUaW1lb3V0OiBjZGsuRHVyYXRpb24ubWludXRlcyg1KSxcbiAgaW50ZXJ2YWw6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.js deleted file mode 100644 index 2bb31a4406954..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.aws-deep-learning-container-build-image.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new core.App(); -const stack = new core.Stack(app, 'aws-deep-learning-container-build-image'); -new codebuild.Project(stack, 'Project', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['ls'], - }, - }, - }), - environment: { - buildImage: codebuild.LinuxGpuBuildImage.DLC_MXNET_1_4_1, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzLWRlZXAtbGVhcm5pbmctY29udGFpbmVyLWJ1aWxkLWltYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXdzLWRlZXAtbGVhcm5pbmctY29udGFpbmVyLWJ1aWxkLWltYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBQW9DO0FBQ3BDLHVEQUF1RDtBQUV2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMzQixNQUFNLEtBQUssR0FBRyxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHlDQUF5QyxDQUFDLENBQUM7QUFFN0UsSUFBSSxTQUFTLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDdEMsU0FBUyxFQUFFLFNBQVMsQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDO1FBQ3hDLE9BQU8sRUFBRSxLQUFLO1FBQ2QsTUFBTSxFQUFFO1lBQ04sS0FBSyxFQUFFO2dCQUNMLFFBQVEsRUFBRSxDQUFDLElBQUksQ0FBQzthQUNqQjtTQUNGO0tBQ0YsQ0FBQztJQUNGLFdBQVcsRUFBRTtRQUNYLFVBQVUsRUFBRSxTQUFTLENBQUMsa0JBQWtCLENBQUMsZUFBZTtLQUN6RDtDQUNGLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNvcmUgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgY29kZWJ1aWxkIGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2RlYnVpbGQnO1xuXG5jb25zdCBhcHAgPSBuZXcgY29yZS5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNvcmUuU3RhY2soYXBwLCAnYXdzLWRlZXAtbGVhcm5pbmctY29udGFpbmVyLWJ1aWxkLWltYWdlJyk7XG5cbm5ldyBjb2RlYnVpbGQuUHJvamVjdChzdGFjaywgJ1Byb2plY3QnLCB7XG4gIGJ1aWxkU3BlYzogY29kZWJ1aWxkLkJ1aWxkU3BlYy5mcm9tT2JqZWN0KHtcbiAgICB2ZXJzaW9uOiAnMC4yJyxcbiAgICBwaGFzZXM6IHtcbiAgICAgIGJ1aWxkOiB7XG4gICAgICAgIGNvbW1hbmRzOiBbJ2xzJ10sXG4gICAgICB9LFxuICAgIH0sXG4gIH0pLFxuICBlbnZpcm9ubWVudDoge1xuICAgIGJ1aWxkSW1hZ2U6IGNvZGVidWlsZC5MaW51eEdwdUJ1aWxkSW1hZ2UuRExDX01YTkVUXzFfNF8xLFxuICB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.js deleted file mode 100644 index a2c5d5ad17aa3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.breakpoint.js +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-breakpoint'); -new codebuild.Project(stack, 'Project', { - environment: { - buildImage: codebuild.LinuxBuildImage.STANDARD_6_0, - }, - ssmSessionPermissions: true, - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: [ - // Pause the build container if possible - 'codebuild-breakpoint', - // Regular build in a script in the repository - 'echo "regular build here"', - ], - }, - }, - }), -}); -new integ.IntegTest(app, 'ReportGroupIntegTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnJlYWtwb2ludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmJyZWFrcG9pbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCx1REFBdUQ7QUFFdkQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw4QkFBOEIsQ0FBQyxDQUFDO0FBRWpFLElBQUksU0FBUyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsU0FBUyxFQUFFO0lBQ3RDLFdBQVcsRUFBRTtRQUNYLFVBQVUsRUFBRSxTQUFTLENBQUMsZUFBZSxDQU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gc3NtU2Vzc2lvblBlcm1pc3Npb25zOiB0cnVlLFxuICBidWlsZFNwZWM6IGNvZGVidWlsZC5CdWlsZFNwZWMuZnJvbU9iamVjdCh7XG4gICAgdmVyc2lvbjogJzAuMicsXG4gICAgcGhhc2VzOiB7XG4gICAgICBidWlsZDoge1xuICAgICAgICBjb21tYW5kczogW1xuICAgICAgICAgIC8vIFBhdXNlIHRoZSBidWlsZCBjb250YWluZXIgaWYgcG9zc2libGVcbiAgICAgICAgICAnY29kZWJ1aWxkLWJyZWFrcG9pbnQnLFxuICAgICAgICAgIC8vIFJlZ3VsYXIgYnVpbGQgaW4gYSBzY3JpcHQgaW4gdGhlIHJlcG9zaXRvcnlcbiAgICAgICAgICAnZWNobyBcInJlZ3VsYXIgYnVpbGQgaGVyZVwiJyxcbiAgICAgICAgXSxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSksXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdSZXBvcnRHcm91cEludGVnVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuXG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.js deleted file mode 100644 index d5e00902f8d7a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.js +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const aws_codebuild_1 = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild'); -const bucket = new s3.Bucket(stack, 'CacheBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new codebuild.Project(stack, 'MyProject', { - cache: aws_codebuild_1.Cache.bucket(bucket), - buildSpec: codebuild.BuildSpec.fromObject({ - build: { - commands: ['echo Hello'], - }, - cache: { - paths: ['/root/.cache/pip/**/*'], - }, - }), - grantReportGroupPermissions: false, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FjaGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNhY2hpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyx1REFBdUQ7QUFDdkQsNkRBQWtEO0FBRWxELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUV0RCxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLGFBQWEsRUFBRTtJQUNqRCxhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUVILElBQUksU0FBUyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFO0lBQ3hDLEtBQUssRUFBRSxxQkFBSyxDQUFDLE1BQU0sQ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GQ6IHtcbiAgICAgIGNvbW1hbmRzOiBbJ2VjaG8gSGVsbG8nXSxcbiAgICB9LFxuICAgIGNhY2hlOiB7XG4gICAgICBwYXRoczogWycvcm9vdC8uY2FjaGUvcGlwLyoqLyonXSxcbiAgICB9LFxuICB9KSxcbiAgZ3JhbnRSZXBvcnRHcm91cFBlcm1pc3Npb25zOiBmYWxzZSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.js deleted file mode 100644 index 6b8868634f58f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - /// !show - new codebuild.Project(this, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: [ - 'echo "Hello, CodeBuild!"', - ], - }, - }, - }), - }); - /// !hide - } -} -const app = new cdk.App(); -new TestStack(app, 'codebuild-default-project'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVmYXVsdHMubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsia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8vICFzaG93XG4gICAgbmV3IGNvZGVidWlsZC5Qcm9qZWN0KHRoaXMsICdNeVByb2plY3QnLCB7XG4gICAgICBidWlsZFNwZWM6IGNvZGVidWlsZC5CdWlsZFNwZWMuZnJvbU9iamVjdCh7XG4gICAgICAgIHZlcnNpb246ICcwLjInLFxuICAgICAgICBwaGFzZXM6IHtcbiAgICAgICAgICBidWlsZDoge1xuICAgICAgICAgICAgY29tbWFuZHM6IFtcbiAgICAgICAgICAgICAgJ2VjaG8gXCJIZWxsbywgQ29kZUJ1aWxkIVwiJyxcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIH0pLFxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAnY29kZWJ1aWxkLWRlZmF1bHQtcHJvamVjdCcpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.js deleted file mode 100644 index 778337f9b66ab..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-asset.lit.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - new codebuild.Project(this, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['ls'], - }, - }, - }), - grantReportGroupPermissions: false, - /// !show - environment: { - buildImage: codebuild.LinuxBuildImage.fromAsset(this, 'MyImage', { - directory: path.join(__dirname, 'demo-image'), - }), - }, - /// !hide - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'test-codebuild-docker-asset'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZG9ja2VyLWFzc2V0LmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRvY2tlci1hc3NldC5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxXQUFXLEVBQUU7WUFDdkMsU0FBUyxFQUFFLFNBQVMsQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDO2dCQUN4QyxPQUFPLEVBQUUsS0FBSztnQkFDZCxNQUFNLEVBQUU7b0JBQ04sS0FBSyxFQUFFO3dCQUNMLFFBQVEsRUFBRSxDQUFDLElBQUksQ0FBQztxQkFDakI7aUJBQ0Y7YUFDRixDQUFDO1lBQ0YsMkJBQTJCLEVBQUUsS0FBSztZQUNsQyxTQUFTO1lBQ1QsV0FBVyxFQUFFO2dCQUNYLFVBQVUsRUFBRSxTQUFTLENBQUMsZUFBZSxDQUFDLFNBQV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C8vLyAhc2hvd1xuICAgICAgZW52aXJvbm1lbnQ6IHtcbiAgICAgICAgYnVpbGRJbWFnZTogY29kZWJ1aWxkLkxpbnV4QnVpbGRJbWFnZS5mcm9tQXNzZXQodGhpcywgJ015SW1hZ2UnLCB7XG4gICAgICAgICAgZGlyZWN0b3J5OiBwYXRoLmpvaW4oX19kaXJuYW1lLCAnZGVtby1pbWFnZScpLFxuICAgICAgICB9KSxcbiAgICAgIH0sXG4gICAgICAvLy8gIWhpZGVcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ3Rlc3QtY29kZWJ1aWxkLWRvY2tlci1hc3NldCcpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.js deleted file mode 100644 index b7fa6df28ebff..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.docker-registry.lit.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const secrets = secretsmanager.Secret.fromSecretCompleteArn(this, 'MySecrets', `arn:aws:secretsmanager:${this.region}:${this.account}:secret:my-secrets-123456`); - new codebuild.Project(this, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['ls'], - }, - }, - }), - grantReportGroupPermissions: false, - /// !show - environment: { - buildImage: codebuild.LinuxBuildImage.fromDockerRegistry('my-registry/my-repo', { - secretsManagerCredentials: secrets, - }), - }, - /// !hide - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'test-codebuild-docker-asset'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZG9ja2VyLXJlZ2lzdHJ5LmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRvY2tlci1yZWdpc3RyeS5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpRUFBaUU7QUFDakUsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxPQUFPLEdBQUcsY0FBYyxDQUFDLE1BQU0sQ0FBQyxxQkFBcUIsQ0FBQyxJQUFJLEVBQUUsV0FBVyxFQUMzRSwwQkFBMEIsSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLENBQUMsT0FBTywyQkFBMkIsQ0FBQyxDQUFDO1FBRXBGLElBQUksU0FBUyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsV0FBVyxFQUFFO1lBQ3ZDLFNBQVMsRUFBRSxTQUFTLENBQUMsU0FBUyxDQUFDLFVBQVUsQ0FBQztnQkFDeEMsT0FBTyxFQUFFLEtBQUs7Z0JBQ2QsTUFBTSxFQUFFO29CQUNOLEtBQUssRUFBRTt3Q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y5hY2NvdW50fTpzZWNyZXQ6bXktc2VjcmV0cy0xMjM0NTZgKTtcblxuICAgIG5ldyBjb2RlYnVpbGQuUHJvamVjdCh0aGlzLCAnTXlQcm9qZWN0Jywge1xuICAgICAgYnVpbGRTcGVjOiBjb2RlYnVpbGQuQnVpbGRTcGVjLmZyb21PYmplY3Qoe1xuICAgICAgICB2ZXJzaW9uOiAnMC4yJyxcbiAgICAgICAgcGhhc2VzOiB7XG4gICAgICAgICAgYnVpbGQ6IHtcbiAgICAgICAgICAgIGNvbW1hbmRzOiBbJ2xzJ10sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIH0pLFxuICAgICAgZ3JhbnRSZXBvcnRHcm91cFBlcm1pc3Npb25zOiBmYWxzZSxcbiAgICAgIC8vLyAhc2hvd1xuICAgICAgZW52aXJvbm1lbnQ6IHtcbiAgICAgICAgYnVpbGRJbWFnZTogY29kZWJ1aWxkLkxpbnV4QnVpbGRJbWFnZS5mcm9tRG9ja2VyUmVnaXN0cnkoJ215LXJlZ2lzdHJ5L215LXJlcG8nLCB7XG4gICAgICAgICAgc2VjcmV0c01hbmFnZXJDcmVkZW50aWFsczogc2VjcmV0cyxcbiAgICAgICAgfSksXG4gICAgICB9LFxuICAgICAgLy8vICFoaWRlXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxubmV3IFRlc3RTdGFjayhhcHAsICd0ZXN0LWNvZGVidWlsZC1kb2NrZXItYXNzZXQnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.js deleted file mode 100644 index 1f32bbf3993c6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.ecr.lit.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ecr = require("aws-cdk-lib/aws-ecr"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const ecrRepository = new ecr.Repository(this, 'MyRepo'); - new codebuild.Project(this, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['ls'], - }, - }, - }), - grantReportGroupPermissions: false, - /// !show - environment: { - buildImage: codebuild.LinuxBuildImage.fromEcrRepository(ecrRepository, 'v1.0'), - }, - /// !hide - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'test-codebuild-docker-asset'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWNyLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVjci5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxhQUFhLEdBQUcsSUFBSSxHQUFHLENBQUMsVUFBVSxDQUFDLElBQUksRUFBRSxRQUFRLENBQUMsQ0FBQztRQUV6RCx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bmV3IGVjci5SZXBvc2l0b3J5KHRoaXMsICdNeVJlcG8nKTtcblxuICAgIG5ldyBjb2RlYnVpbGQuUHJvamVjdCh0aGlzLCAnTXlQcm9qZWN0Jywge1xuICAgICAgYnVpbGRTcGVjOiBjb2RlYnVpbGQuQnVpbGRTcGVjLmZyb21PYmplY3Qoe1xuICAgICAgICB2ZXJzaW9uOiAnMC4yJyxcbiAgICAgICAgcGhhc2VzOiB7XG4gICAgICAgICAgYnVpbGQ6IHtcbiAgICAgICAgICAgIGNvbW1hbmRzOiBbJ2xzJ10sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIH0pLFxuICAgICAgZ3JhbnRSZXBvcnRHcm91cFBlcm1pc3Npb25zOiBmYWxzZSxcbiAgICAgIC8vLyAhc2hvd1xuICAgICAgZW52aXJvbm1lbnQ6IHtcbiAgICAgICAgYnVpbGRJbWFnZTogY29kZWJ1aWxkLkxpbnV4QnVpbGRJbWFnZS5mcm9tRWNyUmVwb3NpdG9yeShlY3JSZXBvc2l0b3J5LCAndjEuMCcpLFxuICAgICAgfSxcbiAgICAgIC8vLyAhaGlkZVxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAndGVzdC1jb2RlYnVpbGQtZG9ja2VyLWFzc2V0Jyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.js deleted file mode 100644 index a4810e87cf6a6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const source = codebuild.Source.gitHub({ - owner: 'aws', - repo: 'aws-cdk', - reportBuildStatus: false, - webhook: true, - webhookTriggersBatchBuild: true, - webhookFilters: [ - codebuild.FilterGroup.inEventOf(codebuild.EventAction.PUSH), - ], - }); - new codebuild.Project(this, 'MyProject', { - source, - grantReportGroupPermissions: false, - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'test-codebuild-github-webhook-batch'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2l0aHViLXdlYmhvb2stYmF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5naXRodWItd2ViaG9vay1iYXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyx1REFBdUQ7QUFFdkQsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sTUFBTSxHQUFHLFNBQVMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDO1lBQ3JDLEtBQUssRUFBRSxLQUFLO1lBQ1osSUFBSSxFQUFFLFNBQVM7WUFDZixpQkFBaUIsRUFBRSxLQUFLO1lBQ3hCLE9BQU8sRUFBRSxJQUFJO1lBQ2IseUJBQXl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gIGNvZGVidWlsZC5GaWx0ZXJHcm91cC5pbkV2ZW50T2YoY29kZWJ1aWxkLkV2ZW50QWN0aW9uLlBVU0gpLFxuICAgICAgXSxcbiAgICB9KTtcbiAgICBuZXcgY29kZWJ1aWxkLlByb2plY3QodGhpcywgJ015UHJvamVjdCcsIHtcbiAgICAgIHNvdXJjZSxcbiAgICAgIGdyYW50UmVwb3J0R3JvdXBQZXJtaXNzaW9uczogZmFsc2UsXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxubmV3IFRlc3RTdGFjayhhcHAsICd0ZXN0LWNvZGVidWlsZC1naXRodWItd2ViaG9vay1iYXRjaCcpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.js deleted file mode 100644 index 8e4e43789bf0a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const source = codebuild.Source.gitHub({ - owner: 'aws', - repo: 'aws-cdk', - reportBuildStatus: false, - }); - new codebuild.Project(this, 'MyProject', { - source, - grantReportGroupPermissions: false, - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'test-codebuild-github'); -app.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b3Ioc2NvcGU6IGNkay5BcHAsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgY29uc3Qgc291cmNlID0gY29kZWJ1aWxkLlNvdXJjZS5naXRIdWIoe1xuICAgICAgb3duZXI6ICdhd3MnLFxuICAgICAgcmVwbzogJ2F3cy1jZGsnLFxuICAgICAgcmVwb3J0QnVpbGRTdGF0dXM6IGZhbHNlLFxuICAgIH0pO1xuICAgIG5ldyBjb2RlYnVpbGQuUHJvamVjdCh0aGlzLCAnTXlQcm9qZWN0Jywge1xuICAgICAgc291cmNlLFxuICAgICAgZ3JhbnRSZXBvcnRHcm91cFBlcm1pc3Npb25zOiBmYWxzZSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ3Rlc3QtY29kZWJ1aWxkLWdpdGh1YicpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.js deleted file mode 100644 index 39c9f34a022b6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.js +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new codebuild.Project(stack, 'MyProject', { - source: codebuild.Source.s3({ - bucket, - path: 'path/to/my/source.zip', - }), - environment: { - computeType: codebuild.ComputeType.LARGE, - }, - grantReportGroupPermissions: false, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC1idWNrZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm9qZWN0LWJ1Y2tldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG1CQUFtQixDQUFDLENBQUM7QUFFdEQsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDOUMsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztDQUN6QyxDQUFDLENBQUM7QUFFSCxJQUFJLFNBQVMsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRTtJQUN4QyxNQUFNLEVBQUUsU0FBUyxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDMUIsTUFBTTtRQUNOLElBQUksRUFBRSx1QkFBdUI7S0FDOUIsQ0FBQztJQUNGLFdBQVcsRUFBRTtRQUNYLFdBQVcsRUFBRSxTQUFTLENBQUMsV0FBVyxDQUFDLEtBQUs7S0FDekM7SUFDRCwyQkFBMkIsRUFBRSxLQUFLO0NBQ25DLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIiMhL3Vzci9iaW4vZW52IG5vZGVcbmltcG9ydCAqIGFzIHMzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1zMyc7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgY29kZWJ1aWxkIGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2RlYnVpbGQnO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5jb25zdCBzdGFjayA9IG5ldyBjZGsuU3RhY2soYXBwLCAnYXdzLWNkay1jb2RlYnVpbGQnKTtcblxuY29uc3QgYnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ015QnVja2V0Jywge1xuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBjb2RlYnVpbGQuUHJvamVjdChzdGFjaywgJ015UHJvamVjdCcsIHtcbiAgc291cmNlOiBjb2RlYnVpbGQuU291cmNlLnMzKHtcbiAgICBidWNrZXQsXG4gICAgcGF0aDogJ3BhdGgvdG8vbXkvc291cmNlLnppcCcsXG4gIH0pLFxuICBlbnZpcm9ubWVudDoge1xuICAgIGNvbXB1dGVUeXBlOiBjb2RlYnVpbGQuQ29tcHV0ZVR5cGUuTEFSR0UsXG4gIH0sXG4gIGdyYW50UmVwb3J0R3JvdXBQZXJtaXNzaW9uczogZmFsc2UsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.js deleted file mode 100644 index f778d8fb49aca..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-buildspec-artifact-name'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - }), - grantReportGroupPermissions: false, - artifacts: codebuild.Artifacts.s3({ - bucket, - includeBuildId: false, - packageZip: true, - path: 'another/path', - identifier: 'AddArtifact1', - }), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC1idWlsZHNwZWMtYXJ0aWZhY3RzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucHJvamVjdC1idWlsZHNwZWMtYXJ0aWZhY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyx1REFBdUQ7QUFFdkQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FB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lsZC1idWlsZHNwZWMtYXJ0aWZhY3QtbmFtZScpO1xuXG5jb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnTXlCdWNrZXQnLCB7XG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG59KTtcblxubmV3IGNvZGVidWlsZC5Qcm9qZWN0KHN0YWNrLCAnTXlQcm9qZWN0Jywge1xuICBidWlsZFNwZWM6IGNvZGVidWlsZC5CdWlsZFNwZWMuZnJvbU9iamVjdCh7XG4gICAgdmVyc2lvbjogJzAuMicsXG4gIH0pLFxuICBncmFudFJlcG9ydEdyb3VwUGVybWlzc2lvbnM6IGZhbHNlLFxuICBhcnRpZmFjdHM6XG4gICAgY29kZWJ1aWxkLkFydGlmYWN0cy5zMyh7XG4gICAgICBidWNrZXQsXG4gICAgICBpbmNsdWRlQnVpbGRJZDogZmFsc2UsXG4gICAgICBwYWNrYWdlWmlwOiB0cnVlLFxuICAgICAgcGF0aDogJ2Fub3RoZXIvcGF0aCcsXG4gICAgICBpZGVudGlmaWVyOiAnQWRkQXJ0aWZhY3QxJyxcbiAgICB9KSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.js deleted file mode 100644 index cefa2d8038100..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-file-system-locations'); -const vpc = new ec2.Vpc(stack, 'MyVPC', { - maxAzs: 1, - natGateways: 1, -}); -const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup1', { - allowAllOutbound: true, - description: 'Example', - securityGroupName: 'Jane', - vpc, -}); -new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - }), - environment: { - privileged: true, - }, - vpc, - securityGroups: [securityGroup], - fileSystemLocations: [codebuild.FileSystemLocation.efs({ - identifier: 'myidentifier', - location: `fs-c8d04839.efs.${cdk.Aws.REGION}.amazonaws.com:/mnt`, - mountOptions: 'nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2', - mountPoint: '/media', - })], - grantReportGroupPermissions: false, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC1maWxlLXN5c3RlbS1sb2NhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnByb2plY3QtZmlsZS1zeXN0ZW0tbG9jYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHlDQUF5QyxDQUFDLENBQUM7QUFDNUUsTUFBTSxHQUF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ZnMuJHtjZGsuQXdzLlJFR0lPTn0uYW1hem9uYXdzLmNvbTovbW50YCxcbiAgICBtb3VudE9wdGlvbnM6ICduZnN2ZXJzPTQuMSxyc2l6ZT0xMDQ4NTc2LHdzaXplPTEwNDg1NzYsaGFyZCx0aW1lbz02MDAscmV0cmFucz0yJyxcbiAgICBtb3VudFBvaW50OiAnL21lZGlhJyxcbiAgfSldLFxuICBncmFudFJlcG9ydEdyb3VwUGVybWlzc2lvbnM6IGZhbHNlLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.js deleted file mode 100644 index 8b9d08bdd8e1a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const logs = require("aws-cdk-lib/aws-logs"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-logging'); -new codebuild.PipelineProject(stack, 'Project', { - logging: { - cloudWatch: { - logGroup: new logs.LogGroup(stack, 'LogingGroup', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }), - }, - s3: { - bucket: new s3.Bucket(stack, 'LoggingBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }), - },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KiBhcyBzMyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtczMnO1xuaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGNvZGVidWlsZCBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY29kZWJ1aWxkJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstY29kZWJ1aWxkLWxvZ2dpbmcnKTtcblxubmV3IGNvZGVidWlsZC5QaXBlbGluZVByb2plY3Qoc3RhY2ssICdQcm9qZWN0Jywge1xuICBsb2dnaW5nOiB7XG4gICAgY2xvdWRXYXRjaDoge1xuICAgICAgbG9nR3JvdXA6IG5ldyBsb2dzLkxvZ0dyb3VwKHN0YWNrLCAnTG9naW5nR3JvdXAnLCB7XG4gICAgICAgIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgICB9KSxcbiAgICB9LFxuICAgIHMzOiB7XG4gICAgICBidWNrZXQ6IG5ldyBzMy5CdWNrZXQoc3RhY2ssICdMb2dnaW5nQnVja2V0Jywge1xuICAgICAgICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgfSksXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.js deleted file mode 100644 index eda384c7b1dc1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.js +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-project-vpc'); -const project = new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['echo "Nothing to do!"'], - }, - }, - }), -}); -const target = new sns.Topic(stack, 'MyTopic'); -project.notifyOnBuildSucceeded('NotifyOnBuildSucceeded', target); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC1ub3RpZmljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm9qZWN0LW5vdGlmaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLCtCQUErQixDQUFDLENBQUM7QUFFbEUsTUFBTSxPQUFPLEdBQUcsSUFBSSxTQUFTLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxXQUFXLEVBQUU7SUFDeEQsU0FBUyxFQUFFLFNBQVMsQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFD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7XG5cbmNvbnN0IHRhcmdldCA9IG5ldyBzbnMuVG9waWMoc3RhY2ssICdNeVRvcGljJyk7XG5cbnByb2plY3Qubm90aWZ5T25CdWlsZFN1Y2NlZWRlZCgnTm90aWZ5T25CdWlsZFN1Y2NlZWRlZCcsIHRhcmdldCk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.js deleted file mode 100644 index c57f23ff06f91..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-secondary-sources-artifacts'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - }), - secondarySources: [ - codebuild.Source.s3({ - bucket, - path: 'some/path', - identifier: 'AddSource1', - }), - ], - secondaryArtifacts: [ - codebuild.Artifacts.s3({ - bucket, - path: 'another/path', - name: 'name', - identifier: 'AddArtifact1', -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ZhY3RzOiBbXG4gICAgY29kZWJ1aWxkLkFydGlmYWN0cy5zMyh7XG4gICAgICBidWNrZXQsXG4gICAgICBwYXRoOiAnYW5vdGhlci9wYXRoJyxcbiAgICAgIG5hbWU6ICduYW1lJyxcbiAgICAgIGlkZW50aWZpZXI6ICdBZGRBcnRpZmFjdDEnLFxuICAgIH0pLFxuICBdLFxuICBncmFudFJlcG9ydEdyb3VwUGVybWlzc2lvbnM6IGZhbHNlLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.js deleted file mode 100644 index 26a9b77baaaea..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-project-vpc'); -const vpc = new ec2.Vpc(stack, 'MyVPC', { - maxAzs: 1, - natGateways: 1, -}); -const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup1', { - allowAllOutbound: true, - description: 'Example', - securityGroupName: 'Bob', - vpc, -}); -new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['echo "Nothing to do!"'], - }, - }, - }), - grantReportGroupPermissions: false, - securityGroups: [securityGroup], - vpc, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC12cGMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm9qZWN0LXZwYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHVEQUF1RDtBQUV2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLCtCQUErQixDQUFDLENBQUM7QUFDbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxPQUFPLEVBQUU7SUFDdEMsTUFBTSxFQUFFLENBQUM7SUFDVCxXQUFXLEVBQUUsQ0FBQztDQUNmLENBQUMsQ0FBQztBQUNILE1BQU0sYUFBYSxHQUFHLElBQUksR0FBRyxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDbkUsZ0JBQWdCLEVBQUUsSUFBSTtJQUN0QixXQUFXLEVBQUUsU0FBUztJQUN0QixpQkFBaUIsRUFBRSxLQUFLO0lBQ3hCLEdBQUc7Q0FDSixDQUFDLENBQUM7QUFDSCxJQUFJLFNBQVMsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRTtJQUN4QyxTQUFTLEVBQUUsU0FBUyxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUM7UUFDeEMsT0FBTyxFQUFFLEtBQUs7UUFDZCxNQUFNLEVBQUU7WUFDTix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ZXJzaW9uOiAnMC4yJyxcbiAgICBwaGFzZXM6IHtcbiAgICAgIGJ1aWxkOiB7XG4gICAgICAgIGNvbW1hbmRzOiBbJ2VjaG8gXCJOb3RoaW5nIHRvIGRvIVwiJ10sXG4gICAgICB9LFxuICAgIH0sXG4gIH0pLFxuICBncmFudFJlcG9ydEdyb3VwUGVybWlzc2lvbnM6IGZhbHNlLFxuICBzZWN1cml0eUdyb3VwczogW3NlY3VyaXR5R3JvdXBdLFxuICB2cGMsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.js deleted file mode 100644 index 1040ec6291394..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-report-group'); -const reportGroupCodeCoverage = new codebuild.ReportGroup(stack, 'CoverageReportGroup', { - type: codebuild.ReportGroupType.CODE_COVERAGE, -}); -const reportGroupTest = new codebuild.ReportGroup(stack, 'TestReportGroup', { - type: codebuild.ReportGroupType.TEST, -}); -const project = new codebuild.Project(stack, 'MyProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: ['echo "Nothing to do!"'], - }, - }, - reports: { - [reportGroupTest.reportGroupArn]: { - 'base-directory': 'test-reports', - 'file-format': 'JUNITXML', - 'files': [ - '**/*', - ], - }, - [reportGroupCodeCoverage.reportGroupArn]: { - 'base-directory': 'coverage', - 'file-format': 'CLOVERXML', - 'files': ['clover.xml'], - }, - }, - }), - grantReportGroupPermissions: false, -}); -reportGroupCodeCoverage.grantWrite(project); -reportGroupTest.grantWrite(project); -new integ.IntegTest(app, 'ReportGroupIntegTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVwb3J0LWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVwb3J0LWdyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCx1REFBdUQ7QUFFdkQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxzQkFBc0IsQ0FBQyxDQUFDO0FBRXpELE1BQU0sdUJBQXVCLEdBQUcsSUFBSSxTQUFTLENBQUMsV0FBVyxDQUFDLEtBQUssRUFBRSxxQkFBcUIsRUFBRTtJQUN0RixJQUFJLEVBQUUsU0FBUyxDQUFDLGVBQWUsQ0FBQyxhQUFhO0NBQzlDLENBQUMsQ0FBQztBQUVILE1BQU0sZUFBZSxHQUFHLElBQUksU0FBUyxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsaUJBQWlCLEVBQUU7SUFDMUUsSUFBSSxFQUFFLFNBQVMsQ0FBQyxlQUFlLENBQUMsSUFBSTtDQUNyQyxDQUFDLENBQUM7QUFFSCxNQUFNLE9BQU8sR0FB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lLWZvcm1hdCc6ICdKVU5JVFhNTCcsXG4gICAgICAgICdmaWxlcyc6IFtcbiAgICAgICAgICAnKiovKicsXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgICAgW3JlcG9ydEdyb3VwQ29kZUNvdmVyYWdlLnJlcG9ydEdyb3VwQXJuXToge1xuICAgICAgICAnYmFzZS1kaXJlY3RvcnknOiAnY292ZXJhZ2UnLFxuICAgICAgICAnZmlsZS1mb3JtYXQnOiAnQ0xPVkVSWE1MJyxcbiAgICAgICAgJ2ZpbGVzJzogWydjbG92ZXIueG1sJ10sXG4gICAgICB9LFxuICAgIH0sXG4gIH0pLFxuICBncmFudFJlcG9ydEdyb3VwUGVybWlzc2lvbnM6IGZhbHNlLFxufSk7XG5yZXBvcnRHcm91cENvZGVDb3ZlcmFnZS5ncmFudFdyaXRlKHByb2plY3QpO1xucmVwb3J0R3JvdXBUZXN0LmdyYW50V3JpdGUocHJvamVjdCk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnUmVwb3J0R3JvdXBJbnRlZ1Rlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.js deleted file mode 100644 index 1fc4ef5066e33..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset-zip.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const aws_codecommit_1 = require("aws-cdk-lib/aws-codecommit"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codecommit-repo-contents-zip-file'); -new codecommit.Repository(stack, 'Repo', { - repositoryName: 'aws-cdk-codecommit-repo-contents-zip-file', - code: aws_codecommit_1.Code.fromZipFile('./asset-test.zip'), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29kZWNvbW1pdC1jb2RlLWFzc2V0LXppcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNvZGVjb21taXQtY29kZS1hc3NldC16aXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMseURBQXlEO0FBQ3pELCtEQUFrRDtBQUVsRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDJDQUEyQyxDQUFDLENBQUM7QUFFOUUsSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDdkMsY0FBYyxFQUFFLDJDQUEyQztJQUMzRCxJQUFJLEVBQUUscUJBQUksQ0FBQyxXQUFXLENBQUMsa0JBQWtCLENBQUM7Q0FDM0MsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGNvZGVjb21taXQgZnJvbSAnYXdzLWNkay1saWIvYXdzLWNvZGVjb21taXQnO1xuaW1wb3J0IHsgQ29kZSB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2RlY29tbWl0JztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWNvZGVjb21taXQtcmVwby1jb250ZW50cy16aXAtZmlsZScpO1xuXG5uZXcgY29kZWNvbW1pdC5SZXBvc2l0b3J5KHN0YWNrLCAnUmVwbycsIHtcbiAgcmVwb3NpdG9yeU5hbWU6ICdhd3MtY2RrLWNvZGVjb21taXQtcmVwby1jb250ZW50cy16aXAtZmlsZScsXG4gIGNvZGU6IENvZGUuZnJvbVppcEZpbGUoJy4vYXNzZXQtdGVzdC56aXAnKSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.js deleted file mode 100644 index de85e5736a70d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-code-asset.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const aws_codecommit_1 = require("aws-cdk-lib/aws-codecommit"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codecommit-repo-contents-assets'); -new codecommit.Repository(stack, 'Repo', { - repositoryName: 'aws-cdk-codecommit-repo-contents-assets', - code: aws_codecommit_1.Code.fromDirectory('./asset-test'), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29kZWNvbW1pdC1jb2RlLWFzc2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29kZWNvbW1pdC1jb2RlLWFzc2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUN6RCwrREFBa0Q7QUFFbEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSx5Q0FBeUMsQ0FBQyxDQUFDO0FBRTVFLElBQUksVUFBVSxDQUFDLFVBQVUsQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFO0lBQ3ZDLGNBQWMsRUFBRSx5Q0FBeUM7SUFDekQsSUFBSSxFQUFFLHFCQUFJLENBQUMsYUFBYSxDQUFDLGNBQWMsQ0FBQztDQUN6QyxDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgY29kZWNvbW1pdCBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY29kZWNvbW1pdCc7XG5pbXBvcnQgeyBDb2RlIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWNvZGVjb21taXQnO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstY29kZWNvbW1pdC1yZXBvLWNvbnRlbnRzLWFzc2V0cycpO1xuXG5uZXcgY29kZWNvbW1pdC5SZXBvc2l0b3J5KHN0YWNrLCAnUmVwbycsIHtcbiAgcmVwb3NpdG9yeU5hbWU6ICdhd3MtY2RrLWNvZGVjb21taXQtcmVwby1jb250ZW50cy1hc3NldHMnLFxuICBjb2RlOiBDb2RlLmZyb21EaXJlY3RvcnkoJy4vYXNzZXQtdGVzdCcpLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.js deleted file mode 100644 index 9517793da00aa..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.codecommit-events.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codecommit-events'); -const repo = new codecommit.Repository(stack, 'Repo', { - repositoryName: 'aws-cdk-codecommit-events', -}); -const topic = new sns.Topic(stack, 'MyTopic'); -// we can't use @aws-cdk/aws-events-targets.SnsTopic here because it will -// create a cyclic dependency with codebuild, so we just fake it -repo.onReferenceCreated('OnReferenceCreated', { - target: { - bind: () => ({ - arn: topic.topicArn, - id: '', - }), - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29kZWNvbW1pdC1ldmVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jb2RlY29tbWl0LWV2ZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMseURBQXlEO0FBRXpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkJBQTJCLENBQUMsQ0FBQztBQUU5RCxNQUFNLElBQUksR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRTtJQUNwRCxjQUFjLEVBQUUsMkJBQTJCO0NBQzVDLENBQUMsQ0FBQztBQUNILE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsU0FBUyxDQUFDLENBQUM7QUFFOUMseUVBQXlFO0FBQ3pFLGdFQUFnRTtBQUNoRSxJQUFJLENBQUMsa0JBQWtCLENBQUMsb0JBQW9CLEVBQUU7SUFDNUMsTUFBTSxFQUFFO1FBQ04sSUFBSSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7WUFDWCxHQUFHLEVBQUUsS0FBSyxDQUFDLFFBQVE7WUFDbkIsRUFBRSxFQUFFLEVBQUU7U0FDUCxDQUFDO0tBQ0g7Q0FDRixDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBzbnMgZnJvbSAnYXdzLWNkay1saWIvYXdzLXNucyc7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgY29kZWNvbW1pdCBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY29kZWNvbW1pdCc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBjZGsuU3RhY2soYXBwLCAnYXdzLWNkay1jb2RlY29tbWl0LWV2ZW50cycpO1xuXG5jb25zdCByZXBvID0gbmV3IGNvZGVjb21taXQuUmVwb3NpdG9yeShzdGFjaywgJ1JlcG8nLCB7XG4gIHJlcG9zaXRvcnlOYW1lOiAnYXdzLWNkay1jb2RlY29tbWl0LWV2ZW50cycsXG59KTtcbmNvbnN0IHRvcGljID0gbmV3IHNucy5Ub3BpYyhzdGFjaywgJ015VG9waWMnKTtcblxuLy8gd2UgY2FuJ3QgdXNlIEBhd3MtY2RrL2F3cy1ldmVudHMtdGFyZ2V0cy5TbnNUb3BpYyBoZXJlIGJlY2F1c2UgaXQgd2lsbFxuLy8gY3JlYXRlIGEgY3ljbGljIGRlcGVuZGVuY3kgd2l0aCBjb2RlYnVpbGQsIHNvIHdlIGp1c3QgZmFrZSBpdFxucmVwby5vblJlZmVyZW5jZUNyZWF0ZWQoJ09uUmVmZXJlbmNlQ3JlYXRlZCcsIHtcbiAgdGFyZ2V0OiB7XG4gICAgYmluZDogKCkgPT4gKHtcbiAgICAgIGFybjogdG9waWMudG9waWNBcm4sXG4gICAgICBpZDogJycsXG4gICAgfSksXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.js deleted file mode 100644 index 625e5ad1d7dc8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codecommit/test/integ.repository-notification.js +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codecommit'); -const repository = new codecommit.Repository(stack, 'MyCodecommitRepository', { - repositoryName: 'my-test-repository', -}); -const target = new sns.Topic(stack, 'MyTopic'); -repository.notifyOnPullRequestCreated('NotifyOnPullRequestCreated', target); -repository.notifyOnPullRequestMerged('NotifyOnPullRequestMerged', target); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVwb3NpdG9yeS1ub3RpZmljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5yZXBvc2l0b3J5LW5vdGlmaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG9CQUFvQixDQUFDLENBQUM7QUFFdkQsTUFBTSxVQUFVLEdBQUcsS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zdENyZWF0ZWQnLCB0YXJnZXQpO1xucmVwb3NpdG9yeS5ub3RpZnlPblB1bGxSZXF1ZXN0TWVyZ2VkKCdOb3RpZnlPblB1bGxSZXF1ZXN0TWVyZ2VkJywgdGFyZ2V0KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.js deleted file mode 100644 index f1952a9ced06c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-config.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-ecs-config'); -new codedeploy.EcsDeploymentConfig(stack, 'LinearConfig', { - trafficRouting: codedeploy.TrafficRouting.timeBasedLinear({ - interval: cdk.Duration.minutes(1), - percentage: 5, - }), -}); -new integ.IntegTest(app, 'EcsDeploymentConfigTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwbG95bWVudC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kZXBsb3ltZW50LW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G5uZXcgY29kZWRlcGxveS5FY3NEZXBsb3ltZW50Q29uZmlnKHN0YWNrLCAnTGluZWFyQ29uZmlnJywge1xuICB0cmFmZmljUm91dGluZzogY29kZWRlcGxveS5UcmFmZmljUm91dGluZy50aW1lQmFzZWRMaW5lYXIoe1xuICAgIGludGVydmFsOiBjZGsuRHVyYXRpb24ubWludXRlcygxKSxcbiAgICBwZXJjZW50YWdlOiA1LFxuICB9KSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0Vjc0RlcGxveW1lbnRDb25maWdUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.js deleted file mode 100644 index a1b5dd0fa5641..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/ecs/integ.deployment-group.js +++ /dev/null @@ -1,216 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -/** - * Follow these instructions to manually test running a CodeDeploy deployment with the resources provisioned in this stack: - * - * 1. Deploy the stack: -``` -$ cdk deploy --app 'node integ.deployment-group.js' aws-cdk-codedeploy-ecs-dg -``` - * - * 2. Create a file called `appspec.json` with the following contents, replacing the placeholders with output values from the deployed stack: -``` -{ - "version": 0.0, - "Resources": [ - { - "TargetService": { - "Type": "AWS::ECS::Service", - "Properties": { - "TaskDefinition": "", - "LoadBalancerInfo": { - "ContainerName": "Container", - "ContainerPort": 80 - }, - "PlatformVersion": "LATEST", - "NetworkConfiguration": { - "awsvpcConfiguration": { - "subnets": [ - "", - "", - ], - "securityGroups": [ - "" - ], - "assignPublicIp": "DISABLED" - } - } - } - } - } - ] -} -``` - * - * 3. Start the deployment: -``` -$ appspec=$(jq -R -s '.' < appspec.json | sed 's/\\n//g') -$ aws deploy create-deployment \ - --application-name \ - --deployment-group-name \ - --description "AWS CDK integ test" \ - --revision revisionType=AppSpecContent,appSpecContent={content="$appspec"} -``` - * - * 4. Wait for the deployment to complete successfully, providing the deployment ID from the previous step: -``` -$ aws deploy wait deployment-successful --deployment-id -``` - * - * 5. Destroy the stack: -``` -$ cdk destroy --app 'node integ.deployment-group.js' aws-cdk-codedeploy-ecs-dg -``` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-ecs-dg'); -// Network infrastructure -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -// ECS service -const cluster = new ecs.Cluster(stack, 'EcsCluster', { - vpc, -}); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest'), - portMappings: [{ containerPort: 80 }], -}); -const service = new ecs.FargateService(stack, 'FargateService', { - cluster, - taskDefinition, - deploymentController: { - type: ecs.DeploymentControllerType.CODE_DEPLOY, - }, -}); -// A second task definition for testing a CodeDeploy deployment of the ECS service to a new task definition -const taskDefinition2 = new ecs.FargateTaskDefinition(stack, 'TaskDef2'); -taskDefinition2.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest'), - portMappings: [{ containerPort: 80 }], -}); -service.node.addDependency(taskDefinition2); -// Load balancer -const loadBalancer = new elbv2.ApplicationLoadBalancer(stack, 'ServiceLB', { - vpc, - internetFacing: false, -}); -// Listeners -const prodListener = loadBalancer.addListener('ProdListener', { - port: 80, - protocol: elbv2.ApplicationProtocol.HTTP, -}); -const testListener = loadBalancer.addListener('TestListener', { - port: 9002, - protocol: elbv2.ApplicationProtocol.HTTP, -}); -// Target groups -const blueTG = prodListener.addTargets('BlueTG', { - port: 80, - protocol: elbv2.ApplicationProtocol.HTTP, - targets: [ - service.loadBalancerTarget({ - containerName: 'Container', - containerPort: 80, - }), - ], - deregistrationDelay: cdk.Duration.seconds(30), - healthCheck: { - interval: cdk.Duration.seconds(5), - healthyHttpCodes: '200', - healthyThresholdCount: 2, - unhealthyThresholdCount: 3, - timeout: cdk.Duration.seconds(4), - }, -}); -const greenTG = new elbv2.ApplicationTargetGroup(stack, 'GreenTG', { - vpc, - port: 80, - protocol: elbv2.ApplicationProtocol.HTTP, - targetType: elbv2.TargetType.IP, - deregistrationDelay: cdk.Duration.seconds(30), - healthCheck: { - interval: cdk.Duration.seconds(5), - healthyHttpCodes: '200', - healthyThresholdCount: 2, - unhealthyThresholdCount: 3, - timeout: cdk.Duration.seconds(4), - }, -}); -testListener.addTargetGroups('GreenTGTest', { - targetGroups: [greenTG], -}); -prodListener.node.addDependency(greenTG); -testListener.node.addDependency(blueTG); -service.node.addDependency(testListener); -service.node.addDependency(greenTG); -// Alarms: monitor 500s and unhealthy hosts on target groups -const blueUnhealthyHosts = new cloudwatch.Alarm(stack, 'BlueUnhealthyHosts', { - alarmName: stack.stackName + '-Unhealthy-Hosts-Blue', - metric: blueTG.metricUnhealthyHostCount(), - threshold: 1, - evaluationPeriods: 2, -}); -const blueApiFailure = new cloudwatch.Alarm(stack, 'Blue5xx', { - alarmName: stack.stackName + '-Http-500-Blue', - metric: blueTG.metricHttpCodeTarget(elbv2.HttpCodeTarget.TARGET_5XX_COUNT, { period: cdk.Duration.minutes(1) }), - threshold: 1, - evaluationPeriods: 1, -}); -const greenUnhealthyHosts = new cloudwatch.Alarm(stack, 'GreenUnhealthyHosts', { - alarmName: stack.stackName + '-Unhealthy-Hosts-Green', - metric: greenTG.metricUnhealthyHostCount(), - threshold: 1, - evaluationPeriods: 2, -}); -const greenApiFailure = new cloudwatch.Alarm(stack, 'Green5xx', { - alarmName: stack.stackName + '-Http-500-Green', - metric: greenTG.metricHttpCodeTarget(elbv2.HttpCodeTarget.TARGET_5XX_COUNT, { period: cdk.Duration.minutes(1) }), - threshold: 1, - evaluationPeriods: 1, -}); -// Deployment group -const deploymentConfig = new codedeploy.EcsDeploymentConfig(stack, 'CanaryConfig', { - trafficRouting: codedeploy.TrafficRouting.timeBasedCanary({ - interval: cdk.Duration.minutes(1), - percentage: 20, - }), -}); -const dg = new codedeploy.EcsDeploymentGroup(stack, 'BlueGreenDG', { - alarms: [ - blueUnhealthyHosts, - blueApiFailure, - greenUnhealthyHosts, - greenApiFailure, - ], - service, - blueGreenDeploymentConfig: { - blueTargetGroup: blueTG, - greenTargetGroup: greenTG, - listener: prodListener, - testListener, - terminationWaitTime: cdk.Duration.minutes(1), - }, - deploymentConfig, - autoRollback: { - stoppedDeployment: true, - }, -}); -// Outputs to use for manual testing -new cdk.CfnOutput(stack, 'NewTaskDefinition', { value: taskDefinition2.taskDefinitionArn }); -new cdk.CfnOutput(stack, 'Subnet1Id', { value: vpc.privateSubnets[0].subnetId }); -new cdk.CfnOutput(stack, 'Subnet2Id', { value: vpc.privateSubnets[1].subnetId }); -new cdk.CfnOutput(stack, 'SecurityGroupId', { value: service.connections.securityGroups[0].securityGroupId }); -new cdk.CfnOutput(stack, 'CodeDeployApplicationName', { value: dg.application.applicationName }); -new cdk.CfnOutput(stack, 'CodeDeployDeploymentGroupName', { value: dg.deploymentGroupName }); -new integ.IntegTest(app, 'EcsDeploymentGroupTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwbG95bWVudC1ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRlcGxveW1lbnQtZ3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBeUQ7QUFDekQsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxnRUFBZ0U7QUFDaEUsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCx5REFBeUQ7QUFFekQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0E2REc7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDJCQUEyQixDQUFDLENBQUM7QUFFOUQseUJBQXlCO0FBQ3pCLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7QUFFckQsY0FBYztBQUNkLE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsWUFBWSxFQUFFO0lBQ25ELEdBQUc7Q0FDSixDQUFDLENBQUM7QUFDSCxNQUFNLGNBQWMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxxQkFBcUIsQ0FBQyxL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3VibmV0SWQgfSk7XG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1N1Ym5ldDJJZCcsIHsgdmFsdWU6IHZwYy5wcml2YXRlU3VibmV0c1sxXS5zdWJuZXRJZCB9KTtcbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnU2VjdXJpdHlHcm91cElkJywgeyB2YWx1ZTogc2VydmljZS5jb25uZWN0aW9ucy5zZWN1cml0eUdyb3Vwc1swXS5zZWN1cml0eUdyb3VwSWQgfSk7XG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0NvZGVEZXBsb3lBcHBsaWNhdGlvbk5hbWUnLCB7IHZhbHVlOiBkZy5hcHBsaWNhdGlvbi5hcHBsaWNhdGlvbk5hbWUgfSk7XG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0NvZGVEZXBsb3lEZXBsb3ltZW50R3JvdXBOYW1lJywgeyB2YWx1ZTogZGcuZGVwbG95bWVudEdyb3VwTmFtZSB9KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdFY3NEZXBsb3ltZW50R3JvdXBUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.js deleted file mode 100644 index f7ef349936878..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-config.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-lambda-config'); -new codedeploy.LambdaDeploymentConfig(stack, 'LinearConfig', { - trafficRouting: codedeploy.TrafficRouting.timeBasedLinear({ - interval: cdk.Duration.minutes(1), - percentage: 5, - }), -}); -new integ.IntegTest(app, 'LambdaDeploymentConfigTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwbG95bWVudC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kZXBsb3ltZW50LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQseURBQXlEO0FBRXpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsa0NBQWtDLENBQUMsQ0FBQztBQUVyRSxJQUFJLFVBQVUsQ0FBQyxzQkFBc0IsQ0FBQyxLQUFLLEVBQUUsY0FBYyxFQUFFO0lBQzNELGNBQWMsRUFBRSxVQUFVLENBQUMsY0FBYyxDQUFDLGVBQWUsQ0FBQztRQUN4RCxRQUFRLEVBQUUsR0FBRyxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO1FBQ2pDLFVBQVUsRUFBRSxDQUFDO0tBQ2QsQ0FBQztDQUNILENBQUMsQ0FBQztBQUVILElBQUksS0FBSyxDQUFDLFNBQVMsQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLEVBQUU7SUFDckQsU0FBUyxFQUFFLENBQUMsS0FBSyxDQUFDO0NBQ25CLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBpbnRlZyBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgKiBhcyBjb2RlZGVwbG95IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2RlZGVwbG95JztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWNvZGVkZXBsb3ktbGFtYmRhLWNvbmZpZycpO1xuXG5uZXcgY29kZWRlcGxveS5MYW1iZGFEZXBsb3ltZW50Q29uZmlnKHN0YWNrLCAnTGluZWFyQ29uZmlnJywge1xuICB0cmFmZmljUm91dGluZzogY29kZWRlcGxveS5UcmFmZmljUm91dGluZy50aW1lQmFzZWRMaW5lYXIoe1xuICAgIGludGVydmFsOiBjZGsuRHVyYXRpb24ubWludXRlcygxKSxcbiAgICBwZXJjZW50YWdlOiA1LFxuICB9KSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0xhbWJkYURlcGxveW1lbnRDb25maWdUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.js deleted file mode 100644 index 058bf2c224480..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/lambda/integ.deployment-group.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-lambda'); -const handler = new lambda.Function(stack, 'Handler', { - code: lambda.Code.fromAsset(path.join(__dirname, 'handler')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const version = handler.currentVersion; -const blueGreenAlias = new lambda.Alias(stack, 'Alias', { - aliasName: 'alias', - version, -}); -const preHook = new lambda.Function(stack, 'PreHook', { - code: lambda.Code.fromAsset(path.join(__dirname, 'preHook')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const postHook = new lambda.Function(stack, 'PostHook', { - code: lambda.Code.fromAsset(path.join(__dirname, 'postHook')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -new codedeploy.LambdaDeploymentGroup(stack, 'BlueGreenDeployment', { - alias: blueGreenAlias, - deploymentConfig: codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE, - alarms: [ - new cloudwatch.Alarm(stack, 'BlueGreenErrors', { - comparisonOperator: cloudwatch.ComparisonOperator.GREATER_THAN_THRESHOLD, - threshold: 1, - evaluationPeriods: 1, - metric: blueGreenAlias.metricErrors(), - }), - ], - preHook, - postHook, -}); -const secondAlias = new lambda.Alias(stack, 'SecondAlias', { - aliasName: 'secondAlias', - version, -}); -new codedeploy.LambdaDeploymentGroup(stack, 'SecondDeployment', { - alias: secondAlias, - deploymentConfig: codedeploy.LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwbG95bWVudC1ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmRlcGxveW1lbnQtZ3JvdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IseURBQXlEO0FBQ3pELGlEQUFpRDtBQUNqRCxtQ0FBbUM7QUFDbkMseURBQXlEO0FBR3pELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkJBQTJCLENBQUMsQ0FBQztBQUU5RCxNQUFNLE9BQU8sR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRTtJQUNwRCxJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsU0FBUyxDQUFDLENBQUM7SUFDNUQsT0FBTyxFQUFFLGVBQWU7SUFDeEIsT0FBTyxFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVztDQUNwQyxDQUFDLENBQUM7QUFDSCxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsY0FBYyxDQUFDO0FBQ3ZDLE1BQU0sY0FBYyxHQUFHLElBQUksTUFBTSxDQUFDLEtBQ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50Q29uZmlnOiBjb2RlZGVwbG95LkxhbWJkYURlcGxveW1lbnRDb25maWcuTElORUFSXzEwUEVSQ0VOVF9FVkVSWV8xTUlOVVRFLFxuICBhbGFybXM6IFtcbiAgICBuZXcgY2xvdWR3YXRjaC5BbGFybShzdGFjaywgJ0JsdWVHcmVlbkVycm9ycycsIHtcbiAgICAgIGNvbXBhcmlzb25PcGVyYXRvcjogY2xvdWR3YXRjaC5Db21wYXJpc29uT3BlcmF0b3IuR1JFQVRFUl9USEFOX1RIUkVTSE9MRCxcbiAgICAgIHRocmVzaG9sZDogMSxcbiAgICAgIGV2YWx1YXRpb25QZXJpb2RzOiAxLFxuICAgICAgbWV0cmljOiBibHVlR3JlZW5BbGlhcy5tZXRyaWNFcnJvcnMoKSxcbiAgICB9KSxcbiAgXSxcbiAgcHJlSG9vayxcbiAgcG9zdEhvb2ssXG59KTtcblxuY29uc3Qgc2Vjb25kQWxpYXMgPSBuZXcgbGFtYmRhLkFsaWFzKHN0YWNrLCAnU2Vjb25kQWxpYXMnLCB7XG4gIGFsaWFzTmFtZTogJ3NlY29uZEFsaWFzJyxcbiAgdmVyc2lvbixcbn0pO1xuXG5uZXcgY29kZWRlcGxveS5MYW1iZGFEZXBsb3ltZW50R3JvdXAoc3RhY2ssICdTZWNvbmREZXBsb3ltZW50Jywge1xuICBhbGlhczogc2Vjb25kQWxpYXMsXG4gIGRlcGxveW1lbnRDb25maWc6IGNvZGVkZXBsb3kuTGFtYmRhRGVwbG95bWVudENvbmZpZy5DQU5BUllfMTBQRVJDRU5UXzVNSU5VVEVTLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.js deleted file mode 100644 index f558895636593..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codedeploy/test/server/integ.deployment-group.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const lb = require("aws-cdk-lib/aws-elasticloadbalancing"); -const cdk = require("aws-cdk-lib"); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-server-dg'); -const vpc = new ec2.Vpc(stack, 'VPC'); -const asg = new autoscaling.AutoScalingGroup(stack, 'ASG', { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.M5, ec2.InstanceSize.LARGE), - machineImage: new ec2.AmazonLinuxImage(), - vpc, -}); -const elb = new lb.LoadBalancer(stack, 'ELB', { vpc }); -elb.addListener({ - externalPort: 80, -}); -new codedeploy.ServerDeploymentGroup(stack, 'CodeDeployGroup', { - deploymentConfig: codedeploy.ServerDeploymentConfig.ALL_AT_ONCE, - autoScalingGroups: [asg], - loadBalancer: codedeploy.LoadBalancer.classic(elb), - alarms: [ - new cloudwatch.Alarm(stack, 'Alarm1', { - metric: new cloudwatch.Metric({ - metricName: 'Errors', - namespace: 'my.namespace', - }), - threshold: 1, - evaluationPeriods: 1, - }), - ], - autoRollback: { - failedDeployment: false, - deploymentInAlarm: false, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwbG95bWVudC1ncm91cC5qcyIsIn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mljTmFtZTogJ0Vycm9ycycsXG4gICAgICAgIG5hbWVzcGFjZTogJ215Lm5hbWVzcGFjZScsXG4gICAgICB9KSxcbiAgICAgIHRocmVzaG9sZDogMSxcbiAgICAgIGV2YWx1YXRpb25QZXJpb2RzOiAxLFxuICAgIH0pLFxuICBdLFxuICBhdXRvUm9sbGJhY2s6IHtcbiAgICBmYWlsZWREZXBsb3ltZW50OiBmYWxzZSxcbiAgICBkZXBsb3ltZW50SW5BbGFybTogZmFsc2UsXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.js deleted file mode 100644 index f8fc4cb8d1424..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group-import-functions.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_codeguruprofiler_1 = require("aws-cdk-lib/aws-codeguruprofiler"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'ProfilingGroupTestStack'); -const profilingGroup1 = new aws_codeguruprofiler_1.ProfilingGroup(stack, 'ProfilingGroupWithExplicitlySetName', { - profilingGroupName: 'ExplicitlySetName', -}); -const profilingGroup2 = new aws_codeguruprofiler_1.ProfilingGroup(stack, 'ProfilingGroupWithImplicitlySetName'); -const publishAppRole = new aws_iam_1.Role(stack, 'PublishAppRole', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), -}); -profilingGroup1.grantPublish(publishAppRole); -profilingGroup2.grantPublish(publishAppRole); -const importedGroupWithExplicitlySetName = aws_codeguruprofiler_1.ProfilingGroup.fromProfilingGroupName(stack, 'ImportedProfilingGroupWithExplicitlySetName', profilingGroup1.profilingGroupName); -const importedGroupWithImplicitlySetName = aws_codeguruprofiler_1.ProfilingGroup.fromProfilingGroupName(stack, 'ImportedProfilingGroupWithImplicitlySetName', profilingGroup2.profilingGroupName); -const importedGroupFromArn = aws_codeguruprofiler_1.ProfilingGroup.fromProfilingGroupArn(stack, 'ImportedProfilingGroupFromArn', 'arn:aws:codeguru-profiler:a-region-1:1234567890:profilingGroup/MyAwesomeProfilingGroup'); -new aws_cdk_lib_1.CfnOutput(stack, 'ExplicitlySetProfilingGroupName', { - value: importedGroupWithExplicitlySetName.profilingGroupName, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'ImplicitlySetProfilingGroupName', { - value: importedGroupWithImplicitlySetName.profilingGroupName, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'ImportedFromArnProfilingGroupName', { - value: importedGroupFromArn.profilingGroupName, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'ImportedFromArnProfilingGroupArn', { - value: importedGroupFromArn.profilingGroupArn, -}); -const testCase = new integ_tests_alpha_1.IntegTest(app, 'test', { - testCases: [stack], -}); -const describe = testCase.assertions.awsApiCall('CloudFormation', 'describeStacks', { - StackName: 'ProfilingGroupTestStack', -}); -describe.assertAtPath('Stacks.0.Outputs.0.OutputKey', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ExplicitlySetProfilingGroupName')); -describe.assertAtPath('Stacks.0.Outputs.0.OutputValue', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ExplicitlySetName')); -describe.assertAtPath('Stacks.0.Outputs.1.OutputKey', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ImplicitlySetProfilingGroupName')); -describe.assertAtPath('Stacks.0.Outputs.1.OutputValue', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ProfilingGroupTestStackProfilingGroupWithImplicitlySetName98463923')); -describe.assertAtPath('Stacks.0.Outputs.2.OutputKey', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ImportedFromArnProfilingGroupName')); -describe.assertAtPath('Stacks.0.Outputs.2.OutputValue', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('MyAwesomeProfilingGroup')); -describe.assertAtPath('Stacks.0.Outputs.3.OutputKey', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('ImportedFromArnProfilingGroupArn')); -describe.assertAtPath('Stacks.0.Outputs.3.OutputValue', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp('arn:aws:codeguru-profiler:a-region-1:1234567890:profilingGroup/MyAwesomeProfilingGroup')); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvZmlsZXItZ3JvdXAtaW1wb3J0LWZ1bmN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnByb2ZpbGVyLWdyb3VwLWltcG9ydC1mdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUU7QUFDakUsNkNBQW9EO0FBQ3BELGtFQUF1RTtBQUN2RSwyRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSx5QkFBeUIsQ0FBQyxDQUFDO0FBRXhELE1BQU0sZUFBZSxHQUFHLElBQUk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Z0dyb3VwJykpO1xuXG5kZXNjcmliZS5hc3NlcnRBdFBhdGgoJ1N0YWNrcy4wLk91dHB1dHMuMy5PdXRwdXRLZXknLCBFeHBlY3RlZFJlc3VsdC5zdHJpbmdMaWtlUmVnZXhwKCdJbXBvcnRlZEZyb21Bcm5Qcm9maWxpbmdHcm91cEFybicpKTtcbmRlc2NyaWJlLmFzc2VydEF0UGF0aCgnU3RhY2tzLjAuT3V0cHV0cy4zLk91dHB1dFZhbHVlJywgRXhwZWN0ZWRSZXN1bHQuc3RyaW5nTGlrZVJlZ2V4cCgnYXJuOmF3czpjb2RlZ3VydS1wcm9maWxlcjphLXJlZ2lvbi0xOjEyMzQ1Njc4OTA6cHJvZmlsaW5nR3JvdXAvTXlBd2Vzb21lUHJvZmlsaW5nR3JvdXAnKSk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.js deleted file mode 100644 index f4d63327f7def..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codeguruprofiler/test/integ.profiler-group.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_codeguruprofiler_1 = require("aws-cdk-lib/aws-codeguruprofiler"); -class ProfilerGroupIntegrationTest extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const profilingGroup = new aws_codeguruprofiler_1.ProfilingGroup(this, 'MyProfilingGroup'); - const publishAppRole = new aws_iam_1.Role(this, 'PublishAppRole', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), - }); - profilingGroup.grantPublish(publishAppRole); - const readAppRole = new aws_iam_1.Role(this, 'ReadAppRole', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), - }); - profilingGroup.grantRead(readAppRole); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-code-guru-profiler-group', { - testCases: [new ProfilerGroupIntegrationTest(app, 'ProfilerGroupIntegrationTest')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvZmlsZXItZ3JvdXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm9maWxlci1ncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRTtBQUNqRSw2Q0FBcUQ7QUFDckQsa0VBQXVEO0FBQ3ZELDJFQUFrRTtBQUVsRSxNQUFNLDRCQUE2QixTQUFRLG1CQUFLO0lBQzlDLFlBQVksS0FBVSxFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUNwRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLGNBQWMsR0FBRyxJQUFJLHFDQUFjLENBQUMsSUFBSSxFQUFFLGtCQUFrQixDQUFDLENBQUM7UUFFcEUsTUFBTSxjQUFjLEdBQUcsSUFBSSxjQUFJLENBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFFO1lBQ3RELFNBQVMsRUFBRSxJQUFJLDhCQUFvQixFQUFFO1NBQ3RDLENBQUMsQ0FBQztRQUNILGNBQWMsQ0FBQyxZQUFZLENBQU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RoaXMsICdNeVByb2ZpbGluZ0dyb3VwJyk7XG5cbiAgICBjb25zdCBwdWJsaXNoQXBwUm9sZSA9IG5ldyBSb2xlKHRoaXMsICdQdWJsaXNoQXBwUm9sZScsIHtcbiAgICAgIGFzc3VtZWRCeTogbmV3IEFjY291bnRSb290UHJpbmNpcGFsKCksXG4gICAgfSk7XG4gICAgcHJvZmlsaW5nR3JvdXAuZ3JhbnRQdWJsaXNoKHB1Ymxpc2hBcHBSb2xlKTtcblxuICAgIGNvbnN0IHJlYWRBcHBSb2xlID0gbmV3IFJvbGUodGhpcywgJ1JlYWRBcHBSb2xlJywge1xuICAgICAgYXNzdW1lZEJ5OiBuZXcgQWNjb3VudFJvb3RQcmluY2lwYWwoKSxcbiAgICB9KTtcbiAgICBwcm9maWxpbmdHcm91cC5ncmFudFJlYWQocmVhZEFwcFJvbGUpO1xuXG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1jb2RlLWd1cnUtcHJvZmlsZXItZ3JvdXAnLCB7XG4gIHRlc3RDYXNlczogW25ldyBQcm9maWxlckdyb3VwSW50ZWdyYXRpb25UZXN0KGFwcCwgJ1Byb2ZpbGVyR3JvdXBJbnRlZ3JhdGlvblRlc3QnKV0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.d.ts deleted file mode 100644 index 561b79ffefa55..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -export declare class StackSetPipelineStack extends Stack { - constructor(scope: Construct, id: string, props?: StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.js deleted file mode 100644 index 5a2cac55b9fe5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/cloudformation/integ.stacksets.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StackSetPipelineStack = void 0; -/** - * This integration test needs 2 accounts properly configured beforehand to properly test, - * and so is tested by hand. - * - * To test: - * - * ``` - * env AWS_REGION=eu-west-1 STACKSET_ACCOUNTS=11111111,22222222 cdk deploy -a test/cloudformation/integ.stacksets.js - * ``` - * - * Then make the pipeline in your account run. - * - * To update the snapshot: - * - * ``` - * yarn integ --dry-run cloudformation/integ.stacksets.js - * ``` - */ -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_s3_assets_1 = require("aws-cdk-lib/aws-s3-assets"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -class StackSetPipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const pipeline = new codepipeline.Pipeline(this, 'Pipeline', { - artifactBucket: new s3.Bucket(this, 'ArtifactBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }), - }); - const asset = new aws_s3_assets_1.Asset(this, 'Asset', { - path: `${__dirname}/test-artifact`, - }); - const sourceOutput = new codepipeline.Artifact('SourceArtifact'); - pipeline.addStage({ - stageName: 'Source', - actions: [ - new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket: asset.bucket, - bucketKey: asset.s3ObjectKey, - }), - ], - }); - const accounts = process.env.STACKSET_ACCOUNTS?.split(',') ?? ['1111', '2222']; - pipeline.addStage({ - stageName: 'Cfn', - actions: [ - new cpactions.CloudFormationDeployStackSetAction({ - actionName: 'StackSet', - stackSetName: 'TestStackSet', - template: cpactions.StackSetTemplate.fromArtifactPath(sourceOutput.atPath('template.yaml')), - stackInstances: cpactions.StackInstances.inAccounts(accounts, ['us-east-1', 'eu-west-1']), - runOrder: 1, - }), - new cpactions.CloudFormationDeployStackInstancesAction({ - actionName: 'Instances', - stackSetName: 'TestStackSet', - stackInstances: cpactions.StackInstances.inAccounts(accounts, ['us-east-1', 'eu-west-1']), - runOrder: 2, - }), - ], - }); - } -} -exports.StackSetPipelineStack = StackSetPipelineStack; -const app = new aws_cdk_lib_1.App(); -new StackSetPipelineStack(app, 'StackSetPipelineStack'); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhY2tzZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3RhY2tzZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztHQWlCRztBQUNILDZEQUE2RDtBQUM3RCx5Q0FBeUM7QUFDekMsNkRBQWtEO0FBQ2xELDZDQUFvRTtBQUVwRSxrRUFBa0U7QUFFbEUsTUFBYSxxQkFBc0IsU0FBUSxtQkFBSztJQUM5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sUUFBUSxHQUFHLElBQUksWUFBWSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQzNELGNBQWMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFFO2dCQUNwRCxhQUFhLEVBQUUsMkJBQWEsQ0FBQyxPQUFPO2dC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F0ZTogY3BhY3Rpb25zLlN0YWNrU2V0VGVtcGxhdGUuZnJvbUFydGlmYWN0UGF0aChzb3VyY2VPdXRwdXQuYXRQYXRoKCd0ZW1wbGF0ZS55YW1sJykpLFxuICAgICAgICAgIHN0YWNrSW5zdGFuY2VzOiBjcGFjdGlvbnMuU3RhY2tJbnN0YW5jZXMuaW5BY2NvdW50cyhhY2NvdW50cywgWyd1cy1lYXN0LTEnLCAnZXUtd2VzdC0xJ10pLFxuICAgICAgICAgIHJ1bk9yZGVyOiAxLFxuICAgICAgICB9KSxcbiAgICAgICAgbmV3IGNwYWN0aW9ucy5DbG91ZEZvcm1hdGlvbkRlcGxveVN0YWNrSW5zdGFuY2VzQWN0aW9uKHtcbiAgICAgICAgICBhY3Rpb25OYW1lOiAnSW5zdGFuY2VzJyxcbiAgICAgICAgICBzdGFja1NldE5hbWU6ICdUZXN0U3RhY2tTZXQnLFxuICAgICAgICAgIHN0YWNrSW5zdGFuY2VzOiBjcGFjdGlvbnMuU3RhY2tJbnN0YW5jZXMuaW5BY2NvdW50cyhhY2NvdW50cywgWyd1cy1lYXN0LTEnLCAnZXUtd2VzdC0xJ10pLFxuICAgICAgICAgIHJ1bk9yZGVyOiAyLFxuICAgICAgICB9KSxcbiAgICAgIF0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFN0YWNrU2V0UGlwZWxpbmVTdGFjayhhcHAsICdTdGFja1NldFBpcGVsaW5lU3RhY2snKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js deleted file mode 100644 index 5151e136a9a63..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-cloudformation'); -/// !show -// Source stage: read from repository -const repo = new codecommit.Repository(stack, 'TemplateRepo', { - repositoryName: 'template-repo', -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const source = new cpactions.CodeCommitSourceAction({ - actionName: 'Source', - repository: repo, - output: sourceOutput, - trigger: cpactions.CodeCommitTrigger.POLL, -}); -const sourceStage = { - stageName: 'Source', - actions: [source], -}; -// Deployment stage: create and deploy changeset with manual approval -const stackName = 'OurStack'; -const changeSetName = 'StagedChangeSet'; -const prodStage = { - stageName: 'Deploy', - actions: [ - new cpactions.CloudFormationCreateReplaceChangeSetAction({ - actionName: 'PrepareChanges', - stackName, - changeSetName, - adminPermissions: true, - templatePath: sourceOutput.atPath('template.yaml'), - runOrder: 1, - }), - new cpactions.ManualApprovalAction({ - actionName: 'ApproveChanges', - runOrder: 2, - }), - new cpactions.CloudFormationExecuteChangeSetAction({ - actionName: 'ExecuteChanges', - stackName, - changeSetName, - runOrder: 3, - }), - ], -}; -new codepipeline.Pipeline(stack, 'Pipeline', { - stages: [ - sourceStage, - prodStage, - ], -}); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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1lID0gJ1N0YWdlZENoYW5nZVNldCc7XG5cbmNvbnN0IHByb2RTdGFnZSA9IHtcbiAgc3RhZ2VOYW1lOiAnRGVwbG95JyxcbiAgYWN0aW9uczogW1xuICAgIG5ldyBjcGFjdGlvbnMuQ2xvdWRGb3JtYXRpb25DcmVhdGVSZXBsYWNlQ2hhbmdlU2V0QWN0aW9uKHtcbiAgICAgIGFjdGlvbk5hbWU6ICdQcmVwYXJlQ2hhbmdlcycsXG4gICAgICBzdGFja05hbWUsXG4gICAgICBjaGFuZ2VTZXROYW1lLFxuICAgICAgYWRtaW5QZXJtaXNzaW9uczogdHJ1ZSxcbiAgICAgIHRlbXBsYXRlUGF0aDogc291cmNlT3V0cHV0LmF0UGF0aCgndGVtcGxhdGUueWFtbCcpLFxuICAgICAgcnVuT3JkZXI6IDEsXG4gICAgfSksXG4gICAgbmV3IGNwYWN0aW9ucy5NYW51YWxBcHByb3ZhbEFjdGlvbih7XG4gICAgICBhY3Rpb25OYW1lOiAnQXBwcm92ZUNoYW5nZXMnLFxuICAgICAgcnVuT3JkZXI6IDIsXG4gICAgfSksXG4gICAgbmV3IGNwYWN0aW9ucy5DbG91ZEZvcm1hdGlvbkV4ZWN1dGVDaGFuZ2VTZXRBY3Rpb24oe1xuICAgICAgYWN0aW9uTmFtZTogJ0V4ZWN1dGVDaGFuZ2VzJyxcbiAgICAgIHN0YWNrTmFtZSxcbiAgICAgIGNoYW5nZVNldE5hbWUsXG4gICAgICBydW5PcmRlcjogMyxcbiAgICB9KSxcbiAgXSxcbn07XG5cbm5ldyBjb2RlcGlwZWxpbmUuUGlwZWxpbmUoc3RhY2ssICdQaXBlbGluZScsIHtcbiAgc3RhZ2VzOiBbXG4gICAgc291cmNlU3RhZ2UsXG4gICAgcHJvZFN0YWdlLFxuICBdLFxufSk7XG4vLy8gIWhpZGVcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.js deleted file mode 100644 index fde568764d0dd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.js +++ /dev/null @@ -1,128 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ PipelineStack -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -/// !show -const lambdaStack = new cdk.Stack(app, 'LambdaStack'); -const lambdaCode = lambda.Code.fromCfnParameters(); -new lambda.Function(lambdaStack, 'Lambda', { - code: lambdaCode, - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -// other resources that your Lambda needs, added to the lambdaStack... -const pipelineStack = new cdk.Stack(app, 'PipelineStack'); -const pipeline = new codepipeline.Pipeline(pipelineStack, 'Pipeline'); -// add the source code repository containing this code to your Pipeline, -// and the source code of the Lambda Function, if they're separate -const cdkSourceOutput = new codepipeline.Artifact(); -const cdkSourceAction = new codepipeline_actions.CodeCommitSourceAction({ - repository: new codecommit.Repository(pipelineStack, 'CdkCodeRepo', { - repositoryName: 'CdkCodeRepo', - }), - actionName: 'CdkCode_Source', - output: cdkSourceOutput, -}); -const lambdaSourceOutput = new codepipeline.Artifact(); -const lambdaSourceAction = new codepipeline_actions.CodeCommitSourceAction({ - repository: new codecommit.Repository(pipelineStack, 'LambdaCodeRepo', { - repositoryName: 'LambdaCodeRepo', - }), - actionName: 'LambdaCode_Source', - output: lambdaSourceOutput, -}); -pipeline.addStage({ - stageName: 'Source', - actions: [cdkSourceAction, lambdaSourceAction], -}); -// synthesize the Lambda CDK template, using CodeBuild -// the below values are just examples, assuming your CDK code is in TypeScript/JavaScript - -// adjust the build environment and/or commands accordingly -const cdkBuildProject = new codebuild.Project(pipelineStack, 'CdkBuildProject', { - environment: { - buildImage: codebuild.LinuxBuildImage.UBUNTU_14_04_NODEJS_10_1_0, - }, - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - install: { - commands: 'npm install', - }, - build: { - commands: [ - 'npm run build', - 'npm run cdk synth LambdaStack -- -o .', - ], - }, - }, - artifacts: { - files: 'LambdaStack.template.yaml', - }, - }), -}); -const cdkBuildOutput = new codepipeline.Artifact(); -const cdkBuildAction = new codepipeline_actions.CodeBuildAction({ - actionName: 'CDK_Build', - project: cdkBuildProject, - input: cdkSourceOutput, - outputs: [cdkBuildOutput], -}); -// build your Lambda code, using CodeBuild -// again, this example assumes your Lambda is written in TypeScript/JavaScript - -// make sure to adjust the build environment and/or commands if they don't match your specific situation -const lambdaBuildProject = new codebuild.Project(pipelineStack, 'LambdaBuildProject', { - environment: { - buildImage: codebuild.LinuxBuildImage.UBUNTU_14_04_NODEJS_10_1_0, - }, - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - install: { - commands: 'npm install', - }, - build: { - commands: 'npm run build', - }, - }, - artifacts: { - files: [ - 'index.js', - 'node_modules/**/*', - ], - }, - }), -}); -const lambdaBuildOutput = new codepipeline.Artifact(); -const lambdaBuildAction = new codepipeline_actions.CodeBuildAction({ - actionName: 'Lambda_Build', - project: lambdaBuildProject, - input: lambdaSourceOutput, - outputs: [lambdaBuildOutput], -}); -pipeline.addStage({ - stageName: 'Build', - actions: [cdkBuildAction, lambdaBuildAction], -}); -// finally, deploy your Lambda Stack -pipeline.addStage({ - stageName: 'Deploy', - actions: [ - new codepipeline_actions.CloudFormationCreateUpdateStackAction({ - actionName: 'Lambda_CFN_Deploy', - templatePath: cdkBuildOutput.atPath('LambdaStack.template.yaml'), - stackName: 'LambdaStackDeployedName', - adminPermissions: true, - parameterOverrides: lambdaCode.assign(lambdaBuildOutput.s3Location), - extraInputs: [ - lambdaBuildOutput, - ], - }), - ], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWRlcGxveWVkLXRocm91Z2gtY29kZXBpcGVsaW5lLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWJkYS1kZXBsb3llZC10aHJvdWdoLWNvZGVwaXBlbGluZS5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0QkFBNEI7QUFDNUIsdURBQXVEO0FBQ3ZELHlEQUF5RDtBQUN6RCw2REFBNkQ7QUFDN0QsaURBQWlEO0FBQ2pELG1DQUFtQztBQUNuQyw2RUFBNkU7QUFFN0UsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsU0FBUztBQUNULE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFDdEQsTUFBTSxVQUFVLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxpQkFBaUIsRUFBRSxDQUFDO0FBQ25ELElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxXQUFXLEVBQUUsUUFBUSxFQUFFO0lBQ3pDLElB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VpbGRQcm9qZWN0LFxuICBpbnB1dDogbGFtYmRhU291cmNlT3V0cHV0LFxuICBvdXRwdXRzOiBbbGFtYmRhQnVpbGRPdXRwdXRdLFxufSk7XG5cbnBpcGVsaW5lLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnQnVpbGQnLFxuICBhY3Rpb25zOiBbY2RrQnVpbGRBY3Rpb24sIGxhbWJkYUJ1aWxkQWN0aW9uXSxcbn0pO1xuXG4vLyBmaW5hbGx5LCBkZXBsb3kgeW91ciBMYW1iZGEgU3RhY2tcbnBpcGVsaW5lLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnRGVwbG95JyxcbiAgYWN0aW9uczogW1xuICAgIG5ldyBjb2RlcGlwZWxpbmVfYWN0aW9ucy5DbG91ZEZvcm1hdGlvbkNyZWF0ZVVwZGF0ZVN0YWNrQWN0aW9uKHtcbiAgICAgIGFjdGlvbk5hbWU6ICdMYW1iZGFfQ0ZOX0RlcGxveScsXG4gICAgICB0ZW1wbGF0ZVBhdGg6IGNka0J1aWxkT3V0cHV0LmF0UGF0aCgnTGFtYmRhU3RhY2sudGVtcGxhdGUueWFtbCcpLFxuICAgICAgc3RhY2tOYW1lOiAnTGFtYmRhU3RhY2tEZXBsb3llZE5hbWUnLFxuICAgICAgYWRtaW5QZXJtaXNzaW9uczogdHJ1ZSxcbiAgICAgIHBhcmFtZXRlck92ZXJyaWRlczogbGFtYmRhQ29kZS5hc3NpZ24obGFtYmRhQnVpbGRPdXRwdXQuczNMb2NhdGlvbiksXG4gICAgICBleHRyYUlucHV0czogW1xuICAgICAgICBsYW1iZGFCdWlsZE91dHB1dCxcbiAgICAgIF0sXG4gICAgfSksXG4gIF0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.js deleted file mode 100644 index eb40bd5a74c5f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-pipeline.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudtrail = require("aws-cdk-lib/aws-cloudtrail"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-lambda'); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline'); -const sourceStage = pipeline.addStage({ stageName: 'Source' }); -const bucket = new s3.Bucket(stack, 'PipelineBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const key = 'key'; -const trail = new cloudtrail.Trail(stack, 'CloudTrail'); -trail.addS3EventSelector([{ bucket, objectPrefix: key }], { readWriteType: cloudtrail.ReadWriteType.WRITE_ONLY, includeManagementEvents: false }); -sourceStage.addAction(new cpactions.S3SourceAction({ - actionName: 'Source', - output: new codepipeline.Artifact('SourceArtifact'), - bucket, - bucketKey: key, - trigger: cpactions.S3Trigger.EVENTS, -})); -const lambdaFun = new lambda.Function(stack, 'LambdaFun', { - code: new lambda.InlineCode(` - exports.handler = function () { - console.log("Hello, world!"); - }; - `), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const lambdaStage = pipeline.addStage({ stageName: 'Lambda' }); -lambdaStage.addAction(new cpactions.LambdaInvokeAction({ - actionName: 'Lambda', - lambda: lambdaFun, -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLXBpcGVsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtYmRhLXBpcGVsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELDZEQUE2RDtBQUM3RCxpREFBaUQ7QUFDakQseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDO0FBRWhFLE1BQU0sUUFBUSxHQUFHLElBQUksWUFBWSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsVUFBVSxDQUFDLENBQUM7QUFFOUQsTUFBTSxXQUFXLEdBQUcsUUFBUSxDQUFDLFFBQVEsQ0FBQyxFQUFFLFNBQVMsRUFBRSxRQUFRLEVBQUUsQ0FBQyxDQUFDO0FBQy9ELE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDcEQsU0FBUyxFQUFFLElBQUk7SUFDZixhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUNILE1BQU0sR0FBRyxHQUFHLEtBQUssQ0FBQztBQUNsQixNQUFNLEtBQUssR0FBRyxJQUFJLFVBQVUsQ0FBQyxLQUFLLENBQUMsS0FBSyx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ufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.js deleted file mode 100644 index 039a0674198bd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeilne-elastic-beanstalk-deploy.js +++ /dev/null @@ -1,132 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const elasticbeanstalk = require("aws-cdk-lib/aws-elasticbeanstalk"); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const deploy = require("aws-cdk-lib/aws-s3-deployment"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -/** - * To validate that the deployment actually succeeds, perform the following actions: - * - * 1. Delete the snapshot - * 2. Run `yarn integ --update-on-failed --no-clean` - * 3. Navigate to CodePipeline in the console and click 'Release change' - * - Before releasing the change, the pipeline will show a failure because it - * attempts to run on creation but the elastic beanstalk environment is not yet ready - * 4. Navigate to Elastic Beanstalk and click on the URL for the application just deployed - * - You should see 'Congratulations' message - * 5. Manually delete the 'aws-cdk-codepipeline-elastic-beanstalk-deploy' stack - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-codepipeline-elastic-beanstalk-deploy'); -const bucket = new s3.Bucket(stack, 'PipelineBucket', { - versioned: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const artifact = new deploy.BucketDeployment(stack, 'DeployApp', { - sources: [deploy.Source.asset(path.join(__dirname, 'assets/nodejs.zip'))], - destinationBucket: bucket, - extract: false, -}); -const serviceRole = new iam.Role(stack, 'service-role', { - roleName: 'codepipeline-elasticbeanstalk-action-test-serivce-role', - assumedBy: new iam.ServicePrincipal('elasticbeanstalk.amazonaws.com'), - managedPolicies: [ - { - managedPolicyArn: 'arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkEnhancedHealth', - }, - { - managedPolicyArn: 'arn:aws:iam::aws:policy/AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy', - }, - ], -}); -const instanceProfileRole = new iam.Role(stack, 'instance-profile-role', { - roleName: 'codepipeline-elasticbeanstalk-action-test-instance-profile-role', - assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'), - managedPolicies: [ - { - managedPolicyArn: 'arn:aws:iam::aws:policy/AWSElasticBeanstalkWebTier', - }, - { - managedPolicyArn: 'arn:aws:iam::aws:policy/AWSElasticBeanstalkMulticontainerDocker', - }, - { - managedPolicyArn: 'arn:aws:iam::aws:policy/AWSElasticBeanstalkWorkerTier', - }, - ], -}); -const instanceProfile = new iam.CfnInstanceProfile(stack, 'instance-profile', { - roles: [instanceProfileRole.roleName], - instanceProfileName: instanceProfileRole.roleName, -}); -const beanstalkApp = new elasticbeanstalk.CfnApplication(stack, 'beastalk-app', { - applicationName: 'codepipeline-test-app', -}); -const beanstalkEnv = new elasticbeanstalk.CfnEnvironment(stack, 'beanstlk-env', { - applicationName: beanstalkApp.applicationName, - environmentName: 'codepipeline-test-env', - solutionStackName: '64bit Amazon Linux 2 v5.5.6 running Node.js 16', - optionSettings: [ - { - namespace: 'aws:autoscaling:launchconfiguration', - optionName: 'IamInstanceProfile', - value: instanceProfile.instanceProfileName, - }, - { - namespace: 'aws:elasticbeanstalk:environment', - optionName: 'ServiceRole', - value: serviceRole.roleName, - }, - { - namespace: 'aws:elasticbeanstalk:environment', - optionName: 'LoadBalancerType', - value: 'application', - }, - { - namespace: 'aws:elasticbeanstalk:managedactions', - optionName: 'ServiceRoleForManagedUpdates', - value: 'AWSServiceRoleForElasticBeanstalkManagedUpdates', - }, - ], -}); -beanstalkEnv.addDependency(instanceProfile); -beanstalkEnv.addDependency(beanstalkApp); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket, - bucketKey: aws_cdk_lib_1.Fn.select(0, artifact.objectKeys), -}); -pipeline.addStage({ - stageName: 'Source', - actions: [ - sourceAction, - ], -}); -const deployAction = new cpactions.ElasticBeanstalkDeployAction({ - actionName: 'Deploy', - input: sourceOutput, - environmentName: beanstalkEnv.environmentName, - applicationName: beanstalkApp.applicationName, -}); -pipeline.addStage({ - stageName: 'Deploy', - actions: [ - deployAction, - ], -}); -new integ.IntegTest(app, 'codepipeline-elastic-beanstalk-deploy', { - testCases: [stack], - stackUpdateWorkflow: false, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWlsbmUtZWxhc3RpYy1iZWFuc3RhbGstZGVwbG95LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWlsbmUtZWxhc3RpYy1iZWFuc3RhbGstZGVwbG95LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDZEQUE2RDtBQUM3RCxxRUFBcU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oMCwgYXJ0aWZhY3Qub2JqZWN0S2V5cyksXG59KTtcblxucGlwZWxpbmUuYWRkU3RhZ2Uoe1xuICBzdGFnZU5hbWU6ICdTb3VyY2UnLFxuICBhY3Rpb25zOiBbXG4gICAgc291cmNlQWN0aW9uLFxuICBdLFxufSk7XG5cbmNvbnN0IGRlcGxveUFjdGlvbiA9IG5ldyBjcGFjdGlvbnMuRWxhc3RpY0JlYW5zdGFsa0RlcGxveUFjdGlvbih7XG4gIGFjdGlvbk5hbWU6ICdEZXBsb3knLFxuICBpbnB1dDogc291cmNlT3V0cHV0LFxuICBlbnZpcm9ubWVudE5hbWU6IGJlYW5zdGFsa0Vudi5lbnZpcm9ubWVudE5hbWUhLFxuICBhcHBsaWNhdGlvbk5hbWU6IGJlYW5zdGFsa0FwcC5hcHBsaWNhdGlvbk5hbWUhLFxufSk7XG5cbnBpcGVsaW5lLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnRGVwbG95JyxcbiAgYWN0aW9uczogW1xuICAgIGRlcGxveUFjdGlvbixcbiAgXSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2NvZGVwaXBlbGluZS1lbGFzdGljLWJlYW5zdGFsay1kZXBsb3knLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgc3RhY2tVcGRhdGVXb3JrZmxvdzogZmFsc2UsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.js deleted file mode 100644 index 0b6c623b54dfb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-alexa-deploy.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-codepipeline-alexa-deploy'); -const bucket = new s3.Bucket(stack, 'PipelineBucket', { - versioned: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket, - bucketKey: 'key', -}); -const sourceStage = { - stageName: 'Source', - actions: [sourceAction], -}; -const deployStage = { - stageName: 'Deploy', - actions: [ - new cpactions.AlexaSkillDeployAction({ - actionName: 'DeploySkill', - runOrder: 1, - input: sourceOutput, - clientId: 'clientId', - clientSecret: aws_cdk_lib_1.SecretValue.unsafePlainText('clientSecret'), - refreshToken: aws_cdk_lib_1.SecretValue.unsafePlainText('refreshToken'), - skillId: 'amzn1.ask.skill.12345678-1234-1234-1234-123456789012', - }), - ], -}; -new codepipeline.Pipeline(stack, 'Pipeline', { - stages: [ - sourceStage, - deployStage, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtYWxleGEtZGVwbG95LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbm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50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.js deleted file mode 100644 index 31fe462e8cbc1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-cross-region.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const region = 'us-west-2'; // hardcode the region -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-cloudformation-cross-region', { - env: { - region, - }, -}); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const sourceOutput = new codepipeline.Artifact(); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'S3', - bucketKey: 'some/path', - bucket, - output: sourceOutput, -}); -new codepipeline.Pipeline(stack, 'MyPipeline', { - artifactBucket: bucket, - stages: [ - { - stageName: 'Source', - actions: [sourceAction], - }, - { - stageName: 'CFN', - actions: [ - new cpactions.CloudFormationCreateUpdateStackAction({ - actionName: 'CFN_Deploy', - stackName: 'aws-cdk-codepipeline-cross-region-deploy-stack', - templatePath: sourceOutput.atPath('template.yml'), - adminPermissions: false, - region, - }), - ], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY2ZuLWNyb3NzLXJlZ2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLWNmbi1jcm9zcy1yZWdpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2REFBNkQ7QUFDN0QseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxNQUFNLEdBQUcsV0FBVyxDQUFDLENBQUMsc0JBQXNCO0FBQ2xELE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsa0RBQWtELEVBQUU7SUFDbkYsR0FBRyxFQUFFO1FBQ0gsTUFBTTtLQUNQO0NBQ0YsQ0FBQyxDQUFDO0FBRUgsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDOUMsU0FBUyxFQUFFLElBQUk7SUFDZixhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUVILE1BQU0sWUFBWSxHQUFHLElBQUksWUFBWSxDQUFDLFFBQVEsRUFBRSxDQUFDO0FBQ2pELE1BQU0sWUFBWSxHQUFHLElBQUksU0FBUyxDQUFDLGNBQWMsQ0FBQztJQUNoRCxVQUFVLEVBQUUsSUFBSTtJQUNoQixTQUFTLEVBQUUsV0FBVztJQUN0QixNQUFNO0lBQ04sTUFBTSxFQUFFLFlBQVk7Q0FD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cGxhdGVQYXRoOiBzb3VyY2VPdXRwdXQuYXRQYXRoKCd0ZW1wbGF0ZS55bWwnKSxcbiAgICAgICAgICBhZG1pblBlcm1pc3Npb25zOiBmYWxzZSxcbiAgICAgICAgICByZWdpb24sXG4gICAgICAgIH0pLFxuICAgICAgXSxcbiAgICB9LFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.js deleted file mode 100644 index dd140c41c4456..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn-with-action-role.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-cloudformation-cross-region-with-action-role', {}); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const sourceOutput = new codepipeline.Artifact(); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'S3', - bucketKey: 'some/path', - bucket, - output: sourceOutput, -}); -const sourceStage = { - stageName: 'Source', - actions: [sourceAction], -}; -const role = new iam.Role(stack, 'ActionRole', { - assumedBy: new iam.AccountPrincipal(cdk.Aws.ACCOUNT_ID), -}); -role.addToPolicy(new iam.PolicyStatement({ - actions: ['sqs:*'], - resources: ['*'], -})); -const cfnStage = { - stageName: 'CFN', - actions: [ - new cpactions.CloudFormationCreateUpdateStackAction({ - actionName: 'CFN_Deploy', - stackName: 'aws-cdk-codepipeline-cross-region-deploy-stack', - templatePath: sourceOutput.atPath('template.yml'), - adminPermissions: false, - role, - }), - ], -}; -new codepipeline.Pipeline(stack, 'MyPipeline', { - artifactBucket: bucket, - stages: [ - sourceStage, - cfnStage, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY2ZuLXdpdGgtYWN0aW9uLXJvbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS1jZm4td2l0aC1hY3Rpb24tcm9sZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZEQUE2RDtBQUM3RCwyQ0FBMkM7QUFDM0MseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxtRUFBbUUsRUFBRSxFQUFFLENBQUMsQ0FBQztBQUUxRyxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUM5QyxTQUFTLEVBQUUsSUFBSTtJQUNmLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFB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GFydGlmYWN0QnVja2V0OiBidWNrZXQsXG4gIHN0YWdlczogW1xuICAgIHNvdXJjZVN0YWdlLFxuICAgIGNmblN0YWdlLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.js deleted file mode 100644 index 4c7a08e0a3f7b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-cfn.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-cloudformation'); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline'); -const bucket = new s3.Bucket(stack, 'PipelineBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const additionalArtifact = new codepipeline.Artifact('AdditionalArtifact'); -const source = new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket, - bucketKey: 'key', -}); -const sourceStage = { - stageName: 'Source', - actions: [ - source, - new cpactions.S3SourceAction({ - actionName: 'AdditionalSource', - output: additionalArtifact, - bucket, - bucketKey: 'additional/key', - }), - ], -}; -const changeSetName = 'ChangeSetIntegTest'; -const stackName = 'IntegTest-TestActionStack'; -const role = new aws_iam_1.Role(stack, 'CfnChangeSetRole', { - assumedBy: new aws_iam_1.ServicePrincipal('cloudformation.amazonaws.com'), -}); -pipeline.addStage(sourceStage); -pipeline.addStage({ - stageName: 'CFN', - actions: [ - new cpactions.CloudFormationCreateReplaceChangeSetAction({ - actionName: 'DeployCFN', - changeSetName, - stackName, - deploymentRole: role, - templatePath: sourceOutput.atPath('test.yaml'), - adminPermissions: false, - parameterOverrides: { - BucketName: sourceOutput.bucketName, - ObjectKey: sourceOutput.objectKey, - Url: additionalArtifact.url, - OtherParam: sourceOutput.getParam('params.json', 'OtherParam'), - }, - extraInputs: [additionalArtifact], - }), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY2ZuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtY2ZuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkRBQTZEO0FBQzdELGlEQUE2RDtBQUM3RCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLGtFQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHFDQUFxQyxDQUFDLENBQUM7QUFFeEUsTUFBTSxRQUFRLEdBQUcsSUFBSSxZQUFZLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxVQUFVLENBQUMsQ0FBQztBQUU5RCxNQUFNLE1BQU0sR0FBRyxJQUF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AgIE90aGVyUGFyYW06IHNvdXJjZU91dHB1dC5nZXRQYXJhbSgncGFyYW1zLmpzb24nLCAnT3RoZXJQYXJhbScpLFxuICAgICAgfSxcbiAgICAgIGV4dHJhSW5wdXRzOiBbYWRkaXRpb25hbEFydGlmYWN0XSxcbiAgICB9KSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.js deleted file mode 100644 index 0ec8d663ed50f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codebuild-batch'); -const repository = new codecommit.Repository(stack, 'MyRepo', { - repositoryName: 'MyIntegTestTempRepo', -}); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const pipelineRole = pipeline.role; -const sourceOutput = new codepipeline.Artifact(); -const sourceAction = new cpactions.CodeCommitSourceAction({ - actionName: 'Source', - repository, - output: sourceOutput, - role: pipelineRole, -}); -pipeline.addStage({ - stageName: 'Source', - actions: [ - sourceAction, - ], -}); -const project = new codebuild.PipelineProject(stack, 'MyBuildProject', { - grantReportGroupPermissions: false, -}); -const buildAction = new cpactions.CodeBuildAction({ - actionName: 'Build', - project, - executeBatchBuild: true, - input: sourceOutput, - role: pipelineRole, -}); -pipeline.addStage({ - stageName: 'Build', - actions: [ - buildAction, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1idWlsZC1iYXRjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLWNvZGUtYnVpbGQtYmF0Y2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBdUQ7QUFDdkQseURBQXlEO0FBQ3pELDZEQUE2RDtBQUM3RCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLGtFQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHNDQUFzQyxDQUFDLENBQUM7QUFFekUsTUFBTSxVQUFVLEdBQUcsSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDNUQsY0FBYyxFQUFFLHFCQUFxQjtDQUN0QyxDQUFDLENBQUM7QUFDSCxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQ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4gICAgYnVpbGRBY3Rpb24sXG4gIF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.js deleted file mode 100644 index 5235d502fbbc8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codebuild-multiple-inputs-outputs'); -const repository = new codecommit.Repository(stack, 'MyRepo', { - repositoryName: 'MyIntegTestTempRepo', -}); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const pipelineRole = pipeline.role; -const source1Output = new codepipeline.Artifact(); -const sourceAction1 = new cpactions.CodeCommitSourceAction({ - actionName: 'Source1', - repository, - output: source1Output, - role: pipelineRole, -}); -const source2Output = new codepipeline.Artifact(); -const sourceAction2 = new cpactions.S3SourceAction({ - actionName: 'Source2', - bucketKey: 'some/path', - bucket, - output: source2Output, - role: pipelineRole, -}); -pipeline.addStage({ - stageName: 'Source', - actions: [ - sourceAction1, - sourceAction2, - ], -}); -const project = new codebuild.PipelineProject(stack, 'MyBuildProject', { - grantReportGroupPermissions: false, -}); -const buildAction = new cpactions.CodeBuildAction({ - actionName: 'Build1', - project, - input: source1Output, - extraInputs: [ - source2Output, - ], - outputs: [ - new codepipeline.Artifact(), - new codepipeline.Artifact(), - ], - role: pipelineRole, -}); -const testAction = new cpactions.CodeBuildAction({ - type: cpactions.CodeBuildActionType.TEST, - actionName: 'Build2', - project, - input: source2Output, - extraInputs: [ - source1Output, - ], - outputs: [ - new codepipeline.Artifact('CustomOutput2'), - ], - role: pipelineRole, -}); -pipeline.addStage({ - stageName: 'Build', - actions: [ - buildAction, - testAction, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1idWlsZC1tdWx0aXBsZS1pbnB1dHMtb3V0cHV0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLWNvZGUtYnVpbGQtbXVsdGlwbGUtaW5wdXRzLW91dHB1dHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBdUQ7QUFDdkQseURBQXlEO0FBQ3pELDZEQUE2RDtBQUM3RCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLGtFQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQU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QZXJtaXNzaW9uczogZmFsc2UsXG59KTtcbmNvbnN0IGJ1aWxkQWN0aW9uID0gbmV3IGNwYWN0aW9ucy5Db2RlQnVpbGRBY3Rpb24oe1xuICBhY3Rpb25OYW1lOiAnQnVpbGQxJyxcbiAgcHJvamVjdCxcbiAgaW5wdXQ6IHNvdXJjZTFPdXRwdXQsXG4gIGV4dHJhSW5wdXRzOiBbXG4gICAgc291cmNlMk91dHB1dCxcbiAgXSxcbiAgb3V0cHV0czogW1xuICAgIG5ldyBjb2RlcGlwZWxpbmUuQXJ0aWZhY3QoKSxcbiAgICBuZXcgY29kZXBpcGVsaW5lLkFydGlmYWN0KCksXG4gIF0sXG4gIHJvbGU6IHBpcGVsaW5lUm9sZSxcbn0pO1xuY29uc3QgdGVzdEFjdGlvbiA9IG5ldyBjcGFjdGlvbnMuQ29kZUJ1aWxkQWN0aW9uKHtcbiAgdHlwZTogY3BhY3Rpb25zLkNvZGVCdWlsZEFjdGlvblR5cGUuVEVTVCxcbiAgYWN0aW9uTmFtZTogJ0J1aWxkMicsXG4gIHByb2plY3QsXG4gIGlucHV0OiBzb3VyY2UyT3V0cHV0LFxuICBleHRyYUlucHV0czogW1xuICAgIHNvdXJjZTFPdXRwdXQsXG4gIF0sXG4gIG91dHB1dHM6IFtcbiAgICBuZXcgY29kZXBpcGVsaW5lLkFydGlmYWN0KCdDdXN0b21PdXRwdXQyJyksXG4gIF0sXG4gIHJvbGU6IHBpcGVsaW5lUm9sZSxcbn0pO1xucGlwZWxpbmUuYWRkU3RhZ2Uoe1xuICBzdGFnZU5hbWU6ICdCdWlsZCcsXG4gIGFjdGlvbnM6IFtcbiAgICBidWlsZEFjdGlvbixcbiAgICB0ZXN0QWN0aW9uLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.js deleted file mode 100644 index f48fac5cc90ad..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit-build.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -/* eslint-disable quote-props */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codecommit-codebuild'); -const repository = new codecommit.Repository(stack, 'MyRepo', { - repositoryName: 'my-repo', -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const sourceAction = new cpactions.CodeCommitSourceAction({ - actionName: 'source', - output: sourceOutput, - repository, - trigger: cpactions.CodeCommitTrigger.POLL, -}); -const project = new codebuild.PipelineProject(stack, 'MyBuildProject', { - grantReportGroupPermissions: false, -}); -const buildAction = new cpactions.CodeBuildAction({ - actionName: 'build', - project, - input: sourceOutput, - outputs: [new codepipeline.Artifact()], - environmentVariables: { - 'TEST_ENV_VARIABLE': { - value: 'test env variable value', - }, - 'PARAM_STORE_VARIABLE': { - value: 'param_store', - type: codebuild.BuildEnvironmentVariableType.PARAMETER_STORE, - }, - }, -}); -const testAction = new cpactions.CodeBuildAction({ - type: cpactions.CodeBuildActionType.TEST, - actionName: 'test', - project, - input: sourceOutput, -}); -new codepipeline.Pipeline(stack, 'Pipeline', { - stages: [ - { - stageName: 'source', - actions: [sourceAction], - }, - ], -}).addStage({ - stageName: 'build', - actions: [ - buildAction, - testAction, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1jb21taXQtYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS1jb2RlLWNvbW1pdC1idWlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVEQUF1RDtBQUN2RCx5REFBeUQ7QUFDekQsNkRBQTZEO0FBQzdELG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsZ0NBQWdDO0FBRWhDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkNBQTJDLENBQUMsQ0FBQztBQUU5RSxNQUFNLFVBQVUsR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUM1RCxjQUFjLEVBQUUsU0FBUztDQUMxQixDQUFDLENBQUM7QUFDSCxNQUFNLFlBQVksR0FBRyxJQUFJLFlBQVksQ0FBQyxRQUFRLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztBQUNqRSxNQUFNLFlBQVksR0FBRyxJQUFJLFNBQVMsQ0FBQyxzQkFBc0IsQ0FBQztJQUN4RCxVQUFVLEVBQUUsUUFBUTtJQUNwQixNQUFNLEVBQUUsWUFBWTtJQUNwQixVQUFVO0lBQ1YsT0FBTyxFQUFFLFNBQVMsQ0FBQyxpQkFBaUIsQ0FBQyxJQUFJO0NBQzFDLENBQUMsQ0FB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FtcbiAgICB7XG4gICAgICBzdGFnZU5hbWU6ICdzb3VyY2UnLFxuICAgICAgYWN0aW9uczogW3NvdXJjZUFjdGlvbl0sXG4gICAgfSxcbiAgXSxcbn0pLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnYnVpbGQnLFxuICBhY3Rpb25zOiBbXG4gICAgYnVpbGRBY3Rpb24sXG4gICAgdGVzdEFjdGlvbixcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.js deleted file mode 100644 index e5d6fb6127a09..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-commit.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codecommit'); -const repo = new codecommit.Repository(stack, 'MyRepo', { - repositoryName: 'my-repo', -}); -new codepipeline.Pipeline(stack, 'Pipeline', { - stages: [ - { - stageName: 'source', - actions: [ - new cpactions.CodeCommitSourceAction({ - actionName: 'source', - repository: repo, - output: new codepipeline.Artifact('SourceArtifact'), - }), - ], - }, - { - stageName: 'build', - actions: [ - new cpactions.ManualApprovalAction({ actionName: 'manual' }), - ], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1jb21taXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS1jb2RlLWNvbW1pdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUF5RDtBQUN6RCw2REFBNkQ7QUFDN0QsbUNBQW1DO0FBQ25DLGtFQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGlDQUFpQyxDQUFDLENBQUM7QUFFcEUsTUFBTSxJQUFJLEdBQUcsSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDdEQsY0FBYyxFQUFFLFNBQVM7Q0FDMUIsQ0FBQyxDQUFDO0FBRUgsSUFBSSxZQUFZLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDM0MsTUFBTSxFQUFFO1FBQ047WUFDRSxTQUFTLEVBQUUsUUFBUTtZQUNuQixPQUFPLEVBQUU7Z0JBQ1AsSUFBSSxTQUFTLENBQUMsc0JBQXNCLENBQUM7b0JBQ25DLFVBQVUsRUFBRSxRQUFRO29CQUNwQixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsTUFBTSxFQUFFLElBQUksWUFBWSxDQUFDLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQztpQkFDcEQsQ0FBQzthQUNIO1NBQ0Y7UUFDRDtZQUNFLFNBQVMsR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IHJlcG8sXG4gICAgICAgICAgb3V0cHV0OiBuZXcgY29kZXBpcGVsaW5lLkFydGlmYWN0KCdTb3VyY2VBcnRpZmFjdCcpLFxuICAgICAgICB9KSxcbiAgICAgIF0sXG4gICAgfSxcbiAgICB7XG4gICAgICBzdGFnZU5hbWU6ICdidWlsZCcsXG4gICAgICBhY3Rpb25zOiBbXG4gICAgICAgIG5ldyBjcGFjdGlvbnMuTWFudWFsQXBwcm92YWxBY3Rpb24oeyBhY3Rpb25OYW1lOiAnbWFudWFsJyB9KSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.js deleted file mode 100644 index e0cf8fb45a55d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy-ecs.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codedeploy-ecs'); -const application = codedeploy.EcsApplication.fromEcsApplicationName(stack, 'CodeDeployApplication', 'IntegTestDeployApp'); -const deploymentGroup = codedeploy.EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(stack, 'CodeDeployGroup', { - application, - deploymentGroupName: 'IntegTestDeploymentGroup', -}); -const bucket = new s3.Bucket(stack, 'CodeDeployPipelineIntegTest', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const sourceStage = pipeline.addStage({ stageName: 'Source' }); -const sourceOutput = new codepipeline.Artifact('SourceOutput'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'S3Source', - bucketKey: 'application.zip', - output: sourceOutput, - bucket, -}); -sourceStage.addAction(sourceAction); -const deployStage = pipeline.addStage({ stageName: 'Deploy' }); -deployStage.addAction(new cpactions.CodeDeployEcsDeployAction({ - actionName: 'CodeDeploy', - deploymentGroup, - taskDefinitionTemplateFile: new codepipeline.ArtifactPath(sourceOutput, 'task-definition-test.json'), - appSpecTemplateFile: new codepipeline.ArtifactPath(sourceOutput, 'appspec-test.json'), - containerImageInputs: [ - { - input: sourceOutput, - taskDefinitionPlaceholder: 'PLACEHOLDER', - }, - ], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1kZXBsb3ktZWNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtY29kZS1kZXBsb3ktZWNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELDZEQUE2RDtBQUM3RCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLGtFQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQ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bmNvbnN0IHNvdXJjZUFjdGlvbiA9IG5ldyBjcGFjdGlvbnMuUzNTb3VyY2VBY3Rpb24oe1xuICBhY3Rpb25OYW1lOiAnUzNTb3VyY2UnLFxuICBidWNrZXRLZXk6ICdhcHBsaWNhdGlvbi56aXAnLFxuICBvdXRwdXQ6IHNvdXJjZU91dHB1dCxcbiAgYnVja2V0LFxufSk7XG5zb3VyY2VTdGFnZS5hZGRBY3Rpb24oc291cmNlQWN0aW9uKTtcblxuY29uc3QgZGVwbG95U3RhZ2UgPSBwaXBlbGluZS5hZGRTdGFnZSh7IHN0YWdlTmFtZTogJ0RlcGxveScgfSk7XG5kZXBsb3lTdGFnZS5hZGRBY3Rpb24obmV3IGNwYWN0aW9ucy5Db2RlRGVwbG95RWNzRGVwbG95QWN0aW9uKHtcbiAgYWN0aW9uTmFtZTogJ0NvZGVEZXBsb3knLFxuICBkZXBsb3ltZW50R3JvdXAsXG4gIHRhc2tEZWZpbml0aW9uVGVtcGxhdGVGaWxlOiBuZXcgY29kZXBpcGVsaW5lLkFydGlmYWN0UGF0aChzb3VyY2VPdXRwdXQsICd0YXNrLWRlZmluaXRpb24tdGVzdC5qc29uJyksXG4gIGFwcFNwZWNUZW1wbGF0ZUZpbGU6IG5ldyBjb2RlcGlwZWxpbmUuQXJ0aWZhY3RQYXRoKHNvdXJjZU91dHB1dCwgJ2FwcHNwZWMtdGVzdC5qc29uJyksXG4gIGNvbnRhaW5lckltYWdlSW5wdXRzOiBbXG4gICAge1xuICAgICAgaW5wdXQ6IHNvdXJjZU91dHB1dCxcbiAgICAgIHRhc2tEZWZpbml0aW9uUGxhY2Vob2xkZXI6ICdQTEFDRUhPTERFUicsXG4gICAgfSxcbiAgXSxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.js deleted file mode 100644 index be241f84390e8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-deploy.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codedeploy = require("aws-cdk-lib/aws-codedeploy"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-codedeploy'); -const application = new codedeploy.ServerApplication(stack, 'CodeDeployApplication', { - applicationName: 'IntegTestDeployApp', -}); -const deploymentConfig = new codedeploy.ServerDeploymentConfig(stack, 'CustomDeployConfig', { - minimumHealthyHosts: codedeploy.MinimumHealthyHosts.count(0), -}); -const deploymentGroup = new codedeploy.ServerDeploymentGroup(stack, 'CodeDeployGroup', { - application, - deploymentGroupName: 'IntegTestDeploymentGroup', - deploymentConfig, -}); -const bucket = new s3.Bucket(stack, 'CodeDeployPipelineIntegTest', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const sourceStage = pipeline.addStage({ stageName: 'Source' }); -const sourceOutput = new codepipeline.Artifact('SourceOutput'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'S3Source', - bucketKey: 'application.zip', - output: sourceOutput, - bucket, -}); -sourceStage.addAction(sourceAction); -const deployStage = pipeline.addStage({ stageName: 'Deploy' }); -deployStage.addAction(new cpactions.CodeDeployServerDeployAction({ - actionName: 'CodeDeploy', - deploymentGroup, - input: sourceOutput, -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtY29kZS1kZXBsb3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS1jb2RlLWRlcGxveS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUF5RDtBQUN6RCw2REFBNkQ7QUFDN0QseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxpQ0FBaUMsQ0FBQyxDQUFDO0FBRXBFLE1BQU0sV0FBVyxHQUFHLElBQUksVUFBVSxDQUFDLGlCQUFpQixDQUFDLEtBQUssRUFBRSx1QkFBdUIsRUFBRTtJQUNuRixlQUFlLEVBQUUsb0JBQW9CO0NBQ3RDLENBQUMsQ0FBQztBQUVILE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxVQUFVLENBQUMsc0JBQXNCLENBQUMsS0FBSyxFQUFFLG9CQUFvQixFQUFFO0lBQzFGLG1CQUFtQixFQUFFLFVBQVUsQ0FBQyxtQkFBbUIsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO0NBQzdELENBQUMsQ0FBQztBQUVILE1BQU0sZUFBZSxHQUFHLElBQUksVUFBVSxDQUFDLHFCQUFxQixDQUFDLEtBQUssRUFBRSxpQkFBaUIsRUFBRTtJQUNyRixXQUFXO0lBQ1gsbUJBQW1CLE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3lTZXJ2ZXJEZXBsb3lBY3Rpb24oe1xuICBhY3Rpb25OYW1lOiAnQ29kZURlcGxveScsXG4gIGRlcGxveW1lbnRHcm91cCxcbiAgaW5wdXQ6IHNvdXJjZU91dHB1dCxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.js deleted file mode 100644 index d5fde87f1b5df..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecr-source.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -/** - * Manual validation steps - * - * Run test with `-vv` so that the outputs are printed and - * `--no-clean` flag so that the stack is not deleted after the deployment is complete - * - * You should see output like: - * - * Outputs: - * aws-cdk-codepipeline-ecr-source.PipelineConsoleLink = https://us-east-1.console.aws.amazon.com/codesuite/codepipeline/pipelines/aws-cdk-codepipeline-ecr-source-MyPipelineAED38ECF-1P0OYRLWF8FHY/view?region=us-east-1 - * aws-cdk-codepipeline-ecr-source.LoginCommand = aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 11111111111.dkr.ecr.us-east-1.amazonaws.com - * aws-cdk-codepipeline-ecr-source.PushCommand = docker tag public.ecr.aws/lambda/provided 11111111111.dkr.ecr.us-east-1.amazonaws.com/aws-cdk-codepipeline-ecr-source-myecrrepo767466d0-gsrntpvfwc5w:latest \ - * && docker push 11111111111.dkr.ecr.us-east-1.amazonaws.com/aws-cdk-codepipeline-ecr-source-myecrrepo767466d0-gsrntpvfwc5w:latest - * - * Run the LoginCommand & PushCommand to tag and push an image to the ECR repository. - * Then use the PipelineConsoleLink to navigate to the pipeline console page to validate that the pipeline - * was triggered successfully. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-ecr-source'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const pipeline = new codepipeline.Pipeline(stack, 'MyPipeline', { - artifactBucket: bucket, -}); -const repository = new ecr.Repository(stack, 'MyEcrRepo', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const sourceStage = pipeline.addStage({ stageName: 'Source' }); -sourceStage.addAction(new cpactions.EcrSourceAction({ - actionName: 'ECR_Source', - output: new codepipeline.Artifact(), - repository, -})); -const approveStage = pipeline.addStage({ stageName: 'Approve' }); -approveStage.addAction(new cpactions.ManualApprovalAction({ actionName: 'ManualApproval' })); -new cdk.CfnOutput(stack, 'LoginCommand', { - value: `aws ecr get-login-password --region ${stack.region} | docker login --username AWS --password-stdin ${stack.account}.dkr.ecr.${stack.region}.amazonaws.com`, -}); -new cdk.CfnOutput(stack, 'PushCommand', { - value: `docker tag public.ecr.aws/lambda/provided ${repository.repositoryUriForTag('latest')} && docker push ${repository.repositoryUriForTag('latest')}`, -}); -new cdk.CfnOutput(stack, 'PipelineConsoleLink', { - value: `https://${stack.region}.console.aws.amazon.com/codesuite/codepipeline/pipelines/${pipeline.pipelineName}/view?region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cbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js deleted file mode 100644 index e8086d73b5c88..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -/* eslint-disable quote-props */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-ecs-deploy'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 1, -}); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { - vpc, -}); -const repository = new ecr.Repository(stack, 'EcrRepo'); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -const containerName = 'Container'; -taskDefinition.addContainer(containerName, { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), -}); -const service = new ecs.FargateService(stack, 'FargateService', { - cluster, - taskDefinition, -}); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket, - bucketKey: 'path/to/Dockerfile', -}); -const project = new codebuild.PipelineProject(stack, 'EcsProject', { - environment: { - buildImage: codebuild.LinuxBuildImage.UBUNTU_14_04_DOCKER_17_09_0, - privileged: true, - }, - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - pre_build: { - commands: '$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)', - }, - build: { - commands: 'docker build -t $REPOSITORY_URI:latest .', - }, - post_build: { - commands: [ - 'docker push $REPOSITORY_URI:latest', - `printf '[{ "name": "${containerName}", "imageUri": "%s" }]' $REPOSITORY_URI:latest > imagedefinitions.json`, - ], - }, - }, - artifacts: { - files: 'imagedefinitions.json', - }, - }), - environmentVariables: { - 'REPOSITORY_URI': { - value: repository.repositoryUri, - }, - }, - grantReportGroupPermissions: false, -}); -// needed for `docker push` -repository.grantPullPush(project); -const buildOutput = new codepipeline.Artifact(); -const buildAction = new cpactions.CodeBuildAction({ - actionName: 'CodeBuild', - project, - input: sourceOutput, - outputs: [buildOutput], -}); -new codepipeline.Pipeline(stack, 'MyPipeline', { - artifactBucket: bucket, - stages: [ - { - stageName: 'Source', - actions: [sourceAction], - }, - { - stageName: 'Build', - actions: [buildAction], - }, - { - stageName: 'Deploy', - actions: [ - new cpactions.EcsDeployAction({ - actionName: 'DeployAction', - input: buildOutput, - service, - deploymentTimeout: cdk.Duration.minutes(60), - }), - ], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtZWNzLWRlcGxveS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnL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LFxuICAgICAgICAgIGRlcGxveW1lbnRUaW1lb3V0OiBjZGsuRHVyYXRpb24ubWludXRlcyg2MCksXG4gICAgICAgIH0pLFxuICAgICAgXSxcbiAgICB9LFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.d.ts deleted file mode 100644 index bf50cc959d615..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import * as ecs from 'aws-cdk-lib/aws-ecs'; -import * as cdk from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -/** - * This example demonstrates how to create a CodePipeline that deploys an ECS Service - * from a different source repository than the source repository of your CDK code. - * If your application code and your CDK code are in the same repository, - * use the CDK Pipelines module instead of this method. - */ -/** - * These are the construction properties for `EcsAppStack`. - * They extend the standard Stack properties, - * but also require providing the ContainerImage that the service will use. - * That Image will be provided from the Stack containing the CodePipeline. - */ -export interface EcsAppStackProps extends cdk.StackProps { - readonly image: ecs.ContainerImage; -} -/** - * This is the Stack containing a simple ECS Service that uses the provided ContainerImage. - */ -export declare class EcsAppStack extends cdk.Stack { - constructor(scope: Construct, id: string, props: EcsAppStackProps); -} -/** - * This is the Stack containing the CodePipeline definition that deploys an ECS Service. - */ -export declare class PipelineStack extends cdk.Stack { - readonly tagParameterContainerImage: ecs.TagParameterContainerImage; - constructor(scope: Construct, id: string, props?: cdk.StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.js deleted file mode 100644 index 5c23bd68d6bf6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-separate-source.lit.js +++ /dev/null @@ -1,192 +0,0 @@ -"use strict"; -/// !cdk-integ * -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PipelineStack = exports.EcsAppStack = void 0; -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -/** - * This is the Stack containing a simple ECS Service that uses the provided ContainerImage. - */ -class EcsAppStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const taskDefinition = new ecs.TaskDefinition(this, 'TaskDefinition', { - compatibility: ecs.Compatibility.FARGATE, - cpu: '1024', - memoryMiB: '2048', - }); - taskDefinition.addContainer('AppContainer', { - image: props.image, - }); - new ecs.FargateService(this, 'EcsService', { - taskDefinition, - cluster: new ecs.Cluster(this, 'Cluster', { - vpc: new ec2.Vpc(this, 'Vpc', { - maxAzs: 1, - }), - }), - }); - } -} -exports.EcsAppStack = EcsAppStack; -/** - * This is the Stack containing the CodePipeline definition that deploys an ECS Service. - */ -class PipelineStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /* ********** ECS part **************** */ - // this is the ECR repository where the built Docker image will be pushed - const appEcrRepo = new ecr.Repository(this, 'EcsDeployRepository'); - // the build that creates the Docker image, and pushes it to the ECR repo - const appCodeDockerBuild = new codebuild.PipelineProject(this, 'AppCodeDockerImageBuildAndPushProject', { - environment: { - // we need to run Docker - privileged: true, - }, - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: [ - // login to ECR first - '$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)', - // if your application needs any build steps, they would be invoked here - // build the image, and tag it with the commit hash - // (CODEBUILD_RESOLVED_SOURCE_VERSION is a special environment variable available in CodeBuild) - 'docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .', - ], - }, - post_build: { - commands: [ - // push the built image into the ECR repository - 'docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION', - // save the declared tag as an environment variable, - // that is then exported below in the 'exported-variables' section as a CodePipeline Variable - 'export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION', - ], - }, - }, - env: { - // save the imageTag environment variable as a CodePipeline Variable - 'exported-variables': [ - 'imageTag', - ], - }, - }), - environmentVariables: { - REPOSITORY_URI: { - value: appEcrRepo.repositoryUri, - }, - }, - }); - // needed for `docker push` - appEcrRepo.grantPullPush(appCodeDockerBuild); - // create the ContainerImage used for the ECS application Stack - this.tagParameterContainerImage = new ecs.TagParameterContainerImage(appEcrRepo); - const cdkCodeBuild = new codebuild.PipelineProject(this, 'CdkCodeBuildProject', { - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - install: { - commands: [ - 'npm install', - ], - }, - build: { - commands: [ - // synthesize the CDK code for the ECS application Stack - 'npx cdk synth --verbose', - ], - }, - }, - artifacts: { - // store the entire Cloud Assembly as the output artifact - 'base-directory': 'cdk.out', - 'files': '**/*', - }, - }), - }); - /* ********** Pipeline part **************** */ - const appCodeSourceOutput = new codepipeline.Artifact(); - const cdkCodeSourceOutput = new codepipeline.Artifact(); - const cdkCodeBuildOutput = new codepipeline.Artifact(); - const appCodeBuildAction = new codepipeline_actions.CodeBuildAction({ - actionName: 'AppCodeDockerImageBuildAndPush', - project: appCodeDockerBuild, - input: appCodeSourceOutput, - }); - new codepipeline.Pipeline(this, 'CodePipelineDeployingEcsApplication', { - artifactBucket: new s3.Bucket(this, 'ArtifactBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }), - stages: [ - { - stageName: 'Source', - actions: [ - // this is the Action that takes the source of your application code - new codepipeline_actions.CodeCommitSourceAction({ - actionName: 'AppCodeSource', - repository: new codecommit.Repository(this, 'AppCodeSourceRepository', { repositoryName: 'AppCodeSourceRepository' }), - output: appCodeSourceOutput, - }), - // this is the Action that takes the source of your CDK code - // (which would probably include this Pipeline code as well) - new codepipeline_actions.CodeCommitSourceAction({ - actionName: 'CdkCodeSource', - repository: new codecommit.Repository(this, 'CdkCodeSourceRepository', { repositoryName: 'CdkCodeSourceRepository' }), - output: cdkCodeSourceOutput, - }), - ], - }, - { - stageName: 'Build', - actions: [ - appCodeBuildAction, - new codepipeline_actions.CodeBuildAction({ - actionName: 'CdkCodeBuildAndSynth', - project: cdkCodeBuild, - input: cdkCodeSourceOutput, - outputs: [cdkCodeBuildOutput], - }), - ], - }, - { - stageName: 'Deploy', - actions: [ - new codepipeline_actions.CloudFormationCreateUpdateStackAction({ - actionName: 'CFN_Deploy', - stackName: 'SampleEcsStackDeployedFromCodePipeline', - // this name has to be the same name as used below in the CDK code for the application Stack - templatePath: cdkCodeBuildOutput.atPath('EcsStackDeployedInPipeline.template.json'), - adminPermissions: true, - parameterOverrides: { - // read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step, - // and pass it as the CloudFormation Parameter for the tag - [this.tagParameterContainerImage.tagParameterName]: appCodeBuildAction.variable('imageTag'), - }, - }), - ], - }, - ], - }); - } -} -exports.PipelineStack = PipelineStack; -const app = new cdk.App(); -// the CodePipeline Stack needs to be created first -const pipelineStack = new PipelineStack(app, 'aws-cdk-pipeline-ecs-separate-sources'); -// we supply the image to the ECS application Stack from the CodePipeline Stack -new EcsAppStack(app, 'EcsStackDeployedInPipeline', { - image: pipelineStack.tagParameterContainerImage, -}); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtZWNzLXNlcGFyYXRlLXNv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G4gICAgICAgICAgICAgIG91dHB1dDogYXBwQ29kZVNvdXJjZU91dHB1dCxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgLy8gdGhpcyBpcyB0aGUgQWN0aW9uIHRoYXQgdGFrZXMgdGhlIHNvdXJjZSBvZiB5b3VyIENESyBjb2RlXG4gICAgICAgICAgICAvLyAod2hpY2ggd291bGQgcHJvYmFibHkgaW5jbHVkZSB0aGlzIFBpcGVsaW5lIGNvZGUgYXMgd2VsbClcbiAgICAgICAgICAgIG5ldyBjb2RlcGlwZWxpbmVfYWN0aW9ucy5Db2RlQ29tbWl0U291cmNlQWN0aW9uKHtcbiAgICAgICAgICAgICAgYWN0aW9uTmFtZTogJ0Nka0NvZGVTb3VyY2UnLFxuICAgICAgICAgICAgICByZXBvc2l0b3J5OiBuZXcgY29kZWNvbW1pdC5SZXBvc2l0b3J5KHRoaXMsICdDZGtDb2RlU291cmNlUmVwb3NpdG9yeScsIHsgcmVwb3NpdG9yeU5hbWU6ICdDZGtDb2RlU291cmNlUmVwb3NpdG9yeScgfSksXG4gICAgICAgICAgICAgIG91dHB1dDogY2RrQ29kZVNvdXJjZU91dHB1dCxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIF0sXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBzdGFnZU5hbWU6ICdCdWlsZCcsXG4gICAgICAgICAgYWN0aW9uczogW1xuICAgICAgICAgICAgYXBwQ29kZUJ1aWxkQWN0aW9uLFxuICAgICAgICAgICAgbmV3IGNvZGVwaXBlbGluZV9hY3Rpb25zLkNvZGVCdWlsZEFjdGlvbih7XG4gICAgICAgICAgICAgIGFjdGlvbk5hbWU6ICdDZGtDb2RlQnVpbGRBbmRTeW50aCcsXG4gICAgICAgICAgICAgIHByb2plY3Q6IGNka0NvZGVCdWlsZCxcbiAgICAgICAgICAgICAgaW5wdXQ6IGNka0NvZGVTb3VyY2VPdXRwdXQsXG4gICAgICAgICAgICAgIG91dHB1dHM6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YW1ldGVyQ29udGFpbmVySW1hZ2UudGFnUGFyYW1ldGVyTmFtZV06IGFwcENvZGVCdWlsZEFjdGlvbi52YXJpYWJsZSgnaW1hZ2VUYWcnKSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIF0sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbi8vIHRoZSBDb2RlUGlwZWxpbmUgU3RhY2sgbmVlZHMgdG8gYmUgY3JlYXRlZCBmaXJzdFxuY29uc3QgcGlwZWxpbmVTdGFjayA9IG5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ2F3cy1jZGstcGlwZWxpbmUtZWNzLXNlcGFyYXRlLXNvdXJjZXMnKTtcbi8vIHdlIHN1cHBseSB0aGUgaW1hZ2UgdG8gdGhlIEVDUyBhcHBsaWNhdGlvbiBTdGFjayBmcm9tIHRoZSBDb2RlUGlwZWxpbmUgU3RhY2tcbm5ldyBFY3NBcHBTdGFjayhhcHAsICdFY3NTdGFja0RlcGxveWVkSW5QaXBlbGluZScsIHtcbiAgaW1hZ2U6IHBpcGVsaW5lU3RhY2sudGFnUGFyYW1ldGVyQ29udGFpbmVySW1hZ2UsXG59KTtcbi8vLyAhaGlkZVxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.js deleted file mode 100644 index 25c01538b48d6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-events.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -// Use pipeline as CloudWAtch event target -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const events = require("aws-cdk-lib/aws-events"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-pipeline-event-target'); -const pipeline = new codepipeline.Pipeline(stack, 'MyPipeline'); -const repository = new codecommit.Repository(stack, 'CodeCommitRepo', { - repositoryName: 'foo', -}); -const project = new codebuild.PipelineProject(stack, 'BuildProject', { - grantReportGroupPermissions: false, -}); -const sourceOutput = new codepipeline.Artifact('Source'); -const sourceAction = new cpactions.CodeCommitSourceAction({ - actionName: 'CodeCommitSource', - output: sourceOutput, - repository, - trigger: cpactions.CodeCommitTrigger.POLL, -}); -const sourceStage = pipeline.addStage({ - stageName: 'Source', - actions: [sourceAction], -}); -pipeline.addStage({ - stageName: 'Build', - actions: [ - new cpactions.CodeBuildAction({ - actionName: 'CodeBuildAction', - input: sourceOutput, - project, - outputs: [new codepipeline.Artifact()], - }), - ], -}); -const topic = new sns.Topic(stack, 'MyTopic'); -const eventPipeline = events.EventField.fromPath('$.detail.pipeline'); -const eventState = events.EventField.fromPath('$.detail.state'); -pipeline.onStateChange('OnPipelineStateChange', { - target: new targets.SnsTopic(topic, { - message: events.RuleTargetInput.fromText(`Pipeline ${eventPipeline} changed state to ${eventState}`), - }), -}); -sourceStage.onStateChange('OnSourceStateChange', new targets.SnsTopic(topic)); -sourceAction.onStateChange('OnActionStateChange', new targets.SnsTopic(topic)).addEventPattern({ - detail: { state: ['STARTED'] }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtZXZlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwwQ0FBMEM7O0FBRTFDLHVEQUF1RDtBQUN2RCx5REFBeUQ7QUFDekQsNkRBQTZEO0FBQzdELGlEQUFpRDtBQUNqRCwwREFBMEQ7QUFDMUQsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSwrQkFBK0IsQ0FBQyxDQUFDO0FBRWxFLE1BQU0sUUFBUSxHQUFHLElBQUksWUFBWSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFFaEUsTUFBTSxVQUFVLEdBQUcsSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxnQkFBZ0IsRUFBRTtJQUNwRSxjQUFjLEVBQUUsS0FBSztDQUN0QixDQUFDLENBQUM7QUFDSCxNQUFNLE9BQU8sR0FBRyxJQUFJLFNBQVMsQ0FBQyxlQUFlLENBQUMsS0FBSyxFQUFFLGNBQWMsRUFBRTtJQUNuRSwyQkFBMkIsRUFBRSxLQUFLO0NBQ25DLENBQUMsQ0FBQztBQUVILE1BQU0sWUFBWSxHQUFHLElBQUksWUFBWSxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUN6R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pb24ub25TdGF0ZUNoYW5nZSgnT25BY3Rpb25TdGF0ZUNoYW5nZScsIG5ldyB0YXJnZXRzLlNuc1RvcGljKHRvcGljKSkuYWRkRXZlbnRQYXR0ZXJuKHtcbiAgZGV0YWlsOiB7IHN0YXRlOiBbJ1NUQVJURUQnXSB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.js deleted file mode 100644 index e8d7ae27f2da1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-jenkins.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-jenkins'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - versioned: true, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, -}); -const sourceOutput = new codepipeline.Artifact(); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'S3', - bucketKey: 'some/path', - bucket, - output: sourceOutput, -}); -pipeline.addStage({ - stageName: 'Source', - actions: [sourceAction], -}); -const jenkinsProvider = new cpactions.JenkinsProvider(stack, 'JenkinsProvider', { - providerName: 'JenkinsProvider', - serverUrl: 'http://myjenkins.com:8080', - version: '2', -}); -pipeline.addStage({ - stageName: 'Build', - actions: [ - new cpactions.JenkinsAction({ - actionName: 'JenkinsBuild', - jenkinsProvider, - type: cpactions.JenkinsActionType.BUILD, - projectName: 'JenkinsProject1', - inputs: [sourceOutput], - outputs: [new codepipeline.Artifact()], - }), - new cpactions.JenkinsAction({ - actionName: 'JenkinsTest', - jenkinsProvider, - type: cpactions.JenkinsActionType.TEST, - projectName: 'JenkinsProject2', - inputs: [sourceOutput], - }), - new cpactions.JenkinsAction({ - actionName: 'JenkinsTest2', - jenkinsProvider, - type: cpactions.JenkinsActionType.TEST, - projectName: 'JenkinsProject3', - inputs: [sourceOutput], - }), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtamVua2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLWplbmtpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2REFBNkQ7QUFDN0QseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw4QkFBOEIsQ0FBQyxDQUFDO0FBRWpFLE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsVUFBVSxFQUFFO0lBQzlDLFNBQVMsRUFBRSxJQUFJO0NBQ2hCLENBQUMsQ0FBQztBQUVILE1BQU0sUUFBUSxHQUFHLElBQUksW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B1dHM6IFtzb3VyY2VPdXRwdXRdLFxuICAgICAgb3V0cHV0czogW25ldyBjb2RlcGlwZWxpbmUuQXJ0aWZhY3QoKV0sXG4gICAgfSksXG4gICAgbmV3IGNwYWN0aW9ucy5KZW5raW5zQWN0aW9uKHtcbiAgICAgIGFjdGlvbk5hbWU6ICdKZW5raW5zVGVzdCcsXG4gICAgICBqZW5raW5zUHJvdmlkZXIsXG4gICAgICB0eXBlOiBjcGFjdGlvbnMuSmVua2luc0FjdGlvblR5cGUuVEVTVCxcbiAgICAgIHByb2plY3ROYW1lOiAnSmVua2luc1Byb2plY3QyJyxcbiAgICAgIGlucHV0czogW3NvdXJjZU91dHB1dF0sXG4gICAgfSksXG4gICAgbmV3IGNwYWN0aW9ucy5KZW5raW5zQWN0aW9uKHtcbiAgICAgIGFjdGlvbk5hbWU6ICdKZW5raW5zVGVzdDInLFxuICAgICAgamVua2luc1Byb3ZpZGVyLFxuICAgICAgdHlwZTogY3BhY3Rpb25zLkplbmtpbnNBY3Rpb25UeXBlLlRFU1QsXG4gICAgICBwcm9qZWN0TmFtZTogJ0plbmtpbnNQcm9qZWN0MycsXG4gICAgICBpbnB1dHM6IFtzb3VyY2VPdXRwdXRdLFxuICAgIH0pLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.js deleted file mode 100644 index aedc83d868211..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-manual-approval.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-manual-approval'); -const bucket = new s3.Bucket(stack, 'Bucket'); -new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, - stages: [ - { - stageName: 'Source', - actions: [ - new cpactions.S3SourceAction({ - actionName: 'S3', - bucket, - bucketKey: 'file.zip', - output: new codepipeline.Artifact(), - }), - ], - }, - { - stageName: 'Approve', - actions: [ - new cpactions.ManualApprovalAction({ - actionName: 'ManualApproval', - notifyEmails: ['adamruka85@gmail.com'], - }), - ], - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtbWFudWFsLWFwcHJvdmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtbWFudWFsLWFwcHJvdmFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkRBQTZEO0FBQzdELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsa0VBQWtFO0FBRWxFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsc0NBQXNDLENBQUMsQ0FBQztBQUV6RSxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ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29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstY29kZXBpcGVsaW5lLW1hbnVhbC1hcHByb3ZhbCcpO1xuXG5jb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnQnVja2V0Jyk7XG5cbm5ldyBjb2RlcGlwZWxpbmUuUGlwZWxpbmUoc3RhY2ssICdQaXBlbGluZScsIHtcbiAgYXJ0aWZhY3RCdWNrZXQ6IGJ1Y2tldCxcbiAgc3RhZ2VzOiBbXG4gICAge1xuICAgICAgc3RhZ2VOYW1lOiAnU291cmNlJyxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAgbmV3IGNwYWN0aW9ucy5TM1NvdXJjZUFjdGlvbih7XG4gICAgICAgICAgYWN0aW9uTmFtZTogJ1MzJyxcbiAgICAgICAgICBidWNrZXQsXG4gICAgICAgICAgYnVja2V0S2V5OiAnZmlsZS56aXAnLFxuICAgICAgICAgIG91dHB1dDogbmV3IGNvZGVwaXBlbGluZS5BcnRpZmFjdCgpLFxuICAgICAgICB9KSxcbiAgICAgIF0sXG4gICAgfSxcbiAgICB7XG4gICAgICBzdGFnZU5hbWU6ICdBcHByb3ZlJyxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAgbmV3IGNwYWN0aW9ucy5NYW51YWxBcHByb3ZhbEFjdGlvbih7XG4gICAgICAgICAgYWN0aW9uTmFtZTogJ01hbnVhbEFwcHJvdmFsJyxcbiAgICAgICAgICBub3RpZnlFbWFpbHM6IFsnYWRhbXJ1a2E4NUBnbWFpbC5jb20nXSxcbiAgICAgICAgfSksXG4gICAgICBdLFxuICAgIH0sXG4gIF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.js deleted file mode 100644 index 5a8739732872f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-s3-deploy.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-s3-deploy'); -const bucket = new s3.Bucket(stack, 'PipelineBucket', { - versioned: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const sourceOutput = new codepipeline.Artifact('SourceArtifact'); -const sourceAction = new cpactions.S3SourceAction({ - actionName: 'Source', - output: sourceOutput, - bucket, - bucketKey: 'key', -}); -const deployBucket = new s3.Bucket(stack, 'DeployBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const otherDeployBucket = new s3.Bucket(stack, 'OtherDeployBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const pipeline = new codepipeline.Pipeline(stack, 'Pipeline', { - artifactBucket: bucket, - stages: [ - { - stageName: 'Source', - actions: [sourceAction], - }, - { - stageName: 'Deploy', - actions: [ - new cpactions.S3DeployAction({ - actionName: 'DeployAction', - extract: false, - objectKey: 'key', - input: sourceOutput, - bucket: deployBucket, - accessControl: s3.BucketAccessControl.PRIVATE, - cacheControl: [ - cpactions.CacheControl.setPublic(), - cpactions.CacheControl.maxAge(cdk.Duration.hours(12)), - ], - }), - ], - }, - { - stageName: 'Disabled', - transitionToEnabled: false, - actions: [ - new cpactions.S3DeployAction({ - actionName: 'DisabledDeployAction', - input: sourceOutput, - bucket: otherDeployBucket, - }), - ], - }, - ], -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 's3-deploy-test', { - testCases: [stack], -}); -integ.assertions.awsApiCall('S3', 'putObject', { - Bucket: bucket.bucketName, - Key: 'key', - Body: 'HelloWorld', -}).next(integ.assertions.awsApiCall('CodePipeline', 'getPipelineState', { - name: pipeline.pipelineName, -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - stageStates: integ_tests_alpha_1.Match.arrayWith([ - integ_tests_alpha_1.Match.objectLike({ - stageName: 'Deploy', - latestExecution: integ_tests_alpha_1.Match.objectLike({ - status: 'Succeeded', - }), - }), - ]), -})).waitForAssertions({ - totalTimeout: aws_cdk_lib_1.Duration.minutes(5), -}).next(integ.assertions.awsApiCall('S3', 'getObject', { - Bucket: deployBucket.bucketName, - Key: 'key', -}))); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtczMtZGVwbG95LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtczMtZGVwbG95LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkRBQTZEO0FBQzdELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsNkNBQXVDO0FBQ3ZDLGtFQUE4RTtBQUM5RSxrRUFBa0U7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFF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YXJyYXlXaXRoKFtcbiAgICAgIE1hdGNoLm9iamVjdExpa2Uoe1xuICAgICAgICBzdGFnZU5hbWU6ICdEZXBsb3knLFxuICAgICAgICBsYXRlc3RFeGVjdXRpb246IE1hdGNoLm9iamVjdExpa2Uoe1xuICAgICAgICAgIHN0YXR1czogJ1N1Y2NlZWRlZCcsXG4gICAgICAgIH0pLFxuICAgICAgfSksXG4gICAgXSksXG4gIH0pKS53YWl0Rm9yQXNzZXJ0aW9ucyh7XG4gICAgdG90YWxUaW1lb3V0OiBEdXJhdGlvbi5taW51dGVzKDUpLFxuICB9KS5uZXh0KFxuICAgIGludGVnLmFzc2VydGlvbnMuYXdzQXBpQ2FsbCgnUzMnLCAnZ2V0T2JqZWN0Jywge1xuICAgICAgQnVja2V0OiBkZXBsb3lCdWNrZXQuYnVja2V0TmFtZSxcbiAgICAgIEtleTogJ2tleScsXG4gICAgfSksXG4gICksXG4pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.js deleted file mode 100644 index abee701e01994..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-stepfunctions.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const stepfunctions = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codepipeline-stepfunctions'); -const sourceOutput = new codepipeline.Artifact(); -const startState = new stepfunctions.Pass(stack, 'StartState'); -const simpleStateMachine = new stepfunctions.StateMachine(stack, 'SimpleStateMachine', { - definition: startState, -}); -const pipeline = new codepipeline.Pipeline(stack, 'MyPipeline'); -pipeline.addStage({ - stageName: 'Source', - actions: [ - new cpactions.S3SourceAction({ - actionName: 'Source', - bucket: new s3.Bucket(stack, 'MyBucket'), - bucketKey: 'some/path/to', - output: sourceOutput, - trigger: cpactions.S3Trigger.POLL, - }), - ], -}); -pipeline.addStage({ - stageName: 'Invoke', - actions: [ - new cpactions.StepFunctionInvokeAction({ - actionName: 'Invoke', - stateMachine: simpleStateMachine, - stateMachineInput: cpactions.StateMachineInput.literal({ IsHelloWorldExample: true }), - }), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtc3RlcGZ1bmN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLXN0ZXBmdW5jdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2REFBNkQ7QUFDN0QseUNBQXlDO0FBQ3pDLCtEQUErRDtBQUMvRCxtQ0FBbUM7QUFDbkMsa0VBQWtFO0FBRWxFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsb0NBQW9DLENBQUMsQ0FBQztBQUV2RSxNQU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GVsaW5lLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnU291cmNlJyxcbiAgYWN0aW9uczogW1xuICAgIG5ldyBjcGFjdGlvbnMuUzNTb3VyY2VBY3Rpb24oe1xuICAgICAgYWN0aW9uTmFtZTogJ1NvdXJjZScsXG4gICAgICBidWNrZXQ6IG5ldyBzMy5CdWNrZXQoc3RhY2ssICdNeUJ1Y2tldCcpLFxuICAgICAgYnVja2V0S2V5OiAnc29tZS9wYXRoL3RvJyxcbiAgICAgIG91dHB1dDogc291cmNlT3V0cHV0LFxuICAgICAgdHJpZ2dlcjogY3BhY3Rpb25zLlMzVHJpZ2dlci5QT0xMLFxuICAgIH0pLFxuICBdLFxufSk7XG5waXBlbGluZS5hZGRTdGFnZSh7XG4gIHN0YWdlTmFtZTogJ0ludm9rZScsXG4gIGFjdGlvbnM6IFtcbiAgICBuZXcgY3BhY3Rpb25zLlN0ZXBGdW5jdGlvbkludm9rZUFjdGlvbih7XG4gICAgICBhY3Rpb25OYW1lOiAnSW52b2tlJyxcbiAgICAgIHN0YXRlTWFjaGluZTogc2ltcGxlU3RhdGVNYWNoaW5lLFxuICAgICAgc3RhdGVNYWNoaW5lSW5wdXQ6IGNwYWN0aW9ucy5TdGF0ZU1hY2hpbmVJbnB1dC5saXRlcmFsKHsgSXNIZWxsb1dvcmxkRXhhbXBsZTogdHJ1ZSB9KSxcbiAgICB9KSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.js deleted file mode 100644 index 6c59b1c7d21ec..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-with-replication.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_codebuild_1 = require("aws-cdk-lib/aws-codebuild"); -const aws_codepipeline_1 = require("aws-cdk-lib/aws-codepipeline"); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_codepipeline_actions_1 = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new aws_cdk_lib_1.App({ - treeMetadata: false, -}); -const stack1 = new aws_cdk_lib_1.Stack(app, 'integ-pipeline-producer-stack', { - env: { - region: 'us-east-1', - }, - crossRegionReferences: true, -}); -const stack2 = new aws_cdk_lib_1.Stack(app, 'integ-pipeline-consumer-stack', { - env: { - region: 'us-east-2', - }, - crossRegionReferences: true, -}); -const key = new aws_kms_1.Key(stack1, 'ReplicationKey'); -const bucket = new aws_s3_1.Bucket(stack1, 'ReplicationBucket', { - encryptionKey: key, - autoDeleteObjects: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const artifact = new aws_codepipeline_1.Artifact(); -const pipeline = new aws_codepipeline_1.Pipeline(stack2, 'Pipeline', { - crossRegionReplicationBuckets: { - 'us-east-1': bucket, - }, -}); -const sourceBucket = new aws_s3_1.Bucket(stack2, 'SourceBucket', { - autoDeleteObjects: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -pipeline.addStage({ - stageName: 'source', - actions: [new aws_codepipeline_actions_1.S3SourceAction({ - bucket: sourceBucket, - output: artifact, - bucketKey: '/somepath', - actionName: 'Source', - })], -}); -pipeline.addStage({ - stageName: 'stage2', - actions: [new aws_codepipeline_actions_1.CodeBuildAction({ - input: artifact, - actionName: 'Build', - project: new aws_codebuild_1.PipelineProject(stack2, 'Build'), - })], -}); -new integ_tests_alpha_1.IntegTest(app, 'codepipeline-integ-test', { - testCases: [stack2], - stackUpdateWorkflow: false, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aC1yZXBsaWNhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLXdpdGgtcmVwbGljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2REFBNEQ7QUFDNUQsbUVBQWtFO0FBQ2xFLGlEQUEwQztBQUMxQywrQ0FBNEM7QUFDNUMsNkNBQXdEO0FBQ3hELGtFQUF1RDtBQUN2RCxtRkFBdUY7QUFHdkYsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxDQUFDO0lBQ2xCLFlBQVksRUFBRSxLQUFLO0NBQ3BCLENBQUMsQ0FBQztBQUNILE1BQU0sTUFBTSxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsK0JBQStCLEVBQUU7SUFDN0QsR0FBRyxFQUFFO1FBQ0gsTUFBTSxFQUFFLFdBQVc7S0FDcEI7SUFDRCxxQkFBcUIsRUFBRSxJQUFJO0NBQzVCLENBQUMsQ0FBQztBQUNILE1BQU0sTUFBTSxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsK0JBQStCLEVBQUU7SUFDN0QsR0FBRyxFQUFFO1FBQ0gsTUFBTSxFQUFFLFdBQVc7S0FDcEI7SUFDRCxxQkFBcUIsRUFBRSxJQUFJO0NBQzVCLENBQUMsQ0FBQztBQUdILE1BQU0sR0FBRyxHQUFHLElBQU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ICAgb3V0cHV0OiBhcnRpZmFjdCxcbiAgICBidWNrZXRLZXk6ICcvc29tZXBhdGgnLFxuICAgIGFjdGlvbk5hbWU6ICdTb3VyY2UnLFxuICB9KV0sXG59KTtcbnBpcGVsaW5lLmFkZFN0YWdlKHtcbiAgc3RhZ2VOYW1lOiAnc3RhZ2UyJyxcbiAgYWN0aW9uczogW25ldyBDb2RlQnVpbGRBY3Rpb24oe1xuICAgIGlucHV0OiBhcnRpZmFjdCxcbiAgICBhY3Rpb25OYW1lOiAnQnVpbGQnLFxuICAgIHByb2plY3Q6IG5ldyBQaXBlbGluZVByb2plY3Qoc3RhY2syLCAnQnVpbGQnKSxcbiAgfSldLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY29kZXBpcGVsaW5lLWludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrMl0sXG4gIHN0YWNrVXBkYXRlV29ya2Zsb3c6IGZhbHNlLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.js b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.js deleted file mode 100644 index 766957349925a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -/// !cdk-integ PipelineStack -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const app = new aws_cdk_lib_1.App(); -const bucketStack = new aws_cdk_lib_1.Stack(app, 'BucketStack'); -const bucket = new s3.Bucket(bucketStack, 'Bucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const pipelineStack = new aws_cdk_lib_1.Stack(app, 'PipelineStack'); -const sourceOutput = new codepipeline.Artifact(); -new codepipeline.Pipeline(pipelineStack, 'Pipeline', { - stages: [ - { - stageName: 'Source', - actions: [ - new cpactions.S3SourceAction({ - actionName: 'Source', - bucket, - trigger: cpactions.S3Trigger.EVENTS, - bucketKey: 'file.zip', - output: sourceOutput, - }), - ], - }, - { - stageName: 'Build', - actions: [ - new cpactions.CodeBuildAction({ - actionName: 'Build', - project: new codebuild.PipelineProject(pipelineStack, 'Project'), - input: sourceOutput, - }), - ], - }, - ], -}); -new integ.IntegTest(app, 'CodePipelineS3SourceTest', { - testCases: [pipelineStack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc291cmNlLWJ1Y2tldC1ldmVudHMtY3Jvc3Mtc3RhY2stc2FtZS1lbnYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zb3VyY2UtYnVja2V0LWV2ZW50cy1jcm9zcy1zdGFjay1zYW1lLWVudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNEJBQTRCOztBQUU1Qix1REFBdUQ7QUFDdkQsNkRBQTZEO0FBQzdELHlDQUF5QztBQUN6Qyw2Q0FBd0Q7QUFDeE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dGFjaycpO1xuY29uc3Qgc291cmNlT3V0cHV0ID0gbmV3IGNvZGVwaXBlbGluZS5BcnRpZmFjdCgpO1xubmV3IGNvZGVwaXBlbGluZS5QaXBlbGluZShwaXBlbGluZVN0YWNrLCAnUGlwZWxpbmUnLCB7XG4gIHN0YWdlczogW1xuICAgIHtcbiAgICAgIHN0YWdlTmFtZTogJ1NvdXJjZScsXG4gICAgICBhY3Rpb25zOiBbXG4gICAgICAgIG5ldyBjcGFjdGlvbnMuUzNTb3VyY2VBY3Rpb24oe1xuICAgICAgICAgIGFjdGlvbk5hbWU6ICdTb3VyY2UnLFxuICAgICAgICAgIGJ1Y2tldCxcbiAgICAgICAgICB0cmlnZ2VyOiBjcGFjdGlvbnMuUzNUcmlnZ2VyLkVWRU5UUyxcbiAgICAgICAgICBidWNrZXRLZXk6ICdmaWxlLnppcCcsXG4gICAgICAgICAgb3V0cHV0OiBzb3VyY2VPdXRwdXQsXG4gICAgICAgIH0pLFxuICAgICAgXSxcbiAgICB9LFxuICAgIHtcbiAgICAgIHN0YWdlTmFtZTogJ0J1aWxkJyxcbiAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAgbmV3IGNwYWN0aW9ucy5Db2RlQnVpbGRBY3Rpb24oe1xuICAgICAgICAgIGFjdGlvbk5hbWU6ICdCdWlsZCcsXG4gICAgICAgICAgcHJvamVjdDogbmV3IGNvZGVidWlsZC5QaXBlbGluZVByb2plY3QocGlwZWxpbmVTdGFjaywgJ1Byb2plY3QnKSxcbiAgICAgICAgICBpbnB1dDogc291cmNlT3V0cHV0LFxuICAgICAgICB9KSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0NvZGVQaXBlbGluZVMzU291cmNlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbcGlwZWxpbmVTdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.js deleted file mode 100644 index 24691cb386d96..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-explicit-props.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_secretsmanager_1 = require("aws-cdk-lib/aws-secretsmanager"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-client-explicit-props'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - customAttributes: { - attribute_one: new aws_cognito_1.StringAttribute(), - attribute_two: new aws_cognito_1.StringAttribute(), - }, -}); -const client = userpool.addClient('myuserpoolclient', { - userPoolClientName: 'myuserpoolclient', - authFlows: { - adminUserPassword: true, - custom: true, - userPassword: true, - userSrp: true, - }, - generateSecret: true, - oAuth: { - flows: { - implicitCodeGrant: true, - authorizationCodeGrant: true, - }, - scopes: [ - aws_cognito_1.OAuthScope.PHONE, - aws_cognito_1.OAuthScope.EMAIL, - aws_cognito_1.OAuthScope.OPENID, - aws_cognito_1.OAuthScope.PROFILE, - aws_cognito_1.OAuthScope.COGNITO_ADMIN, - ], - callbackUrls: ['https://redirect-here.myapp.com'], - }, - preventUserExistenceErrors: true, - authSessionValidity: aws_cdk_lib_1.Duration.minutes(3), - writeAttributes: (new aws_cognito_1.ClientAttributes()).withStandardAttributes({ - address: true, - birthdate: true, - email: true, - familyName: true, - fullname: true, - gender: true, - givenName: true, - lastUpdateTime: true, - locale: true, - middleName: true, - nickname: true, - phoneNumber: true, - preferredUsername: true, - profilePage: true, - profilePicture: true, - timezone: true, - website: true, - }).withCustomAttributes('attribute_one', 'attribute_two'), -}); -new aws_secretsmanager_1.Secret(stack, 'Secret', { - secretStringValue: client.userPoolClientSecret, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWNsaWVudC1leHBsaWNpdC1wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXItcG9vbC1jbGllbnQtZXhwbGljaXQtcHJvcHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1RUFBd0Q7QUFDeEQsNkNBQWtFO0FBQ2xFLHlEQUFrRztBQUVsRyxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLHVDQUF1QyxDQUFDLENBQUM7QUFFdEUsTUFBTSxRQUFRLEdBQUcsSUFBSSxzQkFBUSxDQUFDLEtBQUssRUFBRSxZQUFZLEVBQUU7SUFDakQsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztJQUNwQyxnQkFBZ0IsRUFBRTtRQUNoQixhQUFhLEVBQUUsSUFBSSw2QkFBZSxFQUFFO1FBQ3BDLGFBQWEsRUFBRSxJQUFJLDZCQUFlLEVBQUU7S0FDckM7Q0FDRixDQUFDLENBQUM7QUFFSCxNQUFNLE1BQU0sR0FBRyxRQUFRLENBQUMsU0FBUyxDQUFDLGtCQUFrQixFQUFFO0lBQ3BELGtCQU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XG4gICAgICBmdWxsbmFtZTogdHJ1ZSxcbiAgICAgIGdlbmRlcjogdHJ1ZSxcbiAgICAgIGdpdmVuTmFtZTogdHJ1ZSxcbiAgICAgIGxhc3RVcGRhdGVUaW1lOiB0cnVlLFxuICAgICAgbG9jYWxlOiB0cnVlLFxuICAgICAgbWlkZGxlTmFtZTogdHJ1ZSxcbiAgICAgIG5pY2tuYW1lOiB0cnVlLFxuICAgICAgcGhvbmVOdW1iZXI6IHRydWUsXG4gICAgICBwcmVmZXJyZWRVc2VybmFtZTogdHJ1ZSxcbiAgICAgIHByb2ZpbGVQYWdlOiB0cnVlLFxuICAgICAgcHJvZmlsZVBpY3R1cmU6IHRydWUsXG4gICAgICB0aW1lem9uZTogdHJ1ZSxcbiAgICAgIHdlYnNpdGU6IHRydWUsXG4gICAgfSkud2l0aEN1c3RvbUF0dHJpYnV0ZXMoJ2F0dHJpYnV0ZV9vbmUnLCAnYXR0cmlidXRlX3R3bycpLFxufSk7XG5cbm5ldyBTZWNyZXQoc3RhY2ssICdTZWNyZXQnLCB7XG4gIHNlY3JldFN0cmluZ1ZhbHVlOiBjbGllbnQudXNlclBvb2xDbGllbnRTZWNyZXQsXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.js deleted file mode 100644 index 60724b316ba22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-client-secret.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const userpool = new aws_cognito_1.UserPool(this, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - const client = userpool.addClient('client', { generateSecret: true }); - const secret = new secretsmanager.Secret(this, 'secret', { - secretStringValue: client.userPoolClientSecret, - }); - new aws_cdk_lib_1.CfnOutput(this, 'ClientSecretName', { - value: secret.secretName, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'integ-user-pool-client-secret'); -new integ_tests_alpha_1.IntegTest(app, 'integ-user-pool-client-secret-test', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWNsaWVudC1zZWNyZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyLXBvb2wtY2xpZW50LXNlY3JldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlFQUFpRTtBQUNqRSw2Q0FBbUU7QUFDbkUsa0VBQXVEO0FBRXZELHlEQUFtRDtBQUVuRCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLE1BQU0sUUFBUSxHQUFHLElBQUksc0JBQVEsQ0FBQyxJQUFJLEVBQUUsTUFBTSxFQUFFO1lBQzFDLGFBQWEsRUFBRSwyQkFBYSxDQUFDLE9BQU87U0FDckM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sIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWNvZ25pdG8nO1xuXG5jbGFzcyBUZXN0U3RhY2sgZXh0ZW5kcyBTdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuICAgIGNvbnN0IHVzZXJwb29sID0gbmV3IFVzZXJQb29sKHRoaXMsICdwb29sJywge1xuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgIH0pO1xuXG4gICAgY29uc3QgY2xpZW50ID0gdXNlcnBvb2wuYWRkQ2xpZW50KCdjbGllbnQnLCB7IGdlbmVyYXRlU2VjcmV0OiB0cnVlIH0pO1xuICAgIGNvbnN0IHNlY3JldCA9IG5ldyBzZWNyZXRzbWFuYWdlci5TZWNyZXQodGhpcywgJ3NlY3JldCcsIHtcbiAgICAgIHNlY3JldFN0cmluZ1ZhbHVlOiBjbGllbnQudXNlclBvb2xDbGllbnRTZWNyZXQsXG4gICAgfSk7XG5cbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdDbGllbnRTZWNyZXROYW1lJywge1xuICAgICAgdmFsdWU6IHNlY3JldC5zZWNyZXROYW1lLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3RTdGFjayhhcHAsICdpbnRlZy11c2VyLXBvb2wtY2xpZW50LXNlY3JldCcpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2ludGVnLXVzZXItcG9vbC1jbGllbnQtc2VjcmV0LXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.js deleted file mode 100644 index 8e25b9f5978d4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-custom-sender.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kms = require("aws-cdk-lib/aws-kms"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps - * * Sign up to the created user pool using an email address as the username, and password. - * * Verify the CustomEmailSender lambda was called via logged message in CloudWatch. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-custom-sender'); -const customSenderLambda = new lambda.Function(stack, 'emailLambda', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline('exports.handler = function(event, ctx, cb) { console.log("Mocked custom email send");return cb(null, "success"); }'), -}); -const userpool = new aws_cognito_1.UserPool(stack, 'pool', { - autoVerify: { - email: true, - }, - selfSignUpEnabled: true, - signInAliases: { - email: true, - }, - customSenderKmsKey: new kms.Key(stack, 'key'), - lambdaTriggers: { - customEmailSender: customSenderLambda, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const client = userpool.addClient('client', { - authFlows: { - userSrp: true, - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'UserPoolId', { - value: userpool.userPoolId, -}); -new aws_cdk_lib_1.CfnOutput(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V0aEZsb3dzOiB7XG4gICAgdXNlclNycDogdHJ1ZSxcbiAgfSxcbn0pO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnVXNlclBvb2xJZCcsIHtcbiAgdmFsdWU6IHVzZXJwb29sLnVzZXJQb29sSWQsXG59KTtcblxubmV3IENmbk91dHB1dChzdGFjaywgJ0NsaWVudElkJywge1xuICB2YWx1ZTogY2xpZW50LnVzZXJQb29sQ2xpZW50SWQsXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.js deleted file mode 100644 index b3f0705b1763b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-cfdist.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps: - * * Verify that the CloudFrontDistribution stack output is of the format 'xxxxxxxxxxxxxx.cloudfront.net' - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-domain-cfdist'); -const userpool = new aws_cognito_1.UserPool(stack, 'UserPool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const domain = userpool.addDomain('Domain', { - cognitoDomain: { - domainPrefix: 'cdk-integ-user-pool-domain', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'Domain', { - value: domain.domainName, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'CloudFrontDomainName', { - value: domain.cloudFrontDomainName, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWRvbWFpbi1jZmRpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyLXBvb2wtZG9tYWluLWNmZGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFtRTtBQUNuRSx5REFBbUQ7QUFFbkQ7OztHQUdHO0FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSwrQkFBK0IsQ0FBQyxDQUFDO0FBRTlELE1BQU0sUUFBUSxHQUFHLElBQUksc0JBQVEsQ0FBQyxLQUFLLEVBQUUsVUFBVSxFQUFFO0lBQy9DLGFBQWEsRUFBRSwyQkFBYSxDQUFDLE9BQU87Q0FDckMsQ0FBQyxDQUFDO0FBRUgsTUFBTSxNQUFNLEdBQUcsUUFBUSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEVBQUU7SUFDMUMsYUFBYSxFQUFFO1FBQ2IsWUFBWSxFQUFFLDRCQUE0QjtLQUMzQztDQUNGLENBQUMsQ0FBQztBQUVILElBQUksdUJBQVMsQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQzdCLEtBQUssRUFBRSxNQUFNLENBQUMsVUFBVTtDQUN6QixDQUFDLENBQUM7QUFFSCxJQUFJLHVCQUFTLENBQUMsS0FBSyxFQUFFLHNCQUFzQixFQUFFO0lBQzNDLEtBQUssRUFBRSxNQUFNLENBQUMsb0JBQW9CO0NBQ25DLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwcCwgQ2ZuT3V0cHV0LCBSZW1vdmFsUG9saWN5LCBTdGFjayB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IFVzZXJQb29sIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWNvZ25pdG8nO1xuXG4vKlxuICogU3RhY2sgdmVyaWZpY2F0aW9uIHN0ZXBzOlxuICogKiBWZXJpZnkgdGhhdCB0aGUgQ2xvdWRGcm9udERpc3RyaWJ1dGlvbiBzdGFjayBvdXRwdXQgaXMgb2YgdGhlIGZvcm1hdCAneHh4eHh4eHh4eHh4eHguY2xvdWRmcm9udC5uZXQnXG4gKi9cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnaW50ZWctdXNlci1wb29sLWRvbWFpbi1jZmRpc3QnKTtcblxuY29uc3QgdXNlcnBvb2wgPSBuZXcgVXNlclBvb2woc3RhY2ssICdVc2VyUG9vbCcsIHtcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbmNvbnN0IGRvbWFpbiA9IHVzZXJwb29sLmFkZERvbWFpbignRG9tYWluJywge1xuICBjb2duaXRvRG9tYWluOiB7XG4gICAgZG9tYWluUHJlZml4OiAnY2RrLWludGVnLXVzZXItcG9vbC1kb21haW4nLFxuICB9LFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdEb21haW4nLCB7XG4gIHZhbHVlOiBkb21haW4uZG9tYWluTmFtZSxcbn0pO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnQ2xvdWRGcm9udERvbWFpbk5hbWUnLCB7XG4gIHZhbHVlOiBkb21haW4uY2xvdWRGcm9udERvbWFpbk5hbWUsXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.js deleted file mode 100644 index b9625549981f1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-domain-signinurl.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps: - * * Run the command `curl -sS -D - '' -o /dev/null` should return HTTP/2 200. - * * It didn't work if it returns 302 or 400. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-domain-signinurl'); -const userpool = new aws_cognito_1.UserPool(stack, 'UserPool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const domain = userpool.addDomain('Domain', { - cognitoDomain: { - domainPrefix: 'cdk-integ-user-pool-domain', - }, -}); -const client = userpool.addClient('UserPoolClient', { - oAuth: { - callbackUrls: ['https://example.com'], - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'SignInUrl', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWRvbWFpbi1zaWduaW51cmwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyLXBvb2wtZG9tYWluLXNpZ25pb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O1xuXG4vKlxuICogU3RhY2sgdmVyaWZpY2F0aW9uIHN0ZXBzOlxuICogKiBSdW4gdGhlIGNvbW1hbmQgYGN1cmwgLXNTIC1EIC0gJzxzdGFjayBvdXRwdXQgU2lnbkluVXJsPicgLW8gL2Rldi9udWxsYCBzaG91bGQgcmV0dXJuIEhUVFAvMiAyMDAuXG4gKiAqIEl0IGRpZG4ndCB3b3JrIGlmIGl0IHJldHVybnMgMzAyIG9yIDQwMC5cbiAqL1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsICdpbnRlZy11c2VyLXBvb2wtZG9tYWluLXNpZ25pbnVybCcpO1xuXG5jb25zdCB1c2VycG9vbCA9IG5ldyBVc2VyUG9vbChzdGFjaywgJ1VzZXJQb29sJywge1xuICByZW1vdmFsUG9saWN5OiBSZW1vdmFsUG9saWN5LkRFU1RST1ksXG59KTtcblxuY29uc3QgZG9tYWluID0gdXNlcnBvb2wuYWRkRG9tYWluKCdEb21haW4nLCB7XG4gIGNvZ25pdG9Eb21haW46IHtcbiAgICBkb21haW5QcmVmaXg6ICdjZGstaW50ZWctdXNlci1wb29sLWRvbWFpbicsXG4gIH0sXG59KTtcblxuY29uc3QgY2xpZW50ID0gdXNlcnBvb2wuYWRkQ2xpZW50KCdVc2VyUG9vbENsaWVudCcsIHtcbiAgb0F1dGg6IHtcbiAgICBjYWxsYmFja1VybHM6IFsnaHR0cHM6Ly9leGFtcGxlLmNvbSddLFxuICB9LFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdTaWduSW5VcmwnLCB7XG4gIHZhbHVlOiBkb21haW4uc2lnbkluVXJsKGNsaWVudCwge1xuICAgIHJlZGlyZWN0VXJpOiAnaHR0cHM6Ly9leGFtcGxlLmNvbScsXG4gIH0pLFxufSk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.js deleted file mode 100644 index a000fe39a3b3a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-explicit-props.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - userPoolName: 'MyUserPool', - userInvitation: { - emailSubject: 'invitation email subject from the integ test', - emailBody: 'invitation email body from the integ test for {username}. Temp password is {####}.', - smsMessage: 'invitation sms message from the integ test for {username}. Temp password is {####}.', - }, - selfSignUpEnabled: true, - userVerification: { - emailBody: 'verification email body from the integ test. Code is {####}.', - emailSubject: 'verification email subject from the integ test', - smsMessage: 'verification sms message from the integ test. Code is {####}.', - }, - signInAliases: { - username: true, - email: true, - }, - autoVerify: { - email: true, - phone: true, - }, - keepOriginal: { - email: true, - phone: true, - }, - standardAttributes: { - fullname: { - required: true, - mutable: true, - }, - email: { - required: true, - }, - }, - customAttributes: { - 'some-string-attr': new aws_cognito_1.StringAttribute(), - 'another-string-attr': new aws_cognito_1.StringAttribute({ minLen: 4, maxLen: 100 }), - 'some-number-attr': new aws_cognito_1.NumberAttribute(), - 'another-number-attr': new aws_cognito_1.NumberAttribute({ min: 10, max: 50 }), - 'some-boolean-attr': new aws_cognito_1.BooleanAttribute(), - 'some-datetime-attr': new aws_cognito_1.DateTimeAttribute(), - }, - mfa: aws_cognito_1.Mfa.OFF, - mfaSecondFactor: { - sms: true, - otp: true, - }, - passwordPolicy: { - tempPasswordValidity: aws_cdk_lib_1.Duration.days(10), - minLength: 12, - requireDigits: true, - requireLowercase: true, - requireUppercase: true, - requireSymbols: true, - }, - lambdaTriggers: { - createAuthChallenge: dummyTrigger('createAuthChallenge'), - customMessage: dummyTrigger('customMessage'), - defineAuthChallenge: dummyTrigger('defineAuthChallenge'), - postAuthentication: dummyTrigger('postAuthentication'), - postConfirmation: dummyTrigger('postConfirmation'), - preAuthentication: dummyTrigger('preAuthentication'), - preSignUp: dummyTrigger('preSignUp'), - preTokenGeneration: dummyTrigger('preTokenGeneration'), - userMigration: dummyTrigger('userMigration'), - verifyAuthChallengeResponse: dummyTrigger('verifyAuthChallengeResponse'), - }, - advancedSecurityMode: aws_cognito_1.AdvancedSecurityMode.ENFORCED, - snsRegion: aws_cdk_lib_1.Stack.of(stack).region, -}); -const cognitoDomain = userpool.addDomain('myuserpooldomain', { - cognitoDomain: { - domainPrefix: 'cdkintegrationtestuserpoolexplicitprops', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'userpoolId', { - value: userpool.userPoolId, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'cognitoDomainName', { - value: `${cognitoDomain.domainName}.auth.${stack.region}.amazoncognito.com`, -}); -function dummyTrigger(name) { - return new aws_lambda_1.Function(stack, name, { - functionName: name, - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - code: aws_lambda_1.Code.fromInline('foo'), - }); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWV4cGxpY2l0LXByb3BzLmpzIiwic291cmNl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RwdXQoc3RhY2ssICdjb2duaXRvRG9tYWluTmFtZScsIHtcbiAgdmFsdWU6IGAke2NvZ25pdG9Eb21haW4uZG9tYWluTmFtZX0uYXV0aC4ke3N0YWNrLnJlZ2lvbn0uYW1hem9uY29nbml0by5jb21gLFxufSk7XG5cbmZ1bmN0aW9uIGR1bW15VHJpZ2dlcihuYW1lOiBzdHJpbmcpOiBJRnVuY3Rpb24ge1xuICByZXR1cm4gbmV3IEZ1bmN0aW9uKHN0YWNrLCBuYW1lLCB7XG4gICAgZnVuY3Rpb25OYW1lOiBuYW1lLFxuICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgICBydW50aW1lOiBSdW50aW1lLk5PREVKU18xNF9YLFxuICAgIGNvZGU6IENvZGUuZnJvbUlubGluZSgnZm9vJyksXG4gIH0pO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.js deleted file mode 100644 index 9f84a1df1f60a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.amazon.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps - * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Login with Amazon' link shows up. - * * If you plug in valid 'Login with Amazon' credentials, the federated log in should work. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-idp-amazon'); -const userpool = new aws_cognito_1.UserPool(stack, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new aws_cognito_1.UserPoolIdentityProviderAmazon(stack, 'amazon', { - userPool: userpool, - clientId: 'amzn-client-id', - clientSecret: 'amzn-client-secret', - attributeMapping: { - givenName: aws_cognito_1.ProviderAttribute.AMAZON_NAME, - email: aws_cognito_1.ProviderAttribute.AMAZON_EMAIL, - custom: { - userId: aws_cognito_1.ProviderAttribute.AMAZON_USER_ID, - }, - }, -}); -const client = userpool.addClient('client'); -const domain = userpool.addDomain('domain', { - cognitoDomain: { - domainPrefix: 'nija-test-pool', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'SignInLink', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWlkcC5hbWF6b24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyLXBvb2wtaWRwLmFtYXpvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFtRTtBQUNuRSx5REFBc0c7QUFFdEc7Ozs7R0FJRztBQUNILE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLENBQUMsQ0FBQztBQUUzRCxNQUFNLFFBQVEsR0FBRyxJQUFJLHNCQUFRLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRTtJQUMzQyxhQUFhLEVBQUUsMkJBQWEsQ0FBQyxPQUFPO0NBQ3JDLENBQUMsQ0FBQztBQUVIL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zZXJwb29sLmFkZERvbWFpbignZG9tYWluJywge1xuICBjb2duaXRvRG9tYWluOiB7XG4gICAgZG9tYWluUHJlZml4OiAnbmlqYS10ZXN0LXBvb2wnLFxuICB9LFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdTaWduSW5MaW5rJywge1xuICB2YWx1ZTogZG9tYWluLnNpZ25JblVybChjbGllbnQsIHtcbiAgICByZWRpcmVjdFVyaTogJ2h0dHBzOi8vZXhhbXBsZS5jb20nLFxuICB9KSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.js deleted file mode 100644 index 3a56abe05b793..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.apple.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps - * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Sign In With Apple' link shows up. - * * If you plug in valid 'Sign In With Apple' credentials, the federated log in should work. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-idp-apple'); -const userpool = new aws_cognito_1.UserPool(stack, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new aws_cognito_1.UserPoolIdentityProviderApple(stack, 'apple', { - userPool: userpool, - clientId: 'com.amzn.cdk', - teamId: 'CDKTEAMCDK', - keyId: 'CDKKEYCDK1', - privateKey: 'PRIV_KEY_CDK', - scopes: ['email', 'name'], - attributeMapping: { - familyName: aws_cognito_1.ProviderAttribute.APPLE_LAST_NAME, - givenName: aws_cognito_1.ProviderAttribute.APPLE_FIRST_NAME, - }, -}); -const client = userpool.addClient('client'); -const domain = userpool.addDomain('domain', { - cognitoDomain: { - domainPrefix: 'nija-test-pool', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'SignInLink', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWlkcC5hcHBsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXItcG9vbC1pZHAuYXBwbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBbUU7QUFDbkUseURBQXFHO0FBRXJHOzs7O0dBSUc7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLDJCQUEyQixDQUFDLENBQUM7QUFFMUQsTUFBTSxRQUFRLEdBQUcsSUFBSSxzQkFBUSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDM0MsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztDQUNyQyxDQUFDLENBQUM7QUFFSCxJQUFJLDJDQUE2QixDQUFDLEtBQUssRUFBRSxPQUFPLEVBQUU7SUFDaEQsUUFBUSxFQUFFLFFBQVE7SUFDbEIsUUFBUSxFQUFFLGNBQWM7SUFDeEIsTUFBTSxFQUFFLFlBQVk7SUFDcEIsS0FBSyxFQU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tdGVzdC1wb29sJyxcbiAgfSxcbn0pO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnU2lnbkluTGluaycsIHtcbiAgdmFsdWU6IGRvbWFpbi5zaWduSW5VcmwoY2xpZW50LCB7XG4gICAgcmVkaXJlY3RVcmk6ICdodHRwczovL2V4YW1wbGUuY29tJyxcbiAgfSksXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.js deleted file mode 100644 index b6992d1b87529..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.google.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_secretsmanager_1 = require("aws-cdk-lib/aws-secretsmanager"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps - * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Google' sign in link shows up. - * * If you plug in valid 'Google' credentials, the federated log in should work. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-idp-google'); -const userpool = new aws_cognito_1.UserPool(stack, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const secret = new aws_secretsmanager_1.Secret(stack, 'GoogleClientSecretValue', { - secretName: 'GoogleClientSecretValueName', - generateSecretString: { - excludePunctuation: true, - passwordLength: 20, - }, -}); -const clientSecret = aws_secretsmanager_1.Secret.fromSecretAttributes(stack, 'GoogleClientSecretValue2', { - secretCompleteArn: secret.secretArn, -}).secretValue; -new aws_cognito_1.UserPoolIdentityProviderGoogle(stack, 'google', { - userPool: userpool, - clientId: 'google-client-id', - clientSecretValue: clientSecret, - attributeMapping: { - givenName: aws_cognito_1.ProviderAttribute.GOOGLE_GIVEN_NAME, - familyName: aws_cognito_1.ProviderAttribute.GOOGLE_FAMILY_NAME, - email: aws_cognito_1.ProviderAttribute.GOOGLE_EMAIL, - gender: aws_cognito_1.ProviderAttribute.GOOGLE_GENDER, - custom: { - names: aws_cognito_1.ProviderAttribute.GOOGLE_NAMES, - }, - }, -}); -const client = userpool.addClient('client'); -const domain = userpool.addDomain('domain', { - cognitoDomain: { - domainPrefix: 'nija-test-pool', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'SignInLink', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWlkcC5nb29nbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyLXBvb2wtaWRwLmdvb2dsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVFQUF3RDtBQUN4RCw2Q0FBbUU7QUFDbkUseURBQXNHO0FBR3RHOzs7O0dBSUc7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLDRCQUE0QixDQUFDLENBQUM7QUFFM0QsTUFBTSxRQUFRLEdBQUcsSUFBSSxzQkFBUSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDM0MsYUFBYSxFQUFFLDJCQUFhLEN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yQXR0cmlidXRlLkdPT0dMRV9OQU1FUyxcbiAgICB9LFxuICB9LFxufSk7XG5cbmNvbnN0IGNsaWVudCA9IHVzZXJwb29sLmFkZENsaWVudCgnY2xpZW50Jyk7XG5cbmNvbnN0IGRvbWFpbiA9IHVzZXJwb29sLmFkZERvbWFpbignZG9tYWluJywge1xuICBjb2duaXRvRG9tYWluOiB7XG4gICAgZG9tYWluUHJlZml4OiAnbmlqYS10ZXN0LXBvb2wnLFxuICB9LFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdTaWduSW5MaW5rJywge1xuICB2YWx1ZTogZG9tYWluLnNpZ25JblVybChjbGllbnQsIHtcbiAgICByZWRpcmVjdFVyaTogJ2h0dHBzOi8vZXhhbXBsZS5jb20nLFxuICB9KSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.js deleted file mode 100644 index c949c4af76efc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.oidc.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps - * * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'cdk' sign in link shows up. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-idp-google'); -const userpool = new aws_cognito_1.UserPool(stack, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new aws_cognito_1.UserPoolIdentityProviderOidc(stack, 'cdk', { - userPool: userpool, - name: 'cdk', - clientId: 'client-id', - clientSecret: 'client-secret', - issuerUrl: 'https://www.issuer-url.com', - endpoints: { - authorization: 'https://www.issuer-url.com/authorize', - token: 'https://www.issuer-url.com/token', - userInfo: 'https://www.issuer-url.com/userinfo', - jwksUri: 'https://www.issuer-url.com/jwks', - }, - scopes: ['openid', 'phone'], - attributeMapping: { - phoneNumber: aws_cognito_1.ProviderAttribute.other('phone_number'), - }, -}); -const client = userpool.addClient('client'); -const domain = userpool.addDomain('domain', { - cognitoDomain: { - domainPrefix: 'cdk-test-pool', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'SignInLink', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWlkcC5vaWRjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNlci1wb29sLWlkcC5vaWRjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW1FO0FBQ25FLHlEQUFvRztBQUVwRzs7O0dBR0c7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLDRCQUE0QixDQUFDLENBQUM7QUFFM0QsTUFBTSxRQUFRLEdBQUcsSUFBSSxzQkFBUSxDQUFDLEtBQUssRUFBRSxNQUFNLEVBQUU7SUFDM0MsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztDQUNyQyxDQUFDLENBQUM7QU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Bqd2tzVXJpOiAnaHR0cHM6Ly93d3cuaXNzdWVyLXVybC5jb20vandrcycsXG4gIH0sXG4gIHNjb3BlczogWydvcGVuaWQnLCAncGhvbmUnXSxcbiAgYXR0cmlidXRlTWFwcGluZzoge1xuICAgIHBob25lTnVtYmVyOiBQcm92aWRlckF0dHJpYnV0ZS5vdGhlcigncGhvbmVfbnVtYmVyJyksXG4gIH0sXG59KTtcblxuY29uc3QgY2xpZW50ID0gdXNlcnBvb2wuYWRkQ2xpZW50KCdjbGllbnQnKTtcblxuY29uc3QgZG9tYWluID0gdXNlcnBvb2wuYWRkRG9tYWluKCdkb21haW4nLCB7XG4gIGNvZ25pdG9Eb21haW46IHtcbiAgICBkb21haW5QcmVmaXg6ICdjZGstdGVzdC1wb29sJyxcbiAgfSxcbn0pO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnU2lnbkluTGluaycsIHtcbiAgdmFsdWU6IGRvbWFpbi5zaWduSW5VcmwoY2xpZW50LCB7XG4gICAgcmVkaXJlY3RVcmk6ICdodHRwczovL2V4YW1wbGUuY29tJyxcbiAgfSksXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.js deleted file mode 100644 index c6655fe3dac45..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-idp.saml.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const userpool = new aws_cognito_1.UserPool(this, 'pool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - new aws_cognito_1.UserPoolIdentityProviderSaml(this, 'cdk', { - userPool: userpool, - name: 'cdk', - metadata: aws_cognito_1.UserPoolIdentityProviderSamlMetadata.url('https://fujifish.github.io/samling/public/metadata.xml'), - }); - const client = userpool.addClient('client'); - const domain = userpool.addDomain('domain', { - cognitoDomain: { - domainPrefix: 'cdk-test-pool', - }, - }); - new aws_cdk_lib_1.CfnOutput(this, 'SignInLink', { - value: domain.signInUrl(client, { - redirectUri: 'https://example.com', - }), - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'integ-user-pool-identity-provider-saml-stack'); -new integ_tests_alpha_1.IntegTest(app, 'integ-user-pool-identity-provider-saml-test', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLWlkcC5zYW1sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNlci1wb29sLWlkcC5zYW1sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW1FO0FBQ25FLGtFQUF1RDtBQUV2RCx5REFBdUg7QUFFdkgsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVU7UUFDdEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNqQixNQUFNLFFBQVEsR0FBRyxJQUFJLHNCQUFRLENBQUMsSUFBSSxFQUFFLE1BQU0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nY2RrLXRlc3QtcG9vbCcsXG4gICAgICB9LFxuICAgIH0pO1xuXG4gICAgbmV3IENmbk91dHB1dCh0aGlzLCAnU2lnbkluTGluaycsIHtcbiAgICAgIHZhbHVlOiBkb21haW4uc2lnbkluVXJsKGNsaWVudCwge1xuICAgICAgICByZWRpcmVjdFVyaTogJ2h0dHBzOi8vZXhhbXBsZS5jb20nLFxuICAgICAgfSksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ2ludGVnLXVzZXItcG9vbC1pZGVudGl0eS1wcm92aWRlci1zYW1sLXN0YWNrJyk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW50ZWctdXNlci1wb29sLWlkZW50aXR5LXByb3ZpZGVyLXNhbWwtdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.js deleted file mode 100644 index d4ea90bd9afda..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-resource-server.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-resource-server'); -/* - * Stack verification steps: - * Cognito will only allow you to add a custom scope on a user pool client that is defined by a resource server. - * Checking the app client scopes will verify if the resource server is configured correctly. - * The exports userPoolId and userPoolClientId are exported here to test - * - * * `aws cognito-idp describe-user-pool-client --user-pool-id $userPoolId --client-id $userPoolClientId` should return "users/read" in "AllowedOAuthScopes" - */ -const userPool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - userPoolName: 'MyUserPool', - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const readScope = new aws_cognito_1.ResourceServerScope({ scopeName: 'read', scopeDescription: 'read only' }); -const userServer = userPool.addResourceServer('myserver', { - identifier: 'users', - scopes: [readScope], -}); -const client = userPool.addClient('client', { - userPoolClientName: 'users-app', - generateSecret: true, - oAuth: { - flows: { - clientCredentials: true, - }, - scopes: [ - aws_cognito_1.OAuthScope.resourceServer(userServer, readScope), - ], - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'pool-id', { - value: userPool.userPoolId, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'client-id', { - value: client.userPoolClientId, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLXJlc291cmNlLXNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXItcG9vbC1yZXNvdXJjZS1zZXJ2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBbUU7QUFDbkUseURBQW9GO0FBRXBGLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsaUNBQWlDLENBQUMsQ0FBQztBQUVoRTs7Ozs7OztHQU9HO0FBQ0gsTU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CcsXG4gIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5jb25zdCByZWFkU2NvcGUgPSBuZXcgUmVzb3VyY2VTZXJ2ZXJTY29wZSh7IHNjb3BlTmFtZTogJ3JlYWQnLCBzY29wZURlc2NyaXB0aW9uOiAncmVhZCBvbmx5JyB9KTtcbmNvbnN0IHVzZXJTZXJ2ZXIgPSB1c2VyUG9vbC5hZGRSZXNvdXJjZVNlcnZlcignbXlzZXJ2ZXInLCB7XG4gIGlkZW50aWZpZXI6ICd1c2VycycsXG4gIHNjb3BlczogW3JlYWRTY29wZV0sXG59KTtcblxuY29uc3QgY2xpZW50ID0gdXNlclBvb2wuYWRkQ2xpZW50KCdjbGllbnQnLCB7XG4gIHVzZXJQb29sQ2xpZW50TmFtZTogJ3VzZXJzLWFwcCcsXG4gIGdlbmVyYXRlU2VjcmV0OiB0cnVlLFxuICBvQXV0aDoge1xuICAgIGZsb3dzOiB7XG4gICAgICBjbGllbnRDcmVkZW50aWFsczogdHJ1ZSxcbiAgICB9LFxuICAgIHNjb3BlczogW1xuICAgICAgT0F1dGhTY29wZS5yZXNvdXJjZVNlcnZlcih1c2VyU2VydmVyLCByZWFkU2NvcGUpLFxuICAgIF0sXG4gIH0sXG59KTtcblxubmV3IENmbk91dHB1dChzdGFjaywgJ3Bvb2wtaWQnLCB7XG4gIHZhbHVlOiB1c2VyUG9vbC51c2VyUG9vbElkLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdjbGllbnQtaWQnLCB7XG4gIHZhbHVlOiBjbGllbnQudXNlclBvb2xDbGllbnRJZCxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.js deleted file mode 100644 index 88a704705cdc2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-ses-email.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-ses-email'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - userPoolName: 'MyUserPool', - email: aws_cognito_1.UserPoolEmail.withSES({ - sesRegion: 'us-east-1', - fromEmail: 'noreply@example.com', - fromName: 'myname@mycompany.com', - replyTo: 'support@example.com', - sesVerifiedDomain: 'example.com', - }), -}); -new aws_cdk_lib_1.CfnOutput(stack, 'user-pool-id', { - value: userpool.userPoolId, -}); -new integ_tests_alpha_1.IntegTest(app, 'IntegTest', { testCases: [stack] }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLXNlcy1lbWFpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXItcG9vbC1zZXMtZW1haWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBbUU7QUFDbkUsa0VBQXVEO0FBQ3ZELHlEQUFrRTtBQUVsRSxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUU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N0YWNrKGFwcCwgJ2ludGVnLXVzZXItc2VzLWVtYWlsJyk7XG5cbmNvbnN0IHVzZXJwb29sID0gbmV3IFVzZXJQb29sKHN0YWNrLCAnbXl1c2VycG9vbCcsIHtcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICB1c2VyUG9vbE5hbWU6ICdNeVVzZXJQb29sJyxcbiAgZW1haWw6IFVzZXJQb29sRW1haWwud2l0aFNFUyh7XG4gICAgc2VzUmVnaW9uOiAndXMtZWFzdC0xJyxcbiAgICBmcm9tRW1haWw6ICdub3JlcGx5QGV4YW1wbGUuY29tJyxcbiAgICBmcm9tTmFtZTogJ215bmFtZUBteWNvbXBhbnkuY29tJyxcbiAgICByZXBseVRvOiAnc3VwcG9ydEBleGFtcGxlLmNvbScsXG4gICAgc2VzVmVyaWZpZWREb21haW46ICdleGFtcGxlLmNvbScsXG4gIH0pLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICd1c2VyLXBvb2wtaWQnLCB7XG4gIHZhbHVlOiB1c2VycG9vbC51c2VyUG9vbElkLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnSW50ZWdUZXN0JywgeyB0ZXN0Q2FzZXM6IFtzdGFja10gfSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.js deleted file mode 100644 index ba3521df1e36d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-code.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps: - * * `aws cognito-idp sign-up --client-id --username user-1 --password pass1234 \ - * --user-attributes Name="phone_number",Value="" - * * `aws cognito-idp sign-up --client-id --username user-2 --password pass1234 \ - * --user-attributes Name="email",Value="" - * * An email with the message 'integ-test: Account verification code is ' should be received. - * * An SMS with the message 'integ-test: Account verification code is ' should be received. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-signup-code'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - userPoolName: 'MyUserPool', - autoVerify: { - email: true, - phone: true, - }, - selfSignUpEnabled: true, - userVerification: { - emailStyle: aws_cognito_1.VerificationEmailStyle.CODE, - emailSubject: 'integ-test: Verify your account', - emailBody: 'integ-test: Account verification code is {####}', - smsMessage: 'integ-test: Account verification code is {####}', - }, - passwordPolicy: { - requireUppercase: false, - requireLowercase: false, - requireDigits: false, - requireSymbols: false, - }, -}); -const client = new aws_cognito_1.UserPoolClient(stack, 'myuserpoolclient', { - userPool: userpool, - userPoolClientName: 'signup-test', - generateSecret: false, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'user-pool-id', { - value: userpool.userPoolId, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'client-id', { - value: client.userPoolClientId, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLXNpZ251cC1jb2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNlci1wb29sLXNpZ251cC1jb2RlLnRzIl0sIm5hbWV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lLFxuICAgIHJlcXVpcmVTeW1ib2xzOiBmYWxzZSxcbiAgfSxcbn0pO1xuXG5jb25zdCBjbGllbnQgPSBuZXcgVXNlclBvb2xDbGllbnQoc3RhY2ssICdteXVzZXJwb29sY2xpZW50Jywge1xuICB1c2VyUG9vbDogdXNlcnBvb2wsXG4gIHVzZXJQb29sQ2xpZW50TmFtZTogJ3NpZ251cC10ZXN0JyxcbiAgZ2VuZXJhdGVTZWNyZXQ6IGZhbHNlLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICd1c2VyLXBvb2wtaWQnLCB7XG4gIHZhbHVlOiB1c2VycG9vbC51c2VyUG9vbElkLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdjbGllbnQtaWQnLCB7XG4gIHZhbHVlOiBjbGllbnQudXNlclBvb2xDbGllbnRJZCxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.js deleted file mode 100644 index c966582e368ec..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool-signup-link.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -/* - * Stack verification steps: - * * `aws cognito-idp sign-up --client-id --username user-1 --password pass1234 \ - * --user-attributes Name="phone_number",Value="" - * * `aws cognito-idp sign-up --client-id --username user-2 --password pass1234 \ - * --user-attributes Name="email",Value="" - * * An email with the message 'integ-test: Verify by clicking on ' should be received. - * * An SMS with the message 'integ-test: Account verification code is ' should be received. - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool-signup-link'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - userPoolName: 'MyUserPool', - autoVerify: { - email: true, - phone: true, - }, - selfSignUpEnabled: true, - userVerification: { - emailStyle: aws_cognito_1.VerificationEmailStyle.LINK, - emailSubject: 'integ-test: Verify your account', - emailBody: 'integ-test: Verify by clicking on {##Verify Email##}', - smsMessage: 'integ-test: Account verification code is {####}', - }, - passwordPolicy: { - requireUppercase: false, - requireLowercase: false, - requireDigits: false, - requireSymbols: false, - }, -}); -const client = new aws_cognito_1.UserPoolClient(stack, 'myuserpoolclient', { - userPool: userpool, - userPoolClientName: 'signup-test', - generateSecret: false, -}); -userpool.addDomain('myuserpooldomain', { - cognitoDomain: { - domainPrefix: 'integ-user-pool-signup-link', - }, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'user-pool-id', { - value: userpool.userPoolId, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'client-id', { - value: client.userPoolClientId, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLXNpZ251cC1saW5rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNlci1wb29sLXNpZ251cC1saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW1FO0FBQ25FLHlEQUEyRjtBQUUzRjs7Ozs7Ozs7R0FRRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0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WxzZSxcbiAgICByZXF1aXJlU3ltYm9sczogZmFsc2UsXG4gIH0sXG59KTtcblxuY29uc3QgY2xpZW50ID0gbmV3IFVzZXJQb29sQ2xpZW50KHN0YWNrLCAnbXl1c2VycG9vbGNsaWVudCcsIHtcbiAgdXNlclBvb2w6IHVzZXJwb29sLFxuICB1c2VyUG9vbENsaWVudE5hbWU6ICdzaWdudXAtdGVzdCcsXG4gIGdlbmVyYXRlU2VjcmV0OiBmYWxzZSxcbn0pO1xuXG51c2VycG9vbC5hZGREb21haW4oJ215dXNlcnBvb2xkb21haW4nLCB7XG4gIGNvZ25pdG9Eb21haW46IHtcbiAgICBkb21haW5QcmVmaXg6ICdpbnRlZy11c2VyLXBvb2wtc2lnbnVwLWxpbmsnLFxuICB9LFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICd1c2VyLXBvb2wtaWQnLCB7XG4gIHZhbHVlOiB1c2VycG9vbC51c2VyUG9vbElkLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdjbGllbnQtaWQnLCB7XG4gIHZhbHVlOiBjbGllbnQudXNlclBvb2xDbGllbnRJZCxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.js b/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.js deleted file mode 100644 index e97d299292eea..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-cognito/test/integ.user-pool.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_cognito_1 = require("aws-cdk-lib/aws-cognito"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-user-pool'); -const userpool = new aws_cognito_1.UserPool(stack, 'myuserpool', { - userPoolName: 'MyUserPool', - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - deletionProtection: false, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'user-pool-id', { - value: userpool.userPoolId, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci1wb29sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudXNlci1wb29sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW1FO0FBQ25FLHlEQUFtRDtBQUVuRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLGlCQUFpQixDQUFDLENBQUM7QUFFaEQsTUFBTSxRQUFRLEdBQUcsSUFBSSxzQkFBUSxDQUFDLEtBQUssRUFBRSxZQUFZLEVBQUU7SUFDakQsWUFBWSxFQUFFLFlBQVk7SUFDMUIsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztJQUNwQyxrQkFBa0IsRUFBRSxLQUFLO0NBQzFCLENBQUMsQ0FBQztBQUVILElBQUksdUJBQVMsQ0FBQyxLQUFLLEVBQUUsY0FBYyxFQUFFO0lBQ25DLEtBQUssRUFBRSxRQUFRLENBQUMsVUFBVTtDQUMzQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcHAsIENmbk91dHB1dCwgUmVtb3ZhbFBvbGljeSwgU3RhY2sgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBVc2VyUG9vbCB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2duaXRvJztcblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnaW50ZWctdXNlci1wb29sJyk7XG5cbmNvbnN0IHVzZXJwb29sID0gbmV3IFVzZXJQb29sKHN0YWNrLCAnbXl1c2VycG9vbCcsIHtcbiAgdXNlclBvb2xOYW1lOiAnTXlVc2VyUG9vbCcsXG4gIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgZGVsZXRpb25Qcm90ZWN0aW9uOiBmYWxzZSxcbn0pO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAndXNlci1wb29sLWlkJywge1xuICB2YWx1ZTogdXNlcnBvb2wudXNlclBvb2xJZCxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.js deleted file mode 100644 index 662e161b74eea..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.custompolicy.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const config = require("aws-cdk-lib/aws-config"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-config-custompolicy'); -const samplePolicyText = ` -# This rule checks if point in time recovery (PITR) is enabled on active Amazon DynamoDB tables -let status = ['ACTIVE'] - -rule tableisactive when - resourceType == "AWS::DynamoDB::Table" { - configuration.tableStatus == %status -} - -rule checkcompliance when - resourceType == "AWS::DynamoDB::Table" - tableisactive { - let pitr = supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus - %pitr == "ENABLED" -} -`; -new config.CustomPolicy(stack, 'Custom', { - policyText: samplePolicyText, - enableDebugLog: true, - ruleScope: config.RuleScope.fromResources([config.ResourceType.DYNAMODB_TABLE]), -}); -const user = new iam.User(stack, 'sample-user'); -new config.CustomPolicy(stack, 'Custom-lazy', { - policyText: 'lazy-create-test', - enableDebugLog: true, - ruleScope: config.RuleScope.fromResource(config.ResourceType.IAM_USER, user.userName), -}); -new integ.IntegTest(app, 'aws-cdk-config-custompolicy-integ', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3VzdG9tcG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY3VzdG9tcG9saWN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsaURBQWlEO0FBRWpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsNkJBQTZCLENBQUMsQ0FBQztBQUVoRSxNQUFNLGdCQUFnQixHQUFHOzs7Ozs7Ozs7Ozs7Ozs7Q0FleEIsQ0FBQztBQUVGLElBQUksTUFBTSxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQ3ZDLFVBQ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hbS5Vc2VyKHN0YWNrLCAnc2FtcGxlLXVzZXInKTtcbm5ldyBjb25maWcuQ3VzdG9tUG9saWN5KHN0YWNrLCAnQ3VzdG9tLWxhenknLCB7XG4gIHBvbGljeVRleHQ6ICdsYXp5LWNyZWF0ZS10ZXN0JyxcbiAgZW5hYmxlRGVidWdMb2c6IHRydWUsXG4gIHJ1bGVTY29wZTogY29uZmlnLlJ1bGVTY29wZS5mcm9tUmVzb3VyY2UoY29uZmlnLlJlc291cmNlVHlwZS5JQU1fVVNFUiwgdXNlci51c2VyTmFtZSksXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWNvbmZpZy1jdXN0b21wb2xpY3ktaW50ZWcnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.js b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.js deleted file mode 100644 index eb0b8b9c80cf1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.rule.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const targets = require("aws-cdk-lib/aws-events-targets"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const config = require("aws-cdk-lib/aws-config"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-config-custompolicy'); -// A custom rule that runs on configuration changes of EC2 instances -const fn = new lambda.Function(stack, 'CustomFunction', { - code: lambda.AssetCode.fromInline('exports.handler = (event) => console.log(event);'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -new config.CustomRule(stack, 'Custom', { - configurationChanges: true, - lambdaFunction: fn, - ruleScope: config.RuleScope.fromResources([config.ResourceType.EC2_INSTANCE]), -}); -// A rule to detect stacks drifts -const driftRule = new config.CloudFormationStackDriftDetectionCheck(stack, 'Drift'); -// Topic for compliance events -const complianceTopic = new sns.Topic(stack, 'ComplianceTopic'); -// Send notification on compliance change -driftRule.onComplianceChange('ComplianceChange', { - target: new targets.SnsTopic(complianceTopic), -}); -new integ.IntegTest(app, 'aws-cdk-config-rule-integ', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwREFBMEQ7QUFDMUQsaURBQWlEO0FBQ2pELDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELGlEQUFpRDtBQUVqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDZCQUE2QixDQUFDLENBQUM7QUFFaEUsb0VBQW9FO0FBQ3BFLE1BQU0sRUFBRSxHQUFHLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDdEQsSUFBSSxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDLGtEQUFrRCxDQUFDO0lBQ3JGL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29uc3QgZHJpZnRSdWxlID0gbmV3IGNvbmZpZy5DbG91ZEZvcm1hdGlvblN0YWNrRHJpZnREZXRlY3Rpb25DaGVjayhzdGFjaywgJ0RyaWZ0Jyk7XG5cbi8vIFRvcGljIGZvciBjb21wbGlhbmNlIGV2ZW50c1xuY29uc3QgY29tcGxpYW5jZVRvcGljID0gbmV3IHNucy5Ub3BpYyhzdGFjaywgJ0NvbXBsaWFuY2VUb3BpYycpO1xuXG4vLyBTZW5kIG5vdGlmaWNhdGlvbiBvbiBjb21wbGlhbmNlIGNoYW5nZVxuZHJpZnRSdWxlLm9uQ29tcGxpYW5jZUNoYW5nZSgnQ29tcGxpYW5jZUNoYW5nZScsIHtcbiAgdGFyZ2V0OiBuZXcgdGFyZ2V0cy5TbnNUb3BpYyhjb21wbGlhbmNlVG9waWMpLFxufSk7XG5cblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWNvbmZpZy1ydWxlLWludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.js b/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.js deleted file mode 100644 index fb8be176496eb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-config/test/integ.scoped-rule.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const config = require("aws-cdk-lib/aws-config"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-config-rule-scoped-integ', {}); -const fn = new lambda.Function(stack, 'CustomFunction', { - code: lambda.AssetCode.fromInline('exports.handler = (event) => console.log(event);'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -new config.CustomRule(stack, 'Custom', { - lambdaFunction: fn, - periodic: true, - ruleScope: config.RuleScope.fromResources([config.ResourceType.EC2_INSTANCE]), -}); -new integ.IntegTest(app, 'aws-cdk-config-rule-integ', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2NvcGVkLXJ1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zY29wZWQtcnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELGlEQUFpRDtBQUVqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGtDQUFrQyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBRXpFLE1BQU0sRUFBRSxHQUFHLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDdEQsSUFBSSxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDLGtEQUFrRCxDQUFDO0lBQ3JGLE9BQU8sRUFBRSxlQUFlO0lBQ3hCLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7Q0FDcEMsQ0FBQyxDQUFDO0FBRUgsSUFBSSx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mRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG59KTtcblxubmV3IGNvbmZpZy5DdXN0b21SdWxlKHN0YWNrLCAnQ3VzdG9tJywge1xuICBsYW1iZGFGdW5jdGlvbjogZm4sXG4gIHBlcmlvZGljOiB0cnVlLFxuICBydWxlU2NvcGU6IGNvbmZpZy5SdWxlU2NvcGUuZnJvbVJlc291cmNlcyhbY29uZmlnLlJlc291cmNlVHlwZS5FQzJfSU5TVEFOQ0VdKSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2F3cy1jZGstY29uZmlnLXJ1bGUtaW50ZWcnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.js deleted file mode 100644 index fe3856bd48165..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-docdb/test/integ.cluster-rotation.lit.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const docdb = require("aws-cdk-lib/aws-docdb"); -/* - * Stack verification steps: - * * aws secretsmanager describe-secret --secret-id - * * aws lambda get-function --function-name - */ -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 }); - const params = new aws_docdb_1.ClusterParameterGroup(this, 'Params', { - family: 'docdb3.6', - description: 'A nice parameter group', - parameters: { - audit_logs: 'disabled', - tls: 'enabled', - ttl_monitor: 'enabled', - }, - }); - const kmsKey = new kms.Key(this, 'DbSecurity', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const cluster = new aws_docdb_1.DatabaseCluster(this, 'Database', { - engineVersion: '3.6.0', - masterUser: { - username: 'docdb', - password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6'), - }, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.R5, ec2.InstanceSize.LARGE), - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - vpc, - parameterGroup: params, - kmsKey, - removalPolicy: cdk.RemovalPolicy.DESTROY, - enablePerformanceInsights: true, - }); - cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-docdb-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsdXN0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUVuQyxxREFBK0U7QUFFL0U7OztHQUdHO0FBRUgsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUEyQixFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUN6RSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQU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zOiB7IHN1Ym5ldFR5cGU6IGVjMi5TdWJuZXRUeXBlLlBVQkxJQyB9LFxuICAgICAgdnBjLFxuICAgICAgcGFyYW1ldGVyR3JvdXA6IHBhcmFtcyxcbiAgICAgIGttc0tleSxcbiAgICAgIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgICBlbmFibGVQZXJmb3JtYW5jZUluc2lnaHRzOiB0cnVlLFxuICAgIH0pO1xuXG4gICAgY2x1c3Rlci5jb25uZWN0aW9ucy5hbGxvd0RlZmF1bHRQb3J0RnJvbUFueUlwdjQoJ09wZW4gdG8gdGhlIHdvcmxkJyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxubmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLWRvY2RiLWludGVnJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.js deleted file mode 100644 index c21c4d1a09186..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.autoscaling.lit.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const appscaling = require("aws-cdk-lib/aws-applicationautoscaling"); -const cdk = require("aws-cdk-lib"); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-dynamodb'); -const table = new dynamodb.Table(stack, 'Table', { - partitionKey: { name: 'hashKey', type: dynamodb.AttributeType.STRING }, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -/// !show -const readScaling = table.autoScaleReadCapacity({ minCapacity: 1, maxCapacity: 50 }); -readScaling.scaleOnUtilization({ - targetUtilizationPercent: 50, -}); -readScaling.scaleOnSchedule('ScaleUpInTheMorning', { - schedule: appscaling.Schedule.cron({ hour: '8', minute: '0' }), - minCapacity: 20, -}); -readScaling.scaleOnSchedule('ScaleDownAtNight', { - schedule: appscaling.Schedule.cron({ hour: '20', minute: '0' }), - maxCapacity: 20, -}); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXV0b3NjYWxpbmcubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXV0b3NjYWxpbmcubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscUVBQXFFO0FBQ3JFLG1DQUFtQztBQUNuQyxxREFBcUQ7QUFFckQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxrQkFBa0IsQ0FBQyxDQUFDO0FBRXJELE1BQU0sS0FBSyxHQUFHLElBQUksUUFBUSxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsT0FBTyxFQUFFO0lBQy9DLFlBQVksRUFBRSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxhQUFhLENBQUMsTUFBTSxFQUFFO0lBQ3RFLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87Q0FDekMsQ0FBQy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ZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstZHluYW1vZGInKTtcblxuY29uc3QgdGFibGUgPSBuZXcgZHluYW1vZGIuVGFibGUoc3RhY2ssICdUYWJsZScsIHtcbiAgcGFydGl0aW9uS2V5OiB7IG5hbWU6ICdoYXNoS2V5JywgdHlwZTogZHluYW1vZGIuQXR0cmlidXRlVHlwZS5TVFJJTkcgfSxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG4vLy8gIXNob3dcbmNvbnN0IHJlYWRTY2FsaW5nID0gdGFibGUuYXV0b1NjYWxlUmVhZENhcGFjaXR5KHsgbWluQ2FwYWNpdHk6IDEsIG1heENhcGFjaXR5OiA1MCB9KTtcblxucmVhZFNjYWxpbmcuc2NhbGVPblV0aWxpemF0aW9uKHtcbiAgdGFyZ2V0VXRpbGl6YXRpb25QZXJjZW50OiA1MCxcbn0pO1xuXG5yZWFkU2NhbGluZy5zY2FsZU9uU2NoZWR1bGUoJ1NjYWxlVXBJblRoZU1vcm5pbmcnLCB7XG4gIHNjaGVkdWxlOiBhcHBzY2FsaW5nLlNjaGVkdWxlLmNyb24oeyBob3VyOiAnOCcsIG1pbnV0ZTogJzAnIH0pLFxuICBtaW5DYXBhY2l0eTogMjAsXG59KTtcblxucmVhZFNjYWxpbmcuc2NhbGVPblNjaGVkdWxlKCdTY2FsZURvd25BdE5pZ2h0Jywge1xuICBzY2hlZHVsZTogYXBwc2NhbGluZy5TY2hlZHVsZS5jcm9uKHsgaG91cjogJzIwJywgbWludXRlOiAnMCcgfSksXG4gIG1heENhcGFjaXR5OiAyMCxcbn0pO1xuLy8vICFoaWRlXG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.d.ts deleted file mode 100644 index bbce4406ab611..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -export declare class TestStack extends Stack { - constructor(scope: Construct, id: string, props?: StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.js deleted file mode 100644 index d4c5c3a84c839..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.alarm-metrics.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestStack = void 0; -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const table = new aws_dynamodb_1.Table(this, 'Table', { - partitionKey: { name: 'metric', type: aws_dynamodb_1.AttributeType.STRING }, - }); - const metricTableThrottled = table.metricThrottledRequestsForOperations({ - operations: [aws_dynamodb_1.Operation.PUT_ITEM, aws_dynamodb_1.Operation.SCAN], - period: aws_cdk_lib_1.Duration.minutes(1), - }); - new aws_cloudwatch_1.Alarm(this, 'TableThrottleAlarm', { - metric: metricTableThrottled, - evaluationPeriods: 1, - threshold: 1, - }); - const metricTableError = table.metricSystemErrorsForOperations({ - operations: [aws_dynamodb_1.Operation.PUT_ITEM, aws_dynamodb_1.Operation.SCAN], - period: aws_cdk_lib_1.Duration.minutes(1), - }); - new aws_cloudwatch_1.Alarm(this, 'TableErrorAlarm', { - metric: metricTableError, - evaluationPeriods: 1, - threshold: 1, - }); - } -} -exports.TestStack = TestStack; -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'alarm-metrics'); -new integ_tests_alpha_1.IntegTest(app, 'alarm-metrics-integ', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIuYWxhcm0tbWV0cmljcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmR5bmFtb2RiLmFsYXJtLW1ldHJpY3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0RBQW1EO0FBQ25ELDZDQUErRDtBQUMvRCxrRUFBdUQ7QUFFdkQsMkRBQTJFO0FBRTNFLE1BQWEsU0FBVSxTQUFRLG1CQUFLO0lBQ2xDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxvQkFBSyxDQUFDLElBQUksRUFBRSxPQUFPLEVBQUU7WUFDckMsWUFBWSxFQUFFLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUUsNEJBQWEsQ0FBQyxNQUFNLEVBQUU7U0FDN0QsQ0FBQyxDQUFDO1FBQ0gsTUFBTSxvQkFBb0IsR0FBRyxLQUFLLENBQUMsb0NBQW9DLENBQUM7WUFDdEUsVUFBVSxFQUFFLENBQUMsd0JBQVMsQ0FBQyxRQUFRLEVBQUUsd0JBQVMsQ0FBQyxJQUFJLENBQUM7WUFDaEQsTUFBTSxFQUFFLHNCQUFRLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztTQUM1QixDQUFDLENBQUM7UUFDSCxJQUFJLHNCQUFLLENBQUMsSUFBSS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9yc0Zvck9wZXJhdGlvbnMoe1xuICAgICAgb3BlcmF0aW9uczogW09wZXJhdGlvbi5QVVRfSVRFTSwgT3BlcmF0aW9uLlNDQU5dLFxuICAgICAgcGVyaW9kOiBEdXJhdGlvbi5taW51dGVzKDEpLFxuICAgIH0pO1xuICAgIG5ldyBBbGFybSh0aGlzLCAnVGFibGVFcnJvckFsYXJtJywge1xuICAgICAgbWV0cmljOiBtZXRyaWNUYWJsZUVycm9yLFxuICAgICAgZXZhbHVhdGlvblBlcmlvZHM6IDEsXG4gICAgICB0aHJlc2hvbGQ6IDEsXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ2FsYXJtLW1ldHJpY3MnKTtcblxubmV3IEludGVnVGVzdChhcHAsICdhbGFybS1tZXRyaWNzLWludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.d.ts deleted file mode 100644 index 12300ed44fe9d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -import { Table } from 'aws-cdk-lib/aws-dynamodb'; -export declare class TestStack extends Stack { - readonly table: Table; - constructor(scope: Construct, id: string, props?: StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.js deleted file mode 100644 index ab3ed6c628d48..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.deletion-protection.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestStack = void 0; -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.table = new aws_dynamodb_1.Table(this, 'Table', { - partitionKey: { name: 'pk', type: aws_dynamodb_1.AttributeType.STRING }, - deletionProtection: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - tableName: 'deletion-protection-test', - }); - } -} -exports.TestStack = TestStack; -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'deletion-protection-stack', { - env: { - region: 'us-east-1', - account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, - }, -}); -new integ_tests_alpha_1.IntegTest(app, 'deletion-protection-integ-test', { - testCases: [stack], - regions: ['us-east-1'], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, - hooks: { - postDeploy: [ - 'aws dynamodb update-table --no-cli-pager --region us-east-1 --table-name deletion-protection-test --no-deletion-protection-enabled', - ], - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIuZGVsZXRpb24tcHJvdGVjdGlvbi5qcyIsIn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ICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgdGFibGVOYW1lOiAnZGVsZXRpb24tcHJvdGVjdGlvbi10ZXN0JyxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBUZXN0U3RhY2soYXBwLCAnZGVsZXRpb24tcHJvdGVjdGlvbi1zdGFjaycsIHtcbiAgZW52OiB7XG4gICAgcmVnaW9uOiAndXMtZWFzdC0xJyxcbiAgICBhY2NvdW50OiBwcm9jZXNzLmVudi5DREtfSU5URUdfQUNDT1VOVCB8fCBwcm9jZXNzLmVudi5DREtfREVGQVVMVF9BQ0NPVU5ULFxuICB9LFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnZGVsZXRpb24tcHJvdGVjdGlvbi1pbnRlZy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIHJlZ2lvbnM6IFsndXMtZWFzdC0xJ10sXG4gIGNka0NvbW1hbmRPcHRpb25zOiB7XG4gICAgZGVwbG95OiB7XG4gICAgICBhcmdzOiB7XG4gICAgICAgIHJvbGxiYWNrOiB0cnVlLFxuICAgICAgfSxcbiAgICB9LFxuICB9LFxuICBob29rczoge1xuICAgIHBvc3REZXBsb3k6IFtcbiAgICAgICdhd3MgZHluYW1vZGIgdXBkYXRlLXRhYmxlIC0tbm8tY2xpLXBhZ2VyIC0tcmVnaW9uIHVzLWVhc3QtMSAtLXRhYmxlLW5hbWUgZGVsZXRpb24tcHJvdGVjdGlvbi10ZXN0IC0tbm8tZGVsZXRpb24tcHJvdGVjdGlvbi1lbmFibGVkJyxcbiAgICBdLFxuICB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.js deleted file mode 100644 index d185ba4c4c6f2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -// CDK parameters -const STACK_NAME = 'aws-cdk-dynamodb'; -// DynamoDB table parameters -const TABLE = 'Table'; -const TABLE_WITH_CMK = 'TableWithCustomerManagedKey'; -const TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX = 'TableWithGlobalAndLocalSecondaryIndex'; -const TABLE_WITH_GLOBAL_SECONDARY_INDEX = 'TableWithGlobalSecondaryIndex'; -const TABLE_WITH_LOCAL_SECONDARY_INDEX = 'TableWithLocalSecondaryIndex'; -const TABLE_PARTITION_KEY = { name: 'hashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const TABLE_SORT_KEY = { name: 'sortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -// DynamoDB global secondary index parameters -const GSI_TEST_CASE_1 = 'GSI-PartitionKeyOnly'; -const GSI_TEST_CASE_2 = 'GSI-PartitionAndSortKeyWithReadAndWriteCapacity'; -const GSI_TEST_CASE_3 = 'GSI-ProjectionTypeKeysOnly'; -const GSI_TEST_CASE_4 = 'GSI-ProjectionTypeInclude'; -const GSI_TEST_CASE_5 = 'GSI-InverseTableKeySchema'; -const GSI_PARTITION_KEY = { name: 'gsiHashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const GSI_SORT_KEY = { name: 'gsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const GSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'A' to 'J' - GSI_NON_KEY.push(String.fromCharCode(65 + i)); -} -// DynamoDB local secondary index parameters -const LSI_TEST_CASE_1 = 'LSI-PartitionAndSortKey'; -const LSI_TEST_CASE_2 = 'LSI-PartitionAndTableSortKey'; -const LSI_TEST_CASE_3 = 'LSI-ProjectionTypeKeysOnly'; -const LSI_TEST_CASE_4 = 'LSI-ProjectionTypeInclude'; -const LSI_SORT_KEY = { name: 'lsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const LSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'K' to 'T' - LSI_NON_KEY.push(String.fromCharCode(75 + i)); -} -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, STACK_NAME); -const table = new aws_dynamodb_1.Table(stack, TABLE, { - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const tableWithGlobalAndLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX, { - pointInTimeRecovery: true, - encryption: aws_dynamodb_1.TableEncryption.AWS_MANAGED, - stream: aws_dynamodb_1.StreamViewType.KEYS_ONLY, - timeToLiveAttribute: 'timeToLive', - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -aws_cdk_lib_1.Tags.of(tableWithGlobalAndLocalSecondaryIndex).add('Environment', 'Production'); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_2, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - readCapacity: 10, - writeCapacity: 10, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_3, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_4, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: GSI_NON_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_5, - partitionKey: TABLE_SORT_KEY, - sortKey: TABLE_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_2, - sortKey: LSI_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: TABLE_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_3, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_4, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: LSI_NON_KEY, -}); -const tableWithGlobalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_SECONDARY_INDEX, { - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -tableWithGlobalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -const tableWithLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_LOCAL_SECONDARY_INDEX, { - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -tableWithLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: LSI_SORT_KEY, -}); -const encryptionKey = new kms.Key(stack, 'Key', { - enableKeyRotation: true, -}); -const tableWithCMK = new aws_dynamodb_1.Table(stack, TABLE_WITH_CMK, { - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - stream: aws_dynamodb_1.StreamViewType.NEW_AND_OLD_IMAGES, - encryptionKey: encryptionKey, -}); -const role = new iam.Role(stack, 'Role', { - assumedBy: new iam.ServicePrincipal('sqs.amazonaws.com'), -}); -tableWithCMK.grantStreamRead(role); -const user = new iam.User(stack, 'User'); -table.grantReadData(user); -tableWithGlobalAndLocalSecondaryIndex.grantReadData(user); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5keW5hbW9kYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsNkNBQThEO0FBQzlELDJEQUE0SDtBQUU1SCxpQkFBaUI7QUFDakIsTUFBTSxVQUFVLEdBQUcsa0JBQWtCLENBQUM7QUFFdEMsNEJBQTRCO0FBQzVCLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQztBQUN0QixNQUFNLGNBQWMsR0FBRyw2QkFBNkIsQ0FBQztBQUNyRCxNQUFNLDJDQUEyQyxHQUFHLHVDQUF1QyxDQUFDO0FBQzVGLE1BQU0saUNBQWlDLEdBQUcsK0JBQStCLENBQUM7QUFDMUUsTUFBTSxnQ0FBZ0MsR0FBRyw4QkFBOEIsQ0FBQztBQUN4RSxNQUFNLG1CQUFtQixHQUFjLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsNEJBQW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F9LRVksXG59KTtcblxuY29uc3QgZW5jcnlwdGlvbktleSA9IG5ldyBrbXMuS2V5KHN0YWNrLCAnS2V5Jywge1xuICBlbmFibGVLZXlSb3RhdGlvbjogdHJ1ZSxcbn0pO1xuXG5jb25zdCB0YWJsZVdpdGhDTUsgPSBuZXcgVGFibGUoc3RhY2ssIFRBQkxFX1dJVEhfQ01LLCB7XG4gIHBhcnRpdGlvbktleTogVEFCTEVfUEFSVElUSU9OX0tFWSxcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICBzdHJlYW06IFN0cmVhbVZpZXdUeXBlLk5FV19BTkRfT0xEX0lNQUdFUyxcbiAgZW5jcnlwdGlvbktleTogZW5jcnlwdGlvbktleSxcbn0pO1xuXG5jb25zdCByb2xlID0gbmV3IGlhbS5Sb2xlKHN0YWNrLCAnUm9sZScsIHtcbiAgYXNzdW1lZEJ5OiBuZXcgaWFtLlNlcnZpY2VQcmluY2lwYWwoJ3Nxcy5hbWF6b25hd3MuY29tJyksXG59KTtcbnRhYmxlV2l0aENNSy5ncmFudFN0cmVhbVJlYWQocm9sZSk7XG5cbmNvbnN0IHVzZXIgPSBuZXcgaWFtLlVzZXIoc3RhY2ssICdVc2VyJyk7XG50YWJsZS5ncmFudFJlYWREYXRhKHVzZXIpO1xudGFibGVXaXRoR2xvYmFsQW5kTG9jYWxTZWNvbmRhcnlJbmRleC5ncmFudFJlYWREYXRhKHVzZXIpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.js deleted file mode 100644 index cc64e7d19ca59..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.kinesis-stream.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const cdk = require("aws-cdk-lib"); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-dynamodb-kinesis-stream'); -const stream = new kinesis.Stream(stack, 'Stream'); -new dynamodb.Table(stack, 'Table', { - partitionKey: { name: 'hashKey', type: dynamodb.AttributeType.STRING }, - removalPolicy: cdk.RemovalPolicy.DESTROY, - kinesisStream: stream, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIua2luZXNpcy1zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5keW5hbW9kYi5raW5lc2lzLXN0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1EQUFtRDtBQUNuRCxtQ0FBbUM7QUFDbkMscURBQXFEO0FBRXJELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsaUNBQWlDLENBQUMsQ0FBQztBQUVwRSxNQUFNLE1BQU0sR0FBRyxJQUFJLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBRW5ELElBQUksUUFBUSxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsT0FBTyxFQUFFO0lBQ2pDLFlBQVksRUFBRSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBQyxhQUFhLENBQUMsTUFBTSxFQUFFO0lBQ3RFLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87SUFDeEMsYUFBYSxFQUFFLE1BQU07Q0FDdEIsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMga2luZXNpcyBmcm9tICdhd3MtY2RrLWxpYi9hd3Mta2luZXNpcyc7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgZHluYW1vZGIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWR5bmFtb2RiJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWR5bmFtb2RiLWtpbmVzaXMtc3RyZWFtJyk7XG5cbmNvbnN0IHN0cmVhbSA9IG5ldyBraW5lc2lzLlN0cmVhbShzdGFjaywgJ1N0cmVhbScpO1xuXG5uZXcgZHluYW1vZGIuVGFibGUoc3RhY2ssICdUYWJsZScsIHtcbiAgcGFydGl0aW9uS2V5OiB7IG5hbWU6ICdoYXNoS2V5JywgdHlwZTogZHluYW1vZGIuQXR0cmlidXRlVHlwZS5TVFJJTkcgfSxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAga2luZXNpc1N0cmVhbTogc3RyZWFtLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.d.ts deleted file mode 100644 index adfc4933c96d8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This aimes to verify we can deploy a DynamoDB table with an attribute being - * a key attribute in one GSI, and a non-key attribute in another. - * - * See https://github.com/aws/aws-cdk/issues/4398 - */ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.js deleted file mode 100644 index 9592dad1f389d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.mixed-key-gsi.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -/** - * This aimes to verify we can deploy a DynamoDB table with an attribute being - * a key attribute in one GSI, and a non-key attribute in another. - * - * See https://github.com/aws/aws-cdk/issues/4398 - */ -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-dynamodb-gsi'); -const table = new aws_dynamodb_1.Table(stack, 'Table', { - partitionKey: { name: 'pkey', type: aws_dynamodb_1.AttributeType.NUMBER }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -table.addGlobalSecondaryIndex({ - indexName: 'IndexA', - partitionKey: { name: 'foo', type: aws_dynamodb_1.AttributeType.STRING }, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: ['bar'], -}); -table.addGlobalSecondaryIndex({ - indexName: 'IndexB', - partitionKey: { name: 'baz', type: aws_dynamodb_1.AttributeType.STRING }, - sortKey: { name: 'bar', type: aws_dynamodb_1.AttributeType.STRING }, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: ['blah'], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIubWl4ZWQta2V5LWdzaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmR5bmFtb2RiLm1peGVkLWtleS1nc2kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7OztHQUtHOztBQUVILDZDQUF3RDtBQUN4RCwyREFBZ0Y7QUFFaEYsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxzQkFBc0IsQ0FBQyxDQUFDO0FBRXJELE1BQU0sS0FBSyxHQUFHLElBQUksb0JBQUssQ0FBQyxLQUFLLEVBQUUsT0FBTyxFQUFFO0lBQ3RDLFlBQVksRUFBRSxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLDRCQUFhLENBQUMsTUFBTSxFQUFFO0lBQzFELGFBQWEsRUFBRSwyQkFBYSxDQUFDLE9BQU87Q0FDckMsQ0FBQyxDQUFDO0FBRUgsS0FBSyxDQUFDLHVCQUF1QixDQUFDO0lBQzVCLFNBQVMsRUFBRSxRQUFRO0lBQ25CLFlBQVksRUFBRSxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLDRCQUFhLENBQUMsTUFBTSxFQUFFO0lBQ3pELGNBQWMsRUFBRSw2QkFBYyxDQUFDLE9BQU87SUFDdEMsZ0JBQWdCLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDMUIsQ0FBQyxDQUFDO0FBRUgsS0FBSyxDQUFD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cmlidXRlVHlwZS5OVU1CRVIgfSxcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbnRhYmxlLmFkZEdsb2JhbFNlY29uZGFyeUluZGV4KHtcbiAgaW5kZXhOYW1lOiAnSW5kZXhBJyxcbiAgcGFydGl0aW9uS2V5OiB7IG5hbWU6ICdmb28nLCB0eXBlOiBBdHRyaWJ1dGVUeXBlLlNUUklORyB9LFxuICBwcm9qZWN0aW9uVHlwZTogUHJvamVjdGlvblR5cGUuSU5DTFVERSxcbiAgbm9uS2V5QXR0cmlidXRlczogWydiYXInXSxcbn0pO1xuXG50YWJsZS5hZGRHbG9iYWxTZWNvbmRhcnlJbmRleCh7XG4gIGluZGV4TmFtZTogJ0luZGV4QicsXG4gIHBhcnRpdGlvbktleTogeyBuYW1lOiAnYmF6JywgdHlwZTogQXR0cmlidXRlVHlwZS5TVFJJTkcgfSxcbiAgc29ydEtleTogeyBuYW1lOiAnYmFyJywgdHlwZTogQXR0cmlidXRlVHlwZS5TVFJJTkcgfSxcbiAgcHJvamVjdGlvblR5cGU6IFByb2plY3Rpb25UeXBlLklOQ0xVREUsXG4gIG5vbktleUF0dHJpYnV0ZXM6IFsnYmxhaCddLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.js deleted file mode 100644 index 07861c11bdd3b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.ondemand.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -// CDK parameters -const STACK_NAME = 'aws-cdk-dynamodb'; -// DynamoDB table parameters -const TABLE = 'Table'; -const TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX = 'TableWithGlobalAndLocalSecondaryIndex'; -const TABLE_WITH_GLOBAL_SECONDARY_INDEX = 'TableWithGlobalSecondaryIndex'; -const TABLE_WITH_LOCAL_SECONDARY_INDEX = 'TableWithLocalSecondaryIndex'; -const TABLE_PARTITION_KEY = { name: 'hashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const TABLE_SORT_KEY = { name: 'sortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -// DynamoDB global secondary index parameters -const GSI_TEST_CASE_1 = 'GSI-PartitionKeyOnly'; -const GSI_TEST_CASE_2 = 'GSI-PartitionAndSortKeyWithReadAndWriteCapacity'; -const GSI_TEST_CASE_3 = 'GSI-ProjectionTypeKeysOnly'; -const GSI_TEST_CASE_4 = 'GSI-ProjectionTypeInclude'; -const GSI_TEST_CASE_5 = 'GSI-InverseTableKeySchema'; -const GSI_PARTITION_KEY = { name: 'gsiHashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const GSI_SORT_KEY = { name: 'gsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const GSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'A' to 'J' - GSI_NON_KEY.push(String.fromCharCode(65 + i)); -} -// DynamoDB local secondary index parameters -const LSI_TEST_CASE_1 = 'LSI-PartitionAndSortKey'; -const LSI_TEST_CASE_2 = 'LSI-PartitionAndTableSortKey'; -const LSI_TEST_CASE_3 = 'LSI-ProjectionTypeKeysOnly'; -const LSI_TEST_CASE_4 = 'LSI-ProjectionTypeInclude'; -const LSI_SORT_KEY = { name: 'lsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const LSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'K' to 'T' - LSI_NON_KEY.push(String.fromCharCode(75 + i)); -} -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, STACK_NAME); -// Provisioned tables -new aws_dynamodb_1.Table(stack, TABLE, { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const tableWithGlobalAndLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX, { - pointInTimeRecovery: true, - encryption: aws_dynamodb_1.TableEncryption.AWS_MANAGED, - stream: aws_dynamodb_1.StreamViewType.KEYS_ONLY, - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - timeToLiveAttribute: 'timeToLive', - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -aws_cdk_lib_1.Tags.of(tableWithGlobalAndLocalSecondaryIndex).add('Environment', 'Production'); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_2, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_3, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_4, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: GSI_NON_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_5, - partitionKey: TABLE_SORT_KEY, - sortKey: TABLE_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_2, - sortKey: LSI_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: TABLE_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_3, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_4, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: LSI_NON_KEY, -}); -const tableWithGlobalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_SECONDARY_INDEX, { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -tableWithGlobalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -const tableWithLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_LOCAL_SECONDARY_INDEX, { - billingMode: aws_dynamodb_1.BillingMode.PAY_PER_REQUEST, - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -tableWithLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: LSI_SORT_KEY, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIub25kZW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5keW5hbW9kYi5vbmRlbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUE4RDtBQUM5RCwyREFBeUk7QUFFekksaUJBQWlCO0FBQ2pCLE1BQU0sVUFBVSxHQUFHLGtCQUFrQixDQUFDO0FBRXRDLDRCQUE0QjtBQUM1QixNQUFNLEtBQUssR0FBRyxPQUFPLENBQUM7QUFDdEIsTUFBTSwyQ0FBMkMsR0FBRyx1Q0FBdUMsQ0FBQztBQUM1RixNQUFNLGlDQUFpQyxHQUFHLCtCQUErQixDQUFDO0FBQzFFLE1BQU0sZ0NBQWdDLEdBQUcsOEJBQThCLENBQUM7QUFDeEUsTUFBTSxtQkFBbUIsR0FBYyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLDRCQUFhLENBQUMsTUFBTSxFQUFFLENBQUM7QUFDdkYsTUFBTSxjQUFjLEdBQWMsRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSw0QkFBYSxDQUFDLE1BQU0sRUFBRSxDQUFDO0FBRWxGLDZDQUE2QztBQUM3QyxNQUFNLGVBQWUsR0FBRyxzQkFBc0IsQ0FBQztBQUMvQyxNQUFNLGVBQWUsR0FBRyxpREFBaUQsQ0FBQztBQUMxRSxNQUFNLGVBQWUsR0FBRyw0QkFBNEIsQ0FBQztBQUNyRCxNQUFNLGVBQWUsR0FBRywyQkFBMkIsQ0FBQztBQUNwRCxNQUFNLGVBQWUsR0FBRywyQkFBMkIsQ0FBQztBQUNwRCxNQUFNLGlC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goKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.js deleted file mode 100644 index 45a595e715070..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb.sse.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb"); -// CDK parameters -const STACK_NAME = 'aws-cdk-dynamodb'; -// DynamoDB table parameters -const TABLE = 'Table'; -const TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX = 'TableWithGlobalAndLocalSecondaryIndex'; -const TABLE_WITH_GLOBAL_SECONDARY_INDEX = 'TableWithGlobalSecondaryIndex'; -const TABLE_WITH_LOCAL_SECONDARY_INDEX = 'TableWithLocalSecondaryIndex'; -const TABLE_PARTITION_KEY = { name: 'hashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const TABLE_SORT_KEY = { name: 'sortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -// DynamoDB global secondary index parameters -const GSI_TEST_CASE_1 = 'GSI-PartitionKeyOnly'; -const GSI_TEST_CASE_2 = 'GSI-PartitionAndSortKeyWithReadAndWriteCapacity'; -const GSI_TEST_CASE_3 = 'GSI-ProjectionTypeKeysOnly'; -const GSI_TEST_CASE_4 = 'GSI-ProjectionTypeInclude'; -const GSI_TEST_CASE_5 = 'GSI-InverseTableKeySchema'; -const GSI_PARTITION_KEY = { name: 'gsiHashKey', type: aws_dynamodb_1.AttributeType.STRING }; -const GSI_SORT_KEY = { name: 'gsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const GSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'A' to 'J' - GSI_NON_KEY.push(String.fromCharCode(65 + i)); -} -// DynamoDB local secondary index parameters -const LSI_TEST_CASE_1 = 'LSI-PartitionAndSortKey'; -const LSI_TEST_CASE_2 = 'LSI-PartitionAndTableSortKey'; -const LSI_TEST_CASE_3 = 'LSI-ProjectionTypeKeysOnly'; -const LSI_TEST_CASE_4 = 'LSI-ProjectionTypeInclude'; -const LSI_SORT_KEY = { name: 'lsiSortKey', type: aws_dynamodb_1.AttributeType.NUMBER }; -const LSI_NON_KEY = []; -for (let i = 0; i < 10; i++) { // 'K' to 'T' - LSI_NON_KEY.push(String.fromCharCode(75 + i)); -} -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, STACK_NAME); -const table = new aws_dynamodb_1.Table(stack, TABLE, { - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - encryption: aws_dynamodb_1.TableEncryption.CUSTOMER_MANAGED, -}); -const tableWithGlobalAndLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_AND_LOCAL_SECONDARY_INDEX, { - pointInTimeRecovery: true, - encryption: aws_dynamodb_1.TableEncryption.AWS_MANAGED, - stream: aws_dynamodb_1.StreamViewType.KEYS_ONLY, - timeToLiveAttribute: 'timeToLive', - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -aws_cdk_lib_1.Tags.of(tableWithGlobalAndLocalSecondaryIndex).add('Environment', 'Production'); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_2, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - readCapacity: 10, - writeCapacity: 10, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_3, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_4, - partitionKey: GSI_PARTITION_KEY, - sortKey: GSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: GSI_NON_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_5, - partitionKey: TABLE_SORT_KEY, - sortKey: TABLE_PARTITION_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_2, - sortKey: LSI_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: TABLE_SORT_KEY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_3, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.KEYS_ONLY, -}); -tableWithGlobalAndLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_4, - sortKey: LSI_SORT_KEY, - projectionType: aws_dynamodb_1.ProjectionType.INCLUDE, - nonKeyAttributes: LSI_NON_KEY, -}); -const encryptionKey = new kms.Key(stack, 'Key', { - enableKeyRotation: true, -}); -const tableWithGlobalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_GLOBAL_SECONDARY_INDEX, { - partitionKey: TABLE_PARTITION_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - encryptionKey, -}); -tableWithGlobalSecondaryIndex.addGlobalSecondaryIndex({ - indexName: GSI_TEST_CASE_1, - partitionKey: GSI_PARTITION_KEY, -}); -const tableWithLocalSecondaryIndex = new aws_dynamodb_1.Table(stack, TABLE_WITH_LOCAL_SECONDARY_INDEX, { - partitionKey: TABLE_PARTITION_KEY, - sortKey: TABLE_SORT_KEY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - encryption: aws_dynamodb_1.TableEncryption.DEFAULT, -}); -tableWithLocalSecondaryIndex.addLocalSecondaryIndex({ - indexName: LSI_TEST_CASE_1, - sortKey: LSI_SORT_KEY, -}); -const role = new iam.Role(stack, 'Role', { - assumedBy: new iam.ServicePrincipal('sqs.amazonaws.com'), -}); -table.grantReadData(role); -tableWithGlobalAndLocalSecondaryIndex.grantReadData(role); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGIuc3NlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZHluYW1vZGIuc3NlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyw2Q0FBOEQ7QUFDOUQsMkRBQTRIO0FBRTVILGlCQUFpQjtBQUNqQixNQUFNLFVBQVUsR0FBRyxrQkFBa0IsQ0FBQztBQUV0Qyw0QkFBNEI7QUFDNUIsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDO0FBQ3RCLE1BQU0sMkNBQTJDLEdBQUcsdUNBQXVDLENBQUM7QUFDNUYsTUFBTSxpQ0FBaUMsR0FBRyw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iBMU0lfU09SVF9LRVksXG59KTtcblxuY29uc3Qgcm9sZSA9IG5ldyBpYW0uUm9sZShzdGFjaywgJ1JvbGUnLCB7XG4gIGFzc3VtZWRCeTogbmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdzcXMuYW1hem9uYXdzLmNvbScpLFxufSk7XG50YWJsZS5ncmFudFJlYWREYXRhKHJvbGUpO1xudGFibGVXaXRoR2xvYmFsQW5kTG9jYWxTZWNvbmRhcnlJbmRleC5ncmFudFJlYWREYXRhKHJvbGUpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.js deleted file mode 100644 index 1bc8e76d675cb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global-replicas-provisioned.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-dynamodb-global-replicas-provisioned'); -const table = new dynamodb.Table(stack, 'Table', { - partitionKey: { name: 'hashKey', type: dynamodb.AttributeType.STRING }, - removalPolicy: cdk.RemovalPolicy.DESTROY, - replicationRegions: ['us-east-2', 'eu-west-3'], - billingMode: dynamodb.BillingMode.PROVISIONED, -}); -table.autoScaleWriteCapacity({ - minCapacity: 5, - maxCapacity: 10, -}).scaleOnUtilization({ targetUtilizationPercent: 75 }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2xvYmFsLXJlcGxpY2FzLXByb3Zpc2lvbmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ2xvYmFsLXJlcGxpY2FzLXByb3Zpc2lvbmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLHFEQUFxRDtBQUVyRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDhDQUE4QyxDQUFDLENBQUM7QUFFakYsTUFBTSxLQUFLLEdBQUcsSUFBSSxRQUFRLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxPQUFPLEVBQUU7SUFDL0MsWUFBWSxFQUFFLEVBQUUsSUFBSSxFQUFFLFNBQVMsRUFBRSxJQUFJLEVBQUUsUUFBUSxDQUFDLGFBQWEsQ0FBQyxNQUFNLEVBQUU7SUFDdEUsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztJQUN4QyxrQkFBa0IsRUFBRSxDQUFDLFdBQVcsRUFBRSxXQUFXLENBQUM7SUFDOUMsV0FBVyxFQUFFLFFBQVEsQ0FBQyxXQUFXLENBQUMsV0FBVztDQUM5QyxDQUFDLENBQUM7QUFFSCxLQUFLLENBQUMsc0JBQXNCLENBQUM7SUFDM0IsV0FBVyxFQUFFLENBQUM7SUFDZCxXQUFXLEVBQUUsRUFBRTtDQUNoQixDQUFDLENBQUMsa0JBQWtCLENBQUMsRUFBRSx3QkFBd0IsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0FBRXhELEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBkeW5hbW9kYiBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZHluYW1vZGInO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstZHluYW1vZGItZ2xvYmFsLXJlcGxpY2FzLXByb3Zpc2lvbmVkJyk7XG5cbmNvbnN0IHRhYmxlID0gbmV3IGR5bmFtb2RiLlRhYmxlKHN0YWNrLCAnVGFibGUnLCB7XG4gIHBhcnRpdGlvbktleTogeyBuYW1lOiAnaGFzaEtleScsIHR5cGU6IGR5bmFtb2RiLkF0dHJpYnV0ZVR5cGUuU1RSSU5HIH0sXG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gIHJlcGxpY2F0aW9uUmVnaW9uczogWyd1cy1lYXN0LTInLCAnZXUtd2VzdC0zJ10sXG4gIGJpbGxpbmdNb2RlOiBkeW5hbW9kYi5CaWxsaW5nTW9kZS5QUk9WSVNJT05FRCxcbn0pO1xuXG50YWJsZS5hdXRvU2NhbGVXcml0ZUNhcGFjaXR5KHtcbiAgbWluQ2FwYWNpdHk6IDUsXG4gIG1heENhcGFjaXR5OiAxMCxcbn0pLnNjYWxlT25VdGlsaXphdGlvbih7IHRhcmdldFV0aWxpemF0aW9uUGVyY2VudDogNzUgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.js b/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.js deleted file mode 100644 index 3fe6781db12ac..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.global.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const table = new dynamodb.Table(this, 'Table', { - partitionKey: { - name: 'id', - type: dynamodb.AttributeType.STRING, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - replicationRegions: [ - 'eu-west-2', - 'eu-central-1', - ], - }); - table.addGlobalSecondaryIndex({ - indexName: 'my-index', - partitionKey: { - name: 'key', - type: dynamodb.AttributeType.STRING, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-dynamodb-global-20191121', { env: { region: 'eu-west-1' } }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2xvYmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ2xvYmFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQW9FO0FBRXBFLHFEQUFxRDtBQUVyRCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE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cbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM/OiBTdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICBjb25zdCB0YWJsZSA9IG5ldyBkeW5hbW9kYi5UYWJsZSh0aGlzLCAnVGFibGUnLCB7XG4gICAgICBwYXJ0aXRpb25LZXk6IHtcbiAgICAgICAgbmFtZTogJ2lkJyxcbiAgICAgICAgdHlwZTogZHluYW1vZGIuQXR0cmlidXRlVHlwZS5TVFJJTkcsXG4gICAgICB9LFxuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgcmVwbGljYXRpb25SZWdpb25zOiBbXG4gICAgICAgICdldS13ZXN0LTInLFxuICAgICAgICAnZXUtY2VudHJhbC0xJyxcbiAgICAgIF0sXG4gICAgfSk7XG5cbiAgICB0YWJsZS5hZGRHbG9iYWxTZWNvbmRhcnlJbmRleCh7XG4gICAgICBpbmRleE5hbWU6ICdteS1pbmRleCcsXG4gICAgICBwYXJ0aXRpb25LZXk6IHtcbiAgICAgICAgbmFtZTogJ2tleScsXG4gICAgICAgIHR5cGU6IGR5bmFtb2RiLkF0dHJpYnV0ZVR5cGUuU1RSSU5HLFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1keW5hbW9kYi1nbG9iYWwtMjAxOTExMjEnLCB7IGVudjogeyByZWdpb246ICdldS13ZXN0LTEnIH0gfSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.d.ts deleted file mode 100644 index 95864b6ad5da0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare function handler(event: AWSLambda.CloudFormationCustomResourceEvent): Promise<{ - Data: { - ServerCertificateArn: string | undefined; - ClientCertificateArn: string | undefined; - }; -} | undefined>; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.js deleted file mode 100644 index cd82410f72929..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/import-certificates-handler/index.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -const fs = require("fs"); -const aws_sdk_1 = require("aws-sdk"); // eslint-disable-line import/no-extraneous-dependencies -const acm = new aws_sdk_1.ACM(); -async function handler(event) { - switch (event.RequestType) { - case 'Create': - let serverImport; - if (!event.ResourceProperties.ServerCertificateArn) { - serverImport = await acm.importCertificate({ - Certificate: fs.readFileSync('./server.crt'), - PrivateKey: fs.readFileSync('./server.key'), - CertificateChain: fs.readFileSync('./ca.crt'), - }).promise(); - } - let clientImport; - if (!event.ResourceProperties.ClientCertificateArn) { - clientImport = await acm.importCertificate({ - Certificate: fs.readFileSync('./client1.domain.tld.crt'), - PrivateKey: fs.readFileSync('./client1.domain.tld.key'), - CertificateChain: fs.readFileSync('./ca.crt'), - }).promise(); - } - return { - Data: { - ServerCertificateArn: serverImport?.CertificateArn, - ClientCertificateArn: clientImport?.CertificateArn, - }, - }; - case 'Update': - return; - case 'Delete': - if (event.ResourceProperties.ServerCertificateArn) { - await acm.deleteCertificate({ - CertificateArn: event.ResourceProperties.ServerCertificateArn, - }).promise(); - } - if (event.ResourceProperties.ClientCertificateArn) { - await acm.deleteCertificate({ - CertificateArn: event.ResourceProperties.ClientCertificateArn, - }).promise(); - } - return; - } -} -exports.handler = handler; -//# source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cbiAgICAgICAgICBTZXJ2ZXJDZXJ0aWZpY2F0ZUFybjogc2VydmVySW1wb3J0Py5DZXJ0aWZpY2F0ZUFybixcbiAgICAgICAgICBDbGllbnRDZXJ0aWZpY2F0ZUFybjogY2xpZW50SW1wb3J0Py5DZXJ0aWZpY2F0ZUFybixcbiAgICAgICAgfSxcbiAgICAgIH07XG4gICAgY2FzZSAnVXBkYXRlJzpcbiAgICAgIHJldHVybjtcbiAgICBjYXNlICdEZWxldGUnOlxuICAgICAgaWYgKGV2ZW50LlJlc291cmNlUHJvcGVydGllcy5TZXJ2ZXJDZXJ0aWZpY2F0ZUFybikge1xuICAgICAgICBhd2FpdCBhY20uZGVsZXRlQ2VydGlmaWNhdGUoe1xuICAgICAgICAgIENlcnRpZmljYXRlQXJuOiBldmVudC5SZXNvdXJjZVByb3BlcnRpZXMuU2VydmVyQ2VydGlmaWNhdGVBcm4sXG4gICAgICAgIH0pLnByb21pc2UoKTtcbiAgICAgIH1cbiAgICAgIGlmIChldmVudC5SZXNvdXJjZVByb3BlcnRpZXMuQ2xpZW50Q2VydGlmaWNhdGVBcm4pIHtcbiAgICAgICAgYXdhaXQgYWNtLmRlbGV0ZUNlcnRpZmljYXRlKHtcbiAgICAgICAgICBDZXJ0aWZpY2F0ZUFybjogZXZlbnQuUmVzb3VyY2VQcm9wZXJ0aWVzLkNsaWVudENlcnRpZmljYXRlQXJuLFxuICAgICAgICB9KS5wcm9taXNlKCk7XG4gICAgICB9XG4gICAgICByZXR1cm47XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.js deleted file mode 100644 index 4f4bd2500959d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host-arm-support.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/* - * Stack verification steps: - * * aws ssm start-session --target - * * lscpu # Architecture should be aarch64 - */ -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - new ec2.BastionHostLinux(this, 'BastionHost', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T4G, ec2.InstanceSize.NANO), - }); - } -} -new TestStack(app, 'TestStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYmFzdGlvbi1ob3N0LWFybS1zdXBwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYmFzdGlvbi1ob3N0LWFybS1zdXBwb3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7R0FJRztBQUNILG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLEtBQXNCO1FBQzVELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sR0FBRyxHQUFHLElB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uZXcgZWMyLkJhc3Rpb25Ib3N0TGludXgodGhpcywgJ0Jhc3Rpb25Ib3N0Jywge1xuICAgICAgdnBjLFxuICAgICAgaW5zdGFuY2VUeXBlOiBlYzIuSW5zdGFuY2VUeXBlLm9mKGVjMi5JbnN0YW5jZUNsYXNzLlQ0RywgZWMyLkluc3RhbmNlU2l6ZS5OQU5PKSxcbiAgICB9KTtcbiAgfVxufVxuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ1Rlc3RTdGFjaycpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.js deleted file mode 100644 index 767d4cc4552e8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.bastion-host.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - new ec2.BastionHostLinux(this, 'BastionHost', { vpc }); - } -} -new TestStack(app, 'TestStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYmFzdGlvbi1ob3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsi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G5cbiAgICBjb25zdCB2cGMgPSBuZXcgZWMyLlZwYyh0aGlzLCAnVlBDJyk7XG5cbiAgICBuZXcgZWMyLkJhc3Rpb25Ib3N0TGludXgodGhpcywgJ0Jhc3Rpb25Ib3N0JywgeyB2cGMgfSk7XG4gIH1cbn1cblxubmV3IFRlc3RTdGFjayhhcHAsICdUZXN0U3RhY2snKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.js deleted file mode 100644 index ab77402f6ef55..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.client-vpn-endpoint.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const logs = require("aws-cdk-lib/aws-logs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const constructs_1 = require("constructs"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // Import server and client certificates in ACM - const certificates = new ImportCertificates(this, 'ImportCertificates'); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 0 }); - vpc.node.addDependency(certificates); // ensure certificates are deleted last, when not in use anymore - const logGroup = new logs.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - vpc.addClientVpnEndpoint('Endpoint', { - cidr: '10.100.0.0/16', - serverCertificateArn: certificates.serverCertificateArn, - clientCertificateArn: certificates.clientCertificateArn, - logGroup, - }); - } -} -const IMPORT_CERTIFICATES_RESOURCE_TYPE = 'Custom::ACMImportCertificates'; -class ImportCertificates extends constructs_1.Construct { - constructor(scope, id) { - super(scope, id); - const serviceToken = aws_cdk_lib_1.CustomResourceProvider.getOrCreate(this, IMPORT_CERTIFICATES_RESOURCE_TYPE, { - codeDirectory: path.join(__dirname, 'import-certificates-handler'), - runtime: aws_cdk_lib_1.CustomResourceProviderRuntime.NODEJS_14_X, - policyStatements: [{ - Effect: 'Allow', - Action: ['acm:ImportCertificate', 'acm:DeleteCertificate'], - Resource: '*', - }], - }); - const createCertificates = new aws_cdk_lib_1.CustomResource(this, 'CreateCertificates', { - resourceType: IMPORT_CERTIFICATES_RESOURCE_TYPE, - serviceToken, - }); - this.serverCertificateArn = createCertificates.getAttString('ClientCertificateArn'); - this.clientCertificateArn = createCertificates.getAttString('ServerCertificateArn'); - new aws_cdk_lib_1.CustomResource(this, 'DeleteCertificates', { - resourceType: IMPORT_CERTIFICATES_RESOURCE_TYPE, - serviceToken, - properties: { - ServerCertificateArn: this.serverCertificateArn, - ClientCertificateArn: this.clientCertificateArn, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-ec2-client-vpn-endpoint'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xpZW50LXZwbi1lbmRwb2ludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsaWVudC12cG4tZW5kcG9pbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsNkNBQTZDO0FBQzdDLDZDQUEySTtBQUMzSSwyQ0FBdUM7QUFDdkMsMkNBQTJDO0FBRTNDLE1BQU0sU0FBVSx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uOiB0aGlzLnNlcnZlckNlcnRpZmljYXRlQXJuLFxuICAgICAgICBDbGllbnRDZXJ0aWZpY2F0ZUFybjogdGhpcy5jbGllbnRDZXJ0aWZpY2F0ZUFybixcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstZWMyLWNsaWVudC12cG4tZW5kcG9pbnQnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.d.ts deleted file mode 100644 index 5e0782e6d6d51..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { CfnParameter, StackProps } from 'aws-cdk-lib'; -export interface consumerDeployProps extends StackProps { - stringListGetAtt: string[]; - stringListRef: CfnParameter; - manualStringList: string[]; -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.js deleted file mode 100644 index 2a4f2ca6c9729..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.core-cross-stack-string-list-references.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ssm = require("aws-cdk-lib/aws-ssm"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -// GIVEN -const app = new aws_cdk_lib_1.App({ - treeMetadata: false, -}); -class ProducerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'vpc'); - this.stringListGetAtt = new aws_ec2_1.InterfaceVpcEndpoint(this, 'endpoint', { - vpc, - service: aws_ec2_1.InterfaceVpcEndpointAwsService.SECRETS_MANAGER, - }).vpcEndpointDnsEntries; - this.stringListRef = new aws_cdk_lib_1.CfnParameter(this, 'stringListParam', { - default: 'BLAT,BLAH', - type: 'List', - }); - this.manualExport = this.exportStringListValue(['string1', 'string2'], { - name: 'ManualExport', - }); - } -} -class ConsumerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new ssm.StringListParameter(this, 'GetAtt', { - stringListValue: props.stringListGetAtt, - }); - new ssm.StringListParameter(this, 'Ref', { - stringListValue: props.stringListRef.valueAsList, - }); - new ssm.StringListParameter(this, 'Manual', { - stringListValue: props.manualStringList, - }); - } -} -const producer = new ProducerStack(app, 'producer'); -const consumer = new ConsumerStack(app, 'consumer', { - stringListGetAtt: producer.stringListGetAtt, - stringListRef: producer.stringListRef, - manualStringList: producer.manualExport, -}); -// THEN -new integ_tests_alpha_1.IntegTest(app, 'cross-region-references', { - testCases: [producer, consumer], - stackUpdateWorkflow: false, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29yZS1jcm9zcy1zdGFjay1zdHJpbmctbGlzdC1yZWZlcmVuY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29yZS1jcm9zcy1zdGFjay1zdHJpbmctbGlzdC1yZWZlcmVuY2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDZDQUFtRTtBQUNuRSxrRUFBdUQ7QUFFdkQsaURBQWdHO0FBRWhHLFFBQVE7QUFDUixNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLENBQUM7SUFDbEIsWUFBWSxFQUFFLEtBQUs7Q0FD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HVjZXJTdGFjayhhcHAsICdwcm9kdWNlcicpO1xuY29uc3QgY29uc3VtZXIgPSBuZXcgQ29uc3VtZXJTdGFjayhhcHAsICdjb25zdW1lcicsIHtcbiAgc3RyaW5nTGlzdEdldEF0dDogcHJvZHVjZXIuc3RyaW5nTGlzdEdldEF0dCxcbiAgc3RyaW5nTGlzdFJlZjogcHJvZHVjZXIuc3RyaW5nTGlzdFJlZixcbiAgbWFudWFsU3RyaW5nTGlzdDogcHJvZHVjZXIubWFudWFsRXhwb3J0LFxufSk7XG5cbi8vIFRIRU5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY3Jvc3MtcmVnaW9uLXJlZmVyZW5jZXMnLCB7XG4gIHRlc3RDYXNlczogW3Byb2R1Y2VyLCBjb25zdW1lcl0sXG4gIHN0YWNrVXBkYXRlV29ya2Zsb3c6IGZhbHNlLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.js deleted file mode 100644 index 43e841e2ede22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.graviton3.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - const instance = new ec2.Instance(this, 'Instance', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.C7G, ec2.InstanceSize.LARGE), - machineImage: new ec2.AmazonLinuxImage({ - generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2, - cpuType: ec2.AmazonLinuxCpuType.ARM_64, - }), - detailedMonitoring: true, - }); - instance.addToRolePolicy(new aws_iam_1.PolicyStatement({ - actions: ['ssm:*'], - resources: ['*'], - })); - instance.connections.allowFromAnyIpv4(ec2.Port.icmpPing()); - instance.addUserData('yum install -y'); - } -} -new TestStack(app, 'TestStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3Jhdml0b24zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ3Jhdml0b24zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsZ0JBQWdCO0FBQ2hCLGlEQUFzRDtBQUN0RCxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXJDLE1BQU0sUUFBUSxHQUFHLElBQUksR0FBRyxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ2xELEdBQUc7WUFDSCxZQUFZLEVBQUUsR0FB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xuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ1Rlc3RTdGFjaycpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.js deleted file mode 100644 index 68dcc6d8a2d88..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.import-default-vpc.lit.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * pragma:enable-lookups -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -// we associate this stack with an explicit environment since this is required by the -// environmental context provider used in `fromLookup`. CDK_INTEG_XXX are set -// when producing the .expected file and CDK_DEFAULT_XXX is passed in through from -// the CLI in actual deployment. -const env = { - account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION || process.env.CDK_DEFAULT_REGION, -}; -const stack = new cdk.Stack(app, 'aws-cdk-ec2-import', { env }); -/// !show -const vpc = ec2.Vpc.fromLookup(stack, 'VPC', { - // This imports the default VPC but you can also - // specify a 'vpcName' or 'tags'. - isDefault: true, -}); -/// !hide -// The only thing in this library that takes a VPC as an argument :) -new ec2.SecurityGroup(stack, 'SecurityGroup', { - vpc, -}); -// Try subnet selection -new cdk.CfnOutput(stack, 'PublicSubnets', { value: 'ids:' + vpc.publicSubnets.map(s => s.subnetId).join(',') }); -new cdk.CfnOutput(stack, 'PrivateSubnets', { value: 'ids:' + vpc.privateSubnets.map(s => s.subnetId).join(',') }); -// Route table IDs -new cdk.CfnOutput(stack, 'PublicRouteTables', { value: 'ids: ' + vpc.publicSubnets.map(s => s.routeTable.routeTableId).join(', ') }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW1wb3J0LWRlZmF1bHQtdnBjLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmltcG9ydC1kZWZhdWx0LXZwYy5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzQ0FBc0M7QUFDdEMsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixxRkFBcUY7QUFDckYsNkVBQTZFO0FBQzdFLGtGQUFrRjtBQUNsRixnQ0FBZ0M7QUFDaEMsTUFBTSxHQUFHLEdBQUc7SUFDVixPQUFPLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLG1CQUFtQjtJQUN6RSxNQUFNLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLGtCQUFrQjtDQUN2RSxDQUFDO0FBRUYsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxvQkFBb0IsRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFFaEUsU0FBUztBQUNULE1BQU0sR0FBRyxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsVUFBVSxDQUFDLEtBQ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kZWZhdWx0IFZQQyBidXQgeW91IGNhbiBhbHNvXG4gIC8vIHNwZWNpZnkgYSAndnBjTmFtZScgb3IgJ3RhZ3MnLlxuICBpc0RlZmF1bHQ6IHRydWUsXG59KTtcbi8vLyAhaGlkZVxuXG4vLyBUaGUgb25seSB0aGluZyBpbiB0aGlzIGxpYnJhcnkgdGhhdCB0YWtlcyBhIFZQQyBhcyBhbiBhcmd1bWVudCA6KVxubmV3IGVjMi5TZWN1cml0eUdyb3VwKHN0YWNrLCAnU2VjdXJpdHlHcm91cCcsIHtcbiAgdnBjLFxufSk7XG5cbi8vIFRyeSBzdWJuZXQgc2VsZWN0aW9uXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1B1YmxpY1N1Ym5ldHMnLCB7IHZhbHVlOiAnaWRzOicgKyB2cGMucHVibGljU3VibmV0cy5tYXAocyA9PiBzLnN1Ym5ldElkKS5qb2luKCcsJykgfSk7XG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1ByaXZhdGVTdWJuZXRzJywgeyB2YWx1ZTogJ2lkczonICsgdnBjLnByaXZhdGVTdWJuZXRzLm1hcChzID0+IHMuc3VibmV0SWQpLmpvaW4oJywnKSB9KTtcblxuLy8gUm91dGUgdGFibGUgSURzXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1B1YmxpY1JvdXRlVGFibGVzJywgeyB2YWx1ZTogJ2lkczogJyArIHZwYy5wdWJsaWNTdWJuZXRzLm1hcChzID0+IHMucm91dGVUYWJsZS5yb3V0ZVRhYmxlSWQpLmpvaW4oJywgJykgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.js deleted file mode 100644 index 6cd8d5828752b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-init.js +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const fs = require("fs"); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-init'); -const vpc = new ec2.Vpc(stack, 'IntegInitVpc'); -const tmpDir = fs.mkdtempSync('/tmp/cfn-init-test'); -fs.writeFileSync(path.resolve(tmpDir, 'testFile'), 'Hello World!\n'); -new ec2.Instance(stack, 'Instance2', { - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.AmazonLinuxImage(), - userDataCausesReplacement: true, - initOptions: { - timeout: cdk.Duration.minutes(30), - }, - init: ec2.CloudFormationInit.fromConfigSets({ - configSets: { - default: ['yumPreinstall', 'config'], - }, - configs: { - yumPreinstall: new ec2.InitConfig([ - ec2.InitPackage.yum('git'), - ]), - config: new ec2.InitConfig([ - ec2.InitFile.fromObject('/tmp/file2.json', { - stackId: stack.stackId, - stackName: stack.stackName, - region: stack.region, - intProperty: 18, - boolProperty: true, - numProperty: 58.23, - }), - ec2.InitGroup.fromName('group1'), - ec2.InitGroup.fromName('group2', 42), - ec2.InitUser.fromName('sysuser1', { - groups: ['group1', 'group2'], - homeDir: '/home/sysuser1-custom', - }), - ec2.InitUser.fromName('sysuser2'), - ec2.InitSource.fromAsset('/tmp/sourceDir', tmpDir), - ]), - }, - }), -}); -app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DIpLFxuICAgICAgICBlYzIuSW5pdFVzZXIuZnJvbU5hbWUoJ3N5c3VzZXIxJywge1xuICAgICAgICAgIGdyb3VwczogWydncm91cDEnLCAnZ3JvdXAyJ10sXG4gICAgICAgICAgaG9tZURpcjogJy9ob21lL3N5c3VzZXIxLWN1c3RvbScsXG4gICAgICAgIH0pLFxuICAgICAgICBlYzIuSW5pdFVzZXIuZnJvbU5hbWUoJ3N5c3VzZXIyJyksXG4gICAgICAgIGVjMi5Jbml0U291cmNlLmZyb21Bc3NldCgnL3RtcC9zb3VyY2VEaXInLCB0bXBEaXIpLFxuICAgICAgXSksXG4gICAgfSxcbiAgfSksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.js deleted file mode 100644 index 2912a6dcdc417..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-multipart-userdata.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - // Here we test default separator as probably most useful - const multipartUserData = new ec2.MultipartUserData(); - const userData1 = ec2.UserData.forLinux(); - userData1.addCommands('echo 大らと > /var/tmp/echo1'); - userData1.addCommands('cp /var/tmp/echo1 /var/tmp/echo1-copy'); - const userData2 = ec2.UserData.forLinux(); - userData2.addCommands(`echo 大らと ${vpc.vpcId} > /var/tmp/echo2`); - const rawPart1 = ec2.MultipartBody.fromRawBody({ - contentType: 'text/x-shellscript', - body: 'echo "RawPart" > /var/tmp/rawPart1', - }); - const rawPart2 = ec2.MultipartBody.fromRawBody({ - contentType: 'text/x-shellscript', - body: `echo "RawPart ${vpc.vpcId}" > /var/tmp/rawPart2`, - }); - const bootHook = ec2.UserData.forLinux(); - bootHook.addCommands('echo "Boothook2" > /var/tmp/boothook', 'cloud-init-per once docker_options echo \'OPTIONS="${OPTIONS} --storage-opt dm.basesize=20G"\' >> /etc/sysconfig/docker'); - multipartUserData.addPart(ec2.MultipartBody.fromUserData(userData1)); - multipartUserData.addPart(ec2.MultipartBody.fromUserData(userData2)); - multipartUserData.addPart(ec2.MultipartBody.fromUserData(bootHook, 'text/cloud-boothook')); - const rawPart3 = ec2.MultipartBody.fromRawBody({ - contentType: 'text/x-shellscript', - body: 'cp $0 /var/tmp/upstart # Should be one line file no new line at the end and beginning', - }); - multipartUserData.addPart(rawPart1); - multipartUserData.addPart(rawPart2); - multipartUserData.addPart(rawPart3); - const instance = new ec2.Instance(this, 'Instance', { - vpc, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.NANO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), - userData: multipartUserData, - }); - instance.addToRolePolicy(new aws_iam_1.PolicyStatement({ - actions: ['ssm:*', 'ssmmessages:*', 'ec2messages:GetMessages'], - resources: ['*'], - })); - instance.connections.allowFromAnyIpv4(ec2.Port.icmpPing()); - } -} -new TestStack(app, 'TestStackMultipartUserData'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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XG59XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAnVGVzdFN0YWNrTXVsdGlwYXJ0VXNlckRhdGEnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.js deleted file mode 100644 index 2390deedfc688..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - const securityGroup = new ec2.SecurityGroup(this, 'IntegSg', { - vpc, - allowAllIpv6Outbound: true, - }); - const instance = new ec2.Instance(this, 'Instance', { - vpc, - securityGroup, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.NANO), - machineImage: new ec2.AmazonLinuxImage({ generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2 }), - detailedMonitoring: true, - }); - instance.addToRolePolicy(new aws_iam_1.PolicyStatement({ - actions: ['ssm:*'], - resources: ['*'], - })); - instance.connections.allowFromAnyIpv4(ec2.Port.icmpPing()); - instance.addUserData('yum install -y'); - } -} -const testCase = new TestStack(app, 'integ-ec2-instance'); -new integ_tests_alpha_1.IntegTest(app, 'instance-test', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5pbnN0YW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFzRDtBQUN0RCxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDNUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUNyQyxNQUFNLGFBQWEsR0FBRyxJQUFJLEdBQUcsQ0FBQyxhQUFhLENBQUMsSUFBSSxFQUFFLFNBQVMsRUFBRTtZQUMzRCxHQUFHO1lBQ0gsb0JBQW9CLEVBQUUsSUFBSTtTQUMzQixDQUFDLENBQUM7UUFFSCxNQUFNLFFBQVEsR0FBRyxJQUFJLEdBQUcsQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUNsRCxHQUFHO1lBQ0gsYUFBYTtZQUNiLFlBQVksRUFBRSxHQUFHLENBQUMsWUFBWSxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQztZQUM5R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XBQaW5nKCkpO1xuXG4gICAgaW5zdGFuY2UuYWRkVXNlckRhdGEoJ3l1bSBpbnN0YWxsIC15Jyk7XG4gIH1cbn1cblxuY29uc3QgdGVzdENhc2UgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ2ludGVnLWVjMi1pbnN0YW5jZScpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2luc3RhbmNlLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.js deleted file mode 100644 index d897e4c5195e7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.launch-template.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-lt-metadata-1'); -new ec2.LaunchTemplate(stack, 'LT', { - httpEndpoint: true, - httpProtocolIpv6: true, - httpPutResponseHopLimit: 2, - httpTokens: ec2.LaunchTemplateHttpTokens.REQUIRED, - instanceMetadataTags: true, -}); -new ec2.LaunchTemplate(stack, 'LTWithMachineImage', { - machineImage: ec2.MachineImage.latestAmazonLinux({ - generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2, - }), -}); -new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testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.js deleted file mode 100644 index 66d1499eb8e92..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.nat-instances.lit.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:enable-lookups -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -class NatInstanceStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - // Configure the `natGatewayProvider` when defining a Vpc - const natGatewayProvider = ec2.NatProvider.instance({ - instanceType: new ec2.InstanceType('t3.small'), - }); - const vpc = new ec2.Vpc(this, 'MyVpc', { - natGatewayProvider, - // The 'natGateways' parameter now controls the number of NAT instances - natGateways: 2, - }); - /// !hide - Array.isArray(vpc); - Array.isArray(natGatewayProvider.configuredGateways); - } -} -const app = new cdk.App(); -new NatInstanceStack(app, 'aws-cdk-vpc-nat-instances', { - env: { - account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION || process.env.CDK_DEFAULT_REGION, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmF0LWluc3RhbmNlcy5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uYXQtaW5zdGFuY2VzLmxpdC50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RlXG5cbiAgICBBcnJheS5pc0FycmF5KHZwYyk7XG4gICAgQXJyYXkuaXNBcnJheShuYXRHYXRld2F5UHJvdmlkZXIuY29uZmlndXJlZEdhdGV3YXlzKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IE5hdEluc3RhbmNlU3RhY2soYXBwLCAnYXdzLWNkay12cGMtbmF0LWluc3RhbmNlcycsIHtcbiAgZW52OiB7XG4gICAgYWNjb3VudDogcHJvY2Vzcy5lbnYuQ0RLX0lOVEVHX0FDQ09VTlQgfHwgcHJvY2Vzcy5lbnYuQ0RLX0RFRkFVTFRfQUNDT1VOVCxcbiAgICByZWdpb246IHByb2Nlc3MuZW52LkNES19JTlRFR19SRUdJT04gfHwgcHJvY2Vzcy5lbnYuQ0RLX0RFRkFVTFRfUkVHSU9OLFxuICB9LFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.js deleted file mode 100644 index 9e9a9ab6e926a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.ports.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - const sg = new ec2.SecurityGroup(this, 'SecGroup', { - vpc, - }); - sg.addIngressRule(ec2.Peer.anyIpv6(), ec2.Port.allIcmpV6(), 'allow ICMP6'); - } -} -new TestStack(app, 'TestStack'); -new integ_tests_alpha_1.IntegTest(app, 'Ports', { - testCases: [ - new TestStack(app, 'PortsTestStack', {}), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucG9ydHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wb3J0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXJDLE1BQU0sRUFBRSxHQUFHLElBQUksR0FBRyxDQUFDLGFBQWEsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ2pELEdBQUc7U0FDSixDQUFDLENBQUM7UUFDSCxFQUFFLENBQUMsY0FBYyxDQUNmLEdBQUcsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLEVBQ2xCLEdBQUcsQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLEVBQ3BCLGFBQWEsQ0FDZCxDQUFDO0lBQ0osQ0FBQzt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U3RhY2snKTtcblxubmV3IEludGVnVGVzdChhcHAsICdQb3J0cycsIHtcbiAgdGVzdENhc2VzOiBbXG4gICAgbmV3IFRlc3RTdGFjayhhcHAsICdQb3J0c1Rlc3RTdGFjaycsIHt9KSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.js deleted file mode 100644 index 9dafd915a5089..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.reserved-private-subnet.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -/* - * Creates a simple vpc with a public subnet and a private reserved subnet. - * Public subnet should be visible but a private reserved subnet only has IP space reserved. - * No resources are provisioned in a reserved subnet. - * - * Stack verification steps: - * -- aws ec2 describe-nat-gateways returns { "natGateways": []} - */ -const app = new cdk.App(); -class VpcReservedPrivateSubnetStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - // Specify no NAT gateways with a reserved private subnet - new ec2.Vpc(this, 'VPC', { - ipAddresses: ec2.IpAddresses.cidr('10.0.0.0/16'), - subnetConfiguration: [ - { - name: 'ingress', - subnetType: ec2.SubnetType.PUBLIC, - }, - { - name: 'private', - subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS, - reserved: true, - }, - ], - natGateways: 0, - }); - /// !hide - } -} -new VpcReservedPrivateSubnetStack(app, 'aws-cdk-ec2-vpc-endpoint'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVzZXJ2ZWQtcHJpdmF0ZS1zdWJuZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5yZXNlcnZlZC1wcml2YXRlLXN1Ym5ldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0M7Ozs7Ozs7R0FPRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sNkJBQThCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDbkQsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLEtBQXNCO1FBQzVELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLFNBQVM7UUFDVCx5REFBeUQ7UUFDekQsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUU7WUFDdkIsV0FBVyxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQztZQUNoRCxtQkFBbUIsRUFBRTtnQkFDbkI7b0JBQ0UsSUFBSSxFQUFFLFNBQVM7b0JBQ2YsVUFBVSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsTUFBTTtpQkFDbEM7Z0JBQ0Q7b0JBQ0UsSUFBSSxFQUFFLFNBQVM7b0JBQ2YsVUFBVSxFQUFFLEdBQUcsQ0FBQyxVQUFVLENBQUMsbUJBQW1CO29CQUM5QyxRQUFRLEVBQUUsSUFBSTtpQkFDZjthQUNGO1lBQ0QsV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vIE5BVCBnYXRld2F5cyB3aXRoIGEgcmVzZXJ2ZWQgcHJpdmF0ZSBzdWJuZXRcbiAgICBuZXcgZWMyLlZwYyh0aGlzLCAnVlBDJywge1xuICAgICAgaXBBZGRyZXNzZXM6IGVjMi5JcEFkZHJlc3Nlcy5jaWRyKCcxMC4wLjAuMC8xNicpLFxuICAgICAgc3VibmV0Q29uZmlndXJhdGlvbjogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2luZ3Jlc3MnLFxuICAgICAgICAgIHN1Ym5ldFR5cGU6IGVjMi5TdWJuZXRUeXBlLlBVQkxJQyxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdwcml2YXRlJyxcbiAgICAgICAgICBzdWJuZXRUeXBlOiBlYzIuU3VibmV0VHlwZS5QUklWQVRFX1dJVEhfRUdSRVNTLFxuICAgICAgICAgIHJlc2VydmVkOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICAgIG5hdEdhdGV3YXlzOiAwLFxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5uZXcgVnBjUmVzZXJ2ZWRQcml2YXRlU3VibmV0U3RhY2soYXBwLCAnYXdzLWNkay1lYzItdnBjLWVuZHBvaW50Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.js deleted file mode 100644 index 4b09ac78264b8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.share-vpcs.lit.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const cdk = require("aws-cdk-lib"); -const constructs_1 = require("constructs"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class ConstructThatTakesAVpc extends constructs_1.Construct { - constructor(scope, id, _props) { - super(scope, id); - // new ec2.CfnInstance(this, 'Instance', { - // subnetId: props.vpc.privateSubnets[0].subnetId, - // imageId: new ec2.AmazonLinuxImage().getImage(this).imageId, - // }); - } -} -/// !show -/** - * Stack1 creates the VPC - */ -class Stack1 extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.vpc = new ec2.Vpc(this, 'VPC'); - } -} -/** - * Stack2 consumes the VPC - */ -class Stack2 extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // Pass the VPC to a construct that needs it - new ConstructThatTakesAVpc(this, 'Construct', { - vpc: props.vpc, - }); - } -} -const stack1 = new Stack1(app, 'Stack1'); -const stack2 = new Stack2(app, 'Stack2', { - vpc: stack1.vpc, -}); -/// !hide -Array.isArray(stack2); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2hhcmUtdnBjcy5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zaGFyZS12cGNzLmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGdCQUFnQjtBQUNoQixtQ0FBbUM7QUFDbkMsMkNBQXVDO0FBQ3ZDLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQU0xQixNQUFNLHNCQUF1QixTQUFRLHNCQUFTO0lBQzVDLFlBQVksS0FBZ0IsRUFBRS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nBjO1xuXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQXBwLCBpZDogc3RyaW5nLCBwcm9wcz86IGNkay5TdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICB0aGlzLnZwYyA9IG5ldyBlYzIuVnBjKHRoaXMsICdWUEMnKTtcbiAgfVxufVxuXG5pbnRlcmZhY2UgU3RhY2syUHJvcHMgZXh0ZW5kcyBjZGsuU3RhY2tQcm9wcyB7XG4gIHZwYzogZWMyLklWcGM7XG59XG5cbi8qKlxuICogU3RhY2syIGNvbnN1bWVzIHRoZSBWUENcbiAqL1xuY2xhc3MgU3RhY2syIGV4dGVuZHMgY2RrLlN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IGNkay5BcHAsIGlkOiBzdHJpbmcsIHByb3BzOiBTdGFjazJQcm9wcykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCwgcHJvcHMpO1xuXG4gICAgLy8gUGFzcyB0aGUgVlBDIHRvIGEgY29uc3RydWN0IHRoYXQgbmVlZHMgaXRcbiAgICBuZXcgQ29uc3RydWN0VGhhdFRha2VzQVZwYyh0aGlzLCAnQ29uc3RydWN0Jywge1xuICAgICAgdnBjOiBwcm9wcy52cGMsXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3Qgc3RhY2sxID0gbmV3IFN0YWNrMShhcHAsICdTdGFjazEnKTtcbmNvbnN0IHN0YWNrMiA9IG5ldyBTdGFjazIoYXBwLCAnU3RhY2syJywge1xuICB2cGM6IHN0YWNrMS52cGMsXG59KTtcbi8vLyAhaGlkZVxuXG5BcnJheS5pc0FycmF5KHN0YWNrMik7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.js deleted file mode 100644 index 369e10552e8e0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.userdata.js +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-userdata'); -const vpc = new ec2.Vpc(stack, 'IntegUserdataVpc'); -new ec2.Instance(stack, 'WindowsInstance', { - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), - machineImage: new ec2.WindowsImage(ec2.WindowsVersion.WINDOWS_SERVER_2022_ENGLISH_FULL_BASE), - userData: ec2.UserData.forWindows({ persist: true }), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlcmRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy51c2VyZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztBQUVuRCxNQUFNLEdBQUcsR0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HZwYyxcbiAgdnBjU3VibmV0czogeyBzdWJuZXRUeXBlOiBlYzIuU3VibmV0VHlwZS5QVUJMSUMgfSxcbiAgaW5zdGFuY2VUeXBlOiBlYzIuSW5zdGFuY2VUeXBlLm9mKGVjMi5JbnN0YW5jZUNsYXNzLkJVUlNUQUJMRTIsIGVjMi5JbnN0YW5jZVNpemUuTUlDUk8pLFxuICBtYWNoaW5lSW1hZ2U6IG5ldyBlYzIuV2luZG93c0ltYWdlKGVjMi5XaW5kb3dzVmVyc2lvbi5XSU5ET1dTX1NFUlZFUl8yMDIyX0VOR0xJU0hfRlVMTF9CQVNFKSxcbiAgdXNlckRhdGE6IGVjMi5Vc2VyRGF0YS5mb3JXaW5kb3dzKHsgcGVyc2lzdDogdHJ1ZSB9KSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.js deleted file mode 100644 index 8ef2ee9e3af65..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.volume.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-volume-1'); -new ec2.Volume(stack, 'TestVolume', { - availabilityZone: 'us-east-1a', - size: cdk.Size.gibibytes(1), - volumeType: ec2.EbsDeviceVolumeType.GP3, - throughput: 200, -}); -new integ.IntegTest(app, 'VolumeTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudm9sdW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudm9sdW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCwyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxzQkFBc0IsQ0FBQyxDQUFDO0FBRXpELElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsWUFBWSxFQUFFO0lBQ2xDLGdCQUFnQixFQUFFLFlBQVk7SUFDOUIsSUFBSSxFQUFFLEdBQUcsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQztJQUMzQixVQUFVLEVBQUUsR0FBRyxDQUFDLG1CQUFtQixDQUFDLEdBQUc7SUFDdkMsVUFBVSxFQUFFLEdBQUc7Q0FDaEIsQ0FBQyxDQUFDO0FBRUgsSUFBSSxLQUFLLENBQUMsU0FBUyxDQUFDLEdBQUcsRUFBRSxZQUFZLEVBQUU7SUFDckMsU0FBUyxFQUFFLENBQUMsS0FBSyxDQUFDO0NBQ25CLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBpbnRlZyBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgKiBhcyBlYzIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWVjMic7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWVjMi12b2x1bWUtMScpO1xuXG5uZXcgZWMyLlZvbHVtZShzdGFjaywgJ1Rlc3RWb2x1bWUnLCB7XG4gIGF2YWlsYWJpbGl0eVpvbmU6ICd1cy1lYXN0LTFhJyxcbiAgc2l6ZTogY2RrLlNpemUuZ2liaWJ5dGVzKDEpLFxuICB2b2x1bWVUeXBlOiBlYzIuRWJzRGV2aWNlVm9sdW1lVHlwZS5HUDMsXG4gIHRocm91Z2hwdXQ6IDIwMCxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ1ZvbHVtZVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.js deleted file mode 100644 index 3b89113f37e3e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-azs.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc-azs'); -new ec2.Vpc(stack, 'MyVpc', { - availabilityZones: [stack.availabilityZones[1]], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWF6cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnZwYy1henMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUJBQXFCLENBQUMsQ0FBQztBQUV4RCxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTtJQUMxQixpQkFBaUIsRUFBRSxDQUFDLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztDQUNoRCxDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgZWMyIGZyb20gJ2F3cy1jZGstbGliL2F3cy1lYzInO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstZWMyLXZwYy1henMnKTtcblxubmV3IGVjMi5WcGMoc3RhY2ssICdNeVZwYycsIHtcbiAgYXZhaWxhYmlsaXR5Wm9uZXM6IFtzdGFjay5hdmFpbGFiaWxpdHlab25lc1sxXV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.js deleted file mode 100644 index 8025b71e3c875..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint.lit.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -class VpcEndpointStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - // Add gateway endpoints when creating the VPC - const vpc = new ec2.Vpc(this, 'MyVpc', { - gatewayEndpoints: { - S3: { - service: ec2.GatewayVpcEndpointAwsService.S3, - }, - }, - }); - // Alternatively gateway endpoints can be added on the VPC - const dynamoDbEndpoint = vpc.addGatewayEndpoint('DynamoDbEndpoint', { - service: ec2.GatewayVpcEndpointAwsService.DYNAMODB, - }); - // This allows to customize the endpoint policy - dynamoDbEndpoint.addToPolicy(new iam.PolicyStatement({ - principals: [new iam.AnyPrincipal()], - actions: ['dynamodb:DescribeTable', 'dynamodb:ListTables'], - resources: ['*'], - })); - // Add an interface endpoint - vpc.addInterfaceEndpoint('EcrDockerEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER, - // Uncomment the following to allow more fine-grained control over - // who can access the endpoint via the '.connections' object. - // open: false - }); - /// !hide - } -} -new VpcEndpointStack(app, 'aws-cdk-ec2-vpc-endpoint'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWVuZHBvaW50LmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnZwYy1lbmRwb2ludC5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLGdCQUFpQixTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQ3RDLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixTQUFTO1FBQ1QsOENBQThDO1FBQzlDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsT0FBTyxFQUFFO1lBQ3JDLGdCQUFnQixFQUFFO2dCQUNoQixFQUFFLEVBQUU7b0JBQ0YsT0FBTyxFQUFFLEdBQUcsQ0FBQyw0QkFBNEIsQ0FBQyxFQUFFO2lCQUM3QzthQUNGO1NBQ0YsQ0FBQyxDQUFDO1FBRUgsMERBQTBEO1FBQzFELE1BQU0sZ0JBQWdCLEdBQUcsR0FBRyxDQUFDLGtCQUFrQixDQUFDLGtCQUFrQixFQUFFO1lBQ2xFLE9BQU8sRUFBRSxHQUFHLENBQUMsNEJBQTRCLENBQUMsUUFBUTtTQUNuRCxDQUFDLENBQUM7UUFFSCwrQ0FBK0M7UUFDL0MsZ0JBQWdCLENBQUMsV0FBVyxDQUMxQixJQUF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U6IGVjMi5JbnRlcmZhY2VWcGNFbmRwb2ludEF3c1NlcnZpY2UuRUNSX0RPQ0tFUixcblxuICAgICAgLy8gVW5jb21tZW50IHRoZSBmb2xsb3dpbmcgdG8gYWxsb3cgbW9yZSBmaW5lLWdyYWluZWQgY29udHJvbCBvdmVyXG4gICAgICAvLyB3aG8gY2FuIGFjY2VzcyB0aGUgZW5kcG9pbnQgdmlhIHRoZSAnLmNvbm5lY3Rpb25zJyBvYmplY3QuXG4gICAgICAvLyBvcGVuOiBmYWxzZVxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbm5ldyBWcGNFbmRwb2ludFN0YWNrKGFwcCwgJ2F3cy1jZGstZWMyLXZwYy1lbmRwb2ludCcpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.js deleted file mode 100644 index 9c0d8bffda39b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-filter-subnets.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new aws_cdk_lib_1.App(); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc'); - // Test can filter by Subnet Ids via selectSubnets - const subnets = vpc.selectSubnets({ - subnetFilters: [ec2.SubnetFilter.byIds([vpc.privateSubnets[0].subnetId])], - }); - new aws_cdk_lib_1.CfnOutput(this, 'PrivateSubnet01', { - value: subnets.subnetIds[0], - }); - } -} -new integ_tests_alpha_1.IntegTest(app, 'VPCFilterSubnets', { - testCases: [new TestStack(app, 'VPCFilterSubnetsTestStack')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWZpbHRlci1zdWJuZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudnBjLWZpbHRlci1zdWJuZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQWdFO0FBQ2hFLGtFQUF1RDtBQUN2RCwyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFVLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQ3BELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFckMsa0RBQWtEO1FBQ2xELE1BQU0sT0FBTyxHQUFHLEdBQUcsQ0FBQyxhQUFhLENBQUM7WUFDaEMsYUFBYSxFQUFFLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM7U0FDMU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lYzIuU3VibmV0RmlsdGVyLmJ5SWRzKFt2cGMucHJpdmF0ZVN1Ym5ldHNbMF0uc3VibmV0SWRdKV0sXG4gICAgfSk7XG5cbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdQcml2YXRlU3VibmV0MDEnLCB7XG4gICAgICB2YWx1ZTogc3VibmV0cy5zdWJuZXRJZHNbMF0sXG4gICAgfSk7XG4gIH1cbn1cblxubmV3IEludGVnVGVzdChhcHAsICdWUENGaWx0ZXJTdWJuZXRzJywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgVGVzdFN0YWNrKGFwcCwgJ1ZQQ0ZpbHRlclN1Ym5ldHNUZXN0U3RhY2snKV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.js deleted file mode 100644 index dfce1f3d2da9c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-customformat.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const app = new aws_cdk_lib_1.App(); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'VPC'); - new aws_ec2_1.FlowLog(this, 'FlowLogsCW', { - resourceType: aws_ec2_1.FlowLogResourceType.fromVpc(vpc), - logFormat: [ - aws_ec2_1.LogFormat.SRC_PORT, - ], - }); - new aws_ec2_1.FlowLog(this, 'FlowLogsAllFormatCW', { - resourceType: aws_ec2_1.FlowLogResourceType.fromVpc(vpc), - logFormat: [ - aws_ec2_1.LogFormat.VERSION, - aws_ec2_1.LogFormat.ACCOUNT_ID, - aws_ec2_1.LogFormat.INTERFACE_ID, - aws_ec2_1.LogFormat.SRC_ADDR, - aws_ec2_1.LogFormat.DST_ADDR, - aws_ec2_1.LogFormat.SRC_PORT, - aws_ec2_1.LogFormat.DST_PORT, - aws_ec2_1.LogFormat.PROTOCOL, - aws_ec2_1.LogFormat.PACKETS, - aws_ec2_1.LogFormat.BYTES, - aws_ec2_1.LogFormat.START_TIMESTAMP, - aws_ec2_1.LogFormat.END_TIMESTAMP, - aws_ec2_1.LogFormat.ACTION, - aws_ec2_1.LogFormat.LOG_STATUS, - aws_ec2_1.LogFormat.VPC_ID, - aws_ec2_1.LogFormat.SUBNET_ID, - aws_ec2_1.LogFormat.INSTANCE_ID, - aws_ec2_1.LogFormat.TCP_FLAGS, - aws_ec2_1.LogFormat.TRAFFIC_TYPE, - aws_ec2_1.LogFormat.PKT_SRC_ADDR, - aws_ec2_1.LogFormat.PKT_DST_ADDR, - aws_ec2_1.LogFormat.REGION, - aws_ec2_1.LogFormat.AZ_ID, - aws_ec2_1.LogFormat.SUBLOCATION_TYPE, - aws_ec2_1.LogFormat.SUBLOCATION_ID, - aws_ec2_1.LogFormat.PKT_SRC_AWS_SERVICE, - aws_ec2_1.LogFormat.PKT_DST_AWS_SERVICE, - aws_ec2_1.LogFormat.FLOW_DIRECTION, - aws_ec2_1.LogFormat.TRAFFIC_PATH, - ], - }); - const bucket = new aws_s3_1.Bucket(this, 'Bucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - vpc.addFlowLog('FlowLogsS3', { - destination: aws_ec2_1.FlowLogDestination.toS3(bucket, 'prefix/'), - logFormat: [ - aws_ec2_1.LogFormat.DST_PORT, - aws_ec2_1.LogFormat.SRC_PORT, - ], - }); - } -} -new integ_tests_alpha_1.IntegTest(app, 'FlowLogs', { - testCases: [ - new TestStack(app, 'FlowLogsTestStack'), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWZsb3ctbG9ncy1jdXN0b21mb3JtYXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52cGMtZmxvdy1sb2dzLWN1c3RvbWZvcm1hdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtDQUE0QztBQUM1Qyw2Q0FBb0U7QUFDcEUsa0VBQXVEO0FBQ3ZELGlEQUF1RztBQUV2RyxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUd0QixNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQVUsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDcEQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxhQUFHLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRWpDLElBQUksaUJBQU8sQ0FBQyxJQUFJLEVBQUUsWUFBWSxFQUFFO1lBQzlCLFlBQVksRUFBRSw2QkFBbUIsQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDO1lBQzlDLFNBQVMsRUFBRTtnQkFDVCxtQkFBUyxDQUFDLFFBQVE7YUFDbkI7U0FDRixDQUFDLENBQUM7UUFDSC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Rlc3RpbmF0aW9uLnRvUzMoYnVja2V0LCAncHJlZml4LycpLFxuICAgICAgbG9nRm9ybWF0OiBbXG4gICAgICAgIExvZ0Zvcm1hdC5EU1RfUE9SVCxcbiAgICAgICAgTG9nRm9ybWF0LlNSQ19QT1JULFxuICAgICAgXSxcbiAgICB9KTtcblxuICB9XG59XG5cblxubmV3IEludGVnVGVzdChhcHAsICdGbG93TG9ncycsIHtcbiAgdGVzdENhc2VzOiBbXG4gICAgbmV3IFRlc3RTdGFjayhhcHAsICdGbG93TG9nc1Rlc3RTdGFjaycpLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.js deleted file mode 100644 index de3e2e72782ce..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs-interval.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const app = new aws_cdk_lib_1.App(); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'VPC'); - new aws_ec2_1.FlowLog(this, 'FlowLogsCW', { - resourceType: aws_ec2_1.FlowLogResourceType.fromVpc(vpc), - maxAggregationInterval: aws_ec2_1.FlowLogMaxAggregationInterval.TEN_MINUTES, - }); - vpc.addFlowLog('FlowLogsS3', { - destination: aws_ec2_1.FlowLogDestination.toS3(), - maxAggregationInterval: aws_ec2_1.FlowLogMaxAggregationInterval.ONE_MINUTE, - }); - const bucket = new s3.Bucket(this, 'Bucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - bucket.addToResourcePolicy(new aws_iam_1.PolicyStatement({ - effect: aws_iam_1.Effect.ALLOW, - principals: [new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com')], - actions: ['s3:PutObject'], - resources: [bucket.arnForObjects(`AWSLogs/${this.account}/*`)], - conditions: { - StringEquals: { - 's3:x-amz-acl': 'bucket-owner-full-control', - 'aws:SourceAccount': this.account, - }, - ArnLike: { - 'aws:SourceArn': this.formatArn({ - service: 'logs', - resource: '*', - }), - }, - }, - })); - bucket.addToResourcePolicy(new aws_iam_1.PolicyStatement({ - effect: aws_iam_1.Effect.ALLOW, - principals: [new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com')], - actions: ['s3:GetBucketAcl', 's3:ListBucket'], - resources: [bucket.bucketArn], - conditions: { - StringEquals: { - 'aws:SourceAccount': this.account, - }, - ArnLike: { - 'aws:SourceArn': this.formatArn({ - service: 'logs', - resource: '*', - }), - }, - }, - })); - vpc.addFlowLog('FlowLogsS3KeyPrefix', { - destination: aws_ec2_1.FlowLogDestination.toS3(bucket, 'prefix/'), - }); - } -} -new integ_tests_alpha_1.IntegTest(app, 'FlowLogs', { - testCases: [ - new TestStack(app, 'FlowLogsTestStack'), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWZsb3ctbG9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25hd3MuY29tJyldLFxuICAgICAgYWN0aW9uczogWydzMzpQdXRPYmplY3QnXSxcbiAgICAgIHJlc291cmNlczogW2J1Y2tldC5hcm5Gb3JPYmplY3RzKGBBV1NMb2dzLyR7dGhpcy5hY2NvdW50fS8qYCldLFxuICAgICAgY29uZGl0aW9uczoge1xuICAgICAgICBTdHJpbmdFcXVhbHM6IHtcbiAgICAgICAgICAnczM6eC1hbXotYWNsJzogJ2J1Y2tldC1vd25lci1mdWxsLWNvbnRyb2wnLFxuICAgICAgICAgICdhd3M6U291cmNlQWNjb3VudCc6IHRoaXMuYWNjb3VudCxcbiAgICAgICAgfSxcbiAgICAgICAgQXJuTGlrZToge1xuICAgICAgICAgICdhd3M6U291cmNlQXJuJzogdGhpcy5mb3JtYXRBcm4oe1xuICAgICAgICAgICAgc2VydmljZTogJ2xvZ3MnLFxuICAgICAgICAgICAgcmVzb3VyY2U6ICcqJyxcbiAgICAgICAgICB9KSxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfSkpO1xuICAgIGJ1Y2tldC5hZGRUb1Jlc291cmNlUG9saWN5KG5ldyBQb2xpY3lTdGF0ZW1lbnQoe1xuICAgICAgZWZmZWN0OiBFZmZlY3QuQUxMT1csXG4gICAgICBwcmluY2lwYWxzOiBbbmV3IFNlcnZpY2VQcmluY2lwYWwoJ2RlbGl2ZXJ5LmxvZ3MuYW1hem9uYXdzLmNvbScpXSxcbiAgICAgIGFjdGlvbnM6IFsnczM6R2V0QnVja2V0QWNsJywgJ3MzOkxpc3RCdWNrZXQnXSxcbiAgICAgIHJlc291cmNlczogW2J1Y2tldC5idWNrZXRBcm5dLFxuICAgICAgY29uZGl0aW9uczoge1xuICAgICAgICBTdHJpbmdFcXVhbHM6IHtcbiAgICAgICAgICAnYXdzOlNvdXJjZUFjY291bnQnOiB0aGlzLmFjY291bnQsXG4gICAgICAgIH0sXG4gICAgICAgIEFybkxpa2U6IHtcbiAgICAgICAgICAnYXdzOlNvdXJjZUFybic6IHRoaXMuZm9ybWF0QXJuKHtcbiAgICAgICAgICAgIHNlcnZpY2U6ICdsb2dzJyxcbiAgICAgICAgICAgIHJlc291cmNlOiAnKicsXG4gICAgICAgICAgfSksXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH0pKTtcblxuICAgIHZwYy5hZGRGbG93TG9nKCdGbG93TG9nc1MzS2V5UHJlZml4Jywge1xuICAgICAgZGVzdGluYXRpb246IEZsb3dMb2dEZXN0aW5hdGlvbi50b1MzKGJ1Y2tldCwgJ3ByZWZpeC8nKSxcbiAgICB9KTtcbiAgfVxufVxuXG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnRmxvd0xvZ3MnLCB7XG4gIHRlc3RDYXNlczogW1xuICAgIG5ldyBUZXN0U3RhY2soYXBwLCAnRmxvd0xvZ3NUZXN0U3RhY2snKSxcbiAgXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.js deleted file mode 100644 index 00d3cd263328f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-flow-logs.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const app = new aws_cdk_lib_1.App(); -class FeatureFlagStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'VPC', { natGateways: 1 }); - const flowLog = vpc.addFlowLog('FlowLogsS3', { - destination: aws_ec2_1.FlowLogDestination.toS3(), - }); - this.bucket = flowLog.bucket; - this.bucketArn = this.exportValue(flowLog.bucket.bucketArn); - vpc.addFlowLog('FlowLogsS3WithDestinationOptions', { - destination: aws_ec2_1.FlowLogDestination.toS3(undefined, undefined, { - hiveCompatiblePartitions: true, - }), - }); - new aws_ec2_1.Instance(this, 'FlowLogsInstance', { - vpc, - instanceType: aws_ec2_1.InstanceType.of(aws_ec2_1.InstanceClass.T3, aws_ec2_1.InstanceSize.SMALL), - machineImage: aws_ec2_1.MachineImage.latestAmazonLinux({ - generation: aws_ec2_1.AmazonLinuxGeneration.AMAZON_LINUX_2, - }), - }); - } -} -class DependencyTestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'VPC', { natGateways: 1 }); - const bucket = new s3.Bucket(this, 'Bucket', { - autoDeleteObjects: true, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - vpc.addFlowLog('FlowLogS3', { - destination: aws_ec2_1.FlowLogDestination.toS3(bucket, 'vpcFlowLog'), - }); - } -} -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'VPC', { natGateways: 1 }); - new aws_ec2_1.FlowLog(this, 'FlowLogsCW', { - resourceType: aws_ec2_1.FlowLogResourceType.fromVpc(vpc), - }); - vpc.addFlowLog('FlowLogsS3', { - destination: aws_ec2_1.FlowLogDestination.toS3(), - }); - const bucket = new s3.Bucket(this, 'Bucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - bucket.addToResourcePolicy(new aws_iam_1.PolicyStatement({ - effect: aws_iam_1.Effect.ALLOW, - principals: [new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com')], - actions: ['s3:PutObject'], - resources: [bucket.arnForObjects(`AWSLogs/${this.account}/*`)], - conditions: { - StringEquals: { - 's3:x-amz-acl': 'bucket-owner-full-control', - 'aws:SourceAccount': this.account, - }, - ArnLike: { - 'aws:SourceArn': this.formatArn({ - service: 'logs', - resource: '*', - }), - }, - }, - })); - bucket.addToResourcePolicy(new aws_iam_1.PolicyStatement({ - effect: aws_iam_1.Effect.ALLOW, - principals: [new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com')], - actions: ['s3:GetBucketAcl', 's3:ListBucket'], - resources: [bucket.bucketArn], - conditions: { - StringEquals: { - 'aws:SourceAccount': this.account, - }, - ArnLike: { - 'aws:SourceArn': this.formatArn({ - service: 'logs', - resource: '*', - }), - }, - }, - })); - vpc.addFlowLog('FlowLogsS3KeyPrefix', { - destination: aws_ec2_1.FlowLogDestination.toS3(bucket, 'prefix/'), - }); - } -} -const featureFlagTest = new FeatureFlagStack(app, 'FlowLogsFeatureFlag'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'FlowLogs', { - testCases: [ - new TestStack(app, 'FlowLogsTestStack'), - featureFlagTest, - new DependencyTestStack(app, 'DependencyTestStack'), - ], -}); -const objects = integ.assertions.awsApiCall('S3', 'listObjectsV2', { - Bucket: featureFlagTest.bucket.bucketName, - MaxKeys: 1, - Prefix: `AWSLogs/${featureFlagTest.account}/vpcflowlogs`, -}); -const assertionProvider = objects.node.tryFindChild('SdkProvider'); -assertionProvider.addPolicyStatementFromSdkCall('s3', 'ListBucket', [featureFlagTest.bucketArn]); -assertionProvider.addPolicyStatementFromSdkCall('s3', 'GetObject', [`${featureFlagTest.bucketArn}/*`]); -objects.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - KeyCount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6IDEsXG4gIFByZWZpeDogYEFXU0xvZ3MvJHtmZWF0dXJlRmxhZ1Rlc3QuYWNjb3VudH0vdnBjZmxvd2xvZ3NgLFxufSk7XG5jb25zdCBhc3NlcnRpb25Qcm92aWRlciA9IG9iamVjdHMubm9kZS50cnlGaW5kQ2hpbGQoJ1Nka1Byb3ZpZGVyJykgYXMgQXNzZXJ0aW9uc1Byb3ZpZGVyO1xuYXNzZXJ0aW9uUHJvdmlkZXIuYWRkUG9saWN5U3RhdGVtZW50RnJvbVNka0NhbGwoJ3MzJywgJ0xpc3RCdWNrZXQnLCBbZmVhdHVyZUZsYWdUZXN0LmJ1Y2tldEFybl0pO1xuYXNzZXJ0aW9uUHJvdmlkZXIuYWRkUG9saWN5U3RhdGVtZW50RnJvbVNka0NhbGwoJ3MzJywgJ0dldE9iamVjdCcsIFtgJHtmZWF0dXJlRmxhZ1Rlc3QuYnVja2V0QXJufS8qYF0pO1xuXG5vYmplY3RzLmV4cGVjdChFeHBlY3RlZFJlc3VsdC5vYmplY3RMaWtlKHtcbiAgS2V5Q291bnQ6IDEsXG59KSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.js deleted file mode 100644 index e0d106268c161..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-gateway.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc-gateway'); -const vpc = new ec2.Vpc(stack, 'MyVpc', { - maxAzs: 1, - subnetConfiguration: [ - { - subnetType: ec2.SubnetType.PUBLIC, - name: 'Public', - }, - { - subnetType: ec2.SubnetType.PRIVATE_ISOLATED, - name: 'Isolated', - }, - ], -}); -vpc.isolatedSubnets[0].addRoute('MyRoute', { - routerId: vpc.internetGatewayId, - routerType: ec2.RouterType.GATEWAY, - destinationCidrBlock: '8.8.8.8/32', -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWdhdGV3YXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52cGMtZ2F0ZXdheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSx5QkFBeUIsQ0FBQyxDQUFDO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsT0FBTyxFQUFFO0lBQ3RDLE1BQU0sRUFBRSxDQUFDO0lBQ1QsbUJBQW1CLEVBQUU7UUFDbkI7WUFDRSxVQUFVLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxNQUFNO1lBQ2pDLElBQUksRUFBRSxRQUFRO1NBQ2Y7UUFDRDtZQUNFLFVBQVUsRUFBRSxHQUFHLENBQUMsVUFBVSxDQUFDLGdCQUFnQjtZQUMzQyxJQUFJLEVBQUUs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3V0ZXJUeXBlOiBlYzIuUm91dGVyVHlwZS5HQVRFV0FZLFxuICBkZXN0aW5hdGlvbkNpZHJCbG9jazogJzguOC44LjgvMzInLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.js deleted file mode 100644 index 3c349faf557bb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-ipam.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-ipam-vpc'); -/** - * ### MANUAL CLEAN UP REQUIRED ### - * - * When IPAM is created running this integ-test it is not currently removed after the test run is complete. - * - */ -const ipam = new aws_ec2_1.CfnIPAM(stack, 'IPAM', { - operatingRegions: [ - { regionName: stack.region }, - ], - tags: [{ - key: 'stack', - value: stack.stackId, - }], -}); -ipam.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN); -const pool = new aws_ec2_1.CfnIPAMPool(stack, 'Pool', { - description: 'Testing pool', - addressFamily: 'ipv4', - autoImport: false, - locale: stack.region, - ipamScopeId: ipam.attrPrivateDefaultScopeId, - provisionedCidrs: [{ - cidr: '100.100.0.0/16', - }], -}); -pool.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN); -const awsIpamVpc = new aws_ec2_1.Vpc(stack, 'AwsIpamVpc', { - ipAddresses: aws_ec2_1.IpAddresses.awsIpamAllocation({ - ipv4IpamPoolId: pool.ref, - ipv4NetmaskLength: 18, - defaultSubnetIpv4NetmaskLength: 24, - }), - maxAzs: 2, - subnetConfiguration: [{ - name: 'private', - subnetType: aws_ec2_1.SubnetType.PRIVATE_ISOLATED, - cidrMask: 24, - }], -}); -// needs AwsApiCall Support for installLatestAwsSdk first, or another way to clean the Ipam -// new AwsApiCall(stack, 'cleanUpIpam', { -// service: 'EC2', -// api: 'deleteIpam', -// installLatestAwsSdk: true, -// parameters: { -// IpamId: ipam.attrIpamId, -// Cascade: true, -// }, -// }); -/** - * Testing That the Vpc is Deployed with the correct Cidrs. -**/ -const integ = new integ_tests_alpha_1.IntegTest(app, 'Vpc-Ipam', { - testCases: [stack], - allowDestroy: ['EC2::IPAM'], -}); -integ.assertions.awsApiCall('EC2', 'describeVpcs', { - VpcIds: [awsIpamVpc.node.defaultChild.getAtt('VpcId').toString()], -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Vpcs: [ - { - CidrBlock: '100.100.0.0/18', - }, - ], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWlwYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52cGMtaXBhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUU7QUFDdkUsaURBQWlHO0FBRWpHLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQ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IHRydWUsXG4vLyAgIH0sXG4vLyB9KTtcblxuLyoqXG4gKiBUZXN0aW5nIFRoYXQgdGhlIFZwYyBpcyBEZXBsb3llZCB3aXRoIHRoZSBjb3JyZWN0IENpZHJzLlxuKiovXG5jb25zdCBpbnRlZyA9IG5ldyBJbnRlZ1Rlc3QoYXBwLCAnVnBjLUlwYW0nLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgYWxsb3dEZXN0cm95OiBbJ0VDMjo6SVBBTSddLFxufSk7XG5cbmludGVnLmFzc2VydGlvbnMuYXdzQXBpQ2FsbCgnRUMyJywgJ2Rlc2NyaWJlVnBjcycsIHtcbiAgVnBjSWRzOiBbKGF3c0lwYW1WcGMubm9kZS5kZWZhdWx0Q2hpbGQgYXMgQ2ZuVlBDKS5nZXRBdHQoJ1ZwY0lkJykudG9TdHJpbmcoKV0sXG59KS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIFZwY3M6IFtcbiAgICB7XG4gICAgICBDaWRyQmxvY2s6ICcxMDAuMTAwLjAuMC8xOCcsXG4gICAgfSxcbiAgXSxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG5cblxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.js deleted file mode 100644 index 290fc63f2abd4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-lookup.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const appWithVpc = new cdk.App(); -const stack = new cdk.Stack(appWithVpc, 'StackWithVpc', { - env: { - region: 'eu-west-1', - account: '123456', - }, -}); -const testVpc = new ec2.Vpc(stack, 'MyVpc', { - vpcName: 'my-vpc-name', -}); -const appUnderTest = new cdk.App(); -const stackLookup = new cdk.Stack(appUnderTest, 'StackUnderTest', { - env: { - region: 'us-east-2', - account: '123456', - }, -}); -const vpcFromVpcAttributes = ec2.Vpc.fromVpcAttributes(stackLookup, 'VpcFromVpcAttributes', { - region: 'eu-west-1', - availabilityZones: ['eu-west-1a'], - vpcId: testVpc.vpcId, -}); -const vpcFromLookup = ec2.Vpc.fromLookup(stack, 'VpcFromLookup', { - region: 'eu-west-1', - vpcName: 'my-vpc-name', -}); -new cdk.CfnOutput(stackLookup, 'OutputFromVpcAttributes', { - value: `Region fromVpcAttributes: ${vpcFromVpcAttributes.env.region}`, -}); -new cdk.CfnOutput(stackLookup, 'OutputFromLookup', { - value: `Region fromLookup: ${vpcFromLookup.env.region}`, -}); -new integ_tests_alpha_1.IntegTest(appUnderTest, 'ArchiveTest', { - testCases: [stackLookup], -}); -appWithVpc.synth(); -appUnderTest.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWxvb2t1cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnZwYy1sb29rdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELDJDQUEyQztBQUUzQyxNQUFNLFVBQVUsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUNqQyxNQUF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0aFZwYy5zeW50aCgpO1xuYXBwVW5kZXJUZXN0LnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.js deleted file mode 100644 index 9c06cbb44f1fa..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-networkacl.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc'); -const vpc = new ec2.Vpc(stack, 'MyVpc'); -// Test NetworkAcl and rules -const nacl1 = new ec2.NetworkAcl(stack, 'myNACL1', { - vpc, - subnetSelection: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, -}); -nacl1.addEntry('AllowDNSEgress', { - ruleNumber: 100, - traffic: ec2.AclTraffic.udpPort(53), - cidr: ec2.AclCidr.ipv4('172.16.0.0/24'), - direction: ec2.TrafficDirection.EGRESS, -}); -nacl1.addEntry('AllowDNSIngress', { - ruleNumber: 100, - traffic: ec2.AclTraffic.udpPort(53), - direction: ec2.TrafficDirection.INGRESS, - cidr: ec2.AclCidr.anyIpv4(), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLW5ldHdvcmthY2wuanMiLCJzb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iAgcnVsZU51bWJlcjogMTAwLFxuICB0cmFmZmljOiBlYzIuQWNsVHJhZmZpYy51ZHBQb3J0KDUzKSxcbiAgZGlyZWN0aW9uOiBlYzIuVHJhZmZpY0RpcmVjdGlvbi5JTkdSRVNTLFxuICBjaWRyOiBlYzIuQWNsQ2lkci5hbnlJcHY0KCksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.js deleted file mode 100644 index 36c8d611d69bc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-reserved-azs.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integtest-vpc-reserved-azs'); -new ec2.Vpc(stack, 'MyVpc', { - reservedAzs: 2, - maxAzs: 3, -}); -new integ_tests_alpha_1.IntegTest(app, 'vpc-reserved-azs', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLXJlc2VydmVkLWF6cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnZwYy1yZXNl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Q== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.js deleted file mode 100644 index 6458fb5815655..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpc'); -const vpc = new ec2.Vpc(stack, 'MyVpc'); -// Test Security Group Rules -const sg = new ec2.SecurityGroup(stack, 'SG', { vpc }); -const rules = [ - ec2.Port.icmpPing(), - ec2.Port.icmpType(128), - ec2.Port.allIcmp(), - ec2.Port.allUdp(), - ec2.Port.udp(123), - ec2.Port.udpRange(800, 801), -]; -for (const rule of rules) { - sg.addIngressRule(ec2.Peer.anyIpv4(), rule); -} -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudnBjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ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Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstZWMyLXZwYycpO1xuXG5jb25zdCB2cGMgPSBuZXcgZWMyLlZwYyhzdGFjaywgJ015VnBjJyk7XG5cbi8vIFRlc3QgU2VjdXJpdHkgR3JvdXAgUnVsZXNcbmNvbnN0IHNnID0gbmV3IGVjMi5TZWN1cml0eUdyb3VwKHN0YWNrLCAnU0cnLCB7IHZwYyB9KTtcblxuY29uc3QgcnVsZXMgPSBbXG4gIGVjMi5Qb3J0LmljbXBQaW5nKCksXG4gIGVjMi5Qb3J0LmljbXBUeXBlKDEyOCksXG4gIGVjMi5Qb3J0LmFsbEljbXAoKSxcbiAgZWMyLlBvcnQuYWxsVWRwKCksXG4gIGVjMi5Qb3J0LnVkcCgxMjMpLFxuICBlYzIuUG9ydC51ZHBSYW5nZSg4MDAsIDgwMSksXG5dO1xuXG5mb3IgKGNvbnN0IHJ1bGUgb2YgcnVsZXMpIHtcbiAgc2cuYWRkSW5ncmVzc1J1bGUoZWMyLlBlZXIuYW55SXB2NCgpLCBydWxlKTtcbn1cblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.js deleted file mode 100644 index 36191fd5ff860..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn-pre-shared-key-token.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpn'); -const vpc = new ec2.Vpc(stack, 'MyVpc', { - ipAddresses: ec2.IpAddresses.cidr('10.10.0.0/16'), - vpnConnections: { - Dynamic: { - ip: '52.85.255.164', - tunnelOptions: [ - { - preSharedKeySecret: cdk.SecretValue.unsafePlainText('ssmpwaaa'), - }, - ], - }, - }, -}); -vpc.addVpnConnection('Static', { - ip: '52.85.255.197', - staticRoutes: [ - '192.168.10.0/24', - '192.168.20.0/24', - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBuLXByZS1zaGFyZWQta2V5LXRva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudnBuLXByZS1zaGFyZWQta2V5LXRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGlCQUFpQixDQUFDLENBQUM7QUFFcEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxPQUFPLEVBQUU7SUFDdEMsV0FBVyxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQztJQUNqRCxjQUFjLEVBQUU7UUFDZCxPQUFPLEVBQUU7WUFDUCxFQUFFLEVBQUUsZUFBZTtZQUNuQixhQUFhLEVBQUU7Z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N0YXRpYycsIHsgLy8gU3RhdGljIHJvdXRpbmdcbiAgaXA6ICc1Mi44NS4yNTUuMTk3JyxcbiAgc3RhdGljUm91dGVzOiBbXG4gICAgJzE5Mi4xNjguMTAuMC8yNCcsXG4gICAgJzE5Mi4xNjguMjAuMC8yNCcsXG4gIF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.js deleted file mode 100644 index ce2c6bf485420..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpn.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ec2-vpn'); -const vpc = new ec2.Vpc(stack, 'MyVpc', { - cidr: '10.10.0.0/16', - vpnConnections: { - Dynamic: { - ip: '52.85.255.164', - tunnelOptions: [ - { - preSharedKey: 'secretkey1234', - }, - ], - }, - }, -}); -vpc.addVpnConnection('Static', { - ip: '52.85.255.197', - staticRoutes: [ - '192.168.10.0/24', - '192.168.20.0/24', - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcudnBuLnRzIl0sIm5hbWV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wLjAvMTYnLFxuICB2cG5Db25uZWN0aW9uczoge1xuICAgIER5bmFtaWM6IHsgLy8gRHluYW1pYyByb3V0aW5nXG4gICAgICBpcDogJzUyLjg1LjI1NS4xNjQnLFxuICAgICAgdHVubmVsT3B0aW9uczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJlU2hhcmVkS2V5OiAnc2VjcmV0a2V5MTIzNCcsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0sXG4gIH0sXG59KTtcblxudnBjLmFkZFZwbkNvbm5lY3Rpb24oJ1N0YXRpYycsIHsgLy8gU3RhdGljIHJvdXRpbmdcbiAgaXA6ICc1Mi44NS4yNTUuMTk3JyxcbiAgc3RhdGljUm91dGVzOiBbXG4gICAgJzE5Mi4xNjguMTAuMC8yNCcsXG4gICAgJzE5Mi4xNjguMjAuMC8yNCcsXG4gIF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.js deleted file mode 100644 index 71a1a29a47323..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-docker.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-ecr-assets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-assets-docker'); -const asset = new assets.DockerImageAsset(stack, 'DockerImage', { - directory: path.join(__dirname, 'demo-image'), -}); -const asset2 = new assets.DockerImageAsset(stack, 'DockerImage2', { - directory: path.join(__dirname, 'demo-image'), -}); -const asset3 = new assets.DockerImageAsset(stack, 'DockerImage3', { - directory: path.join(__dirname, 'demo-image'), - platform: assets.Platform.LINUX_ARM64, -}); -const asset4 = new assets.DockerImageAsset(stack, 'DockerImage4', { - directory: path.join(__dirname, 'demo-image'), - outputs: ['type=docker'], -}); -const asset5 = new assets.DockerImageAsset(stack, 'DockerImage5', { - directory: path.join(__dirname, 'demo-image-secret'), - buildSecrets: { - mysecret: cdk.DockerBuildSecret.fromSrc('index.py'), - }, -}); -const asset6 = new assets.DockerImageAsset(stack, 'DockerImage6', { - directory: path.join(__dirname, 'demo-image'), - cacheTo: { type: 'inline' }, -}); -const user = new iam.User(stack, 'MyUser'); -asset.repository.grantPull(user); -asset2.repository.grantPull(user); -asset3.repository.grantPull(user); -asset4.repository.grantPull(user); -asset5.repository.grantPull(user); -asset6.repository.grantPull(user); -new cdk.CfnOutput(stack, 'ImageUri', { value: asset.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri2', { value: asset2.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri3', { value: asset3.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri4', { value: asset4.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri5', { value: asset5.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri6', { value: asset6.imageUri }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLWRvY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFzc2V0cy1kb2NrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLG1DQ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WNrLCAnSW1hZ2VVcmk1JywgeyB2YWx1ZTogYXNzZXQ1LmltYWdlVXJpIH0pO1xubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdJbWFnZVVyaTYnLCB7IHZhbHVlOiBhc3NldDYuaW1hZ2VVcmkgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.js deleted file mode 100644 index 476ba9d366bb6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.assets-tarball.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const assets = require("aws-cdk-lib/aws-ecr-assets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-assets-tarball'); -const asset = new assets.TarballImageAsset(stack, 'DockerImage', { - tarballFile: path.join(__dirname, 'demo-tarball-hello-world/hello-world.tar'), -}); -const asset2 = new assets.TarballImageAsset(stack, 'DockerImage2', { - tarballFile: path.join(__dirname, 'demo-tarball-hello-world/hello-world.tar'), -}); -const user = new iam.User(stack, 'MyUser'); -asset.repository.grantPull(user); -asset2.repository.grantPull(user); -new cdk.CfnOutput(stack, 'ImageUri', { value: asset.imageUri }); -new cdk.CfnOutput(stack, 'ImageUri2', { value: asset2.imageUri }); -new integ_tests_alpha_1.IntegTest(app, 'LoadFromTarball', { - testCases: [ - stack, - ], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLXRhcmJhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hc3NldHMtdGFyYmFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCxxREFBcUQ7QUFFckQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxzQkFBc0IsQ0FBQyxDQUFDO0FBRXpELE1BQU0sS0FBSyxHQUFHLElBQUksTUFBTSxDQUFDLGlCQUFpQixDQUFDLEtBQUssRUFBRSxhQUFhLEVBQUU7SUFDL0QsV0FBVyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLDBDQUEwQyxDQUFDO0NBQzlFLENBQUMsQ0FBQztBQUVILE1BQU0sTUFBTSxHQUFHLElBQUksTUFBTSxDQUFDLGlCQUFpQixDQUFDLEtBQUssRUFBRSxjQUFjLEVBQUU7SUFDakUsV0FBVyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLDBDQUEwQyxDQUFDO0NBQzlFLENBQUMsQ0FBQztBQUVILE1BQU0sSUFBSSxHQUFHLElBQUksR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsUUFBUSxDQUFDLENBQUM7QUFDM0MsS0FBSyxDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM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dvcmxkL2hlbGxvLXdvcmxkLnRhcicpLFxufSk7XG5cbmNvbnN0IGFzc2V0MiA9IG5ldyBhc3NldHMuVGFyYmFsbEltYWdlQXNzZXQoc3RhY2ssICdEb2NrZXJJbWFnZTInLCB7XG4gIHRhcmJhbGxGaWxlOiBwYXRoLmpvaW4oX19kaXJuYW1lLCAnZGVtby10YXJiYWxsLWhlbGxvLXdvcmxkL2hlbGxvLXdvcmxkLnRhcicpLFxufSk7XG5cbmNvbnN0IHVzZXIgPSBuZXcgaWFtLlVzZXIoc3RhY2ssICdNeVVzZXInKTtcbmFzc2V0LnJlcG9zaXRvcnkuZ3JhbnRQdWxsKHVzZXIpO1xuYXNzZXQyLnJlcG9zaXRvcnkuZ3JhbnRQdWxsKHVzZXIpO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0ltYWdlVXJpJywgeyB2YWx1ZTogYXNzZXQuaW1hZ2VVcmkgfSk7XG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0ltYWdlVXJpMicsIHsgdmFsdWU6IGFzc2V0Mi5pbWFnZVVyaSB9KTtcblxubmV3IEludGVnVGVzdChhcHAsICdMb2FkRnJvbVRhcmJhbGwnLCB7XG4gIHRlc3RDYXNlczogW1xuICAgIHN0YWNrLFxuICBdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.js deleted file mode 100644 index fdf9b0eaf6d14..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr-assets/test/integ.nested-stacks-docker.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const ecr_assets = require("aws-cdk-lib/aws-ecr-assets"); -class TheNestedStack extends aws_cdk_lib_1.NestedStack { - constructor(scope, id, props) { - super(scope, id, props); - const asset = new ecr_assets.DockerImageAsset(this, 'my-image', { - directory: path.join(__dirname, 'demo-image'), - }); - const user = new iam.User(this, 'User'); - asset.repository.grantPull(user); - new aws_cdk_lib_1.CfnOutput(this, 'output', { value: asset.imageUri }); - } -} -class TheParentStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new TheNestedStack(this, 'nested-stack-with-image'); - } -} -const app = new aws_cdk_lib_1.App(); -new TheParentStack(app, 'nested-stacks-docker'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy1kb2NrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXN0ZWQtc3RhY2tzLWRvY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsNkNBQStGO0FBRS9GLHlEQUF5RDtBQUV6RCxNQUFNLGNBQWUsU0FBUSx5QkFBVztJQUN0QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQXdCO1FBQ2hFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sS0FBSyxHQUFHLElBQUksVUFBVSxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxVQU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ICduZXN0ZWQtc3RhY2tzLWRvY2tlcicpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.js deleted file mode 100644 index 63bfb39307468..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.basic.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); -const repo = new ecr.Repository(stack, 'Repo'); -repo.addLifecycleRule({ maxImageCount: 5 }); -new cdk.CfnOutput(stack, 'RepositoryURI', { - value: repo.repositoryUri, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-ecr-integ-test-basic', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYmFzaWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5iYXNpYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0s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ucmVwb3NpdG9yeVVyaSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1lY3ItaW50ZWctdGVzdC1iYXNpYycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.js deleted file mode 100644 index 5340f559d043f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.imagescan.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); -const repo = new ecr.Repository(stack, 'Repo', { - imageScanOnPush: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -repo.onImageScanCompleted('ImageScanComplete'); -new cdk.CfnOutput(stack, 'RepositoryURI', { - value: repo.repositoryUri, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-ecr-image-scan', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW1hZ2VzY2FuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW1hZ2VzY2FuLnRzIl0sIm5hbWVzIjpbXSw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dGFjaycpO1xuXG5jb25zdCByZXBvID0gbmV3IGVjci5SZXBvc2l0b3J5KHN0YWNrLCAnUmVwbycsIHtcbiAgaW1hZ2VTY2FuT25QdXNoOiB0cnVlLFxuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbnJlcG8ub25JbWFnZVNjYW5Db21wbGV0ZWQoJ0ltYWdlU2NhbkNvbXBsZXRlJyk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnUmVwb3NpdG9yeVVSSScsIHtcbiAgdmFsdWU6IHJlcG8ucmVwb3NpdG9yeVVyaSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1pbnRlZy1lY3ItaW1hZ2Utc2NhbicsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.js deleted file mode 100644 index 55f541dd79322..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecr/test/integ.repository-auto-delete-images.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecr-integ-stack'); -const repo = new ecr.Repository(stack, 'Repo', { - repositoryName: 'delete-even-if-containing-images', - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteImages: true, -}); -new cdk.CfnOutput(stack, 'RepositoryURI', { - value: repo.repositoryUri, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-auto-delete-images', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVwb3NpdG9yeS1hdXRvLWRlbGV0ZS1pbWFnZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5yZXBvc2l0b3J5LWF1dG8tZGVsZXRlLWltYWdlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUJBQXFCLENBQUMsQ0FBQztBQUV4RCxNQUFNLElBQUksR0FBRyxJQUFJLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRTtJQUM3QyxjQUFjLEVBQUUsa0NBQWtDO0lBQ2xELGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87SUFDeEMsZ0JBQWdCLEVBQUUsSUFBSTtDQUN2QixDQUFDLENBQUM7QUFFSCxJQUFJLEdBQUcsQ0FBQyxTQUFTLENBQUMsS0FBSyxFQUFFLGVBQWUsRUFBRTtJQUN4QyxLQUFLLEVBQUUsSUFBSSxDQUFDLGFBQWE7Q0FDMUIsQ0FBQyxDQUFDO0FBRUgsSUFBSSw2QkFBUyxDQUFDLEdBQUcsRUFBRSw4QkFBOEIsRUFBRTtJQUNqRCxTQUFTLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCAqIGFzIGVjciBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZWNyJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtZWNyLWludGVnLXN0YWNrJyk7XG5cbmNvbnN0IHJlcG8gPSBuZXcgZWNyLlJlcG9zaXRvcnkoc3RhY2ssICdSZXBvJywge1xuICByZXBvc2l0b3J5TmFtZTogJ2RlbGV0ZS1ldmVuLWlmLWNvbnRhaW5pbmctaW1hZ2VzJyxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgYXV0b0RlbGV0ZUltYWdlczogdHJ1ZSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1JlcG9zaXRvcnlVUkknLCB7XG4gIHZhbHVlOiByZXBvLnJlcG9zaXRvcnlVcmksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctYXV0by1kZWxldGUtaW1hZ2VzJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.js deleted file mode 100644 index 5d1c0a4d2fa35..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.alb-ecs-service-command-entry-point.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-alb-ec2-cmd-entrypoint'); -// Create VPC and ECS Cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'Ec2Cluster', { vpc }); -const provider = new ecs.AsgCapacityProvider(stack, 'CapacityProvier', { - autoScalingGroup: new autoscaling.AutoScalingGroup(stack, 'AutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: ecs.EcsOptimizedImage.amazonLinux2(), - }), - capacityProviderName: 'test-capacity-provider', -}); -cluster.addAsgCapacityProvider(provider); -// Create ALB service with Command and EntryPoint -new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'ALBECSServiceWithCommandEntryPoint', { - cluster, - memoryLimitMiB: 512, - cpu: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - command: ['/usr/sbin/apache2', '-D', 'FOREGROUND'], - entryPoint: ['/bin/bash', '-l', '-c'], - }, - capacityProviderStrategies: [ - { - capacityProvider: provider.capacityProviderName, - base: 1, - weight: 1, - }, - ], -}); -new integ.IntegTest(app, 'AlbEc2ServiceWithCommandAndEntryPoint', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWVjcy1zZXJ2aWNlLWNvbW1hbmQtZW50cnktcG9pbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hbGItZWNzLXNlcnZpY2UtY29tbWFuZC1lbnRyeS1wb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJEQUEyRDtBQUMzRCwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsc0NBQXNDLENBQUMsQ0FBQztBQUV6RSw2QkFBNkI7QUFDN0IsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNyRCxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFDOUQsTUFBTSxRQUFRLEdBQUcsSUFBSSxHQUFHLENBQUMsbUJBQW1CLENBQUMsS0FBSyxFQUFFLGlCQUFpQixFQUFFO0lBQ3JFLGdCQUFnQixFQUFFLElBQUksV0FBVyxD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xuKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdBbGJFYzJTZXJ2aWNlV2l0aENvbW1hbmRBbmRFbnRyeVBvaW50Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.js deleted file mode 100644 index b65f22db21c45..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.application-load-balanced-ecs-service.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_autoscaling_1 = require("aws-cdk-lib/aws-autoscaling"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-alb'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -const provider1 = new aws_ecs_1.AsgCapacityProvider(stack, 'FirstCapacityProvier', { - autoScalingGroup: new aws_autoscaling_1.AutoScalingGroup(stack, 'FirstAutoScalingGroup', { - vpc, - instanceType: new aws_ec2_1.InstanceType('t2.micro'), - machineImage: aws_ecs_1.EcsOptimizedImage.amazonLinux2(), - }), - capacityProviderName: 'first-capacity-provider', -}); -cluster.addAsgCapacityProvider(provider1); -const provider2 = new aws_ecs_1.AsgCapacityProvider(stack, 'SecondCapacityProvier', { - autoScalingGroup: new aws_autoscaling_1.AutoScalingGroup(stack, 'SecondAutoScalingGroup', { - vpc, - instanceType: new aws_ec2_1.InstanceType('t3.micro'), - machineImage: aws_ecs_1.EcsOptimizedImage.amazonLinux2(), - }), - capacityProviderName: 'second-capacity-provider', -}); -cluster.addAsgCapacityProvider(provider2); -// one service with multi capacity provider strategies -new aws_ecs_patterns_1.ApplicationLoadBalancedEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 256, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - capacityProviderStrategies: [ - { - capacityProvider: provider1.capacityProviderName, - base: 1, - weight: 1, - }, - { - capacityProvider: provider2.capacityProviderName, - base: 0, - weight: 2, - }, - ], -}); -new integ.IntegTest(app, 'applicationLoadBalancedEc2ServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBwbGljYXRpb24tbG9hZC1iYWxhbmNlZC1lY3Mtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFwcGxpY2F0aW9uLWxvYWQtYmFsYW5jZWQtZWNzLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpRUFBK0Q7QUFDL0QsaURBQXdEO0FBQ3hELGlEQUFzRztBQUN0Ryw2Q0FBeUM7QUFDekMsb0RBQW9EO0FBQ3B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yOiBwcm92aWRlcjIuY2FwYWNpdHlQcm92aWRlck5hbWUsXG4gICAgICBiYXNlOiAwLFxuICAgICAgd2VpZ2h0OiAyLFxuICAgIH0sXG4gIF0sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhcHBsaWNhdGlvbkxvYWRCYWxhbmNlZEVjMlNlcnZpY2VUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.js deleted file mode 100644 index 7bf493e400f15..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-application-load-balanced-ecs-service.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-multiple-alb-healthchecks'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { instanceType: new aws_ec2_1.InstanceType('t2.micro') }); -// Two load balancers with two listeners and two target groups. -const applicationMultipleTargetGroupsFargateService = new aws_ecs_patterns_1.ApplicationMultipleTargetGroupsEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { - name: 'listener1', - }, - ], - }, - { - name: 'lb2', - listeners: [ - { - name: 'listener2', - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener1', - }, - { - containerPort: 90, - listener: 'listener2', - }, - ], -}); -applicationMultipleTargetGroupsFargateService.targetGroups[0].configureHealthCheck({ - protocol: aws_elasticloadbalancingv2_1.Protocol.HTTP, - healthyThresholdCount: 2, - unhealthyThresholdCount: 2, - timeout: aws_cdk_lib_1.Duration.seconds(10), - interval: aws_cdk_lib_1.Duration.seconds(30), - healthyHttpCodes: '200', -}); -applicationMultipleTargetGroupsFargateService.targetGroups[1].configureHealthCheck({ - protocol: aws_elasticloadbalancingv2_1.Protocol.HTTP, - healthyThresholdCount: 2, - unhealthyThresholdCount: 2, - timeout: aws_cdk_lib_1.Duration.seconds(10), - interval: aws_cdk_lib_1.Duration.seconds(30), - healthyHttpCodes: '200', -}); -new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaGVhbHRoY2hlY2tzLW11bHRpcGxlLWFwc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IHtcbiAgICAgIGNvbnRhaW5lclBvcnQ6IDkwLFxuICAgICAgbGlzdGVuZXI6ICdsaXN0ZW5lcjInLFxuICAgIH0sXG4gIF0sXG59KTtcblxuYXBwbGljYXRpb25NdWx0aXBsZVRhcmdldEdyb3Vwc0ZhcmdhdGVTZXJ2aWNlLnRhcmdldEdyb3Vwc1swXS5jb25maWd1cmVIZWFsdGhDaGVjayh7XG4gIHByb3RvY29sOiBQcm90b2NvbC5IVFRQLFxuICBoZWFsdGh5VGhyZXNob2xkQ291bnQ6IDIsXG4gIHVuaGVhbHRoeVRocmVzaG9sZENvdW50OiAyLFxuICB0aW1lb3V0OiBEdXJhdGlvbi5zZWNvbmRzKDEwKSxcbiAgaW50ZXJ2YWw6IER1cmF0aW9uLnNlY29uZHMoMzApLFxuICBoZWFsdGh5SHR0cENvZGVzOiAnMjAwJyxcbn0pO1xuXG5hcHBsaWNhdGlvbk11bHRpcGxlVGFyZ2V0R3JvdXBzRmFyZ2F0ZVNlcnZpY2UudGFyZ2V0R3JvdXBzWzFdLmNvbmZpZ3VyZUhlYWx0aENoZWNrKHtcbiAgcHJvdG9jb2w6IFByb3RvY29sLkhUVFAsXG4gIGhlYWx0aHlUaHJlc2hvbGRDb3VudDogMixcbiAgdW5oZWFsdGh5VGhyZXNob2xkQ291bnQ6IDIsXG4gIHRpbWVvdXQ6IER1cmF0aW9uLnNlY29uZHMoMTApLFxuICBpbnRlcnZhbDogRHVyYXRpb24uc2Vjb25kcygzMCksXG4gIGhlYWx0aHlIdHRwQ29kZXM6ICcyMDAnLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnSW50ZWcnLCB7IHRlc3RDYXNlczogW3N0YWNrXSB9KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.js deleted file mode 100644 index 1fea7892eb93a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.healthchecks-multiple-network-load-balanced-ecs-service.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-nlb-healthchecks'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { instanceType: new aws_ec2_1.InstanceType('t2.micro') }); -// Two load balancers with two listeners and two target groups. -const networkMultipleTargetGroupsFargateService = new aws_ecs_patterns_1.NetworkMultipleTargetGroupsEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { - name: 'listener1', - }, - ], - }, - { - name: 'lb2', - listeners: [ - { - name: 'listener2', - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener1', - }, - { - containerPort: 90, - listener: 'listener2', - }, - ], -}); -networkMultipleTargetGroupsFargateService.targetGroups[0].configureHealthCheck({}); -networkMultipleTargetGroupsFargateService.targetGroups[1].configureHealthCheck({}); -new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaGVhbHRoY2hlY2tzLW11bHRpcGxlLW5ldHdvcmstbG9hZC1iYWxhbmNlZC1lY3Mtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmhlYWx0aGNoZWNrcy1tdWx0aXBsZS1uZXR3b3JrLWxvYWQtYmFsYW5jZWQtZWNzLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBd0Q7QUFDeEQsaURBQThEO0FBQzlELDZDQUF5QztBQUN6QyxrRUFBdUQ7QUFDdkQsbUVBQXFGO0FBRXJGLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsZ0NBQWdDLENBQUMsQ0FBQztBQUMvRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGFBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7QUFDakQsTUFBTSxPQUFPLEdBQUcsSUFBSSxpQkFBTyxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO0FBQ3ZELE9BQU8sQ0FBQyxXQUFXLENBQUMseU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XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0ludGVnJywgeyB0ZXN0Q2FzZXM6IFtzdGFja10gfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.js deleted file mode 100644 index 86e2570983b70..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service-idle-timeout.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_certificatemanager_1 = require("aws-cdk-lib/aws-certificatemanager"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-alb-idle-timeout'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const zone = new aws_route53_1.PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { instanceType: new aws_ec2_1.InstanceType('t2.micro') }); -// Two load balancers with different idle timeouts. -new aws_ecs_patterns_1.ApplicationMultipleTargetGroupsEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 256, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - loadBalancers: [ - { - name: 'lb', - idleTimeout: aws_cdk_lib_1.Duration.seconds(400), - domainName: 'api.example.com', - domainZone: zone, - listeners: [ - { - name: 'listener', - protocol: aws_elasticloadbalancingv2_1.ApplicationProtocol.HTTPS, - certificate: aws_certificatemanager_1.Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: aws_elasticloadbalancingv2_1.SslPolicy.TLS12_EXT, - }, - ], - }, - { - name: 'lb2', - idleTimeout: aws_cdk_lib_1.Duration.seconds(400), - domainName: 'frontend.example.com', - domainZone: zone, - listeners: [ - { - name: 'listener2', - protocol: aws_elasticloadbalancingv2_1.ApplicationProtocol.HTTPS, - certificate: aws_certificatemanager_1.Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), - sslPolicy: aws_elasticloadbalancingv2_1.SslPolicy.TLS12_EXT, - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener', - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener', - }, - { - containerPort: 443, - listener: 'listener2', - }, - { - containerPort: 80, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener2', - }, - ], -}); -new integ.IntegTest(app, 'multiAlbEcsEc2Test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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2VydGlmaWNhdGUuZnJvbUNlcnRpZmljYXRlQXJuKHN0YWNrLCAnQ2VydDInLCAnaGVsbG93b3JsZCcpLFxuICAgICAgICAgIHNzbFBvbGljeTogU3NsUG9saWN5LlRMUzEyX0VYVCxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbiAgdGFyZ2V0R3JvdXBzOiBbXG4gICAge1xuICAgICAgY29udGFpbmVyUG9ydDogODAsXG4gICAgICBsaXN0ZW5lcjogJ2xpc3RlbmVyJyxcbiAgICB9LFxuICAgIHtcbiAgICAgIGNvbnRhaW5lclBvcnQ6IDkwLFxuICAgICAgcGF0aFBhdHRlcm46ICdhL2IvYycsXG4gICAgICBwcmlvcml0eTogMTAsXG4gICAgICBsaXN0ZW5lcjogJ2xpc3RlbmVyJyxcbiAgICB9LFxuICAgIHtcbiAgICAgIGNvbnRhaW5lclBvcnQ6IDQ0MyxcbiAgICAgIGxpc3RlbmVyOiAnbGlzdGVuZXIyJyxcbiAgICB9LFxuICAgIHtcbiAgICAgIGNvbnRhaW5lclBvcnQ6IDgwLFxuICAgICAgcGF0aFBhdHRlcm46ICdhL2IvYycsXG4gICAgICBwcmlvcml0eTogMTAsXG4gICAgICBsaXN0ZW5lcjogJ2xpc3RlbmVyMicsXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ211bHRpQWxiRWNzRWMyVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.js deleted file mode 100644 index 00e14df66214f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.multiple-application-load-balanced-ecs-service.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-multiple-alb'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { instanceType: new aws_ec2_1.InstanceType('t2.micro') }); -// One load balancer with one listener and two target groups. -new aws_ecs_patterns_1.ApplicationMultipleTargetGroupsEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 256, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - targetGroups: [ - { - containerPort: 80, - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - }, - ], -}); -new integ.IntegTest(app, 'applicationMultipleTargetGroupsEc2ServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50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zdGVyLmFkZENhcGFjaXR5KCdEZWZhdWx0QXV0b1NjYWxpbmdHcm91cCcsIHsgaW5zdGFuY2VUeXBlOiBuZXcgSW5zdGFuY2VUeXBlKCd0Mi5taWNybycpIH0pO1xuXG4vLyBPbmUgbG9hZCBiYWxhbmNlciB3aXRoIG9uZSBsaXN0ZW5lciBhbmQgdHdvIHRhcmdldCBncm91cHMuXG5uZXcgQXBwbGljYXRpb25NdWx0aXBsZVRhcmdldEdyb3Vwc0VjMlNlcnZpY2Uoc3RhY2ssICdteVNlcnZpY2UnLCB7XG4gIGNsdXN0ZXIsXG4gIG1lbW9yeUxpbWl0TWlCOiAyNTYsXG4gIHRhc2tJbWFnZU9wdGlvbnM6IHtcbiAgICBpbWFnZTogQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgfSxcbiAgZW5hYmxlRXhlY3V0ZUNvbW1hbmQ6IHRydWUsXG4gIHRhcmdldEdyb3VwczogW1xuICAgIHtcbiAgICAgIGNvbnRhaW5lclBvcnQ6IDgwLFxuICAgIH0sXG4gICAge1xuICAgICAgY29udGFpbmVyUG9ydDogOTAsXG4gICAgICBwYXRoUGF0dGVybjogJ2EvYi9jJyxcbiAgICAgIHByaW9yaXR5OiAxMCxcbiAgICB9LFxuICBdLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnYXBwbGljYXRpb25NdWx0aXBsZVRhcmdldEdyb3Vwc0VjMlNlcnZpY2VUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.js deleted file mode 100644 index 98513d276e569..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.network-load-balanced-ecs-service.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_autoscaling_1 = require("aws-cdk-lib/aws-autoscaling"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-nlb'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -const provider1 = new aws_ecs_1.AsgCapacityProvider(stack, 'FirstCapacityProvider', { - autoScalingGroup: new aws_autoscaling_1.AutoScalingGroup(stack, 'FirstAutoScalingGroup', { - vpc, - instanceType: new aws_ec2_1.InstanceType('t2.micro'), - machineImage: aws_ecs_1.EcsOptimizedImage.amazonLinux2(), - }), - capacityProviderName: 'first-capacity-provider', -}); -cluster.addAsgCapacityProvider(provider1); -const provider2 = new aws_ecs_1.AsgCapacityProvider(stack, 'SecondCapacityProvider', { - autoScalingGroup: new aws_autoscaling_1.AutoScalingGroup(stack, 'SecondAutoScalingGroup', { - vpc, - instanceType: new aws_ec2_1.InstanceType('t3.micro'), - machineImage: aws_ecs_1.EcsOptimizedImage.amazonLinux2(), - }), - capacityProviderName: 'second-capacity-provider', -}); -cluster.addAsgCapacityProvider(provider2); -// one service with multi capacity provider strategies -new aws_ecs_patterns_1.NetworkLoadBalancedEc2Service(stack, 'myService', { - cluster, - memoryLimitMiB: 256, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - capacityProviderStrategies: [ - { - capacityProvider: provider1.capacityProviderName, - base: 1, - weight: 1, - }, - { - capacityProvider: provider2.capacityProviderName, - base: 0, - weight: 2, - }, - ], -}); -new integ.IntegTest(app, 'networkLoadBalancedEc2ServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmV0d29yay1sb2FkLWJhbGFuY2VkLWVjcy1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubmV0d29yay1sb2FkLWJhbGFuY2VkLWVjcy1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaUVBQStEO0FBQy9ELGlEQUF3RDtBQUN4RCxpREFBc0c7QUFDdEcsNkNBQXlDO0FBQ3pDLG9EQUFvRDtBQUNwRCxtRUFBNkU7QUFFN0UsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxtQkFBbUIsQ0FBQyxDQUFDO0FBQ2xELE1BQU0sR0FBRyxHQUFHLElBQUksYUFBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNqRCxNQUFNLE9BQU8sR0FBRyxJQUFJLGlCQUFPLENBQUMs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/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.js deleted file mode 100644 index 2d70978e44b03..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/ec2/integ.scheduled-ecs-task.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const events = require("aws-cdk-lib/aws-events"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -class EventStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 1 }); - const cluster = new ecs.Cluster(this, 'EcsCluster', { vpc }); - cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), - }); - /// !show - // Create the scheduled task - new aws_ecs_patterns_1.ScheduledEc2Task(this, 'ScheduledEc2Task', { - cluster, - scheduledEc2TaskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 512, - cpu: 1, - environment: { TRIGGER: 'CloudWatch Events' }, - }, - desiredTaskCount: 2, - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), - }); - /// !hide - } -} -const myStack = new EventStack(app, 'aws-ecs-integ-ecs'); -new integ.IntegTest(app, 'scheduledEc2TaskTest', { - testCases: [myStack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2NoZWR1bGVkLWVjcy10YXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2NoZWR1bGVkLWVjcy10YXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxtRUFBZ0U7QUFFaEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxVQUFXLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDaEMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7UUFFcEQsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO1FBQzdELE9BQU8sQ0FBQyxXQUFXLENBQUMseUJBQXlCLEVBQUU7WUFDN0MsWUFBWSxFQUFFLElBQUksR0FBRyxDQUFDLFlBQVksQ0FBQyxVQUFVLENBQUM7U0FDL0MsQ0FBQyxDQUFDO1FBRUgsU0FBUztRQUNULDRCQUE0QjtRQUM1QixJQUFJLG1DQUFnQixDQUFDLElBQUksR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uICAgICAgZGVzaXJlZFRhc2tDb3VudDogMixcbiAgICAgIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygxKSksXG4gICAgfSk7XG4gICAgLy8vICFoaWRlXG4gIH1cbn1cblxuY29uc3QgbXlTdGFjayA9IG5ldyBFdmVudFN0YWNrKGFwcCwgJ2F3cy1lY3MtaW50ZWctZWNzJyk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnc2NoZWR1bGVkRWMyVGFza1Rlc3QnLCB7XG4gIHRlc3RDYXNlczogW215U3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js deleted file mode 100644 index 7ad4ed47b8558..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-lb-fargate-cmd-entrypoint-test'); -// Create VPC and cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'TestFargateCluster', { vpc }); -// Create ALB service with Command and EntryPoint -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALBFargateServiceWithCommandAndEntryPoint', { - cluster, - memoryLimitMiB: 512, - cpu: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - command: ['/usr/sbin/apache2', '-D', 'FOREGROUND'], - entryPoint: ['/bin/bash'], - }, -}); -new integ.IntegTest(app, 'AlbFargateServiceWithCommandAndEntryPoint', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWZhcmdhdGUtc2VydmljZS1jb21tYW5kLWVudHJ5LXBvaW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYWxiLWZhcmdhdGUtc2VydmljZS1jb21tYW5kLWVudHJ5LXBvaW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELDREQUE0RDtBQUU1RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQ3pCLEdBQUcsRUFDSCw4Q0FBOEMsQ0FDL0MsQ0FBQztBQUVGLHlCQUF5QjtBQUN6QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sR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nlQb2ludCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.js deleted file mode 100644 index 8521363529cad..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https-idle-timeout.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const route53 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-alb-fg-idletimeout'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -// Loadbalancer with idleTimeout set to 120 seconds -new aws_ecs_patterns_1.ApplicationLoadBalancedFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - protocol: aws_elasticloadbalancingv2_1.ApplicationProtocol.HTTPS, - enableECSManagedTags: true, - enableExecuteCommand: true, - domainName: 'test.example.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'example.com.', - }), - redirectHTTP: true, - idleTimeout: aws_cdk_lib_1.Duration.seconds(120), -}); -new integ.IntegTest(app, 'idleTimeoutTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWZhcmdhdGUtc2VydmljZS1odHRwcy1pZGxlLXRpbWVvdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hbGItZmFyZ2F0ZS1zZXJ2aWNlLWh0dHBzLWlkbGUtdGltZW91dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUEwQztBQUMxQyxpREFBOEQ7QUFDOUQsdUZBQTZFO0FBQzdFLG1EQUFtRDtBQUNuRCw2Q0FBbUQ7QUFDbkQsb0RBQW9EO0FBRXBELG1FQUFxRjtBQUVyRixNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLGtDQUFrQyxDQUFDLENBQUM7QUFDakUsTUFBTSxHQUFHLEdBQUcsSUFBSSxhQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBQ2pELE1BQU0sT0FBTyxHQUFHLElBQUksaUJBQU8sQ0FBQyxLQUFLL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9jb2wuSFRUUFMsXG4gIGVuYWJsZUVDU01hbmFnZWRUYWdzOiB0cnVlLFxuICBlbmFibGVFeGVjdXRlQ29tbWFuZDogdHJ1ZSxcbiAgZG9tYWluTmFtZTogJ3Rlc3QuZXhhbXBsZS5jb20nLFxuICBkb21haW5ab25lOiByb3V0ZTUzLkhvc3RlZFpvbmUuZnJvbUhvc3RlZFpvbmVBdHRyaWJ1dGVzKHN0YWNrLCAnSG9zdGVkWm9uZScsIHtcbiAgICBob3N0ZWRab25lSWQ6ICdmYWtlSWQnLFxuICAgIHpvbmVOYW1lOiAnZXhhbXBsZS5jb20uJyxcbiAgfSksXG4gIHJlZGlyZWN0SFRUUDogdHJ1ZSxcbiAgaWRsZVRpbWVvdXQ6IER1cmF0aW9uLnNlY29uZHMoMTIwKSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2lkbGVUaW1lb3V0VGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.js deleted file mode 100644 index 70662f8c1ae90..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-https.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const route53 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-alb-fg-https'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -// Loadbalancer with HTTPS -new aws_ecs_patterns_1.ApplicationLoadBalancedFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - protocol: aws_elasticloadbalancingv2_1.ApplicationProtocol.HTTPS, - enableECSManagedTags: true, - enableExecuteCommand: true, - domainName: 'test.example.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'example.com.', - }), - redirectHTTP: true, -}); -new integ.IntegTest(app, 'albFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWZhcmdhdGUtc2VydmljZS1odHRwcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYi1mYXJnYXRlLXNlcnZpY2UtaHR0cHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBMEM7QUFDMUMsaURBQThEO0FBQzlELHVGQUE2RTtBQUM3RSxtREFBbUQ7QUFDbkQ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LCAnbXlTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICBtZW1vcnlMaW1pdE1pQjogNTEyLFxuICB0YXNrSW1hZ2VPcHRpb25zOiB7XG4gICAgaW1hZ2U6IENvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIH0sXG4gIHByb3RvY29sOiBBcHBsaWNhdGlvblByb3RvY29sLkhUVFBTLFxuICBlbmFibGVFQ1NNYW5hZ2VkVGFnczogdHJ1ZSxcbiAgZW5hYmxlRXhlY3V0ZUNvbW1hbmQ6IHRydWUsXG4gIGRvbWFpbk5hbWU6ICd0ZXN0LmV4YW1wbGUuY29tJyxcbiAgZG9tYWluWm9uZTogcm91dGU1My5Ib3N0ZWRab25lLmZyb21Ib3N0ZWRab25lQXR0cmlidXRlcyhzdGFjaywgJ0hvc3RlZFpvbmUnLCB7XG4gICAgaG9zdGVkWm9uZUlkOiAnZmFrZUlkJyxcbiAgICB6b25lTmFtZTogJ2V4YW1wbGUuY29tLicsXG4gIH0pLFxuICByZWRpcmVjdEhUVFA6IHRydWUsXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhbGJGYXJnYXRlU2VydmljZVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.js deleted file mode 100644 index bdd902621f20d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.asset-image.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-image'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); -Array.isArray(cluster); -Array.isArray(path); -// Instantiate Fargate Service with just cluster and image -const fargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateService', { - cluster, - taskImageOptions: { - containerPort: 8000, - image: new ecs.AssetImage(path.join(__dirname, '..', 'demo-image')), - }, -}); -// CfnOutput the DNS where you can access your service -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: fargateService.loadBalancer.loadBalancerDnsName }); -new integ.IntegTest(app, 'fargateAssetImageTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXQtaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hc3NldC1pbWFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQ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biAgdGFza0ltYWdlT3B0aW9uczoge1xuICAgIGNvbnRhaW5lclBvcnQ6IDgwMDAsXG4gICAgaW1hZ2U6IG5ldyBlY3MuQXNzZXRJbWFnZShwYXRoLmpvaW4oX19kaXJuYW1lLCAnLi4nLCAnZGVtby1pbWFnZScpKSxcbiAgfSxcbn0pO1xuXG4vLyBDZm5PdXRwdXQgdGhlIEROUyB3aGVyZSB5b3UgY2FuIGFjY2VzcyB5b3VyIHNlcnZpY2Vcbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnTG9hZEJhbGFuY2VyRE5TJywgeyB2YWx1ZTogZmFyZ2F0ZVNlcnZpY2UubG9hZEJhbGFuY2VyLmxvYWRCYWxhbmNlckRuc05hbWUgfSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnZmFyZ2F0ZUFzc2V0SW1hZ2VUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.js deleted file mode 100644 index 0993a1719c04c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-load-balanced-fargate-service.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cxapi = require("aws-cdk-lib/cx-api"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App({ postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-circuit-breaker'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -new aws_ecs_patterns_1.ApplicationLoadBalancedFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - circuitBreaker: { rollback: true }, -}); -new integ.IntegTest(app, 'circuitBreakerAlbFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2lyY3VpdC1icmVha2VyLWxvYWQtYmFsYW5jZWQtZmFyZ2F0ZS1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2lyY3VpdC1icmVha2VyLWxvYWQtYmFsYW5jZWQtZmFyZ2F0ZS1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTBDO0FBQzFDLGlEQUE4RDtBQUM5RCw2Q0FBeUM7QUFDekMsNENBQTRDO0FBQzVDLG9EQUFvRDtBQUNwRCxtRUFBcUY7QUFFck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VnLkludGVnVGVzdChhcHAsICdjaXJjdWl0QnJlYWtlckFsYkZhcmdhdGVUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.js deleted file mode 100644 index 99cc860d368e5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-no-deployment-controller-fargate-service.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-circuit-breaker-no-dc'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -new aws_ecs_patterns_1.ApplicationLoadBalancedFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - circuitBreaker: { rollback: true }, -}); -new integ.IntegTest(app, 'circuitBreakerNoDeploymentControllerFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2lyY3VpdC1icmVha2VyLW5vLWRlcGxveW1lbnQtY29udHJvbGxlci1mYXJnYXRlLXNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jaXJjdWl0LWJyZWFrZXItbm8tZGVwbG95bWVudC1jb250cm9sbGVyLWZhcmdhdGUtc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUEwQztBQUMxQyxpREFBOEQ7QUFDOUQsNkNBQXlDO0FBQ3pDLG9EQUFvRDtBQUNwRCxtRUFBcUY7QUFFckYsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxxQ0FBcUMsQ0FBQyxDQUFDO0FBQ3BFLE1BQU0sR0FBRyxHQUFHLElBQUksYUFBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNqRCxNQUFNLE9BQU8sR0FBRyxJQUFJLGlCQUFPLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFFdkQsSUFBSSx3REFBcUMsQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFO0lBQzVELE9BQU87SUFDUCxjQUFjLEVBQUUsR0FBRztJQUNuQixnQkFBZ0Is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dhdGVTZXJ2aWNlKHN0YWNrLCAnbXlTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICBtZW1vcnlMaW1pdE1pQjogNTEyLFxuICB0YXNrSW1hZ2VPcHRpb25zOiB7XG4gICAgaW1hZ2U6IENvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIH0sXG4gIGNpcmN1aXRCcmVha2VyOiB7IHJvbGxiYWNrOiB0cnVlIH0sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdjaXJjdWl0QnJlYWtlck5vRGVwbG95bWVudENvbnRyb2xsZXJGYXJnYXRlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.js deleted file mode 100644 index deb62a0c4fb3b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.circuit-breaker-queue-processing-fargate-service.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cxapi = require("aws-cdk-lib/cx-api"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App({ postCliContext: { [cxapi.ECS_DISABLE_EXPLICIT_DEPLOYMENT_CONTROLLER_FOR_CIRCUIT_BREAKER]: false } }); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-patterns-queue'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new aws_ecs_patterns_1.QueueProcessingFargateService(stack, 'QueueProcessingService', { - vpc, - memoryLimitMiB: 512, - circuitBreaker: { rollback: true }, - image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')), -}); -new integ.IntegTest(app, 'circuitBreakerQueueProcessingFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2lyY3VpdC1icmVha2VyLXF1ZXVlLXByb2Nlc3NpbmctZmFyZ2F0ZS1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2lyY3VpdC1icmVha2VyLXF1ZXVlLXByb2Nlc3NpbmctZmFyZ2F0ZS1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsNkNBQXlDO0FBQ3pDLDRDQUE0QztBQUM1QyxvREFBb0Q7QUFDcEQsbUVBQTZFO0FBRTdFLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsQ0FBQyxFQUFFLGNBQWMsRUFBRSxFQUFFLENBQUMsS0FBSyxDQUFDLDhEQUE4RCxDQUFDLEVBQUUsS0FBSyxFQUFFLEVBQUUsQ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ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCB7IFF1ZXVlUHJvY2Vzc2luZ0ZhcmdhdGVTZXJ2aWNlIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWVjcy1wYXR0ZXJucyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoeyBwb3N0Q2xpQ29udGV4dDogeyBbY3hhcGkuRUNTX0RJU0FCTEVfRVhQTElDSVRfREVQTE9ZTUVOVF9DT05UUk9MTEVSX0ZPUl9DSVJDVUlUX0JSRUFLRVJdOiBmYWxzZSB9IH0pO1xuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnYXdzLWVjcy1wYXR0ZXJucy1xdWV1ZScpO1xuY29uc3QgdnBjID0gbmV3IGVjMi5WcGMoc3RhY2ssICdWUEMnLCB7XG4gIG1heEF6czogMixcbn0pO1xuXG5uZXcgUXVldWVQcm9jZXNzaW5nRmFyZ2F0ZVNlcnZpY2Uoc3RhY2ssICdRdWV1ZVByb2Nlc3NpbmdTZXJ2aWNlJywge1xuICB2cGMsXG4gIG1lbW9yeUxpbWl0TWlCOiA1MTIsXG4gIGNpcmN1aXRCcmVha2VyOiB7IHJvbGxiYWNrOiB0cnVlIH0sXG4gIGltYWdlOiBuZXcgZWNzLkFzc2V0SW1hZ2UocGF0aC5qb2luKF9fZGlybmFtZSwgJy4uJywgJ3Nxcy1yZWFkZXInKSksXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdjaXJjdWl0QnJlYWtlclF1ZXVlUHJvY2Vzc2luZ0ZhcmdhdGVUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.js deleted file mode 100644 index bb1cfd623c065..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.executionrole.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-execrole'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'L3', { - cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - executionRole: new iam.Role(stack, 'ExecutionRole', { - assumedBy: new iam.CompositePrincipal(new iam.ServicePrincipal('ecs.amazonaws.com'), new iam.ServicePrincipal('ecs-tasks.amazonaws.com')), - }), - }, -}); -new integ.IntegTest(app, 'executionRoleAlbFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXhlY3V0aW9ucm9sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmV4ZWN1dGlvbnJvbGUudH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XG4gIG1lbW9yeUxpbWl0TWlCOiAxMDI0LFxuICBjcHU6IDUxMixcbiAgdGFza0ltYWdlT3B0aW9uczoge1xuICAgIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgICBleGVjdXRpb25Sb2xlOiBuZXcgaWFtLlJvbGUoc3RhY2ssICdFeGVjdXRpb25Sb2xlJywge1xuICAgICAgYXNzdW1lZEJ5OiBuZXcgaWFtLkNvbXBvc2l0ZVByaW5jaXBhbChcbiAgICAgICAgbmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdlY3MuYW1hem9uYXdzLmNvbScpLFxuICAgICAgICBuZXcgaWFtLlNlcnZpY2VQcmluY2lwYWwoJ2Vjcy10YXNrcy5hbWF6b25hd3MuY29tJyksXG4gICAgICApLFxuICAgIH0pLFxuICB9LFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnZXhlY3V0aW9uUm9sZUFsYkZhcmdhdGVUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.js deleted file mode 100644 index 3a244fb8b8fb2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-application-load-balanced-fargate-service.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_elasticloadbalancingv2_1 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-fargate-multi-alb-health'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -// Two load balancers with two listeners and two target groups. -const applicationMultipleTargetGroupsFargateService = new aws_ecs_patterns_1.ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { - name: 'listener1', - }, - ], - }, - { - name: 'lb2', - listeners: [ - { - name: 'listener2', - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener1', - }, - { - containerPort: 90, - listener: 'listener2', - }, - ], -}); -applicationMultipleTargetGroupsFargateService.targetGroups[0].configureHealthCheck({ - protocol: aws_elasticloadbalancingv2_1.Protocol.HTTP, - healthyThresholdCount: 2, - unhealthyThresholdCount: 2, - timeout: aws_cdk_lib_1.Duration.seconds(10), - interval: aws_cdk_lib_1.Duration.seconds(30), - healthyHttpCodes: '200', -}); -applicationMultipleTargetGroupsFargateService.targetGroups[1].configureHealthCheck({ - protocol: aws_elasticloadbalancingv2_1.Protocol.HTTP, - healthyThresholdCount: 2, - unhealthyThresholdCount: 2, - timeout: aws_cdk_lib_1.Duration.seconds(10), - interval: aws_cdk_lib_1.Duration.seconds(30), - healthyHttpCodes: '200', -}); -new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaGVhbHRoY2hlY2tzLW11bHRpcGxlLWFwcGxpY2F0aW9uLWxvYWQtYmFsYW5jZWQtZmFyZ2F0ZS1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaGVhbHRoY2hlY2tzLW11bHRpcGxlLWFwcGxpY2F0aW9uLWxvYWQtYmFsYW5jZWQtZmFyZ2F0ZS1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTBDO0FBQzFDLGlEQUE4RDtBQUM5RCx1RkFBa0U7QUFDbEUsNkNBQW1EO0FBQ25ELGtFQUF1RDtBQUV2RCxtRUFBNkY7QUFFN0YsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSx3Q0FBd0MsQ0FBQyxDQUFDO0FBQ3ZFLE1BQU0sR0FBRyxHQUFHLElBQUksYUFBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNqRCxNQUFNLE9BQU8sR0FBRyxJQUFJLGlCQUFPLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUF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AgIGNvbnRhaW5lclBvcnQ6IDgwLFxuICAgICAgbGlzdGVuZXI6ICdsaXN0ZW5lcjEnLFxuICAgIH0sXG4gICAge1xuICAgICAgY29udGFpbmVyUG9ydDogOTAsXG4gICAgICBsaXN0ZW5lcjogJ2xpc3RlbmVyMicsXG4gICAgfSxcbiAgXSxcbn0pO1xuXG5hcHBsaWNhdGlvbk11bHRpcGxlVGFyZ2V0R3JvdXBzRmFyZ2F0ZVNlcnZpY2UudGFyZ2V0R3JvdXBzWzBdLmNvbmZpZ3VyZUhlYWx0aENoZWNrKHtcbiAgcHJvdG9jb2w6IFByb3RvY29sLkhUVFAsXG4gIGhlYWx0aHlUaHJlc2hvbGRDb3VudDogMixcbiAgdW5oZWFsdGh5VGhyZXNob2xkQ291bnQ6IDIsXG4gIHRpbWVvdXQ6IER1cmF0aW9uLnNlY29uZHMoMTApLFxuICBpbnRlcnZhbDogRHVyYXRpb24uc2Vjb25kcygzMCksXG4gIGhlYWx0aHlIdHRwQ29kZXM6ICcyMDAnLFxufSk7XG5cbmFwcGxpY2F0aW9uTXVsdGlwbGVUYXJnZXRHcm91cHNGYXJnYXRlU2VydmljZS50YXJnZXRHcm91cHNbMV0uY29uZmlndXJlSGVhbHRoQ2hlY2soe1xuICBwcm90b2NvbDogUHJvdG9jb2wuSFRUUCxcbiAgaGVhbHRoeVRocmVzaG9sZENvdW50OiAyLFxuICB1bmhlYWx0aHlUaHJlc2hvbGRDb3VudDogMixcbiAgdGltZW91dDogRHVyYXRpb24uc2Vjb25kcygxMCksXG4gIGludGVydmFsOiBEdXJhdGlvbi5zZWNvbmRzKDMwKSxcbiAgaGVhbHRoeUh0dHBDb2RlczogJzIwMCcsXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdJbnRlZycsIHsgdGVzdENhc2VzOiBbc3RhY2tdIH0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.js deleted file mode 100644 index b8e9e82890c19..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.healthchecks-multiple-network-load-balanced-fargate-service.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-multi-nlb-healthchecks'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -// Two load balancers with two listeners and two target groups. -const networkMultipleTargetGroupsFargateService = new aws_ecs_patterns_1.NetworkMultipleTargetGroupsFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { - name: 'listener1', - }, - ], - }, - { - name: 'lb2', - listeners: [ - { - name: 'listener2', - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener1', - }, - { - containerPort: 90, - listener: 'listener2', - }, - ], -}); -networkMultipleTargetGroupsFargateService.targetGroups[0].configureHealthCheck({}); -networkMultipleTargetGroupsFargateService.targetGroups[1].configureHealthCheck({}); -new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaGVhbHRoY2hlY2tzLW11bHRpcGxlLW5ldHdvcmstbG9hZC1iYWxhbmNlZC1mYXJnYXRlLXNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5oZWFsdGhjaGVja3MtbXVsdGlwbGUtbmV0d29yay1sb2FkLWJhbGFuY2VkLWZhcmdhdGUtc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUEwQztBQUMxQyxpREFBOEQ7QUFDOUQsNkNBQXlDO0FBQ3pDLGtFQUF1RDtBQUN2RCxtRUFBeUY7QUFFekYsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0FBQ3JFLE1BQU0sR0FBRyxHQUFHLElBQUksYUFBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNqRCxNQUFNLE9BQU8sR0FBRyxJQUFJLGlCQUFPLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFFdkQsK0RBQStEO0FBQy9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FsYW5jZXJzOiBbXG4gICAge1xuICAgICAgbmFtZTogJ2xiMScsXG4gICAgICBsaXN0ZW5lcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdsaXN0ZW5lcjEnLFxuICAgICAgICB9LFxuICAgICAgXSxcbiAgICB9LFxuICAgIHtcbiAgICAgIG5hbWU6ICdsYjInLFxuICAgICAgbGlzdGVuZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAnbGlzdGVuZXIyJyxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSxcbiAgXSxcbiAgdGFyZ2V0R3JvdXBzOiBbXG4gICAge1xuICAgICAgY29udGFpbmVyUG9ydDogODAsXG4gICAgICBsaXN0ZW5lcjogJ2xpc3RlbmVyMScsXG4gICAgfSxcbiAgICB7XG4gICAgICBjb250YWluZXJQb3J0OiA5MCxcbiAgICAgIGxpc3RlbmVyOiAnbGlzdGVuZXIyJyxcbiAgICB9LFxuICBdLFxufSk7XG5cbm5ldHdvcmtNdWx0aXBsZVRhcmdldEdyb3Vwc0ZhcmdhdGVTZXJ2aWNlLnRhcmdldEdyb3Vwc1swXS5jb25maWd1cmVIZWFsdGhDaGVjayh7fSk7XG5cbm5ldHdvcmtNdWx0aXBsZVRhcmdldEdyb3Vwc0ZhcmdhdGVTZXJ2aWNlLnRhcmdldEdyb3Vwc1sxXS5jb25maWd1cmVIZWFsdGhDaGVjayh7fSk7XG5cblxubmV3IEludGVnVGVzdChhcHAsICdJbnRlZycsIHsgdGVzdENhc2VzOiBbc3RhY2tdIH0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.js deleted file mode 100644 index 02a5b0404b02d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-autocreate.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-l3-autocreate'); -// No VPC or Cluster specified -// Create ALB service -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALBFargateService', { - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -// Create NLB service -new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'NLBFargateService', { - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -new integ.IntegTest(app, 'autoCreateNlbFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubDMtYXV0b2NyZWF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmwzLWF1dG9jcmVhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCw0REFBNEQ7QUF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DYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.js deleted file mode 100644 index 5cdac84ccab19..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-capacity-provider-strategies.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-lb-fargate'); -// Create VPC and cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -cluster.enableFargateCapacityProviders(); -// Create ALB service with capacity provider storategies -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALBFargateService', { - cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'FARGATE', - base: 1, - weight: 1, - }, - { - capacityProvider: 'FARGATE_SPOT', - base: 0, - weight: 2, - }, - ], -}); -// Create NLB service with capacity provider storategies -new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'NLBFargateService', { - cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'FARGATE', - base: 1, - weight: 1, - }, - { - capacityProvider: 'FARGATE_SPOT', - base: 0, - weight: 2, - }, - ], -}); -new integ.IntegTest(app, 'l3CapacityProviderStrategiesTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubDMtY2FwYWNpdHktcHJvdmlkZXItc3RyYXRlZ2llcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmwzLWNhcGFjaXR5LXByb3ZpZGVyLXN0cmF0ZWdpZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztBQUU3RCx5QkFBeUI7QUFDekIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNyRCxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMs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G4gICAgICBjYXBhY2l0eVByb3ZpZGVyOiAnRkFSR0FURScsXG4gICAgICBiYXNlOiAxLFxuICAgICAgd2VpZ2h0OiAxLFxuICAgIH0sXG4gICAge1xuICAgICAgY2FwYWNpdHlQcm92aWRlcjogJ0ZBUkdBVEVfU1BPVCcsXG4gICAgICBiYXNlOiAwLFxuICAgICAgd2VpZ2h0OiAyLFxuICAgIH0sXG4gIF0sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdsM0NhcGFjaXR5UHJvdmlkZXJTdHJhdGVnaWVzVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.js deleted file mode 100644 index 44dd741f7f707..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3-vpconly.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-l3-vpconly'); -// Create VPC only -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -// Create ALB service -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALBFargateService', { - vpc, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -// Create NLB service -new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'NLBFargateService', { - vpc, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -new integ.IntegTest(app, 'vpcOnlyFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubDMtdnBjb25seS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmwzLXZwY29ubHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztBQUU3RCxrQkFBa0I7QUFDbEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxxQkFBcUI7QUFDckIsSUFBSSxXQUFXLENBQUMscUNBQXFDLENBQUMsS0FBSyxFQUFFLG1CQUFtQixFQUFFO0lBQ2hGLEdBQUc7SU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.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.js deleted file mode 100644 index 6c0fe628b698c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.l3.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-lb-fargate'); -// Create VPC and cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -// Create ALB service -new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALBFargateService', { - cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -// Create NLB service -new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'NLBFargateService', { - cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, -}); -new integ.IntegTest(app, 'l3FargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubDM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lcm5zLkFwcGxpY2F0aW9uTG9hZEJhbGFuY2VkRmFyZ2F0ZVNlcnZpY2Uoc3RhY2ssICdBTEJGYXJnYXRlU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgbWVtb3J5TGltaXRNaUI6IDEwMjQsXG4gIGNwdTogNTEyLFxuICB0YXNrSW1hZ2VPcHRpb25zOiB7XG4gICAgaW1hZ2U6IGVjcy5Db250YWluZXJJbWFnZS5mcm9tUmVnaXN0cnkoJ2FtYXpvbi9hbWF6b24tZWNzLXNhbXBsZScpLFxuICB9LFxufSk7XG5cbi8vIENyZWF0ZSBOTEIgc2VydmljZVxubmV3IGVjc1BhdHRlcm5zLk5ldHdvcmtMb2FkQmFsYW5jZWRGYXJnYXRlU2VydmljZShzdGFjaywgJ05MQkZhcmdhdGVTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICBtZW1vcnlMaW1pdE1pQjogMTAyNCxcbiAgY3B1OiA1MTIsXG4gIHRhc2tJbWFnZU9wdGlvbnM6IHtcbiAgICBpbWFnZTogZWNzLkNvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIH0sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdsM0ZhcmdhdGVUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.js deleted file mode 100644 index 50defd7a342db..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.multiple-network-load-balanced-fargate-service.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-integ-fargate-multi-nlb-health'); -const vpc = new aws_ec2_1.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new aws_ecs_1.Cluster(stack, 'Cluster', { vpc }); -// Two load balancers with two listeners and two target groups. -new aws_ecs_patterns_1.NetworkMultipleTargetGroupsFargateService(stack, 'myService', { - cluster, - memoryLimitMiB: 512, - taskImageOptions: { - image: aws_ecs_1.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { - name: 'listener1', - }, - ], - }, - { - name: 'lb2', - listeners: [ - { - name: 'listener2', - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener1', - }, - { - containerPort: 90, - listener: 'listener2', - }, - ], -}); -new integ.IntegTest(app, 'networkMultipleTargetGroupsFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubXVsdGlwbGUtbmV0d29yay1sb2FkLWJhbGFuY2VkLWZhcmdh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2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.js deleted file mode 100644 index 0cff40c5163d8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-isolated.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-patterns-queue-isolated'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, - subnetConfiguration: [ - { - cidrMask: 24, - name: 'Public', - subnetType: ec2.SubnetType.PUBLIC, - }, - { - cidrMask: 24, - name: 'Isolated', - subnetType: ec2.SubnetType.PRIVATE_ISOLATED, - }, - ], -}); -vpc.addS3Endpoint('S3Endpoint', [{ subnetType: ec2.SubnetType.PRIVATE_ISOLATED }]); -const securityGroup = new ec2.SecurityGroup(stack, 'MyCustomSG', { - vpc, -}); -const queueProcessing = new aws_ecs_patterns_1.QueueProcessingFargateService(stack, 'IsolatedQueueService', { - vpc, - memoryLimitMiB: 512, - image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')), - securityGroups: [securityGroup], - taskSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, -}); -queueProcessing.service.node.addDependency(vpc.addInterfaceEndpoint('SqsEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.SQS, -}), vpc.addInterfaceEndpoint('EcrEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.ECR, -}), vpc.addInterfaceEndpoint('EcrImageEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER, -}), vpc.addInterfaceEndpoint('CloudWatchLogsEndpoint', { - service: ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS, -})); -new integ.IntegTest(app, 'isolatedQueueProcessingFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucXVldWUtcHJvY2Vzc2luZy1mYXJnYXRlLXNlcnZpY2UtaXNvbGF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5xdWV1ZS1wcm9jZXNzaW5nLWZhcmdhdGUtc2VydmljZS1pc29sYXRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLDZDQUF5QztBQUN6QyxvREFBb0Q7QUFDcEQsbUVBQTZFO0FBRTdFLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsaUNBQWlDLENBQUMsQ0FBQztBQUNoRSxNQ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7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.js deleted file mode 100644 index 6b4c78c30537f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service-public.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-patterns-queue-public'); -const vpc = new ec2.Vpc(stack, 'VPC'); -new aws_ecs_patterns_1.QueueProcessingFargateService(stack, 'PublicQueueService', { - vpc, - memoryLimitMiB: 512, - image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')), - assignPublicIp: true, - healthCheck: { - command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], - interval: aws_cdk_lib_1.Duration.seconds(6), - retries: 10, - }, -}); -new integ.IntegTest(app, 'publicQueueProcessingFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sour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ICAgIGNvbW1hbmQ6IFsnQ01ELVNIRUxMJywgJ2N1cmwgLWYgaHR0cDovL2xvY2FsaG9zdC8gfHwgZXhpdCAxJ10sXG4gICAgaW50ZXJ2YWw6IER1cmF0aW9uLnNlY29uZHMoNiksXG4gICAgcmV0cmllczogMTAsXG4gIH0sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdwdWJsaWNRdWV1ZVByb2Nlc3NpbmdGYXJnYXRlU2VydmljZVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.js deleted file mode 100644 index 4b4e5f52dcd16..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.queue-processing-fargate-service.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-ecs-patterns-queue'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new aws_ecs_patterns_1.QueueProcessingFargateService(stack, 'QueueProcessingService', { - vpc, - memoryLimitMiB: 512, - image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')), - minScalingCapacity: 0, -}); -new integ.IntegTest(app, 'queueProcessingFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucXVldWUtcHJvY2Vzc2luZy1mYXJnYXRlLXNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5xdWV1ZS1wcm9jZXNzaW5nLWZhcmdhdGUtc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLDZDQUF5QztBQUN6QyxvREFBb0Q7QUFDcEQsbUVBQTZFO0FBRTdFLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsd0JBQXdCLENBQUMsQ0FBQztBQUN2RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILElBQUksZ0RBQTZCLENBQUMsS0FBSyxFQUFFLHdCQUF3QixFQUFFO0lBQ2pFLEdBQUc7SUFDSCxjQUFjLEVBQUUsR0FBRztJQUNuQixLQUFLLEVBQUUsSUFBSSxHQUFHLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLElBQUksRUFBRS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wgJy4uJywgJ3Nxcy1yZWFkZXInKSksXG4gIG1pblNjYWxpbmdDYXBhY2l0eTogMCxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ3F1ZXVlUHJvY2Vzc2luZ0ZhcmdhdGVTZXJ2aWNlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.js deleted file mode 100644 index ec4d43b90dc0e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.runtime-platform-application-load-balanced-fargate-service.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const events = require("aws-cdk-lib/aws-events"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-runtime-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 1 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -// Create the scheduled task -new aws_ecs_patterns_1.ScheduledFargateTask(stack, 'ScheduledFargateTask', { - cluster, - scheduledFargateTaskImageOptions: { - image: new ecs.AssetImage(path.join(__dirname, '..', 'demo-image')), - memoryLimitMiB: 512, - cpu: 256, - environment: { TRIGGER: 'CloudWatch Events' }, - runtimePlatform: { - cpuArchitecture: ecs.CpuArchitecture.X86_64, - operatingSystemFamily: ecs.OperatingSystemFamily.LINUX, - }, - }, - desiredTaskCount: 2, - schedule: events.Schedule.rate(cdk.Duration.minutes(2)), -}); -new integ_tests_alpha_1.IntegTest(app, 'Integ', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucnVudGltZS1wbGF0Zm9ybS1hcHBsaWNhdGlvbi1sb2FkLWJhbGFuY2VkLWZhcmdhdGUtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJ1bnRpbWUtcGxhdGZvcm0tYXBwbGljYXRpb24tbG9hZC1iYWxhbmNlZC1mYXJnYXRlLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUV2RCxtRUFBb0U7QUFFcEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSx1QkFBdUIsQ0FBQyxDQUFDO0FBRzFELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyx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biAgICBjcHU6IDI1NixcbiAgICBlbnZpcm9ubWVudDogeyBUUklHR0VSOiAnQ2xvdWRXYXRjaCBFdmVudHMnIH0sXG4gICAgcnVudGltZVBsYXRmb3JtOiB7XG4gICAgICBjcHVBcmNoaXRlY3R1cmU6IGVjcy5DcHVBcmNoaXRlY3R1cmUuWDg2XzY0LFxuICAgICAgb3BlcmF0aW5nU3lzdGVtRmFtaWx5OiBlY3MuT3BlcmF0aW5nU3lzdGVtRmFtaWx5LkxJTlVYLFxuICAgIH0sXG4gIH0sXG4gIGRlc2lyZWRUYXNrQ291bnQ6IDIsXG4gIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygyKSksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdJbnRlZycsIHsgdGVzdENhc2VzOiBbc3RhY2tdIH0pO1xuXG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.js deleted file mode 100644 index 2537de0abca65..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.scheduled-fargate-task.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const events = require("aws-cdk-lib/aws-events"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ecs_patterns_1 = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -class EventStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 1 }); - const cluster = new ecs.Cluster(this, 'FargateCluster', { vpc }); - // Create the scheduled task - new aws_ecs_patterns_1.ScheduledFargateTask(this, 'ScheduledFargateTask', { - cluster, - scheduledFargateTaskImageOptions: { - image: new ecs.AssetImage(path.join(__dirname, '..', 'demo-image')), - memoryLimitMiB: 512, - cpu: 256, - environment: { TRIGGER: 'CloudWatch Events' }, - }, - desiredTaskCount: 2, - schedule: events.Schedule.rate(cdk.Duration.minutes(2)), - }); - } -} -const myStack = new EventStack(app, 'aws-fargate-integ'); -new integ.IntegTest(app, 'publicQueueProcessingFargateServiceTest', { - testCases: [myStack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2NoZWR1bGVkLWZhcmdhdGUtdGFzay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNjaGVkdWxlZC1mYXJnYXRlLXRhc2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxtRUFBb0U7QUFFcEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxVQUFXLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDaEMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQU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ZEZhcmdhdGVUYXNrSW1hZ2VPcHRpb25zOiB7XG4gICAgICAgIGltYWdlOiBuZXcgZWNzLkFzc2V0SW1hZ2UocGF0aC5qb2luKF9fZGlybmFtZSwgJy4uJywgJ2RlbW8taW1hZ2UnKSksXG4gICAgICAgIG1lbW9yeUxpbWl0TWlCOiA1MTIsXG4gICAgICAgIGNwdTogMjU2LFxuICAgICAgICBlbnZpcm9ubWVudDogeyBUUklHR0VSOiAnQ2xvdWRXYXRjaCBFdmVudHMnIH0sXG4gICAgICB9LFxuICAgICAgZGVzaXJlZFRhc2tDb3VudDogMixcbiAgICAgIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygyKSksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgbXlTdGFjayA9IG5ldyBFdmVudFN0YWNrKGFwcCwgJ2F3cy1mYXJnYXRlLWludGVnJyk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAncHVibGljUXVldWVQcm9jZXNzaW5nRmFyZ2F0ZVNlcnZpY2VUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtteVN0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.js deleted file mode 100644 index ac4af7b02e9c4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.special-listener.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecsPatterns = require("aws-cdk-lib/aws-ecs-patterns"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate-special-listener'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); -const fargateNlbService = new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { - cluster, - listenerPort: 2015, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, -}); -const fargateAlbService = new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - listenerPort: 2015, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, -}); -new cdk.CfnOutput(stack, 'AlbDnsName', { value: fargateAlbService.loadBalancer.loadBalancerDnsName }); -new cdk.CfnOutput(stack, 'NlbDnsName', { value: fargateNlbService.loadBalancer.loadBalancerDnsName }); -new integ.IntegTest(app, 'publicQueueProcessingFargateServiceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3BlY2lhbC1saXN0ZW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNwZWNpYWwtbGlzdGVuZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERB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N0KGFwcCwgJ3B1YmxpY1F1ZXVlUHJvY2Vzc2luZ0ZhcmdhdGVTZXJ2aWNlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.js deleted file mode 100644 index 6ef30840773a3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.app-mesh-proxy-config.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-appmesh-proxy'); -// Create a cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const prox = ecs.ProxyConfigurations.appMeshProxyConfiguration({ - containerName: 'envoy', - properties: { - ignoredUID: 1337, - proxyIngressPort: 15000, - proxyEgressPort: 15001, - appPorts: [9080, 9081], - egressIgnoredIPs: ['169.254.170.2', '169.254.169.254'], - }, -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.AWS_VPC, - proxyConfiguration: prox, - ipcMode: ecs.IpcMode.HOST, - pidMode: ecs.PidMode.TASK, -}); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -taskDefinition.addContainer('envoy', { - // envoyproxy/envoy:latest tag gone from docker hub: https://github.com/envoyproxy/envoy/issues/6344 - image: ecs.ContainerImage.fromRegistry('envoyproxy/envoy:v1.16.2'), - memoryLimitMiB: 256, -}); -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBwLW1lc2gtcHJveHktY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXBwLW1lc2gtcHJveHktY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDO0FBRWhFLG1CQUFtQjtBQUNuQixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBRXJELE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsWUFBWSxFQUFFLEVBQUUsR0FBRyxFQUF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U2VydmljZShzdGFjaywgJ1NlcnZpY2UnLCB7XG4gIGNsdXN0ZXIsXG4gIHRhc2tEZWZpbml0aW9uLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.js deleted file mode 100644 index 46dcfa8f8b8fd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.bottlerocket.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-bottlerocket'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, natGateways: 1 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('bottlerocket-asg', { - minCapacity: 2, - instanceType: new ec2.InstanceType('c5.large'), - machineImageType: ecs.MachineImageType.BOTTLEROCKET, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYm90dGxlcm9ja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYm90dGxlcm9ja2V0LnRzIl0sIm5hbWVzIjpbXSwibWF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Nkay5TdGFjayhhcHAsICdhd3MtZWNzLWludGVnLWJvdHRsZXJvY2tldCcpO1xuXG5jb25zdCB2cGMgPSBuZXcgZWMyLlZwYyhzdGFjaywgJ1ZwYycsIHsgbWF4QXpzOiAyLCBuYXRHYXRld2F5czogMSB9KTtcblxuY29uc3QgY2x1c3RlciA9IG5ldyBlY3MuQ2x1c3RlcihzdGFjaywgJ0Vjc0NsdXN0ZXInLCB7IHZwYyB9KTtcblxuY2x1c3Rlci5hZGRDYXBhY2l0eSgnYm90dGxlcm9ja2V0LWFzZycsIHtcbiAgbWluQ2FwYWNpdHk6IDIsXG4gIGluc3RhbmNlVHlwZTogbmV3IGVjMi5JbnN0YW5jZVR5cGUoJ2M1LmxhcmdlJyksXG4gIG1hY2hpbmVJbWFnZVR5cGU6IGVjcy5NYWNoaW5lSW1hZ2VUeXBlLkJPVFRMRVJPQ0tFVCxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.js deleted file mode 100644 index 99832a3855f27..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.capacity-provider.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-ec2-capacity-provider'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EC2CPCluster', { - vpc, - enableFargateCapacityProviders: true, -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryReservationMiB: 256, -}); -const autoScalingGroup = new autoscaling.AutoScalingGroup(stack, 'ASG', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: ecs.EcsOptimizedImage.amazonLinux2(), -}); -const cp = new ecs.AsgCapacityProvider(stack, 'EC2CapacityProvider', { - autoScalingGroup, - // This is to allow cdk destroy to work; otherwise deletion will hang bc ASG cannot be deleted - enableManagedTerminationProtection: false, -}); -cluster.addAsgCapacityProvider(cp); -new ecs.Ec2Service(stack, 'EC2Service', { - cluster, - taskDefinition, - capacityProviderStrategies: [ - { - capacityProvider: cp.capacityProviderName, - weight: 1, - }, - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FwYWNpdHktcHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jYXBhY2l0eS1wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJEQUEyRDtBQUMzRCwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDZCQUE2QixDQUFDLENBQUM7QUFFaEUsTUFBTS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oKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.js deleted file mode 100644 index 2faea65fff6fe..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.clb-host-nw.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elb = require("aws-cdk-lib/aws-elasticloadbalancing"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.HOST, - ipcMode: ecs.IpcMode.HOST, - pidMode: ecs.PidMode.TASK, -}); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -const service = new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -const lb = new elb.LoadBalancer(stack, 'LB', { vpc }); -lb.addListener({ externalPort: 80 }); -lb.addTarget(service); -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xiLWhvc3QtbncuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbGItaG9zdC1udy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyw0REFBNEQ7QUFDNUQsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGVBQWUsQ0FBQyxDQUFDO0FBRWxELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7QUFFckQsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxZQUFZLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO0FBQzlELE9BQU8sQ0FBQyxXQUFXLENBQUMseUJBQXlCLEVBQUU7SUFDN0MsWUFBWSxFQUFFLElBQUksR0FBRyxDQUFDLFlBQVksQ0FBQyxVQUFVLENBQUM7Q0FDL0MsQ0FBQyxDQUFDO0FBRUgsTUFBTSxjQUFjLEdBQUcsSUFBSSxHQUFHLENBQUMsaUJBQWlCLENBQUMsS0FBSyxFQUFFLFNBQVMsRUFBRTtJQUNqRSxXQUFXLEVBQUUsR0FBRyxDQUFDLFdBQVcsQ0FBQyxJQUFJO0lB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xlJyksXG4gIG1lbW9yeUxpbWl0TWlCOiAyNTYsXG59KTtcblxuY29udGFpbmVyLmFkZFBvcnRNYXBwaW5ncyh7XG4gIGNvbnRhaW5lclBvcnQ6IDgwLFxuICBwcm90b2NvbDogZWNzLlByb3RvY29sLlRDUCxcbn0pO1xuXG5jb25zdCBzZXJ2aWNlID0gbmV3IGVjcy5FYzJTZXJ2aWNlKHN0YWNrLCAnU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG59KTtcblxuY29uc3QgbGIgPSBuZXcgZWxiLkxvYWRCYWxhbmNlcihzdGFjaywgJ0xCJywgeyB2cGMgfSk7XG5sYi5hZGRMaXN0ZW5lcih7IGV4dGVybmFsUG9ydDogODAgfSk7XG5sYi5hZGRUYXJnZXQoc2VydmljZSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnTG9hZEJhbGFuY2VyRE5TJywgeyB2YWx1ZTogbGIubG9hZEJhbGFuY2VyRG5zTmFtZSB9KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.js deleted file mode 100644 index c532af726b5bb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.cloudmap-container-port.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cloudmap = require("aws-cdk-lib/aws-servicediscovery"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { - maxAzs: 2, - subnetConfiguration: [ - { - name: 'pub', - cidrMask: 24, - subnetType: ec2.SubnetType.PUBLIC, - }, - ], -}); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -const capacity = cluster.addCapacity('capacity', { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.MICRO), - desiredCapacity: 1, - minCapacity: 1, - maxCapacity: 1, -}); -capacity.connections.allowFromAnyIpv4(ec2.Port.tcpRange(32768, 61000)); -cluster.addDefaultCloudMapNamespace({ name: 'aws-ecs-integ' }); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', {}); -// Main container -const mainContainer = taskDefinition.addContainer('nginx', { - image: ecs.ContainerImage.fromRegistry('nginx'), - memoryReservationMiB: 32, - memoryLimitMiB: 512, -}); -mainContainer.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -// Name container with SRV -const nameContainer = taskDefinition.addContainer('name', { - image: ecs.ContainerImage.fromRegistry('nathanpeck/name'), - environment: { - PORT: '81', - }, - memoryReservationMiB: 32, - memoryLimitMiB: 512, -}); -nameContainer.addPortMappings({ - containerPort: 81, - protocol: ecs.Protocol.TCP, -}); -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, - desiredCount: 3, - cloudMapOptions: { - container: nameContainer, - containerPort: 81, - dnsRecordType: cloudmap.DnsRecordType.SRV, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRtYXAtY29udGFpbmVyLXBvcnQuanMiLCJzb3VyY2VSb290Ijoi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250YWluZXIgd2l0aCBTUlZcbmNvbnN0IG5hbWVDb250YWluZXIgPSB0YXNrRGVmaW5pdGlvbi5hZGRDb250YWluZXIoJ25hbWUnLCB7XG4gIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCduYXRoYW5wZWNrL25hbWUnKSxcbiAgZW52aXJvbm1lbnQ6IHtcbiAgICBQT1JUOiAnODEnLFxuICB9LFxuICBtZW1vcnlSZXNlcnZhdGlvbk1pQjogMzIsXG4gIG1lbW9yeUxpbWl0TWlCOiA1MTIsXG59KTtcblxubmFtZUNvbnRhaW5lci5hZGRQb3J0TWFwcGluZ3Moe1xuICBjb250YWluZXJQb3J0OiA4MSxcbiAgcHJvdG9jb2w6IGVjcy5Qcm90b2NvbC5UQ1AsXG59KTtcblxubmV3IGVjcy5FYzJTZXJ2aWNlKHN0YWNrLCAnU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG4gIGRlc2lyZWRDb3VudDogMyxcbiAgY2xvdWRNYXBPcHRpb25zOiB7XG4gICAgY29udGFpbmVyOiBuYW1lQ29udGFpbmVyLFxuICAgIGNvbnRhaW5lclBvcnQ6IDgxLFxuICAgIGRuc1JlY29yZFR5cGU6IGNsb3VkbWFwLkRuc1JlY29yZFR5cGUuU1JWLFxuICB9LFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.js deleted file mode 100644 index 92d1b1f730692..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.default-capacity-provider.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const autoscaling = require("aws-cdk-lib/aws-autoscaling"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-default-capacity-provider'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryReservationMiB: 256, -}); -const autoScalingGroup = new autoscaling.AutoScalingGroup(stack, 'ASG', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: ecs.EcsOptimizedImage.amazonLinux2(), -}); -const cp = new ecs.AsgCapacityProvider(stack, 'EC2CapacityProvider', { - autoScalingGroup, - // This is to allow cdk destroy to work; otherwise deletion will hang bc ASG cannot be deleted - enableManagedTerminationProtection: false, -}); -const cluster = new ecs.Cluster(stack, 'EC2CPCluster', { - vpc, - enableFargateCapacityProviders: true, -}); -cluster.addAsgCapacityProvider(cp); -cluster.addDefaultCapacityProviderStrategy([ - { capacityProvider: 'FARGATE', base: 1, weight: 1 }, - { capacityProvider: 'FARGATE_SPOT', weight: 1 }, -]); -new ecs.Ec2Service(stack, 'EC2Service', { - cluster, - taskDefinition, -}); -new integ.IntegTest(app, 'CapacityProviders', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVmYXVsdC1jYXBhY2l0eS1wc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JvdXAsXG4gIC8vIFRoaXMgaXMgdG8gYWxsb3cgY2RrIGRlc3Ryb3kgdG8gd29yazsgb3RoZXJ3aXNlIGRlbGV0aW9uIHdpbGwgaGFuZyBiYyBBU0cgY2Fubm90IGJlIGRlbGV0ZWRcbiAgZW5hYmxlTWFuYWdlZFRlcm1pbmF0aW9uUHJvdGVjdGlvbjogZmFsc2UsXG59KTtcblxuY29uc3QgY2x1c3RlciA9IG5ldyBlY3MuQ2x1c3RlcihzdGFjaywgJ0VDMkNQQ2x1c3RlcicsIHtcbiAgdnBjLFxuICBlbmFibGVGYXJnYXRlQ2FwYWNpdHlQcm92aWRlcnM6IHRydWUsXG59KTtcblxuY2x1c3Rlci5hZGRBc2dDYXBhY2l0eVByb3ZpZGVyKGNwKTtcbmNsdXN0ZXIuYWRkRGVmYXVsdENhcGFjaXR5UHJvdmlkZXJTdHJhdGVneShbXG4gIHsgY2FwYWNpdHlQcm92aWRlcjogJ0ZBUkdBVEUnLCBiYXNlOiAxLCB3ZWlnaHQ6IDEgfSxcbiAgeyBjYXBhY2l0eVByb3ZpZGVyOiAnRkFSR0FURV9TUE9UJywgd2VpZ2h0OiAxIH0sXG5dKTtcblxuXG5uZXcgZWNzLkVjMlNlcnZpY2Uoc3RhY2ssICdFQzJTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICB0YXNrRGVmaW5pdGlvbixcbn0pO1xubmV3IGludGVnLkludGVnVGVzdChhcHAsICdDYXBhY2l0eVByb3ZpZGVycycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js deleted file mode 100644 index b199fe0012607..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.environment-file.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const s3deployment = require("aws-cdk-lib/aws-s3-deployment"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -// S3 bucket to host envfile without public access -const bucket = new s3.Bucket(stack, 'Bucket', { - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -// ECS cluster to host EC2 task -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -// permit EC2 task to read envfiles from S3 -const s3PolicyStatement = new iam.PolicyStatement({ - actions: ['s3:GetBucketLocation', 's3:GetObject'], -}); -s3PolicyStatement.addAllResources(); -const executionRole = new iam.Role(stack, 'ExecutionRole', { - assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), - inlinePolicies: { - s3Policy: new iam.PolicyDocument({ - statements: [s3PolicyStatement], - }), - }, -}); -// define task to run the container with envfiles -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDefinition', { - executionRole, - networkMode: ecs.NetworkMode.AWS_VPC, -}); -// deploy an envfile to S3 and delete when the bucket is deleted -const envFileDeployment = new s3deployment.BucketDeployment(stack, 'EnvFileDeployment', { - destinationBucket: bucket, - sources: [s3deployment.Source.asset(path.join(__dirname, '../demo-envfiles'))], -}); -// define container with envfiles - one from local disk and another from S3 -const containerDefinition = new ecs.ContainerDefinition(stack, 'Container', { - environmentFiles: [ - ecs.EnvironmentFile.fromAsset(path.join(__dirname, '../demo-envfiles/test-envfile.env')), - ecs.EnvironmentFile.fromBucket(bucket, 'test-envfile.env'), - ], - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, - taskDefinition, -}); -containerDefinition.node.addDependency(envFileDeployment); -// define a service to run the task definition -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZW52aXJvbm1lbnQtZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVudmlyb25tZW50LWZpbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyx5Q0FBeUM7QUFDekMsOERBQThEO0FBQzlELG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxlQUFlLENBQUMsQ0FBQztBQUVsRCxrREFBa0Q7QUFDbEQsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxRQUFRLEVBQUU7SUFDNUMsaUJBQWlCLEVBQUUsRUFBRSxDQUFDLGlCQUFpQixDQUFDLFNBQVM7SUFDakQs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ckRlZmluaXRpb24ubm9kZS5hZGREZXBlbmRlbmN5KGVudkZpbGVEZXBsb3ltZW50KTtcblxuLy8gZGVmaW5lIGEgc2VydmljZSB0byBydW4gdGhlIHRhc2sgZGVmaW5pdGlvblxubmV3IGVjcy5FYzJTZXJ2aWNlKHN0YWNrLCAnU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.js deleted file mode 100644 index 9ff9fdf2f7a9d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.exec-command.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const kms = require("aws-cdk-lib/aws-kms"); -const logs = require("aws-cdk-lib/aws-logs"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-exec-command'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const kmsKey = new kms.Key(stack, 'KmsKey'); -const logGroup = new logs.LogGroup(stack, 'LogGroup', { - encryptionKey: kmsKey, -}); -const execBucket = new s3.Bucket(stack, 'EcsExecBucket', { - encryptionKey: kmsKey, -}); -const cluster = new ecs.Cluster(stack, 'Ec2Cluster', { - vpc, - executeCommandConfiguration: { - kmsKey, - logConfiguration: { - cloudWatchLogGroup: logGroup, - cloudWatchEncryptionEnabled: true, - s3Bucket: execBucket, - s3EncryptionEnabled: true, - s3KeyPrefix: 'exec-output', - }, - logging: ecs.ExecuteCommandLogging.OVERRIDE, - }, -}); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -new ecs.Ec2Service(stack, 'Ec2Service', { - cluster, - taskDefinition, - enableExecuteCommand: true, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXhlYy1jb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXhlYy1jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyw2Q0FBNkM7QUFDN0MseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw0QkFBNEIsQ0FBQyxDQUFDO0FBRS9ELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUM7QUFFckQsTUFBTSxNQUFNLEdBQ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zJTZXJ2aWNlKHN0YWNrLCAnRWMyU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG4gIGVuYWJsZUV4ZWN1dGVDb21tYW5kOiB0cnVlLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.js deleted file mode 100644 index 11a086f02534f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.firelens-s3-config.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3_assets = require("aws-cdk-lib/aws-s3-assets"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.AWS_VPC, -}); -const asset = new s3_assets.Asset(stack, 'SampleAsset', { - path: path.join(__dirname, 'firelens.conf'), -}); -// firelens log router with custom s3 configuration file -taskDefinition.addFirelensLogRouter('log_router', { - image: ecs.obtainDefaultFluentBitECRImage(taskDefinition, undefined, '2.1.0'), - firelensConfig: { - type: ecs.FirelensLogRouterType.FLUENTBIT, - options: { - enableECSLogMetadata: false, - configFileValue: `${asset.bucket.bucketArn}/${asset.s3ObjectKey}`, - configFileType: ecs.FirelensConfigFileType.S3, - }, - }, - logging: new ecs.AwsLogDriver({ streamPrefix: 'firelens' }), - memoryReservationMiB: 50, -}); -// new container with firelens log driver -const container = taskDefinition.addContainer('nginx', { - image: ecs.ContainerImage.fromRegistry('nginx'), - memoryLimitMiB: 256, - logging: ecs.LogDrivers.firelens({ - options: { - Name: 'cloudwatch', - region: stack.region, - log_group_name: 'ecs-integ-test', - auto_create_group: 'true', - log_stream_prefix: 'nginx', - }, - }), -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -// Create a security group that allows tcp @ port 80 -const securityGroup = new ec2.SecurityGroup(stack, 'websvc-sg', { vpc }); -securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80)); -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, - securityGroup, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmlyZWxlbnMtczMtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZmlyZWxlbnMtczMtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyx1REFBdUQ7QUFDdkQsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRy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Q== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.js deleted file mode 100644 index 854617901d10f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton-bottlerocket.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('graviton-cluster', { - minCapacity: 2, - instanceType: new ec2.InstanceType('c6g.large'), - machineImageType: ecs.MachineImageType.BOTTLEROCKET, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ3Jhdml0b24tYm90dGxlcm9ja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ3Jhdml0b24tYm90dGxlcm9ja2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTS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dCBjbHVzdGVyID0gbmV3IGVjcy5DbHVzdGVyKHN0YWNrLCAnRWNzQ2x1c3RlcicsIHsgdnBjIH0pO1xuXG5jbHVzdGVyLmFkZENhcGFjaXR5KCdncmF2aXRvbi1jbHVzdGVyJywge1xuICBtaW5DYXBhY2l0eTogMixcbiAgaW5zdGFuY2VUeXBlOiBuZXcgZWMyLkluc3RhbmNlVHlwZSgnYzZnLmxhcmdlJyksXG4gIG1hY2hpbmVJbWFnZVR5cGU6IGVjcy5NYWNoaW5lSW1hZ2VUeXBlLkJPVFRMRVJPQ0tFVCxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.js deleted file mode 100644 index 0d0725b81f3b7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.graviton.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('graviton-cluster', { - minCapacity: 2, - instanceType: new ec2.InstanceType('c6g.large'), - machineImage: ecs.Ec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ICdhd3MtY2RrLWxpYi9hd3MtZWMyJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBlY3MgZnJvbSAnYXdzLWNkay1saWIvYXdzLWVjcyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBjZGsuU3RhY2soYXBwLCAnYXdzLWVjcy1pbnRlZycpO1xuXG5jb25zdCB2cGMgPSBuZXcgZWMyLlZwYyhzdGFjaywgJ1ZwYycsIHsgbWF4QXpzOiAyIH0pO1xuY29uc3QgY2x1c3RlciA9IG5ldyBlY3MuQ2x1c3RlcihzdGFjaywgJ0Vjc0NsdXN0ZXInLCB7IHZwYyB9KTtcblxuY2x1c3Rlci5hZGRDYXBhY2l0eSgnZ3Jhdml0b24tY2x1c3RlcicsIHtcbiAgbWluQ2FwYWNpdHk6IDIsXG4gIGluc3RhbmNlVHlwZTogbmV3IGVjMi5JbnN0YW5jZVR5cGUoJ2M2Zy5sYXJnZScpLFxuICBtYWNoaW5lSW1hZ2U6IGVjcy5FY3NPcHRpbWl6ZWRJbWFnZS5hbWF6b25MaW51eDIoZWNzLkFtaUhhcmR3YXJlVHlwZS5BUk0pLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.js deleted file mode 100644 index 0f9f03c880bbf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-awsvpc-nw.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.AWS_VPC, -}); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -const service = new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -const listener = lb.addListener('PublicListener', { port: 80, open: true }); -listener.addTargets('ECS', { - port: 80, - targets: [service], -}); -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGItYXdzdnBjLW53LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGItYXdzdnBjLW53LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLGdFQUFnRTtBQUNoRSxtQ0FBb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b2FkQmFsYW5jZXIoc3RhY2ssICdMQicsIHsgdnBjLCBpbnRlcm5ldEZhY2luZzogdHJ1ZSB9KTtcbmNvbnN0IGxpc3RlbmVyID0gbGIuYWRkTGlzdGVuZXIoJ1B1YmxpY0xpc3RlbmVyJywgeyBwb3J0OiA4MCwgb3BlbjogdHJ1ZSB9KTtcbmxpc3RlbmVyLmFkZFRhcmdldHMoJ0VDUycsIHtcbiAgcG9ydDogODAsXG4gIHRhcmdldHM6IFtzZXJ2aWNlXSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0xvYWRCYWxhbmNlckROUycsIHsgdmFsdWU6IGxiLmxvYWRCYWxhbmNlckRuc05hbWUgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.js deleted file mode 100644 index 0bb8b2558c679..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.lb-bridge-nw.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { -// networkMode defaults to "bridge" -// memoryMiB: '1GB', -// cpu: '512' -}); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -container.addPortMappings({ - containerPort: 80, - hostPort: 8080, - protocol: ecs.Protocol.TCP, -}); -const service = new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -const listener = lb.addListener('PublicListener', { port: 80, open: true }); -listener.addTargets('ECS', { - port: 80, - targets: [service], -}); -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGItYnJpZGdlLW53LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGItYnJpZGdlLW53LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsMkNBQTJDO0FBQzNDLGdFQUFnRTtBQUNoRSxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUV0RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQ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B9KTtcbmxpc3RlbmVyLmFkZFRhcmdldHMoJ0VDUycsIHtcbiAgcG9ydDogODAsXG4gIHRhcmdldHM6IFtzZXJ2aWNlXSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0xvYWRCYWxhbmNlckROUycsIHsgdmFsdWU6IGxiLmxvYWRCYWxhbmNlckRuc05hbWUgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.js deleted file mode 100644 index f1a88fb150427..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.placement-strategies.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -class EcsStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - const cluster = new ecs.Cluster(this, 'EcsCluster', { vpc }); - cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.MICRO), - }); - const taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef'); - taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, - }); - new ecs.Ec2Service(this, 'Test_Stack', { - cluster, - taskDefinition, - placementStrategies: [ - ecs.PlacementStrategy.packedByCpu(), - ecs.PlacementStrategy.packedByMemory(), - ], - }); - } -} -new EcsStack(app, 'aws-cdk-ecs-integration-test-stack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGxhY2VtZW50LXN0cmF0ZWdpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wbGFjZW1lbnQtc3RyYXRlZ2llcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFFbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sUUFBUyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzlCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDOUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUVyQyxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7UUFDN0QsT0FBTyxDQUFDLFdBQVcsQ0FBQyx5QkFBeUIsRUFBRTtZQUM3QyxZQUFZLEVBQUUsR0FBRyxDQUFDLFlBQVksQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxFQUFFLEVBQUUsR0FBRyxDQUFDLFlBQV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1cbn1cblxubmV3IEVjc1N0YWNrKGFwcCwgJ2F3cy1jZGstZWNzLWludGVncmF0aW9uLXRlc3Qtc3RhY2snKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.js deleted file mode 100644 index c65766f16de31..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.pseudo-terminal.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-pseudo-terminal'); -// Create a cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.AWS_VPC, -}); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, - pseudoTerminal: true, -}); -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -new integ.IntegTest(app, 'PseudoTerminal', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHNldWRvLXRlcm1pbmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucHNldWRvLXRlcm1pbmFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsK0JBQStCLENBQUMsQ0FBQztBQUVsRSxtQkFBbUI7QUFDbkIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUM7QUFDOUQsT0FBTyxDQUFDLFdBQVcsQ0FBQyx5QkFBeUIsRUFBRTtJQUM3QyxZQUFZLEVBQUUsSUFBSSxHQUFHLENBQUMsWUFBWSxDQUFDLFVBQVUsQ0FBQztDQUMvQyxDQUFDLENBQUM7QUFFSCxNQUFNLGNBQWMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxLQUFLLEVBQUUsU0FBUyxFQUFFO0lBQ2pFLFdBQVcsRUFBRSxHQUFHLENBQUMsV0FBVyxDQUFDLE9BQU87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KHN0YWNrLCAnRWNzQ2x1c3RlcicsIHsgdnBjIH0pO1xuY2x1c3Rlci5hZGRDYXBhY2l0eSgnRGVmYXVsdEF1dG9TY2FsaW5nR3JvdXAnLCB7XG4gIGluc3RhbmNlVHlwZTogbmV3IGVjMi5JbnN0YW5jZVR5cGUoJ3QyLm1pY3JvJyksXG59KTtcblxuY29uc3QgdGFza0RlZmluaXRpb24gPSBuZXcgZWNzLkVjMlRhc2tEZWZpbml0aW9uKHN0YWNrLCAnVGFza0RlZicsIHtcbiAgbmV0d29ya01vZGU6IGVjcy5OZXR3b3JrTW9kZS5BV1NfVlBDLFxufSk7XG5cbnRhc2tEZWZpbml0aW9uLmFkZENvbnRhaW5lcignd2ViJywge1xuICBpbWFnZTogZWNzLkNvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIG1lbW9yeUxpbWl0TWlCOiAyNTYsXG4gIHBzZXVkb1Rlcm1pbmFsOiB0cnVlLFxufSk7XG5cbm5ldyBlY3MuRWMyU2VydmljZShzdGFjaywgJ1NlcnZpY2UnLCB7XG4gIGNsdXN0ZXIsXG4gIHRhc2tEZWZpbml0aW9uLFxufSk7XG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ1BzZXVkb1Rlcm1pbmFsJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.js deleted file mode 100644 index c917f49d995aa..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-awsvpc-nw.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -// Add Private DNS Namespace -const domainName = 'scorekeep.com'; -cluster.addDefaultCloudMapNamespace({ - name: domainName, -}); -// Create frontend service -const frontendTD = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { - networkMode: ecs.NetworkMode.AWS_VPC, -}); -const frontend = frontendTD.addContainer('frontend', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -frontend.addPortMappings({ - containerPort: 80, - hostPort: 80, - protocol: ecs.Protocol.TCP, -}); -new ecs.Ec2Service(stack, 'FrontendService', { - cluster, - taskDefinition: frontendTD, - cloudMapOptions: { - name: 'frontend', - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2QtYXdzdnBjLW53LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2QtYXdzdnBjLW53LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywyQ0FB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ufSk7XG5cbi8vIEFkZCBQcml2YXRlIEROUyBOYW1lc3BhY2VcbmNvbnN0IGRvbWFpbk5hbWUgPSAnc2NvcmVrZWVwLmNvbSc7XG5jbHVzdGVyLmFkZERlZmF1bHRDbG91ZE1hcE5hbWVzcGFjZSh7XG4gIG5hbWU6IGRvbWFpbk5hbWUsXG59KTtcblxuLy8gQ3JlYXRlIGZyb250ZW5kIHNlcnZpY2VcbmNvbnN0IGZyb250ZW5kVEQgPSBuZXcgZWNzLkVjMlRhc2tEZWZpbml0aW9uKHN0YWNrLCAnVGFza0RlZicsIHtcbiAgbmV0d29ya01vZGU6IGVjcy5OZXR3b3JrTW9kZS5BV1NfVlBDLFxufSk7XG5cbmNvbnN0IGZyb250ZW5kID0gZnJvbnRlbmRURC5hZGRDb250YWluZXIoJ2Zyb250ZW5kJywge1xuICBpbWFnZTogZWNzLkNvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIG1lbW9yeUxpbWl0TWlCOiAyNTYsXG59KTtcblxuZnJvbnRlbmQuYWRkUG9ydE1hcHBpbmdzKHtcbiAgY29udGFpbmVyUG9ydDogODAsXG4gIGhvc3RQb3J0OiA4MCxcbiAgcHJvdG9jb2w6IGVjcy5Qcm90b2NvbC5UQ1AsXG59KTtcblxubmV3IGVjcy5FYzJTZXJ2aWNlKHN0YWNrLCAnRnJvbnRlbmRTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICB0YXNrRGVmaW5pdGlvbjogZnJvbnRlbmRURCxcbiAgY2xvdWRNYXBPcHRpb25zOiB7XG4gICAgbmFtZTogJ2Zyb250ZW5kJyxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.js deleted file mode 100644 index 28dcf2c217877..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.sd-bridge-nw.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -// Add Private DNS Namespace -const domainName = 'scorekeep.com'; -cluster.addDefaultCloudMapNamespace({ - name: domainName, -}); -// Create frontend service -// default network mode is bridge -const frontendTD = new ecs.Ec2TaskDefinition(stack, 'frontendTD'); -const frontend = frontendTD.addContainer('frontend', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, -}); -frontend.addPortMappings({ - containerPort: 80, - hostPort: 80, - protocol: ecs.Protocol.TCP, -}); -new ecs.Ec2Service(stack, 'FrontendService', { - cluster, - taskDefinition: frontendTD, - cloudMapOptions: { - name: 'frontend', - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2QtYnJpZGdlLW53LmpzIiwic291cmNlUm9vdCI6IiIs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aW5zdGFuY2VUeXBlOiBuZXcgZWMyLkluc3RhbmNlVHlwZSgndDIubWljcm8nKSxcbn0pO1xuXG4vLyBBZGQgUHJpdmF0ZSBETlMgTmFtZXNwYWNlXG5jb25zdCBkb21haW5OYW1lID0gJ3Njb3Jla2VlcC5jb20nO1xuY2x1c3Rlci5hZGREZWZhdWx0Q2xvdWRNYXBOYW1lc3BhY2Uoe1xuICBuYW1lOiBkb21haW5OYW1lLFxufSk7XG5cbi8vIENyZWF0ZSBmcm9udGVuZCBzZXJ2aWNlXG4vLyBkZWZhdWx0IG5ldHdvcmsgbW9kZSBpcyBicmlkZ2VcbmNvbnN0IGZyb250ZW5kVEQgPSBuZXcgZWNzLkVjMlRhc2tEZWZpbml0aW9uKHN0YWNrLCAnZnJvbnRlbmRURCcpO1xuXG5jb25zdCBmcm9udGVuZCA9IGZyb250ZW5kVEQuYWRkQ29udGFpbmVyKCdmcm9udGVuZCcsIHtcbiAgaW1hZ2U6IGVjcy5Db250YWluZXJJbWFnZS5mcm9tUmVnaXN0cnkoJ2FtYXpvbi9hbWF6b24tZWNzLXNhbXBsZScpLFxuICBtZW1vcnlMaW1pdE1pQjogMjU2LFxufSk7XG5cbmZyb250ZW5kLmFkZFBvcnRNYXBwaW5ncyh7XG4gIGNvbnRhaW5lclBvcnQ6IDgwLFxuICBob3N0UG9ydDogODAsXG4gIHByb3RvY29sOiBlY3MuUHJvdG9jb2wuVENQLFxufSk7XG5cbm5ldyBlY3MuRWMyU2VydmljZShzdGFjaywgJ0Zyb250ZW5kU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb246IGZyb250ZW5kVEQsXG4gIGNsb3VkTWFwT3B0aW9uczoge1xuICAgIG5hbWU6ICdmcm9udGVuZCcsXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.js deleted file mode 100644 index 2a3174a622ef9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.secret-json-field.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-secret-json-field'); -const secret = new secretsmanager.Secret(stack, 'Secret', { - generateSecretString: { - generateStringKey: 'password', - secretStringTemplate: JSON.stringify({ username: 'user' }), - }, -}); -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 256, - secrets: { - PASSWORD: ecs.Secret.fromSecretsManager(secret, 'password'), - }, -}); -container.addSecret('APIKEY', ecs.Secret.fromSecretsManager(secret, 'apikey')); -new integ.IntegTest(app, 'aws-ecs-ec2-integ-secret-json-field', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VjcmV0LWpzb24tZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zZWNyZXQtanNvbi1maWVsZC50cyJdLCJuY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BpbWFnZTogZWNzLkNvbnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG4gIG1lbW9yeUxpbWl0TWlCOiAyNTYsXG4gIHNlY3JldHM6IHtcbiAgICBQQVNTV09SRDogZWNzLlNlY3JldC5mcm9tU2VjcmV0c01hbmFnZXIoc2VjcmV0LCAncGFzc3dvcmQnKSxcbiAgfSxcbn0pO1xuXG5jb250YWluZXIuYWRkU2VjcmV0KCdBUElLRVknLCBlY3MuU2VjcmV0LmZyb21TZWNyZXRzTWFuYWdlcihzZWNyZXQsICdhcGlrZXknKSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnYXdzLWVjcy1lYzItaW50ZWctc2VjcmV0LWpzb24tZmllbGQnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.js deleted file mode 100644 index cb6f9eaa36936..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.spot-drain.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-spot'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('asgSpot', { - maxCapacity: 2, - minCapacity: 2, - desiredCapacity: 2, - instanceType: new ec2.InstanceType('c5.xlarge'), - spotPrice: '0.0735', - spotInstanceDraining: true, -}); -cluster.addCapacity('asgOd', { - maxCapacity: 2, - minCapacity: 1, - desiredCapacity: 1, - instanceType: new ec2.InstanceType('t3.large'), -}); -const taskDefinition = new ecs.TaskDefinition(stack, 'Task', { - compatibility: ecs.Compatibility.EC2, -}); -taskDefinition.addContainer('PHP', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 512, -}).addPortMappings({ - containerPort: 80, -}); -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3BvdC1kcmFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNwb3QtZHJhaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG9CQUFvQixDQUFDLENBQUM7QUFFdkQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxNQUFNLE9BQU8sR0FBRyxJ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5jb25zdCB0YXNrRGVmaW5pdGlvbiA9IG5ldyBlY3MuVGFza0RlZmluaXRpb24oc3RhY2ssICdUYXNrJywge1xuICBjb21wYXRpYmlsaXR5OiBlY3MuQ29tcGF0aWJpbGl0eS5FQzIsXG59KTtcblxudGFza0RlZmluaXRpb24uYWRkQ29udGFpbmVyKCdQSFAnLCB7XG4gIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgbWVtb3J5TGltaXRNaUI6IDUxMixcbn0pLmFkZFBvcnRNYXBwaW5ncyh7XG4gIGNvbnRhaW5lclBvcnQ6IDgwLFxufSk7XG5cbm5ldyBlY3MuRWMyU2VydmljZShzdGFjaywgJ1NlcnZpY2UnLCB7XG4gIGNsdXN0ZXIsXG4gIHRhc2tEZWZpbml0aW9uLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.js deleted file mode 100644 index 7b976a5fd4cbc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/ec2/integ.swap-parameters.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const aws_ecs_1 = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -// ECS cluster to host EC2 task -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -// define task to run the container -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDefinition', { - networkMode: ecs.NetworkMode.AWS_VPC, -}); -// define linux parameters to enable swap -const linuxParameters = new aws_ecs_1.LinuxParameters(stack, 'LinuxParameters', { - maxSwap: cdk.Size.gibibytes(5), - swappiness: 90, -}); -// define container with linux parameters -new ecs.ContainerDefinition(stack, 'Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - linuxParameters, - memoryLimitMiB: 256, - taskDefinition, -}); -// define a service to run the task definition -new ecs.Ec2Service(stack, 'Service', { - cluster, - taskDefinition, -}); -new integ.IntegTest(app, 'SwapParametersTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3dhcC1wYXJhbWV0ZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3dhcC1wYXJhbWV0ZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsMkNBQTJDO0FBQzNDLGlEQUFzRDtBQUV0RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGVBQWU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CcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.js deleted file mode 100644 index 63bea21c00398..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.add-environment-variable.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 1024, - cpu: 512, -}); -// new container with firelens log driver, firelens log router will be created automatically. -const container = taskDefinition.addContainer('nginx', { - image: ecs.ContainerImage.fromRegistry('nginx'), -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -// Create a security group that allows tcp @ port 80 -const securityGroup = new ec2.SecurityGroup(stack, 'websvc-sg', { vpc }); -securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80)); -new ecs.FargateService(stack, 'Service', { - cluster, - taskDefinition, - securityGroup, - assignPublicIp: true, -}); -container.addEnvironment('nameOne', 'valueOne'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWRkLWVudmlyb25tZW50LXZhcmlhYmxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYWRkLWVudmlyb25tZW50LXZhcmlhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxlQUFlLENBQUMsQ0FBQztBQUNsRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBQ3JELE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO0FBRWxFLE1BQU0sY0FBYyxHQUFHLElBQUksR0FBRyxDQUFDLHFCQUFxQixDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDckUsY0FBYyxFQUFFLElBQUk7SUFDcEIsR0FBRyxFQUFFLEdBQUc7Q0FDVCxDQUFDLENBQUM7QUFFSCw2RkFBNkY7QUFDN0YsTUFBTSxTQUFTLEdBQUcsY0FBYyxDQUFDLFlBQVksQ0FBQyxPQUFPLEVBQUU7SUFDckQsS0FBSyxFQUFFLEdBQUcsQ0FBQyxjQUFjLENBQUMsWUFBW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2tEZWZpbml0aW9uLFxuICBzZWN1cml0eUdyb3VwLFxuICBhc3NpZ25QdWJsaWNJcDogdHJ1ZSxcbn0pO1xuXG5jb250YWluZXIuYWRkRW52aXJvbm1lbnQoJ25hbWVPbmUnLCAndmFsdWVPbmUnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.js deleted file mode 100644 index 0b19cb67d2fcf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.capacity-providers.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-capacity-provider'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCPCluster', { - vpc, - capacityProviders: ['FARGATE', 'FARGATE_SPOT'], -}); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), -}); -new ecs.FargateService(stack, 'FargateService', { - cluster, - taskDefinition, - capacityProviderStrategies: [ - { - capacityProvider: 'FARGATE_SPOT', - we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bnRhaW5lckltYWdlLmZyb21SZWdpc3RyeSgnYW1hem9uL2FtYXpvbi1lY3Mtc2FtcGxlJyksXG59KTtcblxubmV3IGVjcy5GYXJnYXRlU2VydmljZShzdGFjaywgJ0ZhcmdhdGVTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICB0YXNrRGVmaW5pdGlvbixcbiAgY2FwYWNpdHlQcm92aWRlclN0cmF0ZWdpZXM6IFtcbiAgICB7XG4gICAgICBjYXBhY2l0eVByb3ZpZGVyOiAnRkFSR0FURV9TUE9UJyxcbiAgICAgIHdlaWdodDogMixcbiAgICB9LFxuICAgIHtcbiAgICAgIGNhcGFjaXR5UHJvdmlkZXI6ICdGQVJHQVRFJyxcbiAgICAgIHdlaWdodDogMSxcbiAgICB9LFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuXG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.js deleted file mode 100644 index d6c3c9593ed0e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.exec-command.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const kms = require("aws-cdk-lib/aws-kms"); -const logs = require("aws-cdk-lib/aws-logs"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-exec-command'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const kmsKey = new kms.Key(stack, 'KmsKey'); -const logGroup = new logs.LogGroup(stack, 'LogGroup', { - encryptionKey: kmsKey, -}); -const execBucket = new s3.Bucket(stack, 'EcsExecBucket', { - encryptionKey: kmsKey, -}); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { - vpc, - executeCommandConfiguration: { - kmsKey, - logConfiguration: { - cloudWatchLogGroup: logGroup, - cloudWatchEncryptionEnabled: true, - s3Bucket: execBucket, - s3EncryptionEnabled: true, - s3KeyPrefix: 'exec-output', - }, - logging: ecs.ExecuteCommandLogging.OVERRIDE, - }, -}); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - healthCheck: { - command: ['CMD-SHELL', 'curl localhost:8000'], - interval: aws_cdk_lib_1.Duration.seconds(60), - timeout: aws_cdk_lib_1.Duration.seconds(40), - }, -}); -new ecs.FargateService(stack, 'FargateService', { - cluster, - taskDefinition, - enableExecuteCommand: true, -}); -new integ.IntegTest(app, 'exec-command-integ-test', { - testCases: [stack], - diffAssets: true, - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXhlYy1jb21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXhlYy1jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyw2Q0FBNkM7QUFDN0MseUNBQXlDO0FBQ3pDLG1D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rXSxcbiAgZGlmZkFzc2V0czogdHJ1ZSxcbiAgY2RrQ29tbWFuZE9wdGlvbnM6IHtcbiAgICBkZXBsb3k6IHtcbiAgICAgIGFyZ3M6IHtcbiAgICAgICAgcm9sbGJhY2s6IHRydWUsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.js deleted file mode 100644 index 5127137fa77de..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.fargate-with-efs.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const efs = require("aws-cdk-lib/aws-efs"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -class FargateWithEfsStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2 }); - const fs = new efs.FileSystem(this, 'etcdata', { - vpc: vpc, - }); - // Just need a TaskDefinition to test this - const taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef'); - taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }); - taskDefinition.addVolume({ - name: 'somedata', - efsVolumeConfiguration: { - fileSystemId: fs.fileSystemId, -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IFRhc2tEZWZpbml0aW9uIHRvIHRlc3QgdGhpc1xuICAgIGNvbnN0IHRhc2tEZWZpbml0aW9uID0gbmV3IGVjcy5GYXJnYXRlVGFza0RlZmluaXRpb24odGhpcywgJ1Rhc2tEZWYnKTtcbiAgICB0YXNrRGVmaW5pdGlvbi5hZGRDb250YWluZXIoJ3dlYicsIHtcbiAgICAgIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgICB9KTtcbiAgICB0YXNrRGVmaW5pdGlvbi5hZGRWb2x1bWUoe1xuICAgICAgbmFtZTogJ3NvbWVkYXRhJyxcbiAgICAgIGVmc1ZvbHVtZUNvbmZpZ3VyYXRpb246IHtcbiAgICAgICAgZmlsZVN5c3RlbUlkOiBmcy5maWxlU3lzdGVtSWQsXG4gICAgICB9LFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgRmFyZ2F0ZVdpdGhFZnNTdGFjayhhcHAsICdhd3MtZWNzLWZhcmdhdGUtZWZzJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.js deleted file mode 100644 index 89350fc05c892..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.firelens-cloudwatch.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 1024, - cpu: 512, -}); -// new container with firelens log driver, firelens log router will be created automatically. -const container = taskDefinition.addContainer('nginx', { - image: ecs.ContainerImage.fromRegistry('nginx'), - logging: ecs.LogDrivers.firelens({ - options: { - Name: 'cloudwatch', - region: stack.region, - log_group_name: 'ecs-integ-test', - auto_create_group: 'true', - log_stream_prefix: 'nginx', - }, - }), -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -// Create a security group that allows tcp @ port 80 -const securityGroup = new ec2.SecurityGroup(stack, 'websvc-sg', { vpc }); -securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80)); -new ecs.FargateService(stack, 'Service', { - cluster, - taskDefinition, - securityGroup, - assignPublicIp: true, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmlyZWxlbnMtY2xvdWR3YXRjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmZpcmVsZW5zLWNsb3Vkd2F0Y2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQ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G5uZXcgZWNzLkZhcmdhdGVTZXJ2aWNlKHN0YWNrLCAnU2VydmljZScsIHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG4gIHNlY3VyaXR5R3JvdXAsXG4gIGFzc2lnblB1YmxpY0lwOiB0cnVlLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.js deleted file mode 100644 index 573460502a33a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.lb-awsvpc-nw.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 1024, - cpu: 512, -}); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - portMappings: [{ - containerPort: 80, - protocol: ecs.Protocol.TCP, - }], -}); -const service = new ecs.FargateService(stack, 'Service', { - cluster, - taskDefinition, -}); -const scaling = service.autoScaleTaskCount({ maxCapacity: 10 }); -// Quite low to try and force it to scale -scaling.scaleOnCpuUtilization('ReasonableCpu', { targetUtilizationPercent: 10 }); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -const listener = lb.addListener('PublicListener', { port: 80, open: true }); -listener.addTargets('Fargate', { - port: 80, - targets: [service], -}); -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGItYXdzdnBjLW53LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGItYXdzdnBjLW53LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLGdFQUFnRTtBQUNoRSxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsZUFBZSxDQUFDLENBQUM7QUFFbEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxNQUFNLE9BQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLGdCQUFnQixFQUFFLEVBQUUsR0FBRyxFQUFFLENBQUMsQ0FBQztBQUVsRSxNQUFNLGNBQWMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxxQkFBcUIsQ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of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.js deleted file mode 100644 index b3076507f6ec5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.nlb-awsvpc-nw.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { vpc }); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 1024, - cpu: 512, -}); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), -}); -container.addPortMappings({ - containerPort: 80, - protocol: ecs.Protocol.TCP, -}); -const service = new ecs.FargateService(stack, 'Service', { - cluster, - taskDefinition, -}); -const scaling = service.autoScaleTaskCount({ maxCapacity: 10 }); -// Quite low to try and force it to scale -scaling.scaleOnCpuUtilization('ReasonableCpu', { targetUtilizationPercent: 10 }); -const lb = new elbv2.NetworkLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -const listener = lb.addListener('PublicListener', { port: 80 }); -service.registerLoadBalancerTargets({ - containerName: 'web', - containerPort: 80, - listener: ecs.ListenerConfig.networkListener(listener), - newTargetGroupId: 'ECS', -}); -new cdk.CfnOutput(stack, 'LoadBalancerDNS', { value: lb.loadBalancerDnsName }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmxiLWF3c3ZwYy1udy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5sYi1hd3N2cGMtbncudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsZ0VBQWdFO0FBQ2hFLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxlQUFlLENBQUMsQ0FBQztBQUVsRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBRXJELE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDO0FBRWxFLE1BQU0sY0FBYyxHQUFHLElBQUksR0FBRyxDQUFDLHFCQUFxQixDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDckUsY0FBYyxFQUFFLElBQUk7SUFDcEIsR0FBRyxFQUFFLEdBQUc7Q0FDVCxDQUFDLENBQUM7QUFFSCxNQUFNLFNBQVMs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sXG4pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ0xvYWRCYWxhbmNlckROUycsIHsgdmFsdWU6IGxiLmxvYWRCYWxhbmNlckRuc05hbWUgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.js deleted file mode 100644 index bb07e9b79be08..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.pseudo-terminal.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-pseudo-terminal'); -// Create a cluster -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - cpu: 256, - memoryLimitMiB: 512, -}); -taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 512, - cpu: 256, - pseudoTerminal: true, -}); -new ecs.FargateService(stack, 'Service', { - cluster, - taskDefinition, -}); -new integ.IntegT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TGltaXRNaUI6IDUxMixcbn0pO1xudGFza0RlZmluaXRpb24uYWRkQ29udGFpbmVyKCd3ZWInLCB7XG4gIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgbWVtb3J5TGltaXRNaUI6IDUxMixcbiAgY3B1OiAyNTYsXG4gIHBzZXVkb1Rlcm1pbmFsOiB0cnVlLFxufSk7XG5cbm5ldyBlY3MuRmFyZ2F0ZVNlcnZpY2Uoc3RhY2ssICdTZXJ2aWNlJywge1xuICBjbHVzdGVyLFxuICB0YXNrRGVmaW5pdGlvbixcbn0pO1xubmV3IGludGVnLkludGVnVGVzdChhcHAsICdQc2V1ZG9UZXJtaW5hbCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.js deleted file mode 100644 index b3cab9cd27c7a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.runtime.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-runtime'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const cluster = new ecs.Cluster(stack, 'FargateCluster', { - vpc, -}); -const taskDefinitionwindows = new ecs.FargateTaskDefinition(stack, 'TaskDefWindows', { - runtimePlatform: { - operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE, - cpuArchitecture: ecs.CpuArchitecture.X86_64, - }, - cpu: 1024, - memoryLimitMiB: 2048, -}); -const taskDefinitiongraviton2 = new ecs.FargateTaskDefinition(stack, 'TaskDefGraviton2', { - runtimePlatform: { - operatingSystemFamily: ecs.OperatingSystemFamily.LINUX, - cpuArchitecture: ecs.CpuArchitecture.ARM64, - }, - cpu: 256, - memoryLimitMiB: 1024, -}); -taskDefinitionwindows.addContainer('windowsservercore', { - logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }), - portMappings: [{ containerPort: 80 }], - image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'), -}); -taskDefinitiongraviton2.addContainer('webarm64', { - logging: ecs.LogDriver.awsLogs({ streamPrefix: 'graviton2-on-fargate' }), - portMappings: [{ containerPort: 80 }], - image: ecs.ContainerImage.fromRegistry('public.ecr.aws/nginx/nginx:latest-arm64v8'), -}); -new ecs.FargateService(stack, 'FargateServiceWindowsRuntime', { - cluster, - taskDefinition: taskDefinitionwindows, -}); -new ecs.FargateService(stack, 'FargateServiceGraviton2Runtime', { - cluster, - taskDefinition: taskDefinitiongraviton2, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucnVudGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJ1bnRpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQU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F2aXRvbjJSdW50aW1lJywge1xuICBjbHVzdGVyLFxuICB0YXNrRGVmaW5pdGlvbjogdGFza0RlZmluaXRpb25ncmF2aXRvbjIsXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.js deleted file mode 100644 index 959a2f7f548bb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.secret.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-secret'); -const secret = new secretsmanager.Secret(stack, 'Secret', { - generateSecretString: { - generateStringKey: 'password', - secretStringTemplate: JSON.stringify({ username: 'user' }), - }, -}); -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -const container = taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - secrets: { - SECRET: ecs.Secret.fromSecretsManager(secret), - PASSWORD: ecs.Secret.fromSecretsManager(secret, 'password'), - }, -}); -container.addSecret('APIKEY', ecs.Secret.fromSecretsManager(secret, 'apikey')); -new integ.IntegTest(app, 'aws-ecs-fargate-integ-secret', { - testCases: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4gIH0sXG59KTtcblxuY29uc3QgdGFza0RlZmluaXRpb24gPSBuZXcgZWNzLkZhcmdhdGVUYXNrRGVmaW5pdGlvbihzdGFjaywgJ1Rhc2tEZWYnKTtcblxuY29uc3QgY29udGFpbmVyID0gdGFza0RlZmluaXRpb24uYWRkQ29udGFpbmVyKCd3ZWInLCB7XG4gIGltYWdlOiBlY3MuQ29udGFpbmVySW1hZ2UuZnJvbVJlZ2lzdHJ5KCdhbWF6b24vYW1hem9uLWVjcy1zYW1wbGUnKSxcbiAgc2VjcmV0czoge1xuICAgIFNFQ1JFVDogZWNzLlNlY3JldC5mcm9tU2VjcmV0c01hbmFnZXIoc2VjcmV0KSxcbiAgICBQQVNTV09SRDogZWNzLlNlY3JldC5mcm9tU2VjcmV0c01hbmFnZXIoc2VjcmV0LCAncGFzc3dvcmQnKSxcbiAgfSxcbn0pO1xuXG5jb250YWluZXIuYWRkU2VjcmV0KCdBUElLRVknLCBlY3MuU2VjcmV0LmZyb21TZWNyZXRzTWFuYWdlcihzZWNyZXQsICdhcGlrZXknKSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnYXdzLWVjcy1mYXJnYXRlLWludGVnLXNlY3JldCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.js deleted file mode 100644 index 849de00857817..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/fargate/integ.service-connect.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ecs = require("aws-cdk-lib/aws-ecs"); -class ServiceConnect extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const cluster = new ecs.Cluster(this, 'EcsCluster', { - defaultCloudMapNamespace: { - name: 'scorekeep.com', - useForServiceConnect: true, - }, - }); - const td = new ecs.FargateTaskDefinition(this, 'TaskDef', { - cpu: 1024, - memoryLimitMiB: 2048, - }); - td.addContainer('container', { - containerName: 'web', - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - portMappings: [ - { - name: 'api', - containerPort: 80, - appProtocol: ecs.AppProtocol.http2, - }, - ], - logging: ecs.LogDrivers.awsLogs({ - streamPrefix: 'web', - }), - }); - new ecs.FargateService(this, 'svc', { - taskDefinition: td, - cluster: cluster, - serviceConnectConfiguration: { - services: [ - { - portMappingName: 'api', - dnsName: 'api', - port: 80, - }, - ], - logDriver: ecs.LogDrivers.awsLogs({ - streamPrefix: 'sc', - }), - }, - }); - } -} -const app = new cdk.App(); -const stack = new ServiceConnect(app, 'aws-ecs-service-connect'); -new integ.IntegTest(app, 'ServiceConnect', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmljZS1jb25uZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2VydmljZS1jb25uZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUVwRCwyQ0FBMkM7QUFHM0MsTUFBTSxjQUFlLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDcEMsWU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uZmlndXJhdGlvbjoge1xuICAgICAgICBzZXJ2aWNlczogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIHBvcnRNYXBwaW5nTmFtZTogJ2FwaScsXG4gICAgICAgICAgICBkbnNOYW1lOiAnYXBpJyxcbiAgICAgICAgICAgIHBvcnQ6IDgwLFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICAgIGxvZ0RyaXZlcjogZWNzLkxvZ0RyaXZlcnMuYXdzTG9ncyh7XG4gICAgICAgICAgc3RyZWFtUHJlZml4OiAnc2MnLFxuICAgICAgICB9KSxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFNlcnZpY2VDb25uZWN0KGFwcCwgJ2F3cy1lY3Mtc2VydmljZS1jb25uZWN0Jyk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnU2VydmljZUNvbm5lY3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.js deleted file mode 100644 index 9750a84836ea8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs-filesystem-policy.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -// eslint-disable-next-line import/no-extraneous-dependencies -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_efs_1 = require("aws-cdk-lib/aws-efs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'test-efs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1 }); -const myFileSystemPolicy = new aws_iam_1.PolicyDocument({ - statements: [new aws_iam_1.PolicyStatement({ - actions: [ - 'elasticfilesystem:ClientWrite', - 'elasticfilesystem:ClientMount', - ], - principals: [new aws_iam_1.AccountRootPrincipal()], - resources: ['*'], - conditions: { - Bool: { - 'elasticfilesystem:AccessedViaMountTarget': 'true', - }, - }, - })], -}); -const fileSystem = new aws_efs_1.FileSystem(stack, 'FileSystem', { - vpc, - fileSystemPolicy: myFileSystemPolicy, -}); -fileSystem.addToResourcePolicy(new aws_iam_1.PolicyStatement({ - actions: [ - 'elasticfilesystem:ClientRootAccess', - ], - principals: [new aws_iam_1.AccountRootPrincipal()], - resources: ['*'], - conditions: { - Bool: { - 'elasticfilesystem:AccessedViaMountTarget': 'true', - }, - }, -})); -const accessPoint = new aws_efs_1.AccessPoint(stack, 'AccessPoint', { - fileSystem, -}); -cdk.Tags.of(accessPoint).add('Name', 'MyAccessPoint'); -new integ.IntegTest(app, 'FileSystemPolicyTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWZzLWZpbGVzeXN0ZW0tcG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZWZzLWZpbGVzeXN0ZW0tcG9saWN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLGlEQUE0RjtBQUM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ICBdLFxuICBwcmluY2lwYWxzOiBbbmV3IEFjY291bnRSb290UHJpbmNpcGFsKCldLFxuICByZXNvdXJjZXM6IFsnKiddLFxuICBjb25kaXRpb25zOiB7XG4gICAgQm9vbDoge1xuICAgICAgJ2VsYXN0aWNmaWxlc3lzdGVtOkFjY2Vzc2VkVmlhTW91bnRUYXJnZXQnOiAndHJ1ZScsXG4gICAgfSxcbiAgfSxcbn0pKTtcblxuY29uc3QgYWNjZXNzUG9pbnQgPSBuZXcgQWNjZXNzUG9pbnQoc3RhY2ssICdBY2Nlc3NQb2ludCcsIHtcbiAgZmlsZVN5c3RlbSxcbn0pO1xuY2RrLlRhZ3Mub2YoYWNjZXNzUG9pbnQpLmFkZCgnTmFtZScsICdNeUFjY2Vzc1BvaW50Jyk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnRmlsZVN5c3RlbVBvbGljeVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.js deleted file mode 100644 index 8fa4db1c8baec..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-efs/test/integ.efs.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const aws_efs_1 = require("aws-cdk-lib/aws-efs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'test-efs-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1 }); -const fileSystem = new aws_efs_1.FileSystem(stack, 'FileSystem', { - vpc, -}); -fileSystem.addAccessPoint('AccessPoint', { - createAcl: { - ownerGid: '1000', - ownerUid: '1000', - permissions: '755', - }, - path: '/custom-path', - posixUser: { - gid: '1000', - uid: '1000', - }, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWZzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZWZzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxpREFBaUQ7QUFFakQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFDO0FBRW5ELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxXQUFXLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRSxNQUFNLFVBQVUsR0FBRyxJQUFJLG9CQUFVLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRTtJQUNyRCxHQUFHO0NBQ0osQ0FBQyxDQUFDO0FBRUgsVUFBVSxDQUFDLGNBQWMsQ0FBQyxhQUFhLEVBQUU7SUFDdkMsU0FBUyxFQUFFO1FBQ1QsUUFBUSxFQUFFLE1BQU07UUFDaEIsUUFBUSxFQUFFLE1BQU07UUFDaEIsV0FBVyxFQUFFLEtBQUs7S0FDbkI7SUFDRCxJQUFJLEVBQUUsY0FBYztJQUNwQixTQUFTLEVBQUU7UUFDVCxHQUFHLEVBQUUsTUFBTTtRQUNYLEdBQUcsRUFBRSxNQUFNO0tBQ1o7Q0FDRixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBlYzIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWVjMic7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgRmlsZVN5c3RlbSB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1lZnMnO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ3Rlc3QtZWZzLWludGVnJyk7XG5cbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVnBjJywgeyBtYXhBenM6IDMsIG5hdEdhdGV3YXlzOiAxIH0pO1xuXG5jb25zdCBmaWxlU3lzdGVtID0gbmV3IEZpbGVTeXN0ZW0oc3RhY2ssICdGaWxlU3lzdGVtJywge1xuICB2cGMsXG59KTtcblxuZmlsZVN5c3RlbS5hZGRBY2Nlc3NQb2ludCgnQWNjZXNzUG9pbnQnLCB7XG4gIGNyZWF0ZUFjbDoge1xuICAgIG93bmVyR2lkOiAnMTAwMCcsXG4gICAgb3duZXJVaWQ6ICcxMDAwJyxcbiAgICBwZXJtaXNzaW9uczogJzc1NScsXG4gIH0sXG4gIHBhdGg6ICcvY3VzdG9tLXBhdGgnLFxuICBwb3NpeFVzZXI6IHtcbiAgICBnaWQ6ICcxMDAwJyxcbiAgICB1aWQ6ICcxMDAwJyxcbiAgfSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.d.ts deleted file mode 100644 index 7cbc08b6feae4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Duration } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -export interface BucketPingerProps { - readonly bucketName: string; - readonly timeout?: Duration; -} -export declare class BucketPinger extends Construct { - private _resource; - constructor(scope: Construct, id: string, props: BucketPingerProps); - get response(): string; -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.js deleted file mode 100644 index 402f8301d070d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/bucket-pinger/bucket-pinger.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BucketPinger = void 0; -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const constructs_1 = require("constructs"); -class BucketPinger extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - const func = new lambda.Function(this, 'Function', { - code: lambda.Code.fromAsset(`${__dirname}/function`), - handler: 'index.handler', - runtime: lambda.Runtime.PYTHON_3_9, - timeout: props.timeout ?? aws_cdk_lib_1.Duration.minutes(1), - environment: { - BUCKET_NAME: props.bucketName, - }, - }); - if (!func.role) { - throw new Error('pinger lambda has no execution role!'); - } - func.role.addToPrincipalPolicy(new iam.PolicyStatement({ - actions: ['s3:DeleteBucket', 's3:ListBucket'], - resources: [`arn:aws:s3:::${props.bucketName}`], - })); - const provider = new cr.Provider(this, 'Provider', { - onEventHandler: func, - }); - this._resource = new aws_cdk_lib_1.CustomResource(this, 'Resource', { - serviceToken: provider.serviceToken, - }); - } - get response() { - return aws_cdk_lib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Vzb3VyY2VzOiBbYGFybjphd3M6czM6Ojoke3Byb3BzLmJ1Y2tldE5hbWV9YF0sXG4gICAgfSkpO1xuXG4gICAgY29uc3QgcHJvdmlkZXIgPSBuZXcgY3IuUHJvdmlkZXIodGhpcywgJ1Byb3ZpZGVyJywge1xuICAgICAgb25FdmVudEhhbmRsZXI6IGZ1bmMsXG4gICAgfSk7XG5cbiAgICB0aGlzLl9yZXNvdXJjZSA9IG5ldyBDdXN0b21SZXNvdXJjZSh0aGlzLCAnUmVzb3VyY2UnLCB7XG4gICAgICBzZXJ2aWNlVG9rZW46IHByb3ZpZGVyLnNlcnZpY2VUb2tlbixcbiAgICB9KTtcbiAgfVxuXG4gIHB1YmxpYyBnZXQgcmVzcG9uc2UoKSB7XG4gICAgcmV0dXJuIFRva2VuLmFzU3RyaW5nKHRoaXMuX3Jlc291cmNlLmdldEF0dCgnVmFsdWUnKSk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.d.ts deleted file mode 100644 index db3f15a88c271..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -export declare const resources: ({ - apiVersion: string; - kind: string; - metadata: { - name: string; - }; - spec: { - type: string; - ports: { - port: number; - targetPort: number; - }[]; - selector: { - app: string; - matchLabels?: undefined; - }; - replicas?: undefined; - template?: undefined; - }; -} | { - apiVersion: string; - kind: string; - metadata: { - name: string; - }; - spec: { - replicas: number; - selector: { - matchLabels: { - app: string; - }; - app?: undefined; - }; - template: { - metadata: { - labels: { - app: string; - }; - }; - spec: { - containers: { - name: string; - image: string; - ports: { - containerPort: number; - }[]; - }[]; - }; - }; - type?: undefined; - ports?: undefined; - }; -})[]; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.js deleted file mode 100644 index 3a203130a83d6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/hello-k8s.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resources = void 0; -exports.resources = [ - { - apiVersion: 'v1', - kind: 'Service', - metadata: { name: 'hello-kubernetes' }, - spec: { - type: 'LoadBalancer', - ports: [{ port: 80, targetPort: 8080 }], - selector: { app: 'hello-kubernetes' }, - }, - }, - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { name: 'hello-kubernetes' }, - spec: { - replicas: 1, - selector: { matchLabels: { app: 'hello-kubernetes' } }, - template: { - metadata: { - labels: { app: 'hello-kubernetes' }, - }, - spec: { - containers: [ - { - name: 'hello-kubernetes', - image: 'paulbouwer/hello-kubernetes:1.5', - ports: [{ containerPort: 8080 }], - }, - ], - }, - }, - }, - }, -]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVsbG8tazhzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaGVsbG8tazhzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsU0FBUyxHQUFHO0lBQ3ZCO1FBQ0UsVUFBVSxFQUFFLElBQUk7UUFDaEIsSUFBSSxFQUFFLFNBQVM7UUFDZixRQUFRLEVBQUUsRUFBRSxJQUFJLEVBQUUsa0JBQWtCLEVBQUU7UUFDdEMsSUFBSSxFQUFFO1lBQ0osSUFBSSxFQUFFLGNBQWM7WUFDcEIsS0FBSyxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsQ0FBQztZQUN2QyxRQUFRLEVBQUUsRUFBRSxHQUFHLEVBQUUsa0JBQWtCLEVBQUU7U0FDdEM7S0FDRjtJQUNEO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bG95bWVudCcsXG4gICAgbWV0YWRhdGE6IHsgbmFtZTogJ2hlbGxvLWt1YmVybmV0ZXMnIH0sXG4gICAgc3BlYzoge1xuICAgICAgcmVwbGljYXM6IDEsXG4gICAgICBzZWxlY3RvcjogeyBtYXRjaExhYmVsczogeyBhcHA6ICdoZWxsby1rdWJlcm5ldGVzJyB9IH0sXG4gICAgICB0ZW1wbGF0ZToge1xuICAgICAgICBtZXRhZGF0YToge1xuICAgICAgICAgIGxhYmVsczogeyBhcHA6ICdoZWxsby1rdWJlcm5ldGVzJyB9LFxuICAgICAgICB9LFxuICAgICAgICBzcGVjOiB7XG4gICAgICAgICAgY29udGFpbmVyczogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBuYW1lOiAnaGVsbG8ta3ViZXJuZXRlcycsXG4gICAgICAgICAgICAgIGltYWdlOiAncGF1bGJvdXdlci9oZWxsby1rdWJlcm5ldGVzOjEuNScsXG4gICAgICAgICAgICAgIHBvcnRzOiBbeyBjb250YWluZXJQb3J0OiA4MDgwIH1dLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9LFxuICB9LFxuXTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.d.ts deleted file mode 100644 index 08ce35db03b0d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import { Construct } from 'constructs'; -import * as eks from 'aws-cdk-lib/aws-eks'; -export declare function getClusterVersionConfig(scope: Construct): { - version: eks.KubernetesVersion; - kubectlLayer: lambda.ILayerVersion; -}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.js deleted file mode 100644 index 3517aaf5cc45b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ-tests-kubernetes-version.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getClusterVersionConfig = void 0; -const lambda_layer_kubectl_v24_1 = require("@aws-cdk/lambda-layer-kubectl-v24"); -const eks = require("aws-cdk-lib/aws-eks"); -function getClusterVersionConfig(scope) { - return { - version: eks.KubernetesVersion.V1_24, - // Crazy type-casting is required because KubectlLayer peer depends on - // types from aws-cdk-lib, but we run integration tests in the @aws-cdk/ - // v1-style directory, not in the aws-cdk-lib v2-style directory. - kubectlLayer: new lambda_layer_kubectl_v24_1.KubectlV24Layer(scope, 'KubectlLayer'), - }; -} -exports.getClusterVersionConfig = getClusterVersionConfig; -; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWctdGVzdHMta3ViZXJuZXRlcy12ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWctdGVzdHMta3ViZXJuZXRlcy12ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLGdGQUFvRTtBQUVwRSwyQ0FBMkM7QUFFM0MsU0FBZ0IsdUJBQXVCLENBQUMsS0FBZ0I7SUFDdEQsT0FBTztRQUNMLE9BQU8sRUFBRSxHQUFHLENBQUMsaUJBQWlCLENBQUMsS0FBSztRQUNwQyxzRUFBc0U7UUFDdEUsd0VBQXdFO1FBQ3hFLGlFQUFpRTtRQUNqRSxZQUFZLEVBQUUsSUFBSSwwQ0FBZSxDQUFDLEtBQUssRUFBRSxjQUFjLENBQW9DO0tBQzVGLENBQUM7QUFDSixDQUFDO0FBUkQsMERBUUM7QUFBQSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbGFtYmRhIGZyb20gJ2F3cy1jZGstbGliL2F3cy1sYW1iZGEnO1xuaW1wb3J0IHsgS3ViZWN0bFYyNExheWVyIH0gZnJvbSAnQGF3cy1jZGsvbGFtYmRhLWxheWVyLWt1YmVjdGwtdjI0JztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuaW1wb3J0ICogYXMgZWtzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1la3MnO1xuXG5leHBvcnQgZnVuY3Rpb24gZ2V0Q2x1c3RlclZlcnNpb25Db25maWcoc2NvcGU6IENvbnN0cnVjdCkge1xuICByZXR1cm4ge1xuICAgIHZlcnNpb246IGVrcy5LdWJlcm5ldGVzVmVyc2lvbi5WMV8yNCxcbiAgICAvLyBDcmF6eSB0eXBlLWNhc3RpbmcgaXMgcmVxdWlyZWQgYmVjYXVzZSBLdWJlY3RsTGF5ZXIgcGVlciBkZXBlbmRzIG9uXG4gICAgLy8gdHlwZXMgZnJvbSBhd3MtY2RrLWxpYiwgYnV0IHdlIHJ1biBpbnRlZ3JhdGlvbiB0ZXN0cyBpbiB0aGUgQGF3cy1jZGsvXG4gICAgLy8gdjEtc3R5bGUgZGlyZWN0b3J5LCBub3QgaW4gdGhlIGF3cy1jZGstbGliIHYyLXN0eWxlIGRpcmVjdG9yeS5cbiAgICBrdWJlY3RsTGF5ZXI6IG5ldyBLdWJlY3RsVjI0TGF5ZXIoc2NvcGUsICdLdWJlY3RsTGF5ZXInKSBhcyB1bmtub3duIGFzIGxhbWJkYS5JTGF5ZXJWZXJzaW9uLFxuICB9O1xufTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js deleted file mode 100644 index 0985e3210ccc2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cdk8s = require("cdk8s"); -const kplus = require("cdk8s-plus-24"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const pinger_1 = require("./pinger/pinger"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksClusterAlbControllerStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - // just need one nat gateway to simplify the test - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 1 }); - const cluster = new eks.Cluster(this, 'Cluster', { - vpc, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - albController: { - version: eks.AlbControllerVersion.V2_4_1, - }, - }); - const chart = new cdk8s.Chart(new cdk8s.App(), 'hello-server'); - const ingress = new kplus.Deployment(chart, 'Deployment', { - containers: [{ - image: 'hashicorp/http-echo', - args: ['-text', 'hello'], - port: 5678, - securityContext: { - user: 1005, - }, - }], - }) - .exposeViaService({ serviceType: kplus.ServiceType.NODE_PORT }) - .exposeViaIngress('/'); - // allow vpc to access the ELB so our pinger can hit it. - ingress.metadata.addAnnotation('alb.ingress.kubernetes.io/inbound-cidrs', cluster.vpc.vpcCidrBlock); - const echoServer = cluster.addCdk8sChart('echo-server', chart, { ingressAlb: true, ingressAlbScheme: eks.AlbScheme.INTERNAL }); - // the deletion of `echoServer` is what instructs the controller to delete the ELB. - // so we need to make sure this happens before the controller is deleted. - echoServer.node.addDependency(cluster.albController ?? []); - const loadBalancerAddress = cluster.getIngressLoadBalancerAddress(ingress.name, { timeout: aws_cdk_lib_1.Duration.minutes(10) }); - // create a resource that hits the load balancer to make sure - // everything is wired properly. - const pinger = new pinger_1.Pinger(this, 'IngressPinger', { - url: `http://${loadBalancerAddress}`, - vpc: cluster.vpc, - }); - // the pinger must wait for the ingress and echoServer to be deployed. - pinger.node.addDependency(ingress, echoServer); - // this should display the 'hello' text we gave to the server - new aws_cdk_lib_1.CfnOutput(this, 'IngressPingerResponse', { - value: pinger.response, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksClusterAlbControllerStack(app, 'aws-cdk-eks-cluster-alb-controller-test'); -new integ.IntegTest(app, 'aws-cdk-cluster-alb-controller', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWNvbnRyb2xsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hbGItY29udHJvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUE2QztBQUM3QywyQ0FBMkM7QUFDM0MsNkNBQThEO0FBQzlELG9EQUFvRDtBQUNwRCwrQkFBK0I7QUFDL0IsdUNBQXVDO0FBQ3ZDLHFGQUEyRTtBQUMzRSw0Q0FBeUM7QUFDekMsMkNBQTJDO0FBRTNDLE1BQU0sNEJBQTZCLFNBQVEsbUJBQUs7SUFFOUMsWUFBWSxLQUFVLEVBQUUsRUFBVTtRQUNoQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLGlEQUFpRDtRQUNqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU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c3Rlci52cGMsXG4gICAgfSk7XG5cbiAgICAvLyB0aGUgcGluZ2VyIG11c3Qgd2FpdCBmb3IgdGhlIGluZ3Jlc3MgYW5kIGVjaG9TZXJ2ZXIgdG8gYmUgZGVwbG95ZWQuXG4gICAgcGluZ2VyLm5vZGUuYWRkRGVwZW5kZW5jeShpbmdyZXNzLCBlY2hvU2VydmVyKTtcblxuICAgIC8vIHRoaXMgc2hvdWxkIGRpc3BsYXkgdGhlICdoZWxsbycgdGV4dCB3ZSBnYXZlIHRvIHRoZSBzZXJ2ZXJcbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdJbmdyZXNzUGluZ2VyUmVzcG9uc2UnLCB7XG4gICAgICB2YWx1ZTogcGluZ2VyLnJlc3BvbnNlLFxuICAgIH0pO1xuXG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgRWtzQ2x1c3RlckFsYkNvbnRyb2xsZXJTdGFjayhhcHAsICdhd3MtY2RrLWVrcy1jbHVzdGVyLWFsYi1jb250cm9sbGVyLXRlc3QnKTtcbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnYXdzLWNkay1jbHVzdGVyLWFsYi1jb250cm9sbGVyJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.js deleted file mode 100644 index e983416fc7c43..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-bottlerocket-ng.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -const aws_eks_1 = require("aws-cdk-lib/aws-eks"); -class EksClusterStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - // allow all account users to assume this role in order to admin the cluster - const mastersRole = new iam.Role(this, 'AdminRole', { - assumedBy: new iam.AccountRootPrincipal(), - }); - // just need one nat gateway to simplify the test - this.vpc = new ec2.Vpc(this, 'Vpc', { natGateways: 1 }); - // create the cluster with a default nodegroup capacity - this.cluster = new eks.Cluster(this, 'Cluster', { - vpc: this.vpc, - mastersRole, - defaultCapacity: 0, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - }); - this.cluster.addNodegroupCapacity('BottlerocketNG1', { - amiType: aws_eks_1.NodegroupAmiType.BOTTLEROCKET_X86_64, - }); - this.cluster.addNodegroupCapacity('BottlerocketNG2', { - amiType: aws_eks_1.NodegroupAmiType.BOTTLEROCKET_ARM_64, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksClusterStack(app, 'aws-cdk-eks-cluster-bottlerocket-ng-test'); -new integ.IntegTest(app, 'aws-cdk-eks-cluster-bottlerocket-ng', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWtzLWJvdHRsZXJvY2tldC1uZy5qcyIsInNvdXJj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0JvdHRsZXJvY2tldE5HMScsIHtcbiAgICAgIGFtaVR5cGU6IE5vZGVncm91cEFtaVR5cGUuQk9UVExFUk9DS0VUX1g4Nl82NCxcbiAgICB9KTtcbiAgICB0aGlzLmNsdXN0ZXIuYWRkTm9kZWdyb3VwQ2FwYWNpdHkoJ0JvdHRsZXJvY2tldE5HMicsIHtcbiAgICAgIGFtaVR5cGU6IE5vZGVncm91cEFtaVR5cGUuQk9UVExFUk9DS0VUX0FSTV82NCxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IEVrc0NsdXN0ZXJTdGFjayhhcHAsICdhd3MtY2RrLWVrcy1jbHVzdGVyLWJvdHRsZXJvY2tldC1uZy10ZXN0Jyk7XG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2F3cy1jZGstZWtzLWNsdXN0ZXItYm90dGxlcm9ja2V0LW5nJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.js deleted file mode 100644 index 3c06c09d93ffc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-handlers-vpc.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksAllHandlersInVpcStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - new eks.Cluster(this, 'EksAllHandlersInVpcStack', { - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - placeClusterHandlerInVpc: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksAllHandlersInVpcStack(app, 'aws-cdk-eks-handlers-in-vpc-test'); -new integ.IntegTest(app, 'aws-cdk-eks-handlers-in-vpc', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWtzLWNsdXN0ZXItaGFuZGxlcnMtdnBjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZWtzLWNsdXN0ZXItaGFuZGxlcnMtdnBjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQTZDO0FBQzdDLDZDQUF5QztBQUN6QyxvREFBb0Q7QUFDcEQscUZBQTJFO0FBQzNFLDJDQUEyQztBQUUzQyxNQUFNLHdCQUF5QixTQUFRLG1CQUFLO0lBRTFDLFlBQVksS0FBVSxFQUFFLEVBQVU7UUFDaEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLDBCQUEwQixFQUFFO1lBQ2hELEdBQUcsSUFBQSx3REFBdUIsRUFBQyxJQUFJLENBQUM7WUFDaEMsd0JBQXdCLEVBQUUsSUFBSTtTQUMvQixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0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NvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgRWtzQWxsSGFuZGxlcnNJblZwY1N0YWNrKGFwcCwgJ2F3cy1jZGstZWtzLWhhbmRsZXJzLWluLXZwYy10ZXN0Jyk7XG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2F3cy1jZGstZWtzLWhhbmRsZXJzLWluLXZwYycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.js deleted file mode 100644 index 6ac6feacccd01..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster-private-endpoint.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksClusterStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - // allow all account users to assume this role in order to admin the cluster - const mastersRole = new iam.Role(this, 'AdminRole', { - assumedBy: new iam.AccountRootPrincipal(), - }); - // just need one nat gateway to simplify the test - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 3, natGateways: 1 }); - const cluster = new eks.Cluster(this, 'Cluster', { - vpc, - mastersRole, - defaultCapacity: 2, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - endpointAccess: eks.EndpointAccess.PRIVATE, - prune: false, - }); - // this is the valdiation. it won't work if the private access is not setup properly. - cluster.addManifest('config-map', { - kind: 'ConfigMap', - apiVersion: 'v1', - data: { - hello: 'world', - }, - metadata: { - name: 'config-map', - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksClusterStack(app, 'aws-cdk-eks-cluster-private-endpoint-test'); -new integ.IntegTest(app, 'aws-cdk-eks-cluster-private-endpoint', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWtzLWNsdXN0ZXItcHJpdmF0ZS1lbmRwb2ludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVrcy1jbHVzdGVyLXByaXZhdGUtZW5kcG9pbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBNkM7QUFDN0MsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyw2Q0FBeUM7QUFDekMsb0RBQW9EO0FBQ3BELHFGQUEyRTtBQUMzRSwyQ0FBMkM7QUFFM0MsTUFBTSxlQUFnQixTQUFRLG1CQUFLO0lBQ2pDLFlBQVksS0FBVSxFQUFFLEVBQVU7UUFDaEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQiw0RUFBNEU7UUFDNUUsTUFBTSxXQUFXLEdBQUcsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxXQUFXLEVBQUU7WUFDbEQsU0FBUyxFQU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gdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.js deleted file mode 100644 index f734704104ef5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-cluster.js +++ /dev/null @@ -1,298 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const aws_s3_assets_1 = require("aws-cdk-lib/aws-s3-assets"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cdk8s = require("cdk8s"); -const kplus = require("cdk8s-plus-24"); -const hello = require("./hello-k8s"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksClusterStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // allow all account users to assume this role in order to admin the cluster - const mastersRole = new iam.Role(this, 'AdminRole', { - assumedBy: new iam.AccountRootPrincipal(), - }); - const secretsEncryptionKey = new kms.Key(this, 'SecretsKey'); - // just need one nat gateway to simplify the test - this.vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 3, natGateways: 1 }); - // Changing the subnets order should be supported - const vpcSubnets = [ - { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, - { subnetType: ec2.SubnetType.PUBLIC }, - ]; - // create the cluster with a default nodegroup capacity - this.cluster = new eks.Cluster(this, 'Cluster', { - vpc: this.vpc, - vpcSubnets, - mastersRole, - defaultCapacity: 2, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - secretsEncryptionKey, - tags: { - foo: 'bar', - }, - clusterLogging: [ - eks.ClusterLoggingTypes.API, - eks.ClusterLoggingTypes.AUTHENTICATOR, - eks.ClusterLoggingTypes.SCHEDULER, - ], - }); - this.assertFargateProfile(); - this.assertCapacityX86(); - this.assertCapacityArm(); - this.assertBottlerocket(); - this.assertSpotCapacity(); - this.assertNodeGroupX86(); - this.assertNodeGroupSpot(); - this.assertNodeGroupArm(); - this.assertNodeGroupGraviton3(); - this.assertNodeGroupCustomAmi(); - this.assertSimpleManifest(); - this.assertManifestWithoutValidation(); - this.assertSimpleHelmChart(); - this.assertHelmChartAsset(); - this.assertSimpleCdk8sChart(); - this.assertCreateNamespace(); - this.assertServiceAccount(); - this.assertExtendedServiceAccount(); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterEndpoint', { value: this.cluster.clusterEndpoint }); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterArn', { value: this.cluster.clusterArn }); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterCertificateAuthorityData', { value: this.cluster.clusterCertificateAuthorityData }); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterSecurityGroupId', { value: this.cluster.clusterSecurityGroupId }); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterEncryptionConfigKeyArn', { value: this.cluster.clusterEncryptionConfigKeyArn }); - new aws_cdk_lib_1.CfnOutput(this, 'ClusterName', { value: this.cluster.clusterName }); - } - assertServiceAccount() { - // add a service account connected to a IAM role - this.cluster.addServiceAccount('MyServiceAccount'); - } - assertExtendedServiceAccount() { - // add a service account connected to a IAM role - this.cluster.addServiceAccount('MyExtendedServiceAccount', { - annotations: { - 'eks.amazonaws.com/sts-regional-endpoints': 'false', - }, - labels: { - 'some-label': 'with-some-value', - }, - }); - } - assertCreateNamespace() { - // deploy an nginx ingress in a namespace - const nginxNamespace = this.cluster.addManifest('nginx-namespace', { - apiVersion: 'v1', - kind: 'Namespace', - metadata: { - name: 'nginx', - }, - }); - const nginxIngress = this.cluster.addHelmChart('nginx-ingress', { - chart: 'nginx-ingress', - repository: 'https://helm.nginx.com/stable', - namespace: 'nginx', - wait: true, - createNamespace: false, - timeout: aws_cdk_lib_1.Duration.minutes(15), - }); - // make sure namespace is deployed before the chart - nginxIngress.node.addDependency(nginxNamespace); - } - assertSimpleCdk8sChart() { - class Chart extends cdk8s.Chart { - constructor(scope, ns, cluster) { - super(scope, ns); - new kplus.ConfigMap(this, 'config-map', { - data: { - clusterName: cluster.clusterName, - }, - }); - } - } - const app = new cdk8s.App(); - const chart = new Chart(app, 'Chart', this.cluster); - this.cluster.addCdk8sChart('cdk8s-chart', chart); - } - assertSimpleHelmChart() { - // deploy the Kubernetes dashboard through a helm chart - this.cluster.addHelmChart('dashboard', { - chart: 'kubernetes-dashboard', - repository: 'https://kubernetes.github.io/dashboard/', - }); - } - assertHelmChartAsset() { - // get helm chart from Asset - const chartAsset = new aws_s3_assets_1.Asset(this, 'ChartAsset', { - path: path.join(__dirname, 'test-chart'), - }); - this.cluster.addHelmChart('test-chart', { - chartAsset: chartAsset, - }); - } - assertSimpleManifest() { - // apply a kubernetes manifest - this.cluster.addManifest('HelloApp', ...hello.resources); - } - assertManifestWithoutValidation() { - // apply a kubernetes manifest - new eks.KubernetesManifest(this, 'HelloAppWithoutValidation', { - cluster: this.cluster, - manifest: [{ - apiVersion: 'v1', - kind: 'ConfigMap', - data: { hello: 'world' }, - metadata: { name: 'config-map' }, - unknown: { key: 'value' }, - }], - skipValidation: true, - }); - } - assertNodeGroupX86() { - // add a extra nodegroup - this.cluster.addNodegroupCapacity('extra-ng', { - instanceTypes: [new ec2.InstanceType('t3.small')], - minSize: 1, - // reusing the default capacity nodegroup instance role when available - nodeRole: this.cluster.defaultCapacity ? this.cluster.defaultCapacity.role : undefined, - }); - } - assertNodeGroupSpot() { - // add a extra nodegroup - this.cluster.addNodegroupCapacity('extra-ng-spot', { - instanceTypes: [ - new ec2.InstanceType('c5.large'), - new ec2.InstanceType('c5a.large'), - new ec2.InstanceType('c5d.large'), - ], - minSize: 3, - // reusing the default capacity nodegroup instance role when available - nodeRole: this.cluster.defaultCapacity ? this.cluster.defaultCapacity.role : undefined, - capacityType: eks.CapacityType.SPOT, - }); - } - assertNodeGroupCustomAmi() { - // add a extra nodegroup - const userData = ec2.UserData.forLinux(); - userData.addCommands('set -o xtrace', `/etc/eks/bootstrap.sh ${this.cluster.clusterName}`); - const lt = new ec2.CfnLaunchTemplate(this, 'LaunchTemplate', { - launchTemplateData: { - imageId: new eks.EksOptimizedImage({ - kubernetesVersion: eks.KubernetesVersion.V1_25.version, - }).getImage(this).imageId, - instanceType: new ec2.InstanceType('t3.small').toString(), - userData: aws_cdk_lib_1.Fn.base64(userData.render()), - }, - }); - this.cluster.addNodegroupCapacity('extra-ng2', { - minSize: 1, - // reusing the default capacity nodegroup instance role when available - nodeRole: this.cluster.defaultNodegroup?.role || this.cluster.defaultCapacity?.role, - launchTemplateSpec: { - id: lt.ref, - version: lt.attrDefaultVersionNumber, - }, - }); - } - assertNodeGroupArm() { - // add a extra nodegroup - this.cluster.addNodegroupCapacity('extra-ng-arm', { - instanceTypes: [new ec2.InstanceType('m6g.medium')], - minSize: 1, - // reusing the default capacity nodegroup instance role when available - nodeRole: this.cluster.defaultCapacity ? this.cluster.defaultCapacity.role : undefined, - }); - } - assertNodeGroupGraviton3() { - // add a Graviton3 nodegroup - this.cluster.addNodegroupCapacity('extra-ng-arm3', { - instanceTypes: [new ec2.InstanceType('c7g.large')], - minSize: 1, - // reusing the default capacity nodegroup instance role when available - nodeRole: this.cluster.defaultCapacity ? this.cluster.defaultCapacity.role : undefined, - }); - } - assertSpotCapacity() { - // spot instances (up to 10) - this.cluster.addAutoScalingGroupCapacity('spot', { - spotPrice: '0.1094', - instanceType: new ec2.InstanceType('t3.large'), - maxCapacity: 10, - bootstrapOptions: { - kubeletExtraArgs: '--node-labels foo=bar,goo=far', - awsApiRetryAttempts: 5, - }, - }); - } - assertBottlerocket() { - // add bottlerocket nodes - this.cluster.addAutoScalingGroupCapacity('BottlerocketNodes', { - instanceType: new ec2.InstanceType('t3.small'), - minCapacity: 2, - machineImageType: eks.MachineImageType.BOTTLEROCKET, - }); - } - assertCapacityX86() { - // add some x86_64 capacity to the cluster. The IAM instance role will - // automatically be mapped via aws-auth to allow nodes to join the cluster. - this.cluster.addAutoScalingGroupCapacity('Nodes', { - instanceType: new ec2.InstanceType('t2.medium'), - minCapacity: 3, - }); - } - assertCapacityArm() { - // add some arm64 capacity to the cluster. The IAM instance role will - // automatically be mapped via aws-auth to allow nodes to join the cluster. - this.cluster.addAutoScalingGroupCapacity('NodesArm', { - instanceType: new ec2.InstanceType('m6g.medium'), - minCapacity: 1, - }); - } - assertFargateProfile() { - // fargate profile for resources in the "default" namespace - this.cluster.addFargateProfile('default', { - selectors: [{ namespace: 'default' }], - }); - } -} -// this test uses both the bottlerocket image and the inf1 instance, which are only supported in these -// regions. see https://github.com/aws/aws-cdk/tree/main/packages/%40aws-cdk/aws-eks#bottlerocket -// and https://aws.amazon.com/about-aws/whats-new/2019/12/introducing-amazon-ec2-inf1-instances-high-performance-and-the-lowest-cost-machine-learning-inference-in-the-cloud/ -const supportedRegions = [ - 'us-east-1', - 'us-west-2', -]; -const app = new aws_cdk_lib_1.App(); -// since the EKS optimized AMI is hard-coded here based on the region, -// we need to actually pass in a specific region. -const stack = new EksClusterStack(app, 'aws-cdk-eks-cluster-test', { - env: { region: 'us-east-1' }, -}); -if (process.env.CDK_INTEG_ACCOUNT !== '12345678') { - // only validate if we are about to actually deploy. - // TODO: better way to determine this, right now the 'CDK_INTEG_ACCOUNT' seems like the only way. - if (aws_cdk_lib_1.Token.isUnresolved(stack.region)) { - throw new Error(`region (${stack.region}) cannot be a token and must be configured to one of: ${supportedRegions}`); - } - if (!supportedRegions.includes(stack.region)) { - throw new Error(`region (${stack.region}) must be configured to one of: ${supportedRegions}`); - } -} -new integ.IntegTest(app, 'aws-cdk-eks-cluster', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWtzLWNsdXN0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5la3MtY2x1c3Rlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUE2QztBQUM3Qyw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsNkRBQWtEO0FBQ2xELDZDQUFxRjtBQUNyRixvREFBb0Q7QUFDcEQsK0JBQStCO0FBQy9CLHVDQUF1QztBQUV2QyxxQ0FBcUM7QUFDckMscUZBQTJFO0FBQzNFLDJDQUEyQztBQUczQyxNQUFNLGVBQWdCLFNBQVEsbUJBQUs7SUFLakMsWUFBWSxLQUFVLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQ3BELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLDRFQUE0RTtRQUM1RSxNQUFNLFdBQVcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRTtZQUNsRCxTQUFTLEVBQUUsSUFBSSxHQUFHLENBQUMsb0JBQW9CLEVBQUU7U0FDMUMsQ0FBQyxDQUFDO1FBRUgsTUFBTSxvQkFBb0IsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUF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JvY2Vzcy5lbnYuQ0RLX0lOVEVHX0FDQ09VTlQgIT09ICcxMjM0NTY3OCcpIHtcblxuICAvLyBvbmx5IHZhbGlkYXRlIGlmIHdlIGFyZSBhYm91dCB0byBhY3R1YWxseSBkZXBsb3kuXG4gIC8vIFRPRE86IGJldHRlciB3YXkgdG8gZGV0ZXJtaW5lIHRoaXMsIHJpZ2h0IG5vdyB0aGUgJ0NES19JTlRFR19BQ0NPVU5UJyBzZWVtcyBsaWtlIHRoZSBvbmx5IHdheS5cblxuICBpZiAoVG9rZW4uaXNVbnJlc29sdmVkKHN0YWNrLnJlZ2lvbikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYHJlZ2lvbiAoJHtzdGFjay5yZWdpb259KSBjYW5ub3QgYmUgYSB0b2tlbiBhbmQgbXVzdCBiZSBjb25maWd1cmVkIHRvIG9uZSBvZjogJHtzdXBwb3J0ZWRSZWdpb25zfWApO1xuICB9XG5cbiAgaWYgKCFzdXBwb3J0ZWRSZWdpb25zLmluY2x1ZGVzKHN0YWNrLnJlZ2lvbikpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYHJlZ2lvbiAoJHtzdGFjay5yZWdpb259KSBtdXN0IGJlIGNvbmZpZ3VyZWQgdG8gb25lIG9mOiAke3N1cHBvcnRlZFJlZ2lvbnN9YCk7XG4gIH1cblxufVxuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2F3cy1jZGstZWtzLWNsdXN0ZXInLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgY2RrQ29tbWFuZE9wdGlvbnM6IHtcbiAgICBkZXBsb3k6IHtcbiAgICAgIGFyZ3M6IHtcbiAgICAgICAgcm9sbGJhY2s6IHRydWUsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.js deleted file mode 100644 index cded87c53eeb3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-helm-asset.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_s3_assets_1 = require("aws-cdk-lib/aws-s3-assets"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksClusterStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - // allow all account users to assume this role in order to admin the cluster - const mastersRole = new iam.Role(this, 'AdminRole', { - assumedBy: new iam.AccountRootPrincipal(), - }); - // just need one nat gateway to simplify the test - this.vpc = new ec2.Vpc(this, 'Vpc', { natGateways: 1 }); - // create the cluster with a default nodegroup capacity - this.cluster = new eks.Cluster(this, 'Cluster', { - vpc: this.vpc, - mastersRole, - defaultCapacity: 2, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - tags: { - foo: 'bar', - }, - clusterLogging: [ - eks.ClusterLoggingTypes.API, - eks.ClusterLoggingTypes.AUTHENTICATOR, - eks.ClusterLoggingTypes.SCHEDULER, - ], - }); - this.assertHelmChartAsset(); - } - assertHelmChartAsset() { - // get helm chart from Asset - const chartAsset = new aws_s3_assets_1.Asset(this, 'ChartAsset', { - path: path.join(__dirname, 'test-chart'), - }); - this.cluster.addHelmChart('test-chart', { - chartAsset: chartAsset, - }); - this.cluster.addHelmChart('test-oci-chart', { - chart: 's3-chart', - release: 's3-chart', - repository: 'oci://public.ecr.aws/aws-controllers-k8s/s3-chart', - version: 'v0.1.0', - namespace: 'ack-system', - createNamespace: true, - }); - // there is no opinionated way of testing charts from private ECR, so there is description of manual steps needed to reproduce: - // 1. `export AWS_PROFILE=youraccountprofile; aws ecr create-repository --repository-name helm-charts-test/s3-chart --region YOUR_REGION` - // 2. `helm pull oci://public.ecr.aws/aws-controllers-k8s/s3-chart --version v0.1.0` - // 3. Login to ECR (howto: https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html ) - // 4. `helm push s3-chart-v0.1.0.tgz oci://YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com/helm-charts-test/` - // 5. Change `repository` in above test to oci://YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com/helm-charts-test - // 6. Run integration tests as usual - this.cluster.addHelmChart('test-oci-chart-different-release-name', { - chart: 'lambda-chart', - release: 'lambda-chart-release', - repository: 'oci://public.ecr.aws/aws-controllers-k8s/lambda-chart', - version: 'v0.1.4', - namespace: 'ack-system', - createNamespace: true, - }); - // testing the disable mechanism of the installation of CRDs - this.cluster.addHelmChart('test-skip-crd-installation', { - chart: 'lambda-chart', - release: 'lambda-chart-release', - repository: 'oci://public.ecr.aws/aws-controllers-k8s/lambda-chart', - version: 'v0.1.4', - namespace: 'ack-system', - createNamespace: true, - skipCrds: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksClusterStack(app, 'aws-cdk-eks-helm-test'); -new integ.IntegTest(app, 'aws-cdk-eks-helm', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZW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biAgICAgIGNyZWF0ZU5hbWVzcGFjZTogdHJ1ZSxcbiAgICAgIHNraXBDcmRzOiB0cnVlLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgRWtzQ2x1c3RlclN0YWNrKGFwcCwgJ2F3cy1jZGstZWtzLWhlbG0tdGVzdCcpO1xubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWVrcy1oZWxtJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.js deleted file mode 100644 index a4120a1aa9eee..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-inference.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksClusterInferenceStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - // just need one nat gateway to simplify the test - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 1 }); - const cluster = new eks.Cluster(this, 'Cluster', { - vpc, - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - albController: { - version: eks.AlbControllerVersion.V2_4_1, - }, - }); - cluster.addAutoScalingGroupCapacity('InferenceInstances', { - instanceType: new ec2.InstanceType('inf1.2xlarge'), - minCapacity: 1, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksClusterInferenceStack(app, 'aws-cdk-eks-cluster-inference-test'); -new integ.IntegTest(app, 'aws-cdk-eks-cluster-interence', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWtzLWluZmVyZW5jZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVrcy1pbmZlcmVuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBNkM7QUFDN0MsMkNBQTJDO0FBQzNDLDZDQUF5QztBQUN6QyxvREFBb0Q7QUFDcEQscUZBQTJFO0FBQzNFLDJDQUEyQztBQUUzQyxNQUFNLHdCQUF5QixTQUFRLG1CQUFLO0lBRTFDLFlBQVksS0FBVSxFQUFFLEVBQVU7UUFDaEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixpREFBaUQ7UUFDakQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLFdBQVcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBRXBFLE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsU0FBUyxFQUFFO1lBQy9DLEdBQUc7WUFDSCxHQUFHL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1la3MtY2x1c3Rlci1pbmZlcmVuY2UtdGVzdCcpO1xubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWVrcy1jbHVzdGVyLWludGVyZW5jZScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBjZGtDb21tYW5kT3B0aW9uczoge1xuICAgIGRlcGxveToge1xuICAgICAgYXJnczoge1xuICAgICAgICByb2xsYmFjazogdHJ1ZSxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.js deleted file mode 100644 index 8afa7548b5230..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-oidc-provider.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const eks = require("aws-cdk-lib/aws-eks"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-eks-oidc-provider-test'); -new eks.OpenIdConnectProvider(stack, 'NoClientsNoThumbprint', { - url: `https://oidc.eks.${aws_cdk_lib_1.Stack.of(stack).region}.amazonaws.com/id/test2`, -}); -new integ.IntegTest(app, 'aws-cdk-eks-oidc-provider', { - testCases: [stack], -}); -app.synth(); -//# s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ZXItdGVzdCcpO1xuXG5uZXcgZWtzLk9wZW5JZENvbm5lY3RQcm92aWRlcihzdGFjaywgJ05vQ2xpZW50c05vVGh1bWJwcmludCcsIHtcbiAgdXJsOiBgaHR0cHM6Ly9vaWRjLmVrcy4ke1N0YWNrLm9mKHN0YWNrKS5yZWdpb259LmFtYXpvbmF3cy5jb20vaWQvdGVzdDJgLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnYXdzLWNkay1la3Mtb2lkYy1wcm92aWRlcicsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.js deleted file mode 100644 index 1e8417e531f5a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.eks-service-account-sdk-call.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecrAssets = require("aws-cdk-lib/aws-ecr-assets"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cdk8s = require("cdk8s"); -const kplus = require("cdk8s-plus-24"); -const bucket_pinger_1 = require("./bucket-pinger/bucket-pinger"); -const eks = require("aws-cdk-lib/aws-eks"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-eks-service-account-sdk-calls-test'); -// this bucket gets created by a kubernetes pod. -const bucketName = `eks-bucket-${stack.account}-${stack.region}`; -const dockerImage = new ecrAssets.DockerImageAsset(stack, 'sdk-call-making-docker-image', { - directory: path.join(__dirname, 'sdk-call-integ-test-docker-app/app'), -}); -// just need one nat gateway to simplify the test -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 3, natGateways: 1 }); -const cluster = new eks.Cluster(stack, 'Cluster', { - vpc: vpc, - version: eks.KubernetesVersion.V1_24, -}); -const chart = new cdk8s.Chart(new cdk8s.App(), 'sdk-call-image'); -const serviceAccount = cluster.addServiceAccount('my-service-account'); -const kplusServiceAccount = kplus.ServiceAccount.fromServiceAccountName(stack, 'kplus-sa', serviceAccount.serviceAccountName); -new kplus.Deployment(chart, 'Deployment', { - containers: [{ - image: dockerImage.imageUri, - envVariables: { - BUCKET_NAME: kplus.EnvValue.fromValue(bucketName), - }, - securityContext: { - user: 1000, - }, - }], - restartPolicy: kplus.RestartPolicy.ALWAYS, - serviceAccount: kplusServiceAccount, -}); -cluster.addCdk8sChart('sdk-call', chart).node.addDependency(serviceAccount); -serviceAccount.role.addToPrincipalPolicy(new iam.PolicyStatement({ - actions: ['s3:CreateBucket'], - resources: [`arn:aws:s3:::${bucketName}`], -})); -// this custom resource will check that the bucket exists -// the bucket will be deleted when the custom resource is deleted -// if the bucket does not exist, then it will throw an error and fail the deployment. -const pinger = new bucket_pinger_1.BucketPinger(stack, 'S3BucketPinger', { - bucketName, - // we need more timeout for the sdk-call in the pod as it could take more than 1 minute. - timeout: aws_cdk_lib_1.Duration.minutes(3), -}); -// the pinger must wait for the cluster to be updated. -// interestingly, without this dependency, CFN will always run the pinger -// before the pod. -pinger.node.addDependency(cluster); -// this should confirm that the bucket actually exists -new aws_cdk_lib_1.CfnOutput(stack, 'PingerResponse', { - value: pinger.response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BDRk4gd2lsbCBhbHdheXMgcnVuIHRoZSBwaW5nZXJcbi8vIGJlZm9yZSB0aGUgcG9kLlxucGluZ2VyLm5vZGUuYWRkRGVwZW5kZW5jeShjbHVzdGVyKTtcblxuLy8gdGhpcyBzaG91bGQgY29uZmlybSB0aGF0IHRoZSBidWNrZXQgYWN0dWFsbHkgZXhpc3RzXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnUGluZ2VyUmVzcG9uc2UnLCB7XG4gIHZhbHVlOiBwaW5nZXIucmVzcG9uc2UsXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3MtY2RrLWVrcy1zZXJ2aWNlLWFjY291bnQtc2RrLWNhbGwnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.js deleted file mode 100644 index 300757dcde132..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.fargate-cluster.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ pragma:disable-update-workflow -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_kubernetes_version_1 = require("./integ-tests-kubernetes-version"); -const eks = require("aws-cdk-lib/aws-eks"); -class EksFargateClusterStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - new eks.FargateCluster(this, 'FargateCluster', { - ...(0, integ_tests_kubernetes_version_1.getClusterVersionConfig)(this), - prune: false, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new EksFargateClusterStack(app, 'aws-cdk-eks-fargate-cluster-test'); -new integ.IntegTest(app, 'aws-cdk-eks-fargate-cluster', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmFyZ2F0ZS1jbHVzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZmFyZ2F0ZS1jbHVzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQTZDO0FBQzdDLDZDQUF5QztBQUN6QyxvREFBb0Q7QUFDcEQscUZBQTJFO0FBQzNFLDJDQUEyQztBQUUzQyxNQUFNLHNCQUF1QixTQUFRLG1CQUFLO0lBRXhDLFlBQVksS0FBVSxFQUFFLEVBQVU7UUFDaEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLEdBQUcsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFFO1lBQzdDLEdBQUcsSUFBQSx3REFBdUIsRUFBQyxJQUFJLENBQUM7WUFDaEMsS0FBSyxFQUFFLEtBQUs7U0FDYixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0Y7QUFFRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixNQUFNLEtBQUssR0FBRyxJQUFJLHNCQUFzQixDQUFDLEdBQUcsRUFBRSxrQ0FBa0MsQ0FBQyxDQUFDO0FBQ2xGLElBQUksS0FBSyxDQUFDLFNBQVMsQ0FBQyxHQUFHLEVBQUUsNkJBQTZCLEVBQUU7SUFDdEQsU0FBUyxF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59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.d.ts deleted file mode 100644 index ef3bafb60d235..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as ec2 from 'aws-cdk-lib/aws-ec2'; -import { Construct } from 'constructs'; -export interface PingerProps { - readonly url: string; - readonly securityGroup?: ec2.SecurityGroup; - readonly vpc?: ec2.IVpc; - readonly subnets?: ec2.ISubnet[]; -} -export declare class Pinger extends Construct { - private _resource; - constructor(scope: Construct, id: string, props: PingerProps); - get response(): string; -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.js deleted file mode 100644 index 53ae564243873..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/pinger/pinger.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Pinger = void 0; -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const constructs_1 = require("constructs"); -class Pinger extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - const func = new lambda.Function(this, 'Function', { - code: lambda.Code.fromAsset(`${__dirname}/function`), - handler: 'index.handler', - runtime: lambda.Runtime.PYTHON_3_9, - vpc: props.vpc, - vpcSubnets: props.subnets ? { subnets: props.subnets } : undefined, - securityGroups: props.securityGroup ? [props.securityGroup] : undefined, - timeout: aws_cdk_lib_1.Duration.minutes(10), - }); - const provider = new cr.Provider(this, 'Provider', { - onEventHandler: func, - }); - this._resource = new aws_cdk_lib_1.CustomResource(this, 'Resource', { - serviceToken: provider.serviceToken, - properties: { - Url: props.url, - }, - }); - } - get response() { - return aws_cdk_lib_1.Token.asString(this._resource.getAtt('Value')); - } -} -exports.Pinger = Pinger; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGluZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGluZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLGlEQUFpRDtBQUNqRCw2Q0FBOEQ7QUFDOUQsbURBQW1EO0FBQ25ELDJDQUF1QztBQVF2QyxNQUFhLE1BQU8sU0FBUSxzQkFBUztJQUluQyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxJQUFJLEdBQUcsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDakQsSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsU0FBUyxXQUFXLENBQUM7WUFDcEQsT0FBTyxFQUFFLGVBQWU7WUFDeEIsT0FBTyxFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsVUFBVTtZQUNsQyxHQUFHLEVBQUUsS0FBSyxDQUFDLEdBQUc7WUFDZCxVQUFVLEVBQUUsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRSxPQUFPLEVBQUUsS0FBSyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsQ0FBQyxTQUFTO1lBQ2xFLGNBQWMsRUFBRSxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUMsU0FBUztZQUN2RSxPQUFPLEVBQUUsc0JBQVEsQ0FBQyx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KHRoaXMsICdSZXNvdXJjZScsIHtcbiAgICAgIHNlcnZpY2VUb2tlbjogcHJvdmlkZXIuc2VydmljZVRva2VuLFxuICAgICAgcHJvcGVydGllczoge1xuICAgICAgICBVcmw6IHByb3BzLnVybCxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cblxuICBwdWJsaWMgZ2V0IHJlc3BvbnNlKCkge1xuICAgIHJldHVybiBUb2tlbi5hc1N0cmluZyh0aGlzLl9yZXNvdXJjZS5nZXRBdHQoJ1ZhbHVlJykpO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/sdk-call-integ-test-docker-app/app/sdk-call.js b/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/sdk-call-integ-test-docker-app/app/sdk-call.js deleted file mode 100644 index 00172a64c488e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/sdk-call-integ-test-docker-app/app/sdk-call.js +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('aws-sdk'); -sdk.config.update({region: 'us-east-1'}); - -var s3 = new sdk.S3(); -const bucketName = process.env.BUCKET_NAME; -s3.createBucket({ Bucket: bucketName }, function(err) { - if (!err) { - console.log(`Bucket ${bucketName} was created`); - } else { - throw new Error(`failed to create s3 bucket ${bucketName} with error: ` + err); - } -}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.js deleted file mode 100644 index 0e36b3d5717f0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.elb.js +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const elb = require("aws-cdk-lib/aws-elasticloadbalancing"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elb-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 1, -}); -new elb.LoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, - listeners: [{ - externalPort: 80, - allowConnectionsFrom: [ec2.Peer.anyIpv4()], - }], - healthCheck: { - port: 80, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZWxiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUV0RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILElBQUksR0FBRyxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsSUFBSSxFQUFFO0lBQ2hDLEdBQUc7SUFDSCxjQUFjLEVBQUUsSUFBSTtJQUNwQixTQUFTLEVBQUUsQ0FBQztZQUNWLFlBQVksRUFBRSxFQUFFO1lBQ2hCLG9CQUFvQixFQUFFLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztTQUMzQyxDQUFDO0lBQ0YsV0FBVyxFQUFFO1FBQ1gsSUFBSSxFQUFFLEVBQUU7S0FDVDtDQUNGLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIiMhL3Vzci9iaW4vZW52IG5vZGVcbmltcG9ydCAqIGFzIGVjMiBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZWMyJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBlbGIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWVsYXN0aWNsb2FkYmFsYW5jaW5nJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLWVsYi1pbnRlZycpO1xuXG5jb25zdCB2cGMgPSBuZXcgZWMyLlZwYyhzdGFjaywgJ1ZQQycsIHtcbiAgbWF4QXpzOiAxLFxufSk7XG5cbm5ldyBlbGIuTG9hZEJhbGFuY2VyKHN0YWNrLCAnTEInLCB7XG4gIHZwYyxcbiAgaW50ZXJuZXRGYWNpbmc6IHRydWUsXG4gIGxpc3RlbmVyczogW3tcbiAgICBleHRlcm5hbFBvcnQ6IDgwLFxuICAgIGFsbG93Q29ubmVjdGlvbnNGcm9tOiBbZWMyLlBlZXIuYW55SXB2NCgpXSxcbiAgfV0sXG4gIGhlYWx0aENoZWNrOiB7XG4gICAgcG9ydDogODAsXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.js deleted file mode 100644 index 7641d13a24885..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancing/test/integ.instanceTarget.elb.js +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -// eslint-disable-next-line import/no-extraneous-dependencies -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const elb = require("aws-cdk-lib/aws-elasticloadbalancing"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elb-instance-target-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 1, -}); -const instance = new ec2.Instance(stack, 'targetInstance', { - vpc: vpc, - instanceType: ec2.InstanceType.of(// t2.micro has free tier usage in aws - ec2.InstanceClass.T3, ec2.InstanceSize.MICRO), - machineImage: ec2.MachineImage.latestAmazonLinux({ - generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2, - }), - initOptions: { - timeout: cdk.Duration.minutes(30), - }, - init: ec2.CloudFormationInit.fromElements(ec2.InitService.systemdConfigFile('pythonweb', { - command: '/usr/bin/python3 -m http.server 8080', - cwd: '/var/www/html', - }), ec2.InitService.enable('pythonweb', { - serviceManager: ec2.ServiceManager.SYSTEMD, - }), ec2.InitFile.fromString('/var/www/html/index.html', 'Hello! You can see me!')), -}); -instance.role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore')); -const elbalancer = new elb.LoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -elbalancer.addTarget(new elb.InstanceTarget(instance)); -elbalancer.addListener({ externalPort: 80, internalPort: 8080 }); -new integ.IntegTest(app, 'InstanceTargetTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2VUYXJnZXQuZWxiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW5zdGFuY2VUYXJnZXQuZWxiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyw2REFBNkQ7QUFDN0QsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsNERBQTREO0FBRTVELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUNBQW1DLENBQUMsQ0FBQztBQUV0RSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILE1BQU0sUUFBUSxHQUFHLElBQUksR0FBRyxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDekQsR0FBRyxFQUFFLEdBQUc7SUFDUixZQUFZLEVBQUUsR0FBRyxDQUFDLFlBQVksQ0FBQyxFQUFFLENBQUUsc0NBQXNDO0lBQ3ZFLEdBQUcsQ0FBQyxhQ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cm9tQXdzTWFuYWdlZFBvbGljeU5hbWUoJ0FtYXpvblNTTU1hbmFnZWRJbnN0YW5jZUNvcmUnKSk7XG5cbmNvbnN0IGVsYmFsYW5jZXIgPSBuZXcgZWxiLkxvYWRCYWxhbmNlcihzdGFjaywgJ0xCJywge1xuICB2cGMsXG4gIGludGVybmV0RmFjaW5nOiB0cnVlLFxufSk7XG5cbmVsYmFsYW5jZXIuYWRkVGFyZ2V0KG5ldyBlbGIuSW5zdGFuY2VUYXJnZXQoaW5zdGFuY2UpKTtcbmVsYmFsYW5jZXIuYWRkTGlzdGVuZXIoeyBleHRlcm5hbFBvcnQ6IDgwLCBpbnRlcm5hbFBvcnQ6IDgwODAgfSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnSW5zdGFuY2VUYXJnZXRUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js deleted file mode 100644 index 30db45b2a04b9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cognito = require("aws-cdk-lib/aws-cognito"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const actions = require("aws-cdk-lib/aws-elasticloadbalancingv2-actions"); -// This test can only be run as a dry-run at this time due to requiring a certificate -class CognitoStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'Stack', { - maxAzs: 2, - }); - const certificate = { - certificateArn: process.env.SELF_SIGNED_CERT_ARN ?? '', - }; - const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { - vpc, - internetFacing: true, - }); - const userPool = new cognito.UserPool(this, 'UserPool'); - const userPoolClient = new cognito.UserPoolClient(this, 'Client', { - userPool, - // Required minimal configuration for use with an ELB - generateSecret: true, - authFlows: { - userPassword: true, - }, - oAuth: { - flows: { - authorizationCodeGrant: true, - }, - scopes: [cognito.OAuthScope.EMAIL], - callbackUrls: [ - `https://${lb.loadBalancerDnsName}/oauth2/idpresponse`, - ], - }, - }); - const cfnClient = userPoolClient.node.defaultChild; - cfnClient.addPropertyOverride('RefreshTokenValidity', 1); - cfnClient.addPropertyOverride('SupportedIdentityProviders', ['COGNITO']); - const userPoolDomain = new cognito.UserPoolDomain(this, 'Domain', { - userPool, - cognitoDomain: { - domainPrefix: 'test-cdk-prefix', - }, - }); - lb.addListener('Listener', { - port: 443, - certificates: [certificate], - defaultAction: new actions.AuthenticateCognitoAction({ - userPool, - userPoolClient, - userPoolDomain, - next: elbv2.ListenerAction.fixedResponse(200, { - contentType: 'text/plain', - messageBody: 'Authenticated', - }), - }), - }); - new aws_cdk_lib_1.CfnOutput(this, 'DNS', { - value: lb.loadBalancerDnsName, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new CognitoStack(app, 'integ-cognito'); -new integ.IntegTest(app, 'integ-test-cognito', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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AgICAgdXNlclBvb2wsXG4gICAgICAgIHVzZXJQb29sQ2xpZW50LFxuICAgICAgICB1c2VyUG9vbERvbWFpbixcbiAgICAgICAgbmV4dDogZWxidjIuTGlzdGVuZXJBY3Rpb24uZml4ZWRSZXNwb25zZSgyMDAsIHtcbiAgICAgICAgICBjb250ZW50VHlwZTogJ3RleHQvcGxhaW4nLFxuICAgICAgICAgIG1lc3NhZ2VCb2R5OiAnQXV0aGVudGljYXRlZCcsXG4gICAgICAgIH0pLFxuICAgICAgfSksXG4gICAgfSk7XG5cbiAgICBuZXcgQ2ZuT3V0cHV0KHRoaXMsICdETlMnLCB7XG4gICAgICB2YWx1ZTogbGIubG9hZEJhbGFuY2VyRG5zTmFtZSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBDb2duaXRvU3RhY2soYXBwLCAnaW50ZWctY29nbml0bycpO1xubmV3IGludGVnLkludGVnVGVzdChhcHAsICdpbnRlZy10ZXN0LWNvZ25pdG8nLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuXG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.js deleted file mode 100644 index 12d4c5d094a8e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.alb-target.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const patterns = require("aws-cdk-lib/aws-ecs-patterns"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-elasticloadbalancingv2-targets"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 1 }); - const task = new ecs.FargateTaskDefinition(this, 'Task', { cpu: 256, memoryLimitMiB: 512 }); - task.addContainer('nginx', { - image: ecs.ContainerImage.fromRegistry('public.ecr.aws/nginx/nginx:latest'), - portMappings: [{ containerPort: 80 }], - }); - const svc = new patterns.ApplicationLoadBalancedFargateService(this, 'Service', { - vpc, - taskDefinition: task, - publicLoadBalancer: false, - }); - const nlb = new elbv2.NetworkLoadBalancer(this, 'Nlb', { - vpc, - crossZoneEnabled: true, - internetFacing: true, - }); - const listener = nlb.addListener('listener', { - port: 80, - }); - const target = listener.addTargets('Targets', { - targets: [new targets.AlbTarget(svc.loadBalancer, 80)], - port: 80, - healthCheck: { - protocol: elbv2.Protocol.HTTP, - }, - }); - target.node.addDependency(svc.listener); - new aws_cdk_lib_1.CfnOutput(this, 'NlbEndpoint', { value: `http://${nlb.loadBalancerDnsName}` }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'TestStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLXRhcmdldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYi10YXJnZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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N0U3RhY2soYXBwLCAnVGVzdFN0YWNrJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.js deleted file mode 100644 index b787f16266f68..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-targets/test/integ.lambda-target.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-elasticloadbalancingv2-targets"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'Stack', { maxAzs: 2, natGateways: 1 }); - const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true }); - const listener = lb.addListener('Listener', { port: 80 }); - const fn = new lambda.Function(this, 'Fun', { - code: lambda.Code.fromInline(` -def handler(event, context): - return { - "isBase64Encoded": False, - "statusCode": 200, - "statusDescription": "200 OK", - "headers": { - "Set-cookie": "cookies", - "Content-Type": "application/json" - }, - "body": "Hello from Lambda" - } - `), - runtime: lambda.Runtime.PYTHON_3_9, - handler: 'index.handler', - }); - listener.addTargets('Targets', { - targets: [new targets.LambdaTarget(fn)], - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'TestStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLXRhcmdldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWJkYS10YXJnZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsZ0VBQWdFO0FBQ2hFLGlEQUFpRDtBQUNqRCw2Q0FBeUM7QUFFekMsMEVBQTBFO0FBRTFFLE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVO1FBQ3RDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxPQUFPLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLFdBQVcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBRXRFLE1BQU0sRUFBRSxHQUFHLElBQUksS0FBSyxDQUFDLHVCQUF1QixDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsRUFBRSxHQUFHLEVBQUUsY0FBYyxFQUFFLElBQUksRUFBRSxDQUFDLENBQUM7UUFDeEYsTUFBTSxRQUFRLEdBQUcsRUFBRSxDQUFDLFdBQVcsQ0FBQyxVQUFVLEVBQUUsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUUxRCxNQUFNLEVBQUUsR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRTtZQUMxQyxJQUFJLEVBQUUsTUFBT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tYmRhVGFyZ2V0KGZuKV0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdUZXN0U3RhY2snKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js deleted file mode 100644 index 572ca49fe76d0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -new elbv2.ApplicationLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, - http2Enabled: false, - idleTimeout: cdk.Duration.seconds(1000), - dropInvalidHeaderFields: true, - desyncMitigationMode: elbv2.DesyncMitigationMode.DEFENSIVE, -}); -new elbv2.ApplicationLoadBalancer(stack, 'DesyncMitigationModeMonitor', { - vpc, - internetFacing: true, - desyncMitigationMode: elbv2.DesyncMitigationMode.MONITOR, -}); -new elbv2.ApplicationLoadBalancer(stack, 'DesyncMitigationModeStrictest', { - vpc, - internetFacing: true, - desyncMitigationMode: elbv2.DesyncMitigationMode.STRICTEST, -}); -new integ.IntegTest(app, 'Elbv2Test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLmF0dHJpYnV0ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hbGIuYXR0cmlidXRlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxnRUFBZ0U7QUFFaEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxxQkFBcUIsQ0FBQyxDQUFDO0FBRXhELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFO0lBQ3BDLE1BQU0sRUFBRSxDQUFDO0NBQ1YsQ0FBQyxDQUFDO0FBRUgsSUFBSSxLQUFLLENBQUMsdUJBQXVCLENBQUMsS0FBSyxFQUFFLElBQUksRUFBRTtJQUM3QyxHQUFHO0lBQ0gsY0FBYyxFQUFFLElBQUk7SUFDcEIsWUFBWSxFQUFFLEtBQUs7SUFDbkIsV0FBVyxFQUFFLEdBQUcsQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQztJQUN2Qyx1QkFBdUIsRUFBRSxJQUFJO0lBQzdCLG9CQUFvQixFQUFFLEtBQUssQ0FBQyxvQkFBb0IsQ0FBQyxTQUFTO0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Jywge1xuICBtYXhBenM6IDIsXG59KTtcblxubmV3IGVsYnYyLkFwcGxpY2F0aW9uTG9hZEJhbGFuY2VyKHN0YWNrLCAnTEInLCB7XG4gIHZwYyxcbiAgaW50ZXJuZXRGYWNpbmc6IHRydWUsXG4gIGh0dHAyRW5hYmxlZDogZmFsc2UsXG4gIGlkbGVUaW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygxMDAwKSxcbiAgZHJvcEludmFsaWRIZWFkZXJGaWVsZHM6IHRydWUsXG4gIGRlc3luY01pdGlnYXRpb25Nb2RlOiBlbGJ2Mi5EZXN5bmNNaXRpZ2F0aW9uTW9kZS5ERUZFTlNJVkUsXG59KTtcblxubmV3IGVsYnYyLkFwcGxpY2F0aW9uTG9hZEJhbGFuY2VyKHN0YWNrLCAnRGVzeW5jTWl0aWdhdGlvbk1vZGVNb25pdG9yJywge1xuICB2cGMsXG4gIGludGVybmV0RmFjaW5nOiB0cnVlLFxuICBkZXN5bmNNaXRpZ2F0aW9uTW9kZTogZWxidjIuRGVzeW5jTWl0aWdhdGlvbk1vZGUuTU9OSVRPUixcbn0pO1xuXG5uZXcgZWxidjIuQXBwbGljYXRpb25Mb2FkQmFsYW5jZXIoc3RhY2ssICdEZXN5bmNNaXRpZ2F0aW9uTW9kZVN0cmljdGVzdCcsIHtcbiAgdnBjLFxuICBpbnRlcm5ldEZhY2luZzogdHJ1ZSxcbiAgZGVzeW5jTWl0aWdhdGlvbk1vZGU6IGVsYnYyLkRlc3luY01pdGlnYXRpb25Nb2RlLlNUUklDVEVTVCxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0VsYnYyVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.js deleted file mode 100644 index 258377accf4b1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.dualstack.js +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -/* IPv6 workaround found here: https://github.com/aws/aws-cdk/issues/894 */ -const valueOrDie = (value, err) => { - if (value === undefined) { - throw err; - } - return value; -}; -/** - * Integration test to deployability and use of dualstack ALB. Creates an ALB - * with dualstack ipAddresType and an ipv6Block to add to VPC subnets. Main - * test is for the inclusion of default IPv6 ingress rule. - * - * Stack Verification steps: - * VPC is created with subnets that allow for IPv6 connection and then dualstack - * ALB attaches a listener with dualstack that defaults IPv4/IPv6 ingress rule. - * - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const ipv6Block = new ec2.CfnVPCCidrBlock(stack, 'IPv6_Block', { - vpcId: vpc.vpcId, - amazonProvidedIpv6CidrBlock: true, -}); -// Get the vpc's internet gateway so we can create default routes for the -// public subnets. -const internetGateway = valueOrDie(vpc.node.children.find(c => c instanceof ec2.CfnInternetGateway), new Error('Couldnt find an internet gateway')); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { - vpc, - ipAddressType: elbv2.IpAddressType.DUAL_STACK, - internetFacing: true, -}); -const listener = lb.addListener('Listener', { - port: 80, -}); -const group1 = listener.addTargets('Target', { - port: 80, - targets: [new elbv2.IpTarget('10.0.128.6')], -}); -const group2 = listener.addTargets('ConditionalTarget', { - priority: 10, - hostHeader: 'example.com', - port: 80, - targets: [new elbv2.IpTarget('10.0.128.5')], -}); -vpc.publicSubnets.forEach((subnet, idx) => { - // Add a default ipv6 route to the subnet's route table. - const unboxedSubnet = subnet; - unboxedSubnet.addRoute('IPv6Default', { - routerId: internetGateway.ref, - routerType: ec2.RouterType.GATEWAY, - destinationIpv6CidrBlock: '::/0', - }); - // Find a CfnSubnet (raw cloudformation resources) child to the public - // subnet nodes. - const cfnSubnet = valueOrDie(subnet.node.children.find(c => c instanceof ec2.CfnSubnet), new Error('Couldnt find a CfnSubnet')); - // Use the intrinsic Fn::Cidr CloudFormation function on the VPC's - // first IPv6 block to determine ipv6 /64 cidrs for each subnet as - // a function of the public subnet's index. - const vpcCidrBlock = cdk.Fn.select(0, vpc.vpcIpv6CidrBlocks); - const ipv6Cidrs = cdk.Fn.cidr(vpcCidrBlock, vpc.publicSubnets.length, '64'); - cfnSubnet.ipv6CidrBlock = cdk.Fn.select(idx, ipv6Cidrs); - // The subnet depends on the ipv6 cidr being allocated. - cfnSubnet.addDependency(ipv6Block); - group1.node.addDependency(subnet); - group2.node.addDependency(subnet); -}); -listener.addAction('action1', { - priority: 1, - conditions: [ - elbv2.ListenerCondition.hostHeaders(['example.com']), - ], - action: elbv2.ListenerAction.fixedResponse(200, { messageBody: 'success' }), -}); -group1.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh1', { - threshold: 5, - evaluationPeriods: 2, -}); -group2.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh2', { - threshold: 5, - evaluationPeriods: 2, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLmR1YWxzdGFjay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYi5kdWFsc3RhY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUVuQyxnRUFBZ0U7QUFFaEUsMkVBQTJFO0FBQzNFLE1BQU0sVUFBVSxHQUFHLENBQXFCLEtBQW9CLEVBQUUsR0FBVSxFQUFLLEVBQUU7SUFDN0UsSUFBSSxLQUFLLEtBQUssU0FBUyxFQUFFO1FBQUUsTUFBTSxHQUFHLENBQUM7S0FBRTtJQUN2QyxPQUFPLEtBQVUsQ0FBQztBQUNwQixDQUFDLENBQUM7QUFFRjs7Ozs7Ozs7O0dBU0c7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHFCQUFxQixDQUFDLENBQUM7QUFFeEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUU7SUFDcEMsTUFBTSxFQUFFLENBQUM7Q0FDVixDQUFDLENBQUM7QUFFSCxNQUFNLFNBQVMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxlQUFlLENBQ3ZDLEtBQUssRUFDTCxZQU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TogMSxcbiAgY29uZGl0aW9uczogW1xuICAgIGVsYnYyLkxpc3RlbmVyQ29uZGl0aW9uLmhvc3RIZWFkZXJzKFsnZXhhbXBsZS5jb20nXSksXG4gIF0sXG4gIGFjdGlvbjogZWxidjIuTGlzdGVuZXJBY3Rpb24uZml4ZWRSZXNwb25zZSgyMDAsIHsgbWVzc2FnZUJvZHk6ICdzdWNjZXNzJyB9KSxcbn0pO1xuXG5ncm91cDEubWV0cmljVGFyZ2V0UmVzcG9uc2VUaW1lKCkuY3JlYXRlQWxhcm0oc3RhY2ssICdSZXNwb25zZVRpbWVIaWdoMScsIHtcbiAgdGhyZXNob2xkOiA1LFxuICBldmFsdWF0aW9uUGVyaW9kczogMixcbn0pO1xuXG5ncm91cDIubWV0cmljVGFyZ2V0UmVzcG9uc2VUaW1lKCkuY3JlYXRlQWxhcm0oc3RhY2ssICdSZXNwb25zZVRpbWVIaWdoMicsIHtcbiAgdGhyZXNob2xkOiA1LFxuICBldmFsdWF0aW9uUGVyaW9kczogMixcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.js deleted file mode 100644 index 0a520432add12..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.js +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -const listener = lb.addListener('Listener', { - port: 80, -}); -const group1 = listener.addTargets('Target', { - port: 80, - targets: [new elbv2.IpTarget('10.0.128.6')], - stickinessCookieDuration: cdk.Duration.minutes(5), -}); -const group2 = listener.addTargets('ConditionalTarget', { - priority: 10, - hostHeader: 'example.com', - port: 80, - targets: [new elbv2.IpTarget('10.0.128.5')], - stickinessCookieDuration: cdk.Duration.minutes(5), - stickinessCookieName: 'MyDeliciousCookie', - slowStart: cdk.Duration.minutes(1), -}); -group1.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh1', { - threshold: 5, - evaluationPeriods: 2, -}); -group2.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh2', { - threshold: 5, - evaluationPeriods: 2, -}); -vpc.publicSubnets.forEach(subnet => { - group2.node.addDependency(subnet); - group1.node.addDependency(subnet); -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYWxiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsZ0VBQWdFO0FBRWhFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUJBQXFCLENBQUMsQ0FBQztBQUV4RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILE1BQU0sRUFBRSxHQUFHLElBQUksS0FBSyxDQUFDLHVCQUF1QixDQUFDLEtBQUssRUFBRSxJQUFJL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mV0ID0+IHtcbiAgZ3JvdXAyLm5vZGUuYWRkRGVwZW5kZW5jeShzdWJuZXQpO1xuICBncm91cDEubm9kZS5hZGREZXBlbmRlbmN5KHN1Ym5ldCk7XG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.js deleted file mode 100644 index d6efd0da9d8ec..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb2.js +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -const listener = lb.addListener('Listener', { - port: 80, -}); -const group1 = listener.addTargets('Target', { - port: 80, - targets: [new elbv2.IpTarget('10.0.128.4')], -}); -const group2 = listener.addTargets('ConditionalTarget', { - priority: 10, - hostHeader: 'example.com', - port: 80, - targets: [new elbv2.IpTarget('10.0.128.5')], -}); -listener.addAction('action1', { - priority: 1, - conditions: [ - elbv2.ListenerCondition.hostHeaders(['example.com']), - ], - action: elbv2.ListenerAction.fixedResponse(200, { messageBody: 'success' }), -}); -group1.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh1', { - threshold: 5, - evaluationPeriods: 2, -}); -group2.metricTargetResponseTime().createAlarm(stack, 'ResponseTimeHigh2', { - threshold: 5, - evaluationPeriods: 2, -}); -vpc.publicSubnets.forEach(subnet => { - group2.node.addDependency(subnet); - group1.node.addDependency(subnet); -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYjIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxnRUFBZ0U7QUFFaEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxxQkFBcUIsQ0FBQyxDQUFDO0FBRXhELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFO0lBQ3BDLE1BQU0sRUFBRSxDQUFDO0NBQ1YsQ0FBQyxDQUFDO0FBRUgsTUFBTSxFQUFFLEdBQUcsSUFBSSxLQUFLLENBQUMsdUJBQXVCLENBQUMsS0FBSyxFQUFFLElBQUksRUFBRTtJQUN4RCxHQUFHO0lBQ0gsY0FBYyxFQUFFLElBQUk7Q0FDckIsQ0FBQyxDQUFDO0FBRUgsTUFBTSxRQUFRLEdBQUcsRUFBRSxDQUFDLFdBQVcsQ0FBQyxVQUFVLEVBQUU7SUFDMUMsSUFBSSxFQUFFLEVBQUU7Q0FDVCx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ICBncm91cDEubm9kZS5hZGREZXBlbmRlbmN5KHN1Ym5ldCk7XG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.js deleted file mode 100644 index 4e8fddd8eff8c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.connection-termination.nlb.js +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const lb = new elbv2.NetworkLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -const targetGroup = new elbv2.NetworkTargetGroup(stack, 'TG', { - vpc, - port: 443, - deregistrationDelay: aws_cdk_lib_1.Duration.seconds(5), - connectionTermination: true, -}); -lb.addListener('listener', { - port: 443, - defaultTargetGroups: [targetGroup], -}); -targetGroup.node.addDependency(vpc.internetConnectivityEstablished); -// The target's security group must allow being routed by the LB and the clients. -new integ.IntegTest(app, 'targetGroupTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29ubmVjdGlvbi10ZXJtaW5hdGlvbi5ubGIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jb25uZWN0aW9uLXRlcm1pbmF0aW9uLm5sYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDZDQUF1QztBQUN2QyxvREFBb0Q7QUFDcEQsZ0VBQWdFO0FBR2hFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUJBQXFCLENBQUMsQ0FBQztBQUV4RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILE1BQU0sRUFBRSxHQUFHLElBQUksS0FBSyxDQUFDLG1CQUFtQixDQUFDLEtBQUssRUFBRSxJQUFJLEVBQUU7SUFDcEQsR0FBRztJQUNILGNBQWMsRUFBRSxJQUFJO0NBRXJCLENBQUMsQ0FBQztBQUVILE1BQU0sV0FBVyxHQUFHLElBQUksS0FBSyxDQUFDLGtCQUFrQixDQUFDLEtBQUssRUFBRSxJQUFJLEVBQUU7SUFDNUQsR0FBRztJQUNILElBQUksRUFBRSxHQUFHO0lBQ1QsbUJBQW1CLEVBQUUsc0JBQVEsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO0lBQ3hDLHFCQUFxQixFQUFFLElBQU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mtMb2FkQmFsYW5jZXIoc3RhY2ssICdMQicsIHtcbiAgdnBjLFxuICBpbnRlcm5ldEZhY2luZzogdHJ1ZSxcblxufSk7XG5cbmNvbnN0IHRhcmdldEdyb3VwID0gbmV3IGVsYnYyLk5ldHdvcmtUYXJnZXRHcm91cChzdGFjaywgJ1RHJywge1xuICB2cGMsXG4gIHBvcnQ6IDQ0MyxcbiAgZGVyZWdpc3RyYXRpb25EZWxheTogRHVyYXRpb24uc2Vjb25kcyg1KSxcbiAgY29ubmVjdGlvblRlcm1pbmF0aW9uOiB0cnVlLFxufSk7XG5cbmxiLmFkZExpc3RlbmVyKCdsaXN0ZW5lcicsIHtcbiAgcG9ydDogNDQzLFxuICBkZWZhdWx0VGFyZ2V0R3JvdXBzOiBbdGFyZ2V0R3JvdXBdLFxufSk7XG5cbnRhcmdldEdyb3VwLm5vZGUuYWRkRGVwZW5kZW5jeSh2cGMuaW50ZXJuZXRDb25uZWN0aXZpdHlFc3RhYmxpc2hlZCk7XG5cbi8vIFRoZSB0YXJnZXQncyBzZWN1cml0eSBncm91cCBtdXN0IGFsbG93IGJlaW5nIHJvdXRlZCBieSB0aGUgTEIgYW5kIHRoZSBjbGllbnRzLlxubmV3IGludGVnLkludGVnVGVzdChhcHAsICd0YXJnZXRHcm91cFRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.js deleted file mode 100644 index 50904f849ba22..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-lookup.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stackWithLb = new cdk.Stack(app, 'aws-cdk-elbv2-StackWithLb', { - env: { - account: process.env.CDK_INTEG_ACCOUNT ?? process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION ?? process.env.CDK_DEFAULT_REGION, - }, -}); -const vpc = new ec2.Vpc(stackWithLb, 'VPC', { - maxAzs: 2, - vpcName: 'my-vpc-name', -}); -const lb = new elbv2.NetworkLoadBalancer(stackWithLb, 'LB', { - vpc, - internetFacing: true, - loadBalancerName: 'my-load-balancer', -}); -const listener = lb.addListener('Listener', { - port: 443, -}); -const group = listener.addTargets('TargetGroup', { - port: 443, - targets: [new elbv2.IpTarget('10.0.1.1')], -}); -new cdk.CfnOutput(stackWithLb, 'NlbArn', { - value: lb.loadBalancerArn, - exportName: 'NlbArn', -}); -new cdk.CfnOutput(stackWithLb, 'TgArn', { - value: group.targetGroupArn, - exportName: 'TgArn', -}); -const stackLookup = new integ_tests_alpha_1.IntegTestCaseStack(app, 'aws-cdk-elbv2-integ-StackUnderTest', { - env: { - account: process.env.CDK_INTEG_ACCOUNT ?? process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION ?? process.env.CDK_DEFAULT_REGION, - }, -}); -// Load Balancer -const lbByHardcodedArn = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stackLookup, 'NlbByHardcodedArn', { - loadBalancerArn: 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/network/my-load-balancer/50dc6c495c0c9188', -}); -lbByHardcodedArn.metrics.activeFlowCount().createAlarm(stackLookup, 'NlbByHardcodedArn_AlarmFlowCount', { - evaluationPeriods: 1, - threshold: 0, -}); -const lbByCfnOutputsFromAnotherStackOutsideCdk = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stackLookup, 'NlbByCfnOutputsFromAnotherStackOutsideCdk', { - loadBalancerArn: cdk.Fn.importValue('NlbArn'), -}); -lbByCfnOutputsFromAnotherStackOutsideCdk.metrics.activeFlowCount().createAlarm(stackLookup, 'NlbByCfnOutputsFromAnotherStackOutsideCdk_AlarmFlowCount', { - evaluationPeriods: 1, - threshold: 0, -}); -const lbByCfnOutputsFromAnotherStackWithinCdk = elbv2.NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stackLookup, 'NlbByCfnOutputsFromAnotherStackWithinCdk', { - loadBalancerArn: lb.loadBalancerArn, -}); -lbByCfnOutputsFromAnotherStackWithinCdk.metrics.activeFlowCount().createAlarm(stackLookup, 'NlbByCfnOutputsFromAnotherStackWithinCdk_AlarmFlowCount', { - evaluationPeriods: 1, - threshold: 0, -}); -// Target Group -const tgByHardcodedArn = elbv2.NetworkTargetGroup.fromTargetGroupAttributes(stackLookup, 'TgByHardcodedArn', { - targetGroupArn: 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-target-group/50dc6c495c0c9188', - loadBalancerArns: 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/net/my-load-balancer/50dc6c495c0c9188', -}); -tgByHardcodedArn.metrics.healthyHostCount().createAlarm(stackLookup, 'TgByHardcodedArn_HealthyHostCount', { - evaluationPeriods: 1, - threshold: 0, -}); -const tgByCfnOutputsFromAnotherStackOutsideCdk = elbv2.NetworkTargetGroup.fromTargetGroupAttributes(stackLookup, 'TgByCfnOutputsFromAnotherStackOutsideCdk', { - targetGroupArn: cdk.Fn.importValue('TgArn'), - loadBalancerArns: cdk.Fn.importValue('NlbArn'), -}); -tgByCfnOutputsFromAnotherStackOutsideCdk.metrics.healthyHostCount().createAlarm(stackLookup, 'TgByCfnOutputsFromAnotherStackOutsideCdk_HealthyHostCount', { - evaluationPeriods: 1, - threshold: 0, -}); -const tgByCfnOutputsFromAnotherStackWithinCdk = elbv2.NetworkTargetGroup.fromTargetGroupAttributes(stackLookup, 'TgByCfnOutputsFromAnotherStackWithinCdk', { - targetGroupArn: group.targetGroupArn, - loadBalancerArns: lb.loadBalancerArn, -}); -tgByCfnOutputsFromAnotherStackWithinCdk.metrics.healthyHostCount().createAlarm(stackLookup, 'TgByCfnOutputsFromAnotherStackWithinCdk_HealthyHostCount', { - evaluationPeriods: 1, - threshold: 0, -}); -new integ.IntegTest(app, 'elbv2-integ', { - testCases: [stackLookup], - enableLookups: true, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmxiLWxvb2t1cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5sYi1sb29rdXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxrRUFBZ0U7QUFDaEUsZ0VBQWdFO0FBRWhFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkJBQTJCLEVBQUU7SUFDbEUsR0FBRyxFQUFFO1FBQ0gsT0FBTyxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQ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RocmVzaG9sZDogMCxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2VsYnYyLWludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja0xvb2t1cF0sXG4gIGVuYWJsZUxvb2t1cHM6IHRydWUsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js deleted file mode 100644 index 42728d335c47a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const lb = new elbv2.NetworkLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -const listener = lb.addListener('Listener', { - port: 443, -}); -const group = listener.addTargets('Target', { - port: 443, - targets: [new elbv2.IpTarget('10.0.1.1')], -}); -group.configureHealthCheck({ - interval: cdk.Duration.seconds(250), - protocol: elbv2.Protocol.TCP, -}); -vpc.publicSubnets.forEach(subnet => group.node.addDependency(subnet)); -group.node.addDependency(vpc.internetConnectivityEstablished); -// The target's security group must allow being routed by the LB and the clients. -new integ.IntegTest(app, 'elbv2-integ', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmxiLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubmxiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsZ0VBQWdFO0FBRWhFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUJBQXFCLENBQUMsQ0FBQztBQUV4RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRTtJQUNwQyxNQUFNLEVBQUUsQ0FBQztDQUNWLENBQUMsQ0FBQztBQUVILE1BQU0sRUFBRSxHQUFHLElBQUksS0FBSyxDQUFDLG1CQUFtQixDQUFDLEtBQUssRUFBRSxJQUFJLEVBQUU7SUFDcEQsR0FBRztJQUNILGNBQWMsRUFBRSxJQUFJO0NBQ3JCLENBQUMsQ0FBQztBQUVILE1BQU0sUUFBUSxHQUFHLEVBQUUsQ0FBQyxXQUFXLENBQUMsVUFBVSxFQUFFO0lBQzFDLElBQUksRUFBRSxHQUFHO0NBQ1YsQ0FBQyxDQUFDO0FBRUgsTUFBTSxLQUFLLEdBQUcsUUFBUSxDQUFDLFVBQVUsQ0FBQyxRQUFRLEVBQUU7SUFDMUMsSUFBSSxFQUFFLEdBQUc7SUFDVCxPQUFPLEVBQUUsQ0FBQyxJQUFJLEtBQU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idjItaW50ZWcnKTtcblxuY29uc3QgdnBjID0gbmV3IGVjMi5WcGMoc3RhY2ssICdWUEMnLCB7XG4gIG1heEF6czogMixcbn0pO1xuXG5jb25zdCBsYiA9IG5ldyBlbGJ2Mi5OZXR3b3JrTG9hZEJhbGFuY2VyKHN0YWNrLCAnTEInLCB7XG4gIHZwYyxcbiAgaW50ZXJuZXRGYWNpbmc6IHRydWUsXG59KTtcblxuY29uc3QgbGlzdGVuZXIgPSBsYi5hZGRMaXN0ZW5lcignTGlzdGVuZXInLCB7XG4gIHBvcnQ6IDQ0Myxcbn0pO1xuXG5jb25zdCBncm91cCA9IGxpc3RlbmVyLmFkZFRhcmdldHMoJ1RhcmdldCcsIHtcbiAgcG9ydDogNDQzLFxuICB0YXJnZXRzOiBbbmV3IGVsYnYyLklwVGFyZ2V0KCcxMC4wLjEuMScpXSxcbn0pO1xuXG5ncm91cC5jb25maWd1cmVIZWFsdGhDaGVjayh7XG4gIGludGVydmFsOiBjZGsuRHVyYXRpb24uc2Vjb25kcygyNTApLFxuICBwcm90b2NvbDogZWxidjIuUHJvdG9jb2wuVENQLFxufSk7XG5cbnZwYy5wdWJsaWNTdWJuZXRzLmZvckVhY2goc3VibmV0ID0+IGdyb3VwLm5vZGUuYWRkRGVwZW5kZW5jeShzdWJuZXQpKTtcbmdyb3VwLm5vZGUuYWRkRGVwZW5kZW5jeSh2cGMuaW50ZXJuZXRDb25uZWN0aXZpdHlFc3RhYmxpc2hlZCk7XG5cbi8vIFRoZSB0YXJnZXQncyBzZWN1cml0eSBncm91cCBtdXN0IGFsbG93IGJlaW5nIHJvdXRlZCBieSB0aGUgTEIgYW5kIHRoZSBjbGllbnRzLlxuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2VsYnYyLWludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js deleted file mode 100644 index abe6944e2bdb5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const app = new cdk.App(); -class VpcEndpointServiceStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC'); - const nlbNoPrincipals = new elbv2.NetworkLoadBalancer(this, 'NLBNoPrincipals', { - vpc, - }); - const service1 = new ec2.VpcEndpointService(this, 'MyVpcEndpointServiceWithNoPrincipals', { - vpcEndpointServiceLoadBalancers: [nlbNoPrincipals], - acceptanceRequired: false, - allowedPrincipals: [], - }); - const nlbWithPrincipals = new elbv2.NetworkLoadBalancer(this, 'NLBWithPrincipals', { - vpc, - }); - const principalArn = new aws_iam_1.ArnPrincipal('arn:aws:iam::123456789012:root'); - const service2 = new ec2.VpcEndpointService(this, 'MyVpcEndpointServiceWithPrincipals', { - vpcEndpointServiceLoadBalancers: [nlbWithPrincipals], - acceptanceRequired: false, - allowedPrincipals: [principalArn], - }); - new cdk.CfnOutput(this, 'MyVpcEndpointServiceWithNoPrincipalsServiceName', { - exportName: 'ServiceName', - value: service1.vpcEndpointServiceName, - description: 'Give this to service consumers so they can connect via VPC Endpoint', - }); - new cdk.CfnOutput(this, 'MyVpcEndpointServiceWithPrincipalsEndpointServiceId', { - exportName: 'EndpointServiceId', - value: service2.vpcEndpointServiceId, - description: 'Reference this service from other stacks', - }); - } -} -new VpcEndpointServiceStack(app, 'aws-cdk-ec2-vpc-endpoint-service'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWVuZHBvaW50LXNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52cGMtZW5kcG9pbnQtc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxpREFBbUQ7QUFDbkQsbUNBQW1DO0FBQ25DLGdFQUFnRTtBQUVoRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLHVCQUF3QixTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzdDLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBQ3JDLE1BQU0sZUFBZSxHQUFHLElBQUksS0FBSyxDQUFDLG1CQUFtQixDQUFDLElBQUksRUFBRSxpQkFBaUIsRUFBRTtZQUM3RSxHQUFHO1NBQ0osQ0FBQyxDQUFDO1FBRUgsTUFBTSxRQUFRLEdBQUcsSUFBSSxHQUFHLENBQUMsa0JBQ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gIGV4cG9ydE5hbWU6ICdFbmRwb2ludFNlcnZpY2VJZCcsXG4gICAgICB2YWx1ZTogc2VydmljZTIudnBjRW5kcG9pbnRTZXJ2aWNlSWQsXG4gICAgICBkZXNjcmlwdGlvbjogJ1JlZmVyZW5jZSB0aGlzIHNlcnZpY2UgZnJvbSBvdGhlciBzdGFja3MnLFxuICAgIH0pO1xuICB9XG59XG5cbm5ldyBWcGNFbmRwb2ludFNlcnZpY2VTdGFjayhhcHAsICdhd3MtY2RrLWVjMi12cGMtZW5kcG9pbnQtc2VydmljZScpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.js deleted file mode 100644 index aac98e230b200..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch-vpc.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const serviceLinkedRole = new aws_cdk_lib_1.CfnResource(this, 'ServiceLinkedRole', { - type: 'AWS::IAM::ServiceLinkedRole', - properties: { - AWSServiceName: 'es.amazonaws.com', - Description: 'Role for ElasticSearch VPC Test', - }, - }); - const vpc = new ec2.Vpc(this, 'Vpc'); - const domainProps = { - version: es.ElasticsearchVersion.V7_1, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - vpc, - zoneAwareness: { - enabled: true, - }, - capacity: { - dataNodes: 2, - }, - }; - const domain = new es.Domain(this, 'Domain', domainProps); - domain.node.addDependency(serviceLinkedRole); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'cdk-integ-elasticsearch-vpc'); -new integ.IntegTest(app, 'cdk-integ-elasticsearch-vpc-test', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC12cGMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5lbGFzdGljc2VhcmNoLXZwYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyw2Q0FBaUY7QUFDakYsb0RBQW9EO0FBRXBELG9EQUFvRDtBQUVwRCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0saUJBQWlCLEdBQUcsSUFBSSx5QkFBVyxDQUFDLElBQUksRUFBRSxtQkFBbUIsRUFBRTtZQUNuRSxJQUFJLEVBQUUsNkJBQTZCO1lBQ25DLFVBQVUsRUFBRTtnQkFDVixjQUFjLEVBQUUsa0JBQWtCO2dCQUNsQyxXQUFXLEVBQUUsaUNBQWlDO2FBQy9DO1NBQ0YsQ0FBQyxDQUFDO1FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxD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SxcbiAgICB9O1xuICAgIGNvbnN0IGRvbWFpbiA9IG5ldyBlcy5Eb21haW4odGhpcywgJ0RvbWFpbicsIGRvbWFpblByb3BzKTtcbiAgICBkb21haW4ubm9kZS5hZGREZXBlbmRlbmN5KHNlcnZpY2VMaW5rZWRSb2xlKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBUZXN0U3RhY2soYXBwLCAnY2RrLWludGVnLWVsYXN0aWNzZWFyY2gtdnBjJyk7XG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2Nkay1pbnRlZy1lbGFzdGljc2VhcmNoLXZwYy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.js deleted file mode 100644 index 9ef4bace8a5e7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.advancedsecurity.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const user = new aws_iam_1.User(this, 'User'); - new es.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: es.ElasticsearchVersion.V7_1, - fineGrainedAccessControl: { - masterUserArn: user.userArn, - }, - encryptionAtRest: { - enabled: true, - }, - nodeToNodeEncryption: true, - enforceHttps: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-elasticsearch-advancedsecurity'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC5hZHZhbmNlZHNlY3VyaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZWxhc3RpY3NlYXJjaC5hZHZhbmNlZHNlY3VyaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTJDO0FBQzNDLDZDQUFvRTtBQUVwRSxvREFBb0Q7QUFFcEQsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLElBQUksR0FBRyxJQUFJLGNBQUksQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFcEMsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFDNUIsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztZQUNwQyxPQUFPLEVBQUUsRUFBRSxDQUFDLG9CQUFvQixDQUFDLElBQUk7WUFDckMsd0JBQXdCLEVBQUU7Z0JBQ3hCLGFBQWEsRUFBRSxJQUFJLENBQUMsT0FBTzthQ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NvbnRyb2w6IHtcbiAgICAgICAgbWFzdGVyVXNlckFybjogdXNlci51c2VyQXJuLFxuICAgICAgfSxcbiAgICAgIGVuY3J5cHRpb25BdFJlc3Q6IHtcbiAgICAgICAgZW5hYmxlZDogdHJ1ZSxcbiAgICAgIH0sXG4gICAgICBub2RlVG9Ob2RlRW5jcnlwdGlvbjogdHJ1ZSxcbiAgICAgIGVuZm9yY2VIdHRwczogdHJ1ZSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1lbGFzdGljc2VhcmNoLWFkdmFuY2Vkc2VjdXJpdHknKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js deleted file mode 100644 index 034ea884ac02c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.custom-kms-key.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const key = new kms.Key(this, 'Key'); - const domainProps = { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: es.ElasticsearchVersion.V7_1, - ebs: { - volumeSize: 10, - volumeType: aws_ec2_1.EbsDeviceVolumeType.GENERAL_PURPOSE_SSD, - }, - logging: { - slowSearchLogEnabled: true, - appLogEnabled: true, - }, - nodeToNodeEncryption: true, - encryptionAtRest: { - enabled: true, - kmsKey: key, - }, - // test the access policies custom resource works - accessPolicies: [ - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['es:ESHttp*'], - principals: [new iam.AccountRootPrincipal()], - resources: ['*'], - }), - ], - }; - new es.Domain(this, 'Domain', domainProps); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-elasticsearch-custom-kms-key'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC5jdXN0b20ta21zLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVsYXN0aWNzZWFyY2guY3VzdG9tLWttcy1rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBMEQ7QUFDMUQsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyw2Q0FBb0U7QUFFcEUsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUVyQyxNQUF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JsZWQ6IHRydWUsXG4gICAgICB9LFxuICAgICAgbm9kZVRvTm9kZUVuY3J5cHRpb246IHRydWUsXG4gICAgICBlbmNyeXB0aW9uQXRSZXN0OiB7XG4gICAgICAgIGVuYWJsZWQ6IHRydWUsXG4gICAgICAgIGttc0tleToga2V5LFxuICAgICAgfSxcbiAgICAgIC8vIHRlc3QgdGhlIGFjY2VzcyBwb2xpY2llcyBjdXN0b20gcmVzb3VyY2Ugd29ya3NcbiAgICAgIGFjY2Vzc1BvbGljaWVzOiBbXG4gICAgICAgIG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgICAgICAgICBlZmZlY3Q6IGlhbS5FZmZlY3QuQUxMT1csXG4gICAgICAgICAgYWN0aW9uczogWydlczpFU0h0dHAqJ10sXG4gICAgICAgICAgcHJpbmNpcGFsczogW25ldyBpYW0uQWNjb3VudFJvb3RQcmluY2lwYWwoKV0sXG4gICAgICAgICAgcmVzb3VyY2VzOiBbJyonXSxcbiAgICAgICAgfSksXG4gICAgICBdLFxuICAgIH07XG5cbiAgICBuZXcgZXMuRG9tYWluKHRoaXMsICdEb21haW4nLCBkb21haW5Qcm9wcyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctZWxhc3RpY3NlYXJjaC1jdXN0b20ta21zLWtleScpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.js deleted file mode 100644 index e88b02eb0f179..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const domainProps = { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: es.ElasticsearchVersion.V7_1, - ebs: { - volumeSize: 10, - volumeType: aws_ec2_1.EbsDeviceVolumeType.GENERAL_PURPOSE_SSD, - }, - logging: { - slowSearchLogEnabled: true, - appLogEnabled: true, - }, - nodeToNodeEncryption: true, - encryptionAtRest: { - enabled: true, - }, - advancedOptions: { - 'rest.action.multi.allow_explicit_index': 'false', - 'indices.fielddata.cache.size': '25', - 'indices.query.bool.max_clause_count': '2048', - }, - // test the access policies custom resource works - accessPolicies: [ - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['es:ESHttp*'], - principals: [new iam.AccountRootPrincipal()], - resources: ['*'], - }), - ], - }; - // create 2 elasticsearch domains to ensure that Cloudwatch Log Group policy names dont conflict - new es.Domain(this, 'Domain1', domainProps); - new es.Domain(this, 'Domain2', domainProps); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-elasticsearch'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVsYXN0aWNzZWFyY2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncy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mVzb3VyY2VzOiBbJyonXSxcbiAgICAgICAgfSksXG4gICAgICBdLFxuICAgIH07XG5cbiAgICAvLyBjcmVhdGUgMiBlbGFzdGljc2VhcmNoIGRvbWFpbnMgdG8gZW5zdXJlIHRoYXQgQ2xvdWR3YXRjaCBMb2cgR3JvdXAgcG9saWN5IG5hbWVzIGRvbnQgY29uZmxpY3RcbiAgICBuZXcgZXMuRG9tYWluKHRoaXMsICdEb21haW4xJywgZG9tYWluUHJvcHMpO1xuICAgIG5ldyBlcy5Eb21haW4odGhpcywgJ0RvbWFpbjInLCBkb21haW5Qcm9wcyk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctZWxhc3RpY3NlYXJjaCcpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.js deleted file mode 100644 index 16926dd9cedb9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.ultrawarm.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new es.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: es.ElasticsearchVersion.V7_1, - capacity: { - masterNodes: 2, - warmNodes: 2, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-elasticsearch-ultrawarm'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC51bHRyYXdhcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5lbGFzdGljc2VhcmNoLnVsdHJhd2FybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFvRTtBQUVwRSxvREFBb0Q7QUFFcEQsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRTtZQUM1QixhQUFhLEVBQUUsMkJBQWEsQ0FBQyxPQUFPO1lBQ3BDLE9BQU8sRUFBRSxFQUFFLENBQUMsb0JBQW9CLENBQUMsSUFBSTtZQUNyQyxRQUFRLEVBQUU7Z0JBQ1IsV0FBVyxFQUFFLENBQUM7Z0JBQ2QsU0FBUyxFQUFFLENBQUM7YUFDYjtTQUNGLENBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjtBQUVELE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLElBQUksU0FBUyxDQUFDLEdBQUcsRUFBRSxtQ0FBbUMsQ0FBQyxDQUFDO0FBQ3hELEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwcCwgUmVtb3ZhbFBvbGljeSwgU3RhY2ssIFN0YWNrUHJvcHMgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcbmltcG9ydCAqIGFzIGVzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1lbGFzdGljc2VhcmNoJztcblxuY2xhc3MgVGVzdFN0YWNrIGV4dGVuZHMgU3RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIG5ldyBlcy5Eb21haW4odGhpcywgJ0RvbWFpbicsIHtcbiAgICAgIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgICAgIHZlcnNpb246IGVzLkVsYXN0aWNzZWFyY2hWZXJzaW9uLlY3XzEsXG4gICAgICBjYXBhY2l0eToge1xuICAgICAgICBtYXN0ZXJOb2RlczogMixcbiAgICAgICAgd2FybU5vZGVzOiAyLFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1lbGFzdGljc2VhcmNoLXVsdHJhd2FybScpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js deleted file mode 100644 index 5c93d50450a88..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticsearch/test/integ.elasticsearch.unsignedbasicauth.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const es = require("aws-cdk-lib/aws-elasticsearch"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new es.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: es.ElasticsearchVersion.V7_1, - useUnsignedBasicAuth: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-elasticsearch-unsignedbasicauth'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWxhc3RpY3NlYXJjaC51bnNpZ25lZGJhc2ljYXV0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmVsYXN0aWNzZWFyY2gudW5zaWduZWRiYXNpY2F1dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBb0U7QUFFcEUsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFD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3NlYXJjaC11bnNpZ25lZGJhc2ljYXV0aCcpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.js deleted file mode 100644 index 7311802cdfbc9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/aws-api/integ.aws-api.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -class AwsApi extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // Force new deployment of 'cool-service' and stop 'dev-instance' at midnight everyday - const scheduleRule = new events.Rule(this, 'ScheduleRule', { - schedule: events.Schedule.cron({ - hour: '0', - minute: '0', - }), - }); - scheduleRule.addTarget(new targets.AwsApi({ - service: 'ECS', - action: 'updateService', - parameters: { - service: 'cool-service', - forceNewDeployment: true, - }, - })); - scheduleRule.addTarget(new targets.AwsApi({ - service: 'RDS', - action: 'stopDBInstance', - parameters: { - DBInstanceIdentifier: 'dev-instance', - }, - })); - // Create snapshots when a DB instance restarts - const patternRule = new events.Rule(this, 'PatternRule', { - eventPattern: { - detailType: ['RDS DB Instance Event'], - detail: { - Message: ['DB instance restarted'], - }, - }, - }); - patternRule.addTarget(new targets.AwsApi({ - service: 'RDS', - action: 'createDBSnapshot', - parameters: { - DBInstanceIdentifier: events.EventField.fromPath('$.detail.SourceArn'), - }, - })); - } -} -new AwsApi(app, 'aws-cdk-aws-api-target-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmF3cy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLDBEQUEwRDtBQUUxRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLE1BQU8sU0FBUSxHQUFHLENBQUMsS0FBSztJQUM1QixZQUFZLEtBQWMsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDNUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsc0ZBQXNGO1FBQ3RGLE1BQU0sWUFBWSxHQUFHLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsY0FBYyxFQUFFO1lBQ3pELFFBQVEsRUFBRSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQztnQkFDN0IsSUFBSSxFQUFFLEdBQUc7Z0JBQ1QsTUFBTSxFQUFFLEdBQUc7YUFDWixDQUFDO1NBQ0gsQ0FBQyxDQUFDO1FBRUgsWUFBWSxDQUFDLFNBQVMsQ0FBQyxJQUFJLE9BQU8sQ0FBQyxNQUFNLENBQUM7WUFDeEMsT0FBTyxFQUFFLEtBQUs7WUFDZCxNQUFNLEVBQUUsZUFBZTtZQUN2QixVQUFVLEVBQUU7Z0JBQ1YsT0FBTyxFQUFFLGNBQWM7Z0JBQ3ZCLGtCQUFrQixFQUFFLElBQUk7YUFDTztTQUNsQyxDQUFD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ogJ3N0b3BEQkluc3RhbmNlJyxcbiAgICAgIHBhcmFtZXRlcnM6IHtcbiAgICAgICAgREJJbnN0YW5jZUlkZW50aWZpZXI6ICdkZXYtaW5zdGFuY2UnLFxuICAgICAgfSBhcyBBV1MuUkRTLlN0b3BEQkluc3RhbmNlTWVzc2FnZSxcbiAgICB9KSk7XG5cbiAgICAvLyBDcmVhdGUgc25hcHNob3RzIHdoZW4gYSBEQiBpbnN0YW5jZSByZXN0YXJ0c1xuICAgIGNvbnN0IHBhdHRlcm5SdWxlID0gbmV3IGV2ZW50cy5SdWxlKHRoaXMsICdQYXR0ZXJuUnVsZScsIHtcbiAgICAgIGV2ZW50UGF0dGVybjoge1xuICAgICAgICBkZXRhaWxUeXBlOiBbJ1JEUyBEQiBJbnN0YW5jZSBFdmVudCddLFxuICAgICAgICBkZXRhaWw6IHtcbiAgICAgICAgICBNZXNzYWdlOiBbJ0RCIGluc3RhbmNlIHJlc3RhcnRlZCddLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9KTtcblxuICAgIHBhdHRlcm5SdWxlLmFkZFRhcmdldChuZXcgdGFyZ2V0cy5Bd3NBcGkoe1xuICAgICAgc2VydmljZTogJ1JEUycsXG4gICAgICBhY3Rpb246ICdjcmVhdGVEQlNuYXBzaG90JyxcbiAgICAgIHBhcmFtZXRlcnM6IHtcbiAgICAgICAgREJJbnN0YW5jZUlkZW50aWZpZXI6IGV2ZW50cy5FdmVudEZpZWxkLmZyb21QYXRoKCckLmRldGFpbC5Tb3VyY2VBcm4nKSxcbiAgICAgIH0gYXMgQVdTLlJEUy5DcmVhdGVEQlNuYXBzaG90TWVzc2FnZSxcbiAgICB9KSk7XG4gIH1cbn1cblxubmV3IEF3c0FwaShhcHAsICdhd3MtY2RrLWF3cy1hcGktdGFyZ2V0LWludGVnJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.js deleted file mode 100644 index 529a5e1b26616..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codebuild/integ.project-events.js +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const events = require("aws-cdk-lib/aws-events"); -const sns = require("aws-cdk-lib/aws-sns"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-codebuild-events'); -const repo = new codecommit.Repository(stack, 'MyRepo', { - repositoryName: 'aws-cdk-codebuild-events', -}); -const project = new codebuild.Project(stack, 'MyProject', { - source: codebuild.Source.codeCommit({ repository: repo }), -}); -const queue = new sqs.Queue(stack, 'MyQueue'); -const deadLetterQueue = new sqs.Queue(stack, 'DeadLetterQueue'); -const topic = new sns.Topic(stack, 'MyTopic'); -topic.addSubscription(new subs.SqsSubscription(queue)); -// this will send an email with the JSON event for every state change of this -// build project. -project.onStateChange('StateChange', { target: new targets.SnsTopic(topic) }); -// this will send an email with the message "Build phase changed to ". -// The phase will be extracted from the "completed-phase" field of the event -// details. -project.onPhaseChange('PhaseChange', { - target: new targets.SnsTopic(topic, { - message: events.RuleTargetInput.fromText(`Build phase changed to ${codebuild.PhaseChangeEvent.completedPhase}`), - }), -}); -// trigger a build when a commit is pushed to the repo -const onCommitRule = repo.onCommit('OnCommit', { - target: new targets.CodeBuildProject(project, { - deadLetterQueue: deadLetterQueue, - maxEventAge: cdk.Duration.hours(2), - retryAttempts: 2, - }), - branches: ['master'], -}); -onCommitRule.addTarget(new targets.SnsTopic(topic, { - message: events.RuleTargetInput.fromText(`A commit was pushed to the repository ${codecommit.ReferenceEvent.repositoryName} on branch ${codecommit.ReferenceEvent.referenceName}`), -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvamVjdC1ldmVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm9qZWN0LWV2ZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx1REFBdUQ7QUFDdkQseURBQXlEO0FBQ3pELGlEQUFpRDtBQUNqRCwyQ0FBMkM7QUFDM0MsMERBQTBEO0FBQzFELDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMERBQTBEO0FBRTFELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztBQUU3RCxNQUFNLElBQUksR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUN0RCxjQUFjLEVBQUUsMEJBQTBCO0NBQzNDLENBQUMsQ0FBQztBQUNILE1BQU0sT0FBTyxHQUFHLElBQUksU0FBUyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsV0FBVyxFQUFFO0lBQ3hELE1BQU0sRUFBRSxTQUFTLENBQ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LlJ1bGVUYXJnZXRJbnB1dC5mcm9tVGV4dChcbiAgICBgQSBjb21taXQgd2FzIHB1c2hlZCB0byB0aGUgcmVwb3NpdG9yeSAke2NvZGVjb21taXQuUmVmZXJlbmNlRXZlbnQucmVwb3NpdG9yeU5hbWV9IG9uIGJyYW5jaCAke2NvZGVjb21taXQuUmVmZXJlbmNlRXZlbnQucmVmZXJlbmNlTmFtZX1gLFxuICApLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.js deleted file mode 100644 index 4f02f036470db..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/codepipeline/integ.pipeline-event-target.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codecommit = require("aws-cdk-lib/aws-codecommit"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const events = require("aws-cdk-lib/aws-events"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -class MockAction { - constructor(props) { - this.actionProperties = props; - this.configuration = props.configuration; - } - bind(_scope, _stage, _options) { - return { - configuration: this.configuration, - }; - } - onStateChange(_name, _target, _options) { - throw new Error('onStateChange() is not available on MockAction'); - } -} -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'pipeline-events'); -const repo = new codecommit.Repository(stack, 'Repo', { - repositoryName: 'TestRepository', -}); -const pipeline = new codepipeline.Pipeline(stack, 'pipelinePipeline22F2A91D'); -const srcArtifact = new codepipeline.Artifact('Src'); -pipeline.addStage({ - stageName: 'Source', - actions: [new MockAction({ - actionName: 'CodeCommit', - category: codepipeline.ActionCategory.SOURCE, - provider: 'CodeCommit', - artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 1, maxOutputs: 1 }, - configuration: { - RepositoryName: repo.repositoryName, - BranchName: 'master', - }, - outputs: [srcArtifact], - })], -}); -pipeline.addStage({ - stageName: 'Build', - actions: [new MockAction({ - actionName: 'Hello', - category: codepipeline.ActionCategory.APPROVAL, - provider: 'Manual', - artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 0, maxOutputs: 0 }, - })], -}); -let queue = new sqs.Queue(stack, 'dlq'); -new events.Rule(stack, 'rule', { - schedule: events.Schedule.expression('rate(1 minute)'), - targets: [new targets.CodePipeline(pipeline, { - deadLetterQueue: queue, - maxEventAge: cdk.Duration.hours(2), - retryAttempts: 2, - })], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtZXZlbnQtdGFyZ2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtZXZlbnQtdGFyZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELDZEQUE2RDtBQUM3RCxpREFBaUQ7QUFDakQsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUVuQywwREFBMEQ7QUFNMUQsTUFBTSxVQUFVO0lBSWQsWUFBWSxLQUFzQjtRQUNoQyxJQUFJLENBQUMsZ0JBQWdCLEdBQUcsS0FBSyxDQUFDO1FBQzlCLElBQUksQ0FBQyxhQUFhLEdBQUcsS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WR1bGUuZXhwcmVzc2lvbigncmF0ZSgxIG1pbnV0ZSknKSxcbiAgdGFyZ2V0czogW25ldyB0YXJnZXRzLkNvZGVQaXBlbGluZShwaXBlbGluZSwge1xuICAgIGRlYWRMZXR0ZXJRdWV1ZTogcXVldWUsXG4gICAgbWF4RXZlbnRBZ2U6IGNkay5EdXJhdGlvbi5ob3VycygyKSxcbiAgICByZXRyeUF0dGVtcHRzOiAyLFxuICB9KV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js deleted file mode 100644 index 7425178f1fac5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-ec2-task.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const events = require("aws-cdk-lib/aws-events"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 1 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), -}); -const deadLetterQueue = new sqs.Queue(stack, 'MyDeadLetterQueue'); -// Create a Task Definition for the container to start -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - memoryLimitMiB: 256, - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// An Rule that describes the event trigger (in this case a scheduled run) -const rule = new events.Rule(stack, 'Rule', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -// Use EcsTask as the target of the Rule -rule.addTarget(new targets.EcsTask({ - cluster, - taskDefinition, - taskCount: 1, - containerOverrides: [{ - containerName: 'TheContainer', - environment: [ - { name: 'I_WAS_TRIGGERED', value: 'From CloudWatch Events' }, - ], - }], - deadLetterQueue, -})); -new integ.IntegTest(app, 'EcsTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZlbnQtZWMyLXRhc2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5ldmVudC1lYzItdGFzay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLGlEQUFpRDtBQUNqRCwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCwwREFBMEQ7QUFFMUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxtQkFBbUIsQ0FBQyxDQUFDO0FBRXRELE1BQU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JyB9KSxcbn0pO1xuXG4vLyBBbiBSdWxlIHRoYXQgZGVzY3JpYmVzIHRoZSBldmVudCB0cmlnZ2VyIChpbiB0aGlzIGNhc2UgYSBzY2hlZHVsZWQgcnVuKVxuY29uc3QgcnVsZSA9IG5ldyBldmVudHMuUnVsZShzdGFjaywgJ1J1bGUnLCB7XG4gIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygxKSksXG59KTtcblxuLy8gVXNlIEVjc1Rhc2sgYXMgdGhlIHRhcmdldCBvZiB0aGUgUnVsZVxucnVsZS5hZGRUYXJnZXQobmV3IHRhcmdldHMuRWNzVGFzayh7XG4gIGNsdXN0ZXIsXG4gIHRhc2tEZWZpbml0aW9uLFxuICB0YXNrQ291bnQ6IDEsXG4gIGNvbnRhaW5lck92ZXJyaWRlczogW3tcbiAgICBjb250YWluZXJOYW1lOiAnVGhlQ29udGFpbmVyJyxcbiAgICBlbnZpcm9ubWVudDogW1xuICAgICAgeyBuYW1lOiAnSV9XQVNfVFJJR0dFUkVEJywgdmFsdWU6ICdGcm9tIENsb3VkV2F0Y2ggRXZlbnRzJyB9LFxuICAgIF0sXG4gIH1dLFxuICBkZWFkTGV0dGVyUXVldWUsXG59KSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnRWNzVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js deleted file mode 100644 index 812729851d254..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const events = require("aws-cdk-lib/aws-events"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ-fargate'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 1 }); -const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); -const deadLetterQueue = new sqs.Queue(stack, 'MyDeadLetterQueue'); -// Create a Task Definition for the container to start -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); -taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// A rule that describes the event trigger (in this case a scheduled run) -const rule = new events.Rule(stack, 'Rule', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -// Use EcsTask as the target of the Rule -rule.addTarget(new targets.EcsTask({ - cluster, - taskDefinition, - taskCount: 1, - containerOverrides: [{ - containerName: 'TheContainer', - environment: [ - { name: 'I_WAS_TRIGGERED', value: 'From CloudWatch Events' }, - ], - }], - deadLetterQueue, -})); -new integ.IntegTest(app, 'EcsFargateTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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HBhdGgucmVzb2x2ZShfX2Rpcm5hbWUsICdldmVudGhhbmRsZXItaW1hZ2UnKSksXG4gIGxvZ2dpbmc6IG5ldyBlY3MuQXdzTG9nRHJpdmVyKHsgc3RyZWFtUHJlZml4OiAnRXZlbnREZW1vJyB9KSxcbn0pO1xuXG4vLyBBIHJ1bGUgdGhhdCBkZXNjcmliZXMgdGhlIGV2ZW50IHRyaWdnZXIgKGluIHRoaXMgY2FzZSBhIHNjaGVkdWxlZCBydW4pXG5jb25zdCBydWxlID0gbmV3IGV2ZW50cy5SdWxlKHN0YWNrLCAnUnVsZScsIHtcbiAgc2NoZWR1bGU6IGV2ZW50cy5TY2hlZHVsZS5yYXRlKGNkay5EdXJhdGlvbi5taW51dGVzKDEpKSxcbn0pO1xuXG4vLyBVc2UgRWNzVGFzayBhcyB0aGUgdGFyZ2V0IG9mIHRoZSBSdWxlXG5ydWxlLmFkZFRhcmdldChuZXcgdGFyZ2V0cy5FY3NUYXNrKHtcbiAgY2x1c3RlcixcbiAgdGFza0RlZmluaXRpb24sXG4gIHRhc2tDb3VudDogMSxcbiAgY29udGFpbmVyT3ZlcnJpZGVzOiBbe1xuICAgIGNvbnRhaW5lck5hbWU6ICdUaGVDb250YWluZXInLFxuICAgIGVudmlyb25tZW50OiBbXG4gICAgICB7IG5hbWU6ICdJX1dBU19UUklHR0VSRUQnLCB2YWx1ZTogJ0Zyb20gQ2xvdWRXYXRjaCBFdmVudHMnIH0sXG4gICAgXSxcbiAgfV0sXG4gIGRlYWRMZXR0ZXJRdWV1ZSxcbn0pKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdFY3NGYXJnYXRlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.js deleted file mode 100644 index 68b2dcbe6794f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/event-bus/integ.event-bus.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -class EventSourceStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const rule = new events.Rule(this, 'Rule', { - schedule: events.Schedule.expression('rate(1 minute)'), - }); - const queue = new sqs.Queue(this, 'Queue'); - rule.addTarget(new targets.EventBus(events.EventBus.fromEventBusArn(this, 'External', `arn:aws:events:${this.region}:999999999999:event-bus/test-bus`), { - deadLetterQueue: queue, - })); - } -} -new EventSourceStack(app, 'event-source-stack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZlbnQtYnVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXZlbnQtYnVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMERBQTBEO0FBRTFELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sZ0JBQWlCLF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V2ZW50cy10YXJnZXRzJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxuY2xhc3MgRXZlbnRTb3VyY2VTdGFjayBleHRlbmRzIGNkay5TdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQXBwLCBpZDogc3RyaW5nLCBwcm9wcz86IGNkay5TdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICBjb25zdCBydWxlID0gbmV3IGV2ZW50cy5SdWxlKHRoaXMsICdSdWxlJywge1xuICAgICAgc2NoZWR1bGU6IGV2ZW50cy5TY2hlZHVsZS5leHByZXNzaW9uKCdyYXRlKDEgbWludXRlKScpLFxuICAgIH0pO1xuXG4gICAgY29uc3QgcXVldWUgPSBuZXcgc3FzLlF1ZXVlKHRoaXMsICdRdWV1ZScpO1xuXG4gICAgcnVsZS5hZGRUYXJnZXQobmV3IHRhcmdldHMuRXZlbnRCdXMoXG4gICAgICBldmVudHMuRXZlbnRCdXMuZnJvbUV2ZW50QnVzQXJuKFxuICAgICAgICB0aGlzLFxuICAgICAgICAnRXh0ZXJuYWwnLFxuICAgICAgICBgYXJuOmF3czpldmVudHM6JHt0aGlzLnJlZ2lvbn06OTk5OTk5OTk5OTk5OmV2ZW50LWJ1cy90ZXN0LWJ1c2AsXG4gICAgICApLFxuICAgICAge1xuICAgICAgICBkZWFkTGV0dGVyUXVldWU6IHF1ZXVlLFxuICAgICAgfSxcbiAgICApKTtcbiAgfVxufVxuXG5uZXcgRXZlbnRTb3VyY2VTdGFjayhhcHAsICdldmVudC1zb3VyY2Utc3RhY2snKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.js deleted file mode 100644 index fd95254116b4d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis-firehose/integ.kinesis-firehose-stream.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const iam = require("aws-cdk-lib/aws-iam"); -const firehose = require("aws-cdk-lib/aws-kinesisfirehose"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -// --------------------------------- -// Define a rule that triggers a put to a Kinesis stream every 1min. -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-firehose-event-target'); -const bucket = new s3.Bucket(stack, 'firehose-bucket'); -const firehoseRole = new iam.Role(stack, 'firehose-role', { - assumedBy: new iam.ServicePrincipal('firehose.amazonaws.com'), -}); -const stream = new firehose.CfnDeliveryStream(stack, 'MyStream', { - extendedS3DestinationConfiguration: { - bucketArn: bucket.bucketArn, - roleArn: firehoseRole.roleArn, - }, -}); -bucket.grantReadWrite(firehoseRole); -const event = new events.Rule(stack, 'EveryMinute', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -event.addTarget(new targets.KinesisFirehoseStream(stream, {})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpcy1maXJlaG9zZS1zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ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tYnVja2V0Jyk7XG5jb25zdCBmaXJlaG9zZVJvbGUgPSBuZXcgaWFtLlJvbGUoc3RhY2ssICdmaXJlaG9zZS1yb2xlJywge1xuICBhc3N1bWVkQnk6IG5ldyBpYW0uU2VydmljZVByaW5jaXBhbCgnZmlyZWhvc2UuYW1hem9uYXdzLmNvbScpLFxufSk7XG5jb25zdCBzdHJlYW0gPSBuZXcgZmlyZWhvc2UuQ2ZuRGVsaXZlcnlTdHJlYW0oc3RhY2ssICdNeVN0cmVhbScsIHtcbiAgZXh0ZW5kZWRTM0Rlc3RpbmF0aW9uQ29uZmlndXJhdGlvbjoge1xuICAgIGJ1Y2tldEFybjogYnVja2V0LmJ1Y2tldEFybixcbiAgICByb2xlQXJuOiBmaXJlaG9zZVJvbGUucm9sZUFybixcbiAgfSxcbn0pO1xuYnVja2V0LmdyYW50UmVhZFdyaXRlKGZpcmVob3NlUm9sZSk7XG5cbmNvbnN0IGV2ZW50ID0gbmV3IGV2ZW50cy5SdWxlKHN0YWNrLCAnRXZlcnlNaW51dGUnLCB7XG4gIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygxKSksXG59KTtcblxuZXZlbnQuYWRkVGFyZ2V0KG5ldyB0YXJnZXRzLktpbmVzaXNGaXJlaG9zZVN0cmVhbShzdHJlYW0sIHt9KSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.js deleted file mode 100644 index d7e283acbff23..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/kinesis/integ.kinesis-stream.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -// --------------------------------- -// Define a rule that triggers a put to a Kinesis stream every 1min. -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-kinesis-event-target'); -const stream = new kinesis.Stream(stack, 'MyStream'); -const event = new events.Rule(stack, 'EveryMinute', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -event.addTarget(new targets.KinesisStream(stream, { - partitionKeyPath: events.EventField.eventId, -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpcy1zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5raW5lc2lzLXN0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCxtREFBbUQ7QUFDbkQsbUNBQW1DO0FBQ25DLDBEQUEwRDtBQUUxRCxvQ0FBb0M7QUFDcEMsb0VBQW9FO0FBRXBFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsOEJBQThCLENBQUMsQ0FBQztBQUVqRSxNQUFNLE1BQU0sR0FBRyxJQUFJLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0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lc2lzLlN0cmVhbShzdGFjaywgJ015U3RyZWFtJyk7XG5jb25zdCBldmVudCA9IG5ldyBldmVudHMuUnVsZShzdGFjaywgJ0V2ZXJ5TWludXRlJywge1xuICBzY2hlZHVsZTogZXZlbnRzLlNjaGVkdWxlLnJhdGUoY2RrLkR1cmF0aW9uLm1pbnV0ZXMoMSkpLFxufSk7XG5cbmV2ZW50LmFkZFRhcmdldChuZXcgdGFyZ2V0cy5LaW5lc2lzU3RyZWFtKHN0cmVhbSwge1xuICBwYXJ0aXRpb25LZXlQYXRoOiBldmVudHMuRXZlbnRGaWVsZC5ldmVudElkLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.js deleted file mode 100644 index 97a18ea56ef5f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/lambda/integ.events.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-events'); -const fn = new lambda.Function(stack, 'MyFunc', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), -}); -const timer = new events.Rule(stack, 'Timer', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -timer.addTarget(new targets.LambdaFunction(fn)); -const timer2 = new events.Rule(stack, 'Timer2', { - schedule: events.Schedule.rate(cdk.Duration.minutes(2)), -}); -timer2.addTarget(new targets.LambdaFunction(fn)); -const timer3 = new events.Rule(stack, 'Timer3', { - schedule: events.Schedule.rate(cdk.Duration.minutes(2)), -}); -const queue = new sqs.Queue(stack, 'Queue'); -timer3.addTarget(new targets.LambdaFunction(fn, { - deadLetterQueue: queue, - maxEventAge: cdk.Duration.hours(2), - retryAttempts: 0, -})); -app.synth(); -/* eslint-disable no-console */ -function handler(event, _context, callback) { - console.log(JSON.stringify(event, undefined, 2)); - return callback(); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELGlEQUFpRDtBQUNqRCwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDBEQUEwRDtBQUUxRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGVBQWUsQ0FBQyxDQUFDO0FBRWxELE1BQU0sRUFBRSxHQUFHLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQzlDLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVc7SUFDbkMsT0FBTyxFQUFFLGVBQWU7SUFDeEIsSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJL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zOiAwLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcblxuLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuZnVuY3Rpb24gaGFuZGxlcihldmVudDogYW55LCBfY29udGV4dDogYW55LCBjYWxsYmFjazogYW55KSB7XG4gIGNvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KGV2ZW50LCB1bmRlZmluZWQsIDIpKTtcbiAgcmV0dXJuIGNhbGxiYWNrKCk7XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js deleted file mode 100644 index 71bb1d847db04..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/logs/integ.log-group.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const logs = require("aws-cdk-lib/aws-logs"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const aws_events_targets_1 = require("aws-cdk-lib/aws-events-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'log-group-events'); -const logGroup = new logs.LogGroup(stack, 'log-group', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const logGroup2 = new logs.LogGroup(stack, 'log-group2', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new logs.LogGroup(stack, 'log-group-imported', { - logGroupName: 'MyLogGroupNameToBeImported', - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const importedLogGroup = logs.LogGroup.fromLogGroupName(stack, 'imported-log-group', 'MyLogGroupNameToBeImported'); -const timer = new events.Rule(stack, 'Timer', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -timer.addTarget(new targets.CloudWatchLogGroup(logGroup)); -const customRule = new events.Rule(stack, 'CustomRule', { - eventPattern: { - source: ['cdk-integ'], - detailType: ['cdk-integ-custom-rule'], - }, -}); -customRule.addTarget(new targets.CloudWatchLogGroup(logGroup2, { - logEvent: aws_events_targets_1.LogGroupTargetInput.fromObject({ - message: events.EventField.fromPath('$.detail.date'), - }), -})); -const queue = new sqs.Queue(stack, 'dlq'); -const timer3 = new events.Rule(stack, 'Timer3', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -timer3.addTarget(new targets.CloudWatchLogGroup(importedLogGroup, { - deadLetterQueue: queue, - maxEventAge: cdk.Duration.hours(2), - retryAttempts: 2, -})); -const integ = new integ_tests_alpha_1.IntegTest(app, 'LogGroup', { - testCases: [stack], -}); -const putEventsDate = Date.now().toString(); -const expectedValue = `abc${putEventsDate}`; -const putEvent = integ.assertions.awsApiCall('EventBridge', 'putEvents', { - Entries: [ - { - Detail: JSON.stringify({ - date: expectedValue, - }), - DetailType: 'cdk-integ-custom-rule', - Source: 'cdk-integ', - }, - ], -}); -putEvent.provider.addPolicyStatementFromSdkCall('events', 'PutEvents'); -const logEvents = integ.assertions.awsApiCall('CloudWatchLogs', 'filterLogEvents', { - logGroupName: logGroup2.logGroupName, - startTime: putEventsDate, - limit: 1, -}); -putEvent.next(logEvents); -logEvents.assertAtPath('events.0.message', integ_tests_alpha_1.ExpectedResult.stringLikeRegexp(expectedValue)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9nLWdyb3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dGVkVmFsdWUsXG4gICAgICB9KSxcbiAgICAgIERldGFpbFR5cGU6ICdjZGstaW50ZWctY3VzdG9tLXJ1bGUnLFxuICAgICAgU291cmNlOiAnY2RrLWludGVnJyxcbiAgICB9LFxuICBdLFxufSk7XG5wdXRFdmVudC5wcm92aWRlci5hZGRQb2xpY3lTdGF0ZW1lbnRGcm9tU2RrQ2FsbCgnZXZlbnRzJywgJ1B1dEV2ZW50cycpO1xuXG5jb25zdCBsb2dFdmVudHMgPSBpbnRlZy5hc3NlcnRpb25zLmF3c0FwaUNhbGwoJ0Nsb3VkV2F0Y2hMb2dzJywgJ2ZpbHRlckxvZ0V2ZW50cycsIHtcbiAgbG9nR3JvdXBOYW1lOiBsb2dHcm91cDIubG9nR3JvdXBOYW1lLFxuICBzdGFydFRpbWU6IHB1dEV2ZW50c0RhdGUsXG4gIGxpbWl0OiAxLFxufSk7XG5cbnB1dEV2ZW50Lm5leHQobG9nRXZlbnRzKTtcblxubG9nRXZlbnRzLmFzc2VydEF0UGF0aCgnZXZlbnRzLjAubWVzc2FnZScsIEV4cGVjdGVkUmVzdWx0LnN0cmluZ0xpa2VSZWdleHAoZXhwZWN0ZWRWYWx1ZSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.js deleted file mode 100644 index a827e2a015fc0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sns/integ.sns-event-rule-target.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const sns = require("aws-cdk-lib/aws-sns"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -// --------------------------------- -// Define a rule that triggers an SNS topic every 1min. -// Connect the topic with a queue. This means that the queue should have -// a message sent to it every minute. -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-sns-event-target'); -const topic = new sns.Topic(stack, 'MyTopic'); -const event = new events.Rule(stack, 'EveryMinute', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -const queue = new sqs.Queue(stack, 'MyQueue'); -topic.addSubscription(new subs.SqsSubscription(queue)); -const deadLetterQueue = new sqs.Queue(stack, 'MyDeadLetterQueue'); -event.addTarget(new targets.SnsTopic(topic, { - deadLetterQueue, -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLWV2ZW50LXJ1bGUtdGFyZ2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc25zLWV2ZW50LXJ1bGUtdGFyZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELDJDQUEyQztBQUMzQywwREFBMEQ7QUFDMUQsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywwREFBMEQ7QUFFMUQsb0NBQW9DO0FBQ3BDLHVEQUF1RDtBQUN2RCx3RUFBd0U7QUFDeEUscUNBQXFDO0FBRXJDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0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RlclF1ZXVlJyk7XG5cbmV2ZW50LmFkZFRhcmdldChuZXcgdGFyZ2V0cy5TbnNUb3BpYyh0b3BpYywge1xuICBkZWFkTGV0dGVyUXVldWUsXG59KSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.js deleted file mode 100644 index cbc56789719f9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/sqs/integ.sqs-event-rule-target.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const kms = require("aws-cdk-lib/aws-kms"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-events-targets"); -// --------------------------------- -// Define a rule that triggers an SNS topic every 1min. -// Connect the topic with a queue. This means that the queue should have -// a message sent to it every minute. -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-sqs-event-target'); -const key = new kms.Key(stack, 'MyKey'); -const event = new events.Rule(stack, 'MyRule', { - schedule: events.Schedule.rate(cdk.Duration.minutes(1)), -}); -const queue = new sqs.Queue(stack, 'MyQueue', { - encryption: sqs.QueueEncryption.KMS, - encryptionMasterKey: key, -}); -const deadLetterQueue = new sqs.Queue(stack, 'MyDeadLetterQueue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0Jyk7XG5cbmNvbnN0IGtleSA9IG5ldyBrbXMuS2V5KHN0YWNrLCAnTXlLZXknKTtcblxuY29uc3QgZXZlbnQgPSBuZXcgZXZlbnRzLlJ1bGUoc3RhY2ssICdNeVJ1bGUnLCB7XG4gIHNjaGVkdWxlOiBldmVudHMuU2NoZWR1bGUucmF0ZShjZGsuRHVyYXRpb24ubWludXRlcygxKSksXG59KTtcblxuY29uc3QgcXVldWUgPSBuZXcgc3FzLlF1ZXVlKHN0YWNrLCAnTXlRdWV1ZScsIHtcbiAgZW5jcnlwdGlvbjogc3FzLlF1ZXVlRW5jcnlwdGlvbi5LTVMsXG4gIGVuY3J5cHRpb25NYXN0ZXJLZXk6IGtleSxcbn0pO1xuXG5jb25zdCBkZWFkTGV0dGVyUXVldWUgPSBuZXcgc3FzLlF1ZXVlKHN0YWNrLCAnTXlEZWFkTGV0dGVyUXVldWUnKTtcblxuZXZlbnQuYWRkVGFyZ2V0KG5ldyB0YXJnZXRzLlNxc1F1ZXVlKHF1ZXVlLCB7XG4gIGRlYWRMZXR0ZXJRdWV1ZSxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.js deleted file mode 100644 index 5b99569ef224a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.archive.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_events_1 = require("aws-cdk-lib/aws-events"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'IntegStack'); -const eventBus = new aws_events_1.EventBus(stack, 'EventBridge'); -const archive = new aws_events_1.Archive(stack, 'Archive', { - sourceEventBus: eventBus, - eventPattern: { - account: [stack.account], - }, -}); -archive.node.defaultChild.overrideLogicalId('MyCustomArchive'); -new integ_tests_alpha_1.IntegTest(app, 'ArchiveTest', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXJjaGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFyY2hpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBeUM7QUFDekMsa0VBQXVEO0FBQ3ZELHVEQUF1RTtBQUV2RSxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLFlBQVksQ0FBQyxDQUFDO0FBRTNDLE1BQU0sUUFBUSxHQUFHLElBQUkscUJBQVEsQ0FBQyxLQUFLLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFFcEQsTUFBTSxPQUFPLEdBQUcsSUFBSSxvQkFBTyxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDNUMsY0FBYyxFQUFFLFFBQVE7SUFDeEIsWUFBWSxFQUFFO1FBQ1osT0FBTyxFQUFFLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQztLQUN6QjtDQUNGLENBQUMsQ0FBQztBQUNGLE9BQU8sQ0FBQyxJQUFJLENBQUMsWUFBMkIsQ0FBQyxpQkFBaUIsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0FBRS9FLElBQUksNkJBQVMsQ0FBQyxHQUFHLEVBQUUsYUFBYSxFQUFFO0lBQ2hDLFNBQVMsRUFBRSxDQUFDLEtBQUssQ0FBQztDQUNuQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcHAsIFN0YWNrIH0gZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgSW50ZWdUZXN0IH0gZnJvbSAnQGF3cy1jZGsvaW50ZWctdGVzdHMtYWxwaGEnO1xuaW1wb3J0IHsgQXJjaGl2ZSwgQ2ZuQXJjaGl2ZSwgRXZlbnRCdXMgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZXZlbnRzJztcblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsICdJbnRlZ1N0YWNrJyk7XG5cbmNvbnN0IGV2ZW50QnVzID0gbmV3IEV2ZW50QnVzKHN0YWNrLCAnRXZlbnRCcmlkZ2UnKTtcblxuY29uc3QgYXJjaGl2ZSA9IG5ldyBBcmNoaXZlKHN0YWNrLCAnQXJjaGl2ZScsIHtcbiAgc291cmNlRXZlbnRCdXM6IGV2ZW50QnVzLFxuICBldmVudFBhdHRlcm46IHtcbiAgICBhY2NvdW50OiBbc3RhY2suYWNjb3VudF0sXG4gIH0sXG59KTtcbihhcmNoaXZlLm5vZGUuZGVmYXVsdENoaWxkIGFzIENmbkFyY2hpdmUpLm92ZXJyaWRlTG9naWNhbElkKCdNeUN1c3RvbUFyY2hpdmUnKTtcblxubmV3IEludGVnVGVzdChhcHAsICdBcmNoaXZlVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.js deleted file mode 100644 index ca6d7e6e54c2d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.connection.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_events_1 = require("aws-cdk-lib/aws-events"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'IntegConnectionStack'); -const connection = new aws_events_1.Connection(stack, 'Connection', { - authorization: aws_events_1.Authorization.apiKey('keyname', aws_cdk_lib_1.SecretValue.unsafePlainText('keyvalue')), - headerParameters: { - 'content-type': aws_events_1.HttpParameter.fromString('application/json'), - }, -}); -const testCase = new integ_tests_alpha_1.IntegTest(app, 'ConnectionTest', { - testCases: [stack], -}); -const deployedConncention = testCase.assertions.awsApiCall('EventBridge', 'describeConnection', { Name: connection.connectionName }); -deployedConncention.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - AuthParameters: { - ApiKeyAuthParameters: { - ApiKeyName: 'keyname', - }, - InvocationHttpParameters: { - HeaderParameters: [ - { - Key: 'content-type', - Value: 'application/json', - IsValueSecret: false, - }, - ], - }, - }, -})); -const assertionProvider = deployedConncention.node.tryFindChild('SdkProvider'); -assertionProvider.addPolicyStatementFromSdkCall('events', 'DescribeConnection'); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29ubmVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNvbm5lY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBw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ework-integ/test/aws-events/test/integ.cross-account-rule.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.js deleted file mode 100644 index e4c8f5e5a1796..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.cross-account-rule.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_events_1 = require("aws-cdk-lib/aws-events"); -/** - * Basic idea for this test is to create an EventBridge that "connects" - * an SQS queue in one account to another account. Nothing is sent on the - * queue, it's just used to set up the condition where aws-events creates - * a support stack. - */ -const app = new aws_cdk_lib_1.App(); -const account = process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT; -// As the integ-runner doesnt provide a default cross account, we make our own. -const crossAccount = process.env.CDK_INTEG_CROSS_ACCOUNT || '987654321'; -const region = process.env.CDK_INTEG_REGION || process.env.CDK_DEFAULT_REGION; -const fromCrossAccountStack = new aws_cdk_lib_1.Stack(app, 'FromCrossAccountRuleStack', { - env: { - account: crossAccount, - region, - }, -}); -/** - * To make this testable, we need to have the stack that stores the event bridge be in - * the same account that the IntegTest stack is deployed into. Otherwise, we have no - * access to the IAM policy that the EventBusPolicy-account-region support stack creates. - */ -const toCrossAccountStack = new aws_cdk_lib_1.Stack(app, 'ToCrossAccountRuleStack', { - env: { - account, - region, - }, -}); -const queueName = 'IntegTestCrossEnvRule'; -const queue = new aws_cdk_lib_1.CfnResource(toCrossAccountStack, 'Queue', { - type: 'AWS::SQS::Queue', - properties: { - QueueName: queueName, - ReceiveMessageWaitTimeSeconds: 20, - }, -}); -const target = { - bind: () => ({ - id: 'SQS', - arn: aws_cdk_lib_1.Arn.format({ - resource: queueName, - service: 'sqs', - }, toCrossAccountStack), - targetResource: queue, - }), -}; -new aws_events_1.Rule(fromCrossAccountStack, 'MyRule', { - eventPattern: { - detail: { - foo: ['bar'], - }, - detailType: ['cdk-integ-custom-rule'], - source: ['cdk-integ'], - }, - targets: [target], -}); -toCrossAccountStack.addDependency(fromCrossAccountStack); -const integ = new integ_tests_alpha_1.IntegTest(app, 'CrossAccountDeploy', { - testCases: [ - toCrossAccountStack, - ], -}); -// We are using the default event bus, don't need to define any parameters for this call. -const eventVerification = integ.assertions.awsApiCall('EventBridge', 'describeEventBus'); -integ.node.addDependency(toCrossAccountStack); -eventVerification.provider.addPolicyStatementFromSdkCall('events', 'DescribeEventBus'); -// IAM policy will be created by the support stack, assert that everything created as expected. -eventVerification.assertAtPath('Policy', integ_tests_alpha_1.ExpectedResult.objectLike({ - Statement: integ_tests_alpha_1.Match.arrayWith([integ_tests_alpha_1.Match.objectLike({ - Sid: integ_tests_alpha_1.Match.stringLikeRegexp(`Allow-account-${crossAccount}`), - Principal: { - AWS: `arn:aws:iam::${crossAccount}:root`, - }, - Resource: integ_tests_alpha_1.Match.stringLikeRegexp(`arn:aws:events:us-east-1:${account}`), - })]), -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3Jvc3MtYWNjb3VudC1ydWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY3Jvc3MtYWNjb3VudC1ydWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsZ0JBQWdCO0FBQ2hCLDZDQUEyRDtBQUMzRCxrRUFBOEU7QUFDOUUsdURBQTJEO0FBRTNEOzs7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1M6IGBhcm46YXdzOmlhbTo6JHtjcm9zc0FjY291bnR9OnJvb3RgLFxuICAgICAgfSxcbiAgICAgIFJlc291cmNlOiBNYXRjaC5zdHJpbmdMaWtlUmVnZXhwKGBhcm46YXdzOmV2ZW50czp1cy1lYXN0LTE6JHthY2NvdW50fWApLFxuICAgIH0pXSxcbiAgKSxcbn0pKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.js deleted file mode 100644 index 43e3c22da56bc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.eventbus.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_events_1 = require("aws-cdk-lib/aws-events"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'Stack', { - env: { - region: 'us-east-1', - }, -}); -const bus = new aws_events_1.EventBus(stack, 'Bus'); -bus.addToResourcePolicy(new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - principals: [new iam.AccountPrincipal(stack.account)], - actions: ['events:PutEvents'], - sid: '123', - resources: [bus.eventBusArn], -})); -new integ_tests_alpha_1.IntegTest(app, 'IntegTest-BatchDefaultEnvVarsStack', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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WNkay1saWIvYXdzLWlhbSc7XG5pbXBvcnQgeyBBcHAsIFN0YWNrIH0gZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgSW50ZWdUZXN0IH0gZnJvbSAnQGF3cy1jZGsvaW50ZWctdGVzdHMtYWxwaGEnO1xuaW1wb3J0IHsgRXZlbnRCdXMgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZXZlbnRzJztcblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnU3RhY2snLCB7XG4gIGVudjoge1xuICAgIHJlZ2lvbjogJ3VzLWVhc3QtMScsXG4gIH0sXG59KTtcbmNvbnN0IGJ1cyA9IG5ldyBFdmVudEJ1cyhzdGFjaywgJ0J1cycpO1xuXG5idXMuYWRkVG9SZXNvdXJjZVBvbGljeShuZXcgaWFtLlBvbGljeVN0YXRlbWVudCh7XG4gIGVmZmVjdDogaWFtLkVmZmVjdC5BTExPVyxcbiAgcHJpbmNpcGFsczogW25ldyBpYW0uQWNjb3VudFByaW5jaXBhbChzdGFjay5hY2NvdW50KV0sXG4gIGFjdGlvbnM6IFsnZXZlbnRzOlB1dEV2ZW50cyddLFxuICBzaWQ6ICcxMjMnLFxuICByZXNvdXJjZXM6IFtidXMuZXZlbnRCdXNBcm5dLFxufSkpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0ludGVnVGVzdC1CYXRjaERlZmF1bHRFbnZWYXJzU3RhY2snLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js b/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js deleted file mode 100644 index e61bdedc9f522..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_events_1 = require("aws-cdk-lib/aws-events"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'RuleStack'); -new aws_events_1.Rule(stack, 'MyRule', { - eventPattern: { - account: ['account1', 'account2'], - detail: { - foo: [1, 2], - strings: ['foo', 'bar'], - rangeMatcher: aws_events_1.Match.interval(-1, 1), - stringMatcher: aws_events_1.Match.exactString('I am just a string'), - prefixMatcher: aws_events_1.Match.prefix('aws.'), - ipAddress: aws_events_1.Match.ipAddressRange('192.0.2.0/24'), - shouldExist: aws_events_1.Match.exists(), - shouldNotExist: aws_events_1.Match.doesNotExist(), - numbers: aws_events_1.Match.allOf(aws_events_1.Match.greaterThan(0), aws_events_1.Match.lessThan(5)), - topLevel: { - deeper: aws_events_1.Match.equal(42), - oneMoreLevel: { - deepest: aws_events_1.Match.anyOf(aws_events_1.Match.lessThanOrEqual(-1), aws_events_1.Match.greaterThanOrEqual(1)), - }, - }, - state: aws_events_1.Match.anythingBut('initializing'), - limit: aws_events_1.Match.anythingBut(100, 200, 300), - notPrefixedBy: aws_events_1.Match.anythingButPrefix('sensitive-'), - suffix: aws_events_1.Match.suffix('.com'), - equalsIgnoreCase: aws_events_1.Match.equalsIgnoreCase('ignore case'), - }, - detailType: ['detailType1'], - id: ['id1', 'id2'], - region: ['region1', 'region2', 'region3'], - resources: ['r1'], - source: ['src1', 'src2'], - time: ['t1'], - version: ['0'], - }, -}); -new integ_tests_alpha_1.IntegTest(app, 'Integ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cbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.js deleted file mode 100644 index f814dce0388c3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-with-s3.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const fsx = require("aws-cdk-lib/aws-fsx"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'AwsCdkFsxLustre'); -const vpc = new ec2.Vpc(stack, 'VPC'); -const bucket = new s3.Bucket(stack, 'ImportBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const storageCapacity = 1200; -const lustreConfiguration = { - deploymentType: fsx.LustreDeploymentType.SCRATCH_2, - importPath: bucket.s3UrlForObject(), - autoImportPolicy: fsx.LustreAutoImportPolicy.NEW_CHANGED_DELETED, -}; -new fsx.LustreFileSystem(stack, 'FsxLustreFileSystem', { - lustreConfiguration, - storageCapacityGiB: storageCapacity, - vpc, - vpcSubnet: vpc.privateSubnets[0], - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new integ.IntegTest(app, 'FsxLustreWithS3Test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubHVzdHJlLWZpbGUtc3lzdGVtLXdpdGgtczMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sdXN0cmUtZmlsZS1zeXN0ZW0td2l0aC1zMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyx5Q0FBeUM7QUFDekMsNkNBQXdEO0FBQ3hELG9EQUFvRDtBQUNwRCwyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxpQkFBaUIsQ0FBQyxDQUFDO0FBRWhELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7QUFFdEMsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxjQUFjLEVBQUU7SUFDbEQsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztDQUNyQyxDQUFDLENBQUM7QUFFSCxNQUFNLGVBQWUsR0FBRyxJQUFJLENBQUM7QUFDN0IsTUFBTSxtQkFBbUIsR0FBRztJQUMxQixjQUFjLEVBQUUsR0FBRyxDQUFDLG9CQUFvQixDQUFDLFNBQVM7SUFDbEQsVUFBVSxFQUFFLE1BQU0sQ0FBQyxjQUFjLEVBQUU7SUFDbkMsZ0JBQWdCLEVBQUUsR0FBRyxDQUFDLHNCQUFzQixDQUFDLG1CQUFtQjtDQUNqRSxDQUFDO0FBRUYsSUFBSSxHQUFHLENBQUMsZ0JBQWdC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BhY2l0eSA9IDEyMDA7XG5jb25zdCBsdXN0cmVDb25maWd1cmF0aW9uID0ge1xuICBkZXBsb3ltZW50VHlwZTogZnN4Lkx1c3RyZURlcGxveW1lbnRUeXBlLlNDUkFUQ0hfMixcbiAgaW1wb3J0UGF0aDogYnVja2V0LnMzVXJsRm9yT2JqZWN0KCksXG4gIGF1dG9JbXBvcnRQb2xpY3k6IGZzeC5MdXN0cmVBdXRvSW1wb3J0UG9saWN5Lk5FV19DSEFOR0VEX0RFTEVURUQsXG59O1xuXG5uZXcgZnN4Lkx1c3RyZUZpbGVTeXN0ZW0oc3RhY2ssICdGc3hMdXN0cmVGaWxlU3lzdGVtJywge1xuICBsdXN0cmVDb25maWd1cmF0aW9uLFxuICBzdG9yYWdlQ2FwYWNpdHlHaUI6IHN0b3JhZ2VDYXBhY2l0eSxcbiAgdnBjLFxuICB2cGNTdWJuZXQ6IHZwYy5wcml2YXRlU3VibmV0c1swXSxcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnRnN4THVzdHJlV2l0aFMzVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.js b/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.js deleted file mode 100644 index 38fffe65b36af..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_fsx_1 = require("aws-cdk-lib/aws-fsx"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'AwsCdkFsxLustre'); -const vpc = new aws_ec2_1.Vpc(stack, 'VPC'); -const storageCapacity = 1200; -const lustreConfiguration = { - deploymentType: aws_fsx_1.LustreDeploymentType.SCRATCH_2, - dataCompressionType: aws_fsx_1.LustreDataCompressionType.LZ4, -}; -const fs = new aws_fsx_1.LustreFileSystem(stack, 'FsxLustreFileSystem', { - lustreConfiguration, - storageCapacityGiB: storageCapacity, - vpc, - vpcSubnet: vpc.privateSubnets[0], - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const inst = new aws_ec2_1.Instance(stack, 'inst', { - instanceType: aws_ec2_1.InstanceType.of(aws_ec2_1.InstanceClass.T2, aws_ec2_1.InstanceSize.LARGE), - machineImage: new aws_ec2_1.AmazonLinuxImage({ - generation: aws_ec2_1.AmazonLinuxGeneration.AMAZON_LINUX_2, - }), - vpc, - vpcSubnets: { - subnetType: aws_ec2_1.SubnetType.PUBLIC, - }, -}); -fs.connections.allowDefaultPortFrom(inst); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubHVzdHJlLWZpbGUtc3lzdGVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubHVzdHJlLWZpbGUtc3lzdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQW9KO0FBQ3BKLDZDQUF3RDtBQUN4RCxpREFBd0c7QUFFeEcsTUFBTSxHQUFHLEdBQUcsSU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6IHN0b3JhZ2VDYXBhY2l0eSxcbiAgdnBjLFxuICB2cGNTdWJuZXQ6IHZwYy5wcml2YXRlU3VibmV0c1swXSxcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbmNvbnN0IGluc3QgPSBuZXcgSW5zdGFuY2Uoc3RhY2ssICdpbnN0Jywge1xuICBpbnN0YW5jZVR5cGU6IEluc3RhbmNlVHlwZS5vZihJbnN0YW5jZUNsYXNzLlQyLCBJbnN0YW5jZVNpemUuTEFSR0UpLFxuICBtYWNoaW5lSW1hZ2U6IG5ldyBBbWF6b25MaW51eEltYWdlKHtcbiAgICBnZW5lcmF0aW9uOiBBbWF6b25MaW51eEdlbmVyYXRpb24uQU1BWk9OX0xJTlVYXzIsXG4gIH0pLFxuICB2cGMsXG4gIHZwY1N1Ym5ldHM6IHtcbiAgICBzdWJuZXRUeXBlOiBTdWJuZXRUeXBlLlBVQkxJQyxcbiAgfSxcbn0pO1xuZnMuY29ubmVjdGlvbnMuYWxsb3dEZWZhdWx0UG9ydEZyb20oaW5zdCk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js deleted file mode 100644 index b39dabd90a4a1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const ga = require("aws-cdk-lib/aws-globalaccelerator"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const endpoints = require("aws-cdk-lib/aws-globalaccelerator-endpoints"); -class GaStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 3, natGateways: 1 }); - const accelerator = new ga.Accelerator(this, 'Accelerator'); - const listener = new ga.Listener(this, 'Listener', { - accelerator, - portRanges: [ - { - fromPort: 80, - toPort: 80, - }, - ], - }); - const alb = new elbv2.ApplicationLoadBalancer(this, 'ALB', { vpc, internetFacing: true }); - const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', { vpc, internetFacing: true }); - const eip = new ec2.CfnEIP(this, 'ElasticIpAddress'); - const instances = new Array(); - for (let i = 0; i < 2; i++) { - instances.push(new ec2.Instance(this, `Instance${i}`, { - vpc, - machineImage: new ec2.AmazonLinuxImage(), - instanceType: new ec2.InstanceType('t3.small'), - })); - } - const group = new ga.EndpointGroup(this, 'Group', { - listener, - endpoints: [ - new endpoints.ApplicationLoadBalancerEndpoint(alb), - new endpoints.NetworkLoadBalancerEndpoint(nlb), - new endpoints.CfnEipEndpoint(eip), - new endpoints.InstanceEndpoint(instances[0]), - new endpoints.InstanceEndpoint(instances[1]), - ], - }); - alb.connections.allowFrom(group.connectionsPeer('Peer', vpc), ec2.Port.tcp(443)); - } -} -const app = new aws_cdk_lib_1.App(); -new GaStack(app, 'integ-globalaccelerator'); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2xvYmFsYWNjZWxlcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZ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cixcbiAgICAgIGVuZHBvaW50czogW1xuICAgICAgICBuZXcgZW5kcG9pbnRzLkFwcGxpY2F0aW9uTG9hZEJhbGFuY2VyRW5kcG9pbnQoYWxiKSxcbiAgICAgICAgbmV3IGVuZHBvaW50cy5OZXR3b3JrTG9hZEJhbGFuY2VyRW5kcG9pbnQobmxiKSxcbiAgICAgICAgbmV3IGVuZHBvaW50cy5DZm5FaXBFbmRwb2ludChlaXApLFxuICAgICAgICBuZXcgZW5kcG9pbnRzLkluc3RhbmNlRW5kcG9pbnQoaW5zdGFuY2VzWzBdKSxcbiAgICAgICAgbmV3IGVuZHBvaW50cy5JbnN0YW5jZUVuZHBvaW50KGluc3RhbmNlc1sxXSksXG4gICAgICBdLFxuICAgIH0pO1xuXG4gICAgYWxiLmNvbm5lY3Rpb25zLmFsbG93RnJvbShncm91cC5jb25uZWN0aW9uc1BlZXIoJ1BlZXInLCB2cGMpLCBlYzIuUG9ydC50Y3AoNDQzKSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IEdhU3RhY2soYXBwLCAnaW50ZWctZ2xvYmFsYWNjZWxlcmF0b3InKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.js deleted file mode 100644 index 41f3a5b209878..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-globalaccelerator/test/integ.globalaccelerator-unique-name.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// eslint-disable-next-line import/no-extraneous-dependencies -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ga = require("aws-cdk-lib/aws-globalaccelerator"); -const app = new aws_cdk_lib_1.App({}); -const stack = new aws_cdk_lib_1.Stack(app, 'global-accelerator-unique-name'); -new ga.Accelerator(stack, 'Accelerator'); -new integ_tests_alpha_1.IntegTest(app, 'GlobalAcceleratorUniqueName', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2xvYmFsYWNjZWxlcmF0b3ItdW5pcXVlLW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5nbG9iYWxhY2NlbGVyYXRvci11bmlxdWUtbmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUF5QztBQUN6Qyw2REFBNkQ7QUFDN0Qsa0VBQXVEO0FBQ3ZELHdEQUF3RDtBQUV4RCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLENBQUMsRUFBRSxDQUFDLENBQUM7QUFFeEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxnQ0FBZ0MsQ0FBQyxDQUFDO0FBRS9ELElBQUksRUFBRSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFFekMsSUFBSSw2QkFBUyxDQUFDLEdBQUcsRUFBRSw2QkFBNkIsRUFBRTtJQUNoRCxTQUFTLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQXBwLCBTdGFjayB9IGZyb20gJ2F3cy1jZGstbGliJztcbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBpbXBvcnQvbm8tZXh0cmFuZW91cy1kZXBlbmRlbmNpZXNcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCAqIGFzIGdhIGZyb20gJ2F3cy1jZGstbGliL2F3cy1nbG9iYWxhY2NlbGVyYXRvcic7XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoe30pO1xuXG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsICdnbG9iYWwtYWNjZWxlcmF0b3ItdW5pcXVlLW5hbWUnKTtcblxubmV3IGdhLkFjY2VsZXJhdG9yKHN0YWNrLCAnQWNjZWxlcmF0b3InKTtcblxubmV3IEludGVnVGVzdChhcHAsICdHbG9iYWxBY2NlbGVyYXRvclVuaXF1ZU5hbWUnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.js deleted file mode 100644 index 9dfded446fdc2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.access-key.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-iam-access-key-1'); -const user = new aws_iam_1.User(stack, 'TestUser'); -const accessKey = new aws_iam_1.AccessKey(stack, 'TestAccessKey', { user }); -new aws_cdk_lib_1.CfnOutput(stack, 'AccessKeyId', { value: accessKey.accessKeyId }); -new integ_tests_alpha_1.IntegTest(app, 'iam-access-key-1', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWNjZXNzLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFjY2Vzcy1rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBb0Q7QUFDcEQsa0VBQXVEO0FBQ3ZELGlEQUFzRDtBQUV0RCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLHdCQUF3QixDQUFDLENBQUM7QUFFdkQsTUFBTSxJQUFJLEdBQUcsSUFBSSxjQUFJLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0FBQ3pDLE1BQU0sU0FBUyxHQUFHLElBQUksbUJBQVMsQ0FBQyxLQUFLLEVBQUUsZUFBZSxFQUFFLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQztBQUVsRSxJQUFJLHVCQUFTLENBQUMsS0FBSyxFQUFFLGFBQWEsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLENBQUMsV0FBVyxFQUFFLENBQUMsQ0FBQztBQUV0RSxJQUFJLDZCQUFTLENBQUMsR0FBRyxFQUFFLGtCQUFrQixFQUFFO0lBQ3JDLFNBQVMsRUFBRSxDQUFDLEtBQUssQ0FBQztDQUNuQixDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcHAsIENmbk91dHB1dCwgU3RhY2sgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBJbnRlZ1Rlc3QgfSBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBBY2Nlc3NLZXksIFVzZXIgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtaWFtJztcblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnaW50ZWctaWFtLWFjY2Vzcy1rZXktMScpO1xuXG5jb25zdCB1c2VyID0gbmV3IFVzZXIoc3RhY2ssICdUZXN0VXNlcicpO1xuY29uc3QgYWNjZXNzS2V5ID0gbmV3IEFjY2Vzc0tleShzdGFjaywgJ1Rlc3RBY2Nlc3NLZXknLCB7IHVzZXIgfSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdBY2Nlc3NLZXlJZCcsIHsgdmFsdWU6IGFjY2Vzc0tleS5hY2Nlc3NLZXlJZCB9KTtcblxubmV3IEludGVnVGVzdChhcHAsICdpYW0tYWNjZXNzLWtleS0xJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.js deleted file mode 100644 index d1b91bc8befc8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.composite-principal.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const iam = require("aws-cdk-lib/aws-iam"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - new iam.Role(this, 'RoleWithCompositePrincipal', { - assumedBy: new iam.CompositePrincipal(new iam.ServicePrincipal('ec2.amazonaws.com'), new iam.AnyPrincipal()), - }); - } -} -const app = new cdk.App(); -new integ_tests_alpha_1.IntegTest(app, 'iam-integ-composite-principal-test', { - testCases: [new TestStack(app, 'iam-integ-composite-principal')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29tcG9zaXRlLXByaW5jaXBhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNvbXBvc2l0ZS1wcmluY2lwYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELDJDQUEyQztBQUUzQyxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSw0QkFBNEIsRUFBRTtZQUMvQyxTQUFTLEVBQUUsSUFBSSxHQUFHLENBQUMsa0JBQWtCLENBQ25DLElBQUksR0FBRyxDQUFDLG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3IEludGVnVGVzdChhcHAsICdpYW0taW50ZWctY29tcG9zaXRlLXByaW5jaXBhbC10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgVGVzdFN0YWNrKGFwcCwgJ2lhbS1pbnRlZy1jb21wb3NpdGUtcHJpbmNpcGFsJyldLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.js deleted file mode 100644 index 792fdc8f20ddb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.condition-with-ref.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -class MyStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const tagName = new aws_cdk_lib_1.CfnParameter(this, 'PrincipalTag', { default: 'developer' }); - const stringEquals = new aws_cdk_lib_1.CfnJson(this, 'PrincipalTagCondition', { - value: { - [`aws:PrincipalTag/${tagName.valueAsString}`]: 'true', - }, - }); - const principal = new aws_iam_1.AccountRootPrincipal().withConditions({ - StringEquals: stringEquals, - }); - new aws_iam_1.Role(this, 'MyRole', { assumedBy: principal }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'iam-test-condition-with-ref', { - testCases: [new MyStack(app, 'test-condition-with-ref')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29uZGl0aW9uLXdpdGgtcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29uZGl0aW9uLXdpdGgtcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQWdFO0FBQ2hFLGtFQUF1RDtBQUV2RCxpREFBaUU7QUFFakUsTUFBTSxPQUFRLFNBQVEsbUJBQUs7SUFDekIsWUFBWSxLQUFnQixFQUFFLEVBQVU7UUFDdEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLE9BQU8sR0FBRyxJQUFJLDBCQUFZLENBQUMsSUFBSSxFQUFFLGNBQWMsRUFBRSxFQUFFLE9BQU8sRUFBRSxXQUFXLEVBQUUsQ0FBQyxDQUFDO1FBRWpGLE1BQU0sWUFBWSxHQUFHLElBQUkscUJBQU8sQ0FBQyxJQUFJLEVBQUUsdUJBQXVCLEVBQUU7WUFDOUQsS0FBSyxFQUFFO2dCQUNMLENBQUMsb0JBQW9CLE9BQU8sQ0FBQyxhQUFhLEVBQUUsQ0FBQyxFQUFFLE1BQU07YUFDdEQ7U0FDRixDQUFDLENBQUM7UUFFSCxNQUFNLFNBQVMsR0FBRyxJQUFJLDhCQUFvQixFQUFFLENBQUMsY0FBYyxDQUFDO1lBQzFELFlBQVksRUFBRSxZQUFZO1NBQzNCLENBQUMsQ0FBQztRQUVILElBQUksY0FBSSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUUsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQztJQUNyRCxDQUFDO0NBQ0Y7QUFFRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0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YWwoKS53aXRoQ29uZGl0aW9ucyh7XG4gICAgICBTdHJpbmdFcXVhbHM6IHN0cmluZ0VxdWFscyxcbiAgICB9KTtcblxuICAgIG5ldyBSb2xlKHRoaXMsICdNeVJvbGUnLCB7IGFzc3VtZWRCeTogcHJpbmNpcGFsIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaWFtLXRlc3QtY29uZGl0aW9uLXdpdGgtcmVmJywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgTXlTdGFjayhhcHAsICd0ZXN0LWNvbmRpdGlvbi13aXRoLXJlZicpXSxcbn0pXG47XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.js deleted file mode 100644 index 0ce92b1459b97..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.group.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// Creates a default group, with no users and no policy attached. -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-iam-role-1'); -new aws_iam_1.Group(stack, 'MyGroup'); -new integ_tests_alpha_1.IntegTest(app, 'iam-role-1', { - testCases: [stack], -}); -app.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nVGVzdChhcHAsICdpYW0tcm9sZS0xJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.js deleted file mode 100644 index f4a48a8f93d4f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.imported-role.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App({ context: { [cx_api_1.IAM_IMPORTED_ROLE_STACK_SAFE_DEFAULT_POLICY_NAME]: true } }); -const roleStack = new aws_cdk_lib_1.Stack(app, 'integ-iam-imported-role-role-stack'); -const role = new aws_iam_1.Role(roleStack, 'TestRole', { - assumedBy: new aws_iam_1.ServicePrincipal('sqs.amazonaws.com'), -}); -const firstStack = new aws_cdk_lib_1.Stack(app, 'integ-iam-imported-role-1'); -const roleInFirstStack = aws_iam_1.Role.fromRoleName(firstStack, 'Role', role.roleName); -roleInFirstStack.addToPrincipalPolicy(new aws_iam_1.PolicyStatement({ resources: ['arn:aws:sqs:*:*:firstQueue'], actions: ['sqs:SendMessage'] })); -const secondStack = new aws_cdk_lib_1.Stack(app, 'integ-iam-imported-role-2'); -secondStack.addDependency(firstStack, 'So that this stack can be tested after both are deployed.'); -const roleInSecondStack = aws_iam_1.Role.fromRoleName(secondStack, 'Role', role.roleName); -roleInSecondStack.addToPrincipalPolicy(new aws_iam_1.PolicyStatement({ resources: ['arn:aws:sqs:*:*:secondQueue'], actions: ['sqs:SendMessage'] })); -const assertionStack = new aws_cdk_lib_1.Stack(app, 'ImportedRoleTestAssertions'); -assertionStack.addDependency(roleStack); -assertionStack.addDependency(firstStack); -assertionStack.addDependency(secondStack); -const test = new integ.IntegTest(app, 'ImportedRoleTest', { - testCases: [roleStack], - assertionStack, -}); -test.assertions - .awsApiCall('IAM', 'listRolePolicies', { RoleName: role.roleName }) - .assertAtPath('PolicyNames.0', integ.ExpectedResult.stringLikeRegexp('^Policyintegiamimportedrole1Role.{8}$')) - .assertAtPath('PolicyNames.1', integ.ExpectedResult.stringLikeRegexp('^Policyintegiamimportedrole2Role.{8}$')); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW1wb3J0ZWQtcm9sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmltcG9ydGVkLXJvbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBeUM7QUFDekMsK0NBRTRCO0FBQzVCLG9EQUFvRDtBQUNwRCxpREFBOEU7QUFFOUUsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxDQUFDLEVBQUUsT0FBTyxFQUFFLEVBQUUsQ0FBQyx5REFBZ0QsQ0FBQyxFQUFFLElBQUksRUFBRSxFQUFFLENBQUMsQ0FBQztBQUUvRixNQUFNLFNBQVMsR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLG9DQUFvQyxDQUFDLENBQUM7QUFFdkUsTUFBTSxJQUFJLEdBQUcsSUFBSSxjQUFJLENBQUMsU0FBUyxFQUFFLFVBQVUsRUF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5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.js deleted file mode 100644 index f690f4b6c40b5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.managed-policy.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-iam-managed-policy'); -const user = new aws_iam_1.User(stack, 'MyUser'); -const policy = new aws_iam_1.ManagedPolicy(stack, 'OneManagedPolicy', { - managedPolicyName: 'Default', - description: 'My Policy', - path: '/some/path/', -}); -policy.addStatements(new aws_iam_1.PolicyStatement({ resources: ['*'], actions: ['sqs:SendMessage'] })); -policy.attachToUser(user); -const policy2 = new aws_iam_1.ManagedPolicy(stack, 'TwoManagedPolicy'); -policy2.addStatements(new aws_iam_1.PolicyStatement({ resources: ['*'], actions: ['lambda:InvokeFunction'] })); -user.addManagedPolicy(policy2); -const policy3 = aws_iam_1.ManagedPolicy.fromAwsManagedPolicyName('SecurityAudit'); -user.addManagedPolicy(policy3); -const role = new aws_iam_1.Role(stack, 'Role', { assumedBy: new aws_iam_1.AccountRootPrincipal() }); -role.grantAssumeRole(policy.grantPrincipal); -aws_iam_1.Grant.addToPrincipal({ actions: ['iam:*'], resourceArns: [role.roleArn], grantee: policy2 }); -new integ_tests_alpha_1.IntegTest(app, 'ManagedPolicyInteg', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWFuYWdlZC1wb2xpY3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5tYW5hZ2VkLXBvbGljeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUF5QztBQUN6QyxrRUFBdUQ7QUFDdkQsaURBQThHO0FBRTlHLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBRXRCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLENBQUMsQ0FBQztBQUUzRCxNQUFNLElBQUksR0FBRyxJQUFJLGNBQUksQ0FBQyxLQUFLLEVBQUUsUUFBUSxDQUFDLENBQUM7QUFFdkMsTUFBTSxNQUFNLEdBQUcsSUFBSSx1QkFBYSxDQUFDLEtBQUssRUFBRSxrQkFBa0IsRUFBRTtJQUMxRCxpQkFBaUIsRUFBRSxTQUFTO0lBQzVCLFdBQVcsRUFBRSxXQUFXO0lBQ3hCLElBQUksRUFBRSxhQUFhO0NBQ3BCLENBQUMsQ0FBQztBQUNILE1BQU0sQ0FBQyxhQUFhLENBQUMsSUFBSSx5QkFBZSxDQUFDLEVBQUUsU0FBUyxFQUFFLENBQUMsR0FBRyxDQUFDLEVBQUUsT0FBTyxFQUFFLENBQUMsaUJBQWlCLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUM5RixNQUFNLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBRTFCLE1BQU0sT0FBTyxHQUFHLElBQUksdUJBQWEsQ0FBQyxLQUFLLEVBQUUsa0JBQWtCLENBQUMsQ0FBQztBQUM3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Myk7XG5cbmNvbnN0IHJvbGUgPSBuZXcgUm9sZShzdGFjaywgJ1JvbGUnLCB7IGFzc3VtZWRCeTogbmV3IEFjY291bnRSb290UHJpbmNpcGFsKCkgfSk7XG5yb2xlLmdyYW50QXNzdW1lUm9sZShwb2xpY3kuZ3JhbnRQcmluY2lwYWwpO1xuR3JhbnQuYWRkVG9QcmluY2lwYWwoeyBhY3Rpb25zOiBbJ2lhbToqJ10sIHJlc291cmNlQXJuczogW3JvbGUucm9sZUFybl0sIGdyYW50ZWU6IHBvbGljeTIgfSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnTWFuYWdlZFBvbGljeUludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.js deleted file mode 100644 index 9ee4c0cccae2f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.oidc-provider.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const iam = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'oidc-provider-integ-test'); -const noClients = new iam.OpenIdConnectProvider(stack, 'NoClientsNoThumbprint', { - url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test2', -}); -const clients = new iam.OpenIdConnectProvider(stack, 'Clients', { - url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test3', - clientIds: ['foo', 'bar'], -}); -const thumbprints = new iam.OpenIdConnectProvider(stack, 'Thumbprints', { - url: 'https://oidc.eks.us-east-1.amazonaws.com/id/test4', - thumbprints: [ - 'aa00aa1122aa00aa1122aa00aa1122aa00aa1122', - 'aa00aa1122aa00aa1122aa00aa1122aa00aa1111', - ], -}); -new aws_cdk_lib_1.CfnOutput(stack, 'NoClientsThumbprints', { - value: `${noClients.openIdConnectProviderthumbprints}`, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'ClientsThumbprints', { - value: `${clients.openIdConnectProviderthumbprints}`, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'ThumbprintsThumbprints', { - value: `${thumbprints.openIdConnectProviderthumbprints}`, -}); -new integ_tests_alpha_1.IntegTest(app, 'iodc-provider-test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub2lkYy1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm9pZGMtcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBb0Q7QUFDcEQsa0VBQXVEO0FBQ3ZELDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLDBCQUEwQixDQUFDLENBQUM7QUFFekQsTUFBTSxTQUFTLEdBQUcsSUFBSSxHQUFHLENBQUMscUJBQXFCLENBQUMsS0FBSyxFQUFFLHVCQUF1QixFQUFFO0lBQzlFLEdBQUcsRUFBRSxtREFBbUQ7Q0FDekQsQ0FBQyxDQUFDO0FBRUgs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VtYnByaW50cycsIHtcbiAgdmFsdWU6IGAke25vQ2xpZW50cy5vcGVuSWRDb25uZWN0UHJvdmlkZXJ0aHVtYnByaW50c31gLFxufSk7XG5cbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdDbGllbnRzVGh1bWJwcmludHMnLCB7XG4gIHZhbHVlOiBgJHtjbGllbnRzLm9wZW5JZENvbm5lY3RQcm92aWRlcnRodW1icHJpbnRzfWAsXG59KTtcblxubmV3IENmbk91dHB1dChzdGFjaywgJ1RodW1icHJpbnRzVGh1bWJwcmludHMnLCB7XG4gIHZhbHVlOiBgJHt0aHVtYnByaW50cy5vcGVuSWRDb25uZWN0UHJvdmlkZXJ0aHVtYnByaW50c31gLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW9kYy1wcm92aWRlci10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.js deleted file mode 100644 index 1e595508ff468..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.permissions-boundary.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const supportStack = new aws_cdk_lib_1.Stack(app, 'integ-permissions-boundary-support'); -new aws_iam_1.ManagedPolicy(supportStack, 'PB', { - statements: [new aws_iam_1.PolicyStatement({ - actions: ['*'], - resources: ['*'], - })], - managedPolicyName: `cdk-${supportStack.synthesizer.bootstrapQualifier}-PermissionsBoundary-${supportStack.account}-${supportStack.region}`, -}); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-permissions-boundary', { - env: { - account: process.env.CDK_INTEG_ACCOUNT ?? process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION ?? process.env.CDK_DEFAULT_REGION, - }, - permissionsBoundary: aws_cdk_lib_1.PermissionsBoundary.fromName('cdk-${Qualifier}-PermissionsBoundary-${AWS::AccountId}-${AWS::Region}'), -}); -stack.addDependency(supportStack); -new aws_iam_1.Role(stack, 'TestRole', { - assumedBy: new aws_iam_1.ServicePrincipal('sqs.amazonaws.com'), -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-test', { - testCases: [stack], - enableLookups: true, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGVybWlzc2lvbnMtYm91bmRhcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wZXJtaXNzaW9ucy1ib3VuZGFyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUE4RDtBQUM5RCxrRUFBdUQ7QUFDdkQsaURBQTZGO0FBRTdGLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBRXRCLE1BQU0sWUFBWSxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsb0NBQW9DLENBQUMsQ0FBQztBQUMxRSxJQUFJLHVCQUFhLENBQUMsWUFBWSxFQUFFLElBQUksRUFBRTtJQUNwQyxVQUFVLEVBQUUsQ0FBQyxJQUFJLHlCQUF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5cbiAgfSxcbiAgcGVybWlzc2lvbnNCb3VuZGFyeTogUGVybWlzc2lvbnNCb3VuZGFyeS5mcm9tTmFtZSgnY2RrLSR7UXVhbGlmaWVyfS1QZXJtaXNzaW9uc0JvdW5kYXJ5LSR7QVdTOjpBY2NvdW50SWR9LSR7QVdTOjpSZWdpb259JyksXG59KTtcbnN0YWNrLmFkZERlcGVuZGVuY3koc3VwcG9ydFN0YWNrKTtcblxubmV3IFJvbGUoc3RhY2ssICdUZXN0Um9sZScsIHtcbiAgYXNzdW1lZEJ5OiBuZXcgU2VydmljZVByaW5jaXBhbCgnc3FzLmFtYXpvbmF3cy5jb20nKSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2ludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgZW5hYmxlTG9va3VwczogdHJ1ZSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.js deleted file mode 100644 index b5688c9172218..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.policy.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-iam-policy'); -const user = new aws_iam_1.User(stack, 'MyUser'); -const policy = new aws_iam_1.Policy(stack, 'HelloPolicy', { policyName: 'Default' }); -policy.addStatements(new aws_iam_1.PolicyStatement({ resources: ['*'], actions: ['sqs:SendMessage'] })); -policy.attachToUser(user); -const policy2 = new aws_iam_1.Policy(stack, 'GoodbyePolicy'); -policy2.addStatements(new aws_iam_1.PolicyStatement({ resources: ['*'], actions: ['lambda:InvokeFunction'] })); -policy2.attachToUser(user); -const role = new aws_iam_1.Role(stack, 'Role', { assumedBy: new aws_iam_1.AccountRootPrincipal() }); -role.grantAssumeRole(policy.grantPrincipal); -aws_iam_1.Grant.addToPrincipal({ actions: ['iam:*'], resourceArns: [role.roleArn], grantee: policy2 }); -new integ_tests_alpha_1.IntegTest(app, 'PolicyInteg', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucG9saWN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQXlDO0FBQ3pDLGtFQUF1RDtBQUN2RCxpREFBdUc7QUFFdkcsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxvQkFBb0IsQ0FBQyxDQUFDO0FBRW5ELE1BQU0sSUFBSSxHQUFHLElBQUksY0FBSSxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQztBQUV2QyxNQUFNLE1BQU0sR0FBRyxJQUFJLGdCQUFNLENBQUMsS0FBSyxFQUFFLGFBQWEsRUFBRSxFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsQ0FBQyxDQUFDO0FBQzNFLE1BQU0sQ0FBQyxhQUFhLENBQUMsSUFBSSx5QkFBZSxDQUFDLEVB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UHJpbmNpcGFsKTtcbkdyYW50LmFkZFRvUHJpbmNpcGFsKHsgYWN0aW9uczogWydpYW06KiddLCByZXNvdXJjZUFybnM6IFtyb2xlLnJvbGVBcm5dLCBncmFudGVlOiBwb2xpY3kyIH0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ1BvbGljeUludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.js deleted file mode 100644 index 129d11af36be7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.principal-with-conditions.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const iam = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-principal-with-conditions'); -const basePrincipal = new iam.AnyPrincipal(); -const principal = new iam.PrincipalWithConditions(basePrincipal, { - StringLike: { 'aws:username': 'foo-*' }, -}); -principal.addCondition('StringLike', { 'aws:PrincipalTag/owner': 'foo' }); -principal.addCondition('Bool', { 'aws:MultiFactorAuthPresent': 'true' }); -new iam.Role(stack, 'TestRole', { - assumedBy: principal, -}); -new integ_tests_alpha_1.IntegTest(app, 'PrincipalW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ff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.js deleted file mode 100644 index d8759fed332b3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.role.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-iam-role-1'); -const role = new aws_iam_1.Role(stack, 'TestRole', { - assumedBy: new aws_iam_1.ServicePrincipal('sqs.amazonaws.com'), -}); -role.addToPolicy(new aws_iam_1.PolicyStatement({ resources: ['*'], actions: ['sqs:SendMessage'] })); -const policy = new aws_iam_1.Policy(stack, 'HelloPolicy', { policyName: 'Default' }); -policy.addStatements(new aws_iam_1.PolicyStatement({ actions: ['ec2:*'], resources: ['*'] })); -policy.attachToRole(role); -// Role with an external ID -new aws_iam_1.Role(stack, 'TestRole2', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), - externalIds: ['supply-me'], -}); -// Role with an org -new aws_iam_1.Role(stack, 'TestRole3', { - assumedBy: new aws_iam_1.OrganizationPrincipal('o-1234'), -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-iam-role', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucm9sZ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6IFsnc3FzOlNlbmRNZXNzYWdlJ10gfSkpO1xuXG5jb25zdCBwb2xpY3kgPSBuZXcgUG9saWN5KHN0YWNrLCAnSGVsbG9Qb2xpY3knLCB7IHBvbGljeU5hbWU6ICdEZWZhdWx0JyB9KTtcbnBvbGljeS5hZGRTdGF0ZW1lbnRzKG5ldyBQb2xpY3lTdGF0ZW1lbnQoeyBhY3Rpb25zOiBbJ2VjMjoqJ10sIHJlc291cmNlczogWycqJ10gfSkpO1xucG9saWN5LmF0dGFjaFRvUm9sZShyb2xlKTtcblxuLy8gUm9sZSB3aXRoIGFuIGV4dGVybmFsIElEXG5uZXcgUm9sZShzdGFjaywgJ1Rlc3RSb2xlMicsIHtcbiAgYXNzdW1lZEJ5OiBuZXcgQWNjb3VudFJvb3RQcmluY2lwYWwoKSxcbiAgZXh0ZXJuYWxJZHM6IFsnc3VwcGx5LW1lJ10sXG59KTtcblxuLy8gUm9sZSB3aXRoIGFuIG9yZ1xubmV3IFJvbGUoc3RhY2ssICdUZXN0Um9sZTMnLCB7XG4gIGFzc3VtZWRCeTogbmV3IE9yZ2FuaXphdGlvblByaW5jaXBhbCgnby0xMjM0JyksXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdpbnRlZy1pYW0tcm9sZScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.js deleted file mode 100644 index 9c0db2b9917ee..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.saml-provider.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ saml* -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const iam = require("aws-cdk-lib/aws-iam"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const provider = new iam.SamlProvider(this, 'Provider', { - metadataDocument: iam.SamlMetadataDocument.fromFile(path.join(__dirname, 'saml-metadata-document.xml')), - }); - new iam.Role(this, 'Role', { - assumedBy: new iam.SamlConsolePrincipal(provider), - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'saml-provider-test', { - testCases: [new TestStack(app, 'cdk-saml-provider')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2FtbC1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNhbWwtcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQkFBb0I7QUFDcEIsNkJBQTZCO0FBQzdCLDZDQUFxRDtBQUNyRCxrRUFBdUQ7QUFFdkQsMkNBQTJDO0FBRTNDLE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxRQUFRLEdBQUcsSUFBSSxHQUFHLENBQUMsWUFBWSxDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDdEQsZ0JBQWdCLEVBQUUsR0FBRy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HMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IHByb3ZpZGVyID0gbmV3IGlhbS5TYW1sUHJvdmlkZXIodGhpcywgJ1Byb3ZpZGVyJywge1xuICAgICAgbWV0YWRhdGFEb2N1bWVudDogaWFtLlNhbWxNZXRhZGF0YURvY3VtZW50LmZyb21GaWxlKHBhdGguam9pbihfX2Rpcm5hbWUsICdzYW1sLW1ldGFkYXRhLWRvY3VtZW50LnhtbCcpKSxcbiAgICB9KTtcblxuICAgIG5ldyBpYW0uUm9sZSh0aGlzLCAnUm9sZScsIHtcbiAgICAgIGFzc3VtZWRCeTogbmV3IGlhbS5TYW1sQ29uc29sZVByaW5jaXBhbChwcm92aWRlciksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3NhbWwtcHJvdmlkZXItdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbbmV3IFRlc3RTdGFjayhhcHAsICdjZGstc2FtbC1wcm92aWRlcicpXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.js deleted file mode 100644 index fe3550ce598a5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.user.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-iam-user'); -new aws_iam_1.User(stack, 'MyUser', { - userName: 'benisrae', - password: aws_cdk_lib_1.SecretValue.unsafePlainText('Test1234567890!'), - passwordResetRequired: true, -}); -const userImportedByArn = aws_iam_1.User.fromUserArn(stack, 'ImportedUserByArn', 'arn:aws:iam::123456789012:user/rossrhodes'); -const userImportedByArnWithPath = aws_iam_1.User.fromUserArn(stack, 'ImportedUserByArnPath', 'arn:aws:iam::123456789012:user/path/johndoe'); -const userImportedByArnPathMultiple = aws_iam_1.User.fromUserArn(stack, 'ImportedUserByArnPathMultiple', 'arn:aws:iam::123456789012:user/p/a/t/h/johndoe'); -const userImportedByAttributes = aws_iam_1.User.fromUserAttributes(stack, 'ImportedUserByAttributes', { - userArn: 'arn:aws:iam::123456789012:user/johndoe', -}); -const userImportedByAttributesPath = aws_iam_1.User.fromUserAttributes(stack, 'ImportedUserByAttributesPath', { - userArn: 'arn:aws:iam::123456789012:user/path/johndoe', -}); -const userImportedByAttributesPathMultiple = aws_iam_1.User.fromUserAttributes(stack, 'ImportedUserByAttributesPathMultiple', { - userArn: 'arn:aws:iam::123456789012:user/p/a/t/h/johndoe', -}); -const userImportedByName = aws_iam_1.User.fromUserName(stack, 'ImportedUserByName', 'janedoe'); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByArn', { value: userImportedByArn.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByArnPath', { value: userImportedByArnWithPath.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByArnPathMultiple', { value: userImportedByArnPathMultiple.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByAttributes', { value: userImportedByAttributes.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByAttributesPath', { value: userImportedByAttributesPath.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByAttributesPathMultiple', { value: userImportedByAttributesPathMultiple.userName }); -new aws_cdk_lib_1.CfnOutput(stack, 'NameForUserImportedByName', { value: userImportedByName.userName }); -new integ_tests_alpha_1.IntegTest(app, 'iam-user-test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBaUU7QUFDakUsa0VBQXVEO0FBQ3ZELGlEQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLGtCQUFrQixDQUFDLENBQUM7QUFFakQsSUFBSSxjQUFJLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUN4QixRQUFRLEVBQUUsVUFBVTtJQUNwQixRQUFRLEVBQUUseUJBQVcsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUM7SUFDeEQscUJBQXFCLEVBQUUsSUFBSTtDQUM1QixDQUFDLENBQUM7QUFFSCxNQUFNLGlCQUFpQixHQUFHLGNBQUksQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFLG1CQUFtQixFQUFFLDJDQUEyQyxDQUFDLENBQUM7QUFDcEgsTUFBTSx5QkFBeUIsR0FBRyxjQUFJLENBQUMsV0FBVyxDQUFDLEtBQUssRUFBRSx1QkFBdUIsRUFBRSw2Q0FBNkMsQ0FBQyxDQUFDO0FBQ2xJLE1BQU0sNkJBQTZCLEdBQUcsY0FBSSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsK0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QXR0cmlidXRlc1BhdGhNdWx0aXBsZScsIHsgdmFsdWU6IHVzZXJJbXBvcnRlZEJ5QXR0cmlidXRlc1BhdGhNdWx0aXBsZS51c2VyTmFtZSB9KTtcbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdOYW1lRm9yVXNlckltcG9ydGVkQnlOYW1lJywgeyB2YWx1ZTogdXNlckltcG9ydGVkQnlOYW1lLnVzZXJOYW1lIH0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2lhbS11c2VyLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.js b/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.js deleted file mode 100644 index 37882fe5b7438..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-iam/test/integ.users-and-groups.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-iam-role-1'); -const g1 = new aws_iam_1.Group(stack, 'MyGroup'); -const g2 = new aws_iam_1.Group(stack, 'YourGroup'); -for (let i = 0; i < 5; ++i) { - const user = new aws_iam_1.User(stack, `User${i + 1}`); - user.addToGroup(g1); - g2.addUser(user); -} -const policy = new aws_iam_1.Policy(stack, 'MyPolicy'); -policy.attachToGroup(g1); -policy.addStatements(new aws_iam_1.PolicyStatement({ - resources: [g2.groupArn], - actions: ['iam:*'], -})); -new integ_tests_alpha_1.IntegTest(app, 'iam-role-test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudXNlcnMtYW5kLWdyb3Vwcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnVzZXJzLWFuZC1ncm91cHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBeUM7QUFDekMsa0VBQXVEO0FBQ3ZELGlEQUEyRTtBQUUzRSxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLGtCQUFrQixDQUFDLENBQUM7QUFFakQsTUFBTSxFQUFFLEdBQUcsSUFBSSxlQUFLLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0FBQ3ZDLE1BQU0sRUFBRSxHQUFHLElBQUksZUFBSyxDQUFDLEtBQUssRUFBRSxXQUFXLENBQUMsQ0FBQztBQUV6QyxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxFQUFFO0lBQzFCLE1BQU0sSUFBSSxHQUFHLElBQUksY0FBSSxDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQzdDLElBQUksQ0FBQyxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDcEIsRUFBRSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztDQU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ApO1xuICB1c2VyLmFkZFRvR3JvdXAoZzEpO1xuICBnMi5hZGRVc2VyKHVzZXIpO1xufVxuXG5jb25zdCBwb2xpY3kgPSBuZXcgUG9saWN5KHN0YWNrLCAnTXlQb2xpY3knKTtcbnBvbGljeS5hdHRhY2hUb0dyb3VwKGcxKTtcbnBvbGljeS5hZGRTdGF0ZW1lbnRzKG5ldyBQb2xpY3lTdGF0ZW1lbnQoe1xuICByZXNvdXJjZXM6IFtnMi5ncm91cEFybl0sXG4gIGFjdGlvbnM6IFsnaWFtOionXSxcbn0pKTtcblxubmV3IEludGVnVGVzdChhcHAsICdpYW0tcm9sZS10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.js b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.js deleted file mode 100644 index 4314f55244b28..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream-dashboard.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_kinesis_1 = require("aws-cdk-lib/aws-kinesis"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-kinesis-stream-dashboard'); -const stream = new aws_kinesis_1.Stream(stack, 'myStream'); -const dashboard = new cloudwatch.Dashboard(stack, 'StreamDashboard'); -function graphWidget(title, metric) { - return new cloudwatch.GraphWidget({ - title, - left: [metric], - width: 12, - height: 5, - }); -} -function percentGraphWidget(title, countMetric, totalMetric) { - return new cloudwatch.GraphWidget({ - title, - left: [new cloudwatch.MathExpression({ - expression: '( count / total ) * 100', - usingMetrics: { - count: countMetric, - total: totalMetric, - }, - })], - width: 12, - height: 5, - }); -} -dashboard.addWidgets(graphWidget('Get records - sum (Bytes)', stream.metricGetRecordsBytes({ statistic: 'Sum' })), graphWidget('Get records iterator age - maximum (Milliseconds)', stream.metricGetRecordsIteratorAgeMilliseconds()), graphWidget('Get records latency - average (Milliseconds)', stream.metricGetRecordsLatency()), graphWidget('Get records - sum (Count)', stream.metricGetRecords({ statistic: 'Sum' })), graphWidget('Get records success - average (Percent)', stream.metricGetRecordsSuccess()), graphWidget('Incoming data - sum (Bytes)', stream.metricIncomingBytes({ statistic: 'Sum' })), graphWidget('Incoming records - sum (Count)', stream.metricIncomingRecords({ statistic: 'Sum' })), graphWidget('Put record - sum (Bytes)', stream.metricPutRecordBytes({ statistic: 'Sum' })), graphWidget('Put record latency - average (Milliseconds)', stream.metricPutRecordLatency()), graphWidget('Put record success - average (Percent)', stream.metricPutRecordSuccess()), graphWidget('Put records - sum (Bytes)', stream.metricPutRecordsBytes({ statistic: 'Sum' })), graphWidget('Put records latency - average (Milliseconds)', stream.metricPutRecordsLatency()), graphWidget('Read throughput exceeded - average (Percent)', stream.metricReadProvisionedThroughputExceeded()), graphWidget('Write throughput exceeded - average (Count)', stream.metricWriteProvisionedThroughputExceeded()), percentGraphWidget('Put records successful records - average (Percent)', stream.metricPutRecordsSuccessfulRecords(), stream.metricPutRecordsTotalRecords()), percentGraphWidget('Put records failed records - average (Percent)', stream.metricPutRecordsFailedRecords(), stream.metricPutRecordsTotalRecords()), percentGraphWidget('Put records throttled records - average (Percent)', stream.metricPutRecordsThrottledRecords(), stream.metricPutRecordsTot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cmRzIGZhaWxlZCByZWNvcmRzIC0gYXZlcmFnZSAoUGVyY2VudCknLFxuICAgIHN0cmVhbS5tZXRyaWNQdXRSZWNvcmRzRmFpbGVkUmVjb3JkcygpLCBzdHJlYW0ubWV0cmljUHV0UmVjb3Jkc1RvdGFsUmVjb3JkcygpKSxcbiAgcGVyY2VudEdyYXBoV2lkZ2V0KCdQdXQgcmVjb3JkcyB0aHJvdHRsZWQgcmVjb3JkcyAtIGF2ZXJhZ2UgKFBlcmNlbnQpJyxcbiAgICBzdHJlYW0ubWV0cmljUHV0UmVjb3Jkc1Rocm90dGxlZFJlY29yZHMoKSwgc3RyZWFtLm1ldHJpY1B1dFJlY29yZHNUb3RhbFJlY29yZHMoKSksXG4pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.js b/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.js deleted file mode 100644 index e23f493305303..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kinesis/test/integ.stream.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_kinesis_1 = require("aws-cdk-lib/aws-kinesis"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-kinesis-stream'); -const role = new iam.Role(stack, 'UserRole', { - assumedBy: new iam.AccountRootPrincipal(), -}); -const stream = new aws_kinesis_1.Stream(stack, 'myStream'); -stream.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B7XG4gIGFzc3VtZWRCeTogbmV3IGlhbS5BY2NvdW50Um9vdFByaW5jaXBhbCgpLFxufSk7XG5cbmNvbnN0IHN0cmVhbSA9IG5ldyBTdHJlYW0oc3RhY2ssICdteVN0cmVhbScpO1xuXG5zdHJlYW0uZ3JhbnRSZWFkV3JpdGUocm9sZSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.js b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.js deleted file mode 100644 index 786a875bee2eb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-hmac.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-kms-hmac'); -const role = new aws_iam_1.Role(stack, 'Role', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), -}); -const key = new aws_kms_1.Key(stack, 'MyHmacKey', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - keyUsage: aws_kms_1.KeyUsage.GENERATE_VERIFY_MAC, - keySpec: aws_kms_1.KeySpec.HMAC_512, -}); -key.grantGenerateMac(role); -key.grantVerifyMac(role); -new integ_tests_alpha_1.IntegTest(app,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FBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQWNjb3VudFJvb3RQcmluY2lwYWwsIFJvbGUgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtaWFtJztcbmltcG9ydCB7IEFwcCwgUmVtb3ZhbFBvbGljeSwgU3RhY2sgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBJbnRlZ1Rlc3QgfSBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBLZXksIEtleVNwZWMsIEtleVVzYWdlIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWttcyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnYXdzLWNkay1rbXMtaG1hYycpO1xuXG5jb25zdCByb2xlID0gbmV3IFJvbGUoc3RhY2ssICdSb2xlJywge1xuICBhc3N1bWVkQnk6IG5ldyBBY2NvdW50Um9vdFByaW5jaXBhbCgpLFxufSk7XG5cbmNvbnN0IGtleSA9IG5ldyBLZXkoc3RhY2ssICdNeUhtYWNLZXknLCB7XG4gIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAga2V5VXNhZ2U6IEtleVVzYWdlLkdFTkVSQVRFX1ZFUklGWV9NQUMsXG4gIGtleVNwZWM6IEtleVNwZWMuSE1BQ181MTIsXG59KTtcblxua2V5LmdyYW50R2VuZXJhdGVNYWMocm9sZSk7XG5rZXkuZ3JhbnRWZXJpZnlNYWMocm9sZSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnSG1hY0ludGVnVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbXG4gICAgc3RhY2ssXG4gIF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG5cblxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.js deleted file mode 100644 index 261381efb4229..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key-sharing.lit.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const cdk = require("aws-cdk-lib"); -const kms = require("aws-cdk-lib/aws-kms"); -const app = new cdk.App(); -/// !show -/** - * Stack that defines the key - */ -class KeyStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.key = new kms.Key(this, 'MyKey', { removalPolicy: cdk.RemovalPolicy.DESTROY }); - } -} -/** - * Stack that uses the key - */ -class UseStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // Use the IKey object here. - new kms.Alias(this, 'Alias', { - aliasName: 'alias/foo', - targetKey: props.key, - }); - } -} -const keyStack = new KeyStack(app, 'KeyStack'); -new UseStack(app, 'UseStack', { key: keyStack.key }); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2V5LXNoYXJpbmcubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcua2V5LXNoYXJpbmcubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsZ0JBQWdCO0FBQ2hCLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQ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ogJ2FsaWFzL2ZvbycsXG4gICAgICB0YXJnZXRLZXk6IHByb3BzLmtleSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBrZXlTdGFjayA9IG5ldyBLZXlTdGFjayhhcHAsICdLZXlTdGFjaycpO1xubmV3IFVzZVN0YWNrKGFwcCwgJ1VzZVN0YWNrJywgeyBrZXk6IGtleVN0YWNrLmtleSB9KTtcbi8vLyAhaGlkZVxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.js b/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.js deleted file mode 100644 index fcf213052f425..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-kms/test/integ.key.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-kms-1'); -const key = new aws_kms_1.Key(stack, 'MyKey', { removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }); -key.addToResourcePolicy(new iam.PolicyStatement({ - resources: ['*'], - actions: ['kms:encrypt'], - principals: [new iam.ArnPrincipal(stack.account)], -})); -key.addAlias('alias/bar'); -new aws_kms_1.Key(stack, 'AsymmetricKey', { - keySpec: aws_kms_1.KeySpec.ECC_NIST_P256, - keyUsage: aws_kms_1.KeyUsage.SI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0FBTztDQUNyQyxDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBpYW0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWlhbSc7XG5pbXBvcnQgeyBBcHAsIFJlbW92YWxQb2xpY3ksIFN0YWNrIH0gZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgS2V5LCBLZXlTcGVjLCBLZXlVc2FnZSB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1rbXMnO1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2F3cy1jZGsta21zLTEnKTtcblxuY29uc3Qga2V5ID0gbmV3IEtleShzdGFjaywgJ015S2V5JywgeyByZW1vdmFsUG9saWN5OiBSZW1vdmFsUG9saWN5LkRFU1RST1kgfSk7XG5cbmtleS5hZGRUb1Jlc291cmNlUG9saWN5KG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgcmVzb3VyY2VzOiBbJyonXSxcbiAgYWN0aW9uczogWydrbXM6ZW5jcnlwdCddLFxuICBwcmluY2lwYWxzOiBbbmV3IGlhbS5Bcm5QcmluY2lwYWwoc3RhY2suYWNjb3VudCldLFxufSkpO1xuXG5rZXkuYWRkQWxpYXMoJ2FsaWFzL2JhcicpO1xuXG5uZXcgS2V5KHN0YWNrLCAnQXN5bW1ldHJpY0tleScsIHtcbiAga2V5U3BlYzogS2V5U3BlYy5FQ0NfTklTVF9QMjU2LFxuICBrZXlVc2FnZTogS2V5VXNhZ2UuU0lHTl9WRVJJRlksXG4gIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.js deleted file mode 100644 index 433e81dddf96f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.destinations.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const destinations = require("aws-cdk-lib/aws-lambda-destinations"); -/* - * Stack verification steps: - * * aws lambda invoke --function-name --invocation-type Event --payload '"OK"' response.json - * * aws lambda invoke --function-name --invocation-type Event --payload '"NOT OK"' response.json - */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const topic = new sns.Topic(this, 'Topic'); - this.queue = new sqs.Queue(this, 'Queue'); - this.fn = new lambda.Function(this, 'SnsSqs', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = async (event) => { - if (event.status === 'OK') return 'success'; - throw new Error('failure'); - };`), - onFailure: new destinations.SnsDestination(topic), - onSuccess: new destinations.SqsDestination(this.queue), - maxEventAge: aws_cdk_lib_1.Duration.hours(3), - retryAttempts: 1, - }); - const onSuccessLambda = new lambda.Function(this, 'OnSucces', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = async (event) => { - console.log(event); - };`), - }); - new lambda.Function(this, 'EventBusLambda', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = async (event) => { - if (event.status === 'OK') return 'success'; - throw new Error('failure'); - };`), - onFailure: new destinations.EventBridgeDestination(), - onSuccess: new destinations.LambdaDestination(onSuccessLambda), - }); - const version = this.fn.addVersion('MySpecialVersion'); - new lambda.Alias(this, 'MySpecialAlias', { - aliasName: 'MySpecialAlias', - version, - onSuccess: new destinations.SqsDestination(this.queue), - onFailure: new destinations.SnsDestination(topic), - maxEventAge: aws_cdk_lib_1.Duration.hours(2), - retryAttempts: 0, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'aws-cdk-lambda-destinations'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'Destinations', { - testCases: [stack], -}); -integ.assertions.invokeFunction({ - functionName: stack.fn.functionName, - invocationType: integ_tests_alpha_1.InvocationType.EVENT, - payload: JSON.stringify({ status: 'OK' }), -}); -const message = integ.assertions.awsApiCall('SQS', 'receiveMessage', { - QueueUrl: stack.queue.queueUrl, - WaitTimeSeconds: 20, -}); -message.assertAtPath('Messages.0.Body', integ_tests_alpha_1.ExpectedResult.objectLike({ - requestContext: { - condition: 'Success', - }, - requestPayload: { - status: 'OK', - }, - responseContext: { - statusCode: 200, - }, - responsePayload: 'success', -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVzdGluYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZGVzdGluYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsNkNBQStEO0FBQy9ELGtFQUF1RjtBQUV2RixvRUFBb0U7QUFFcEU7Ozs7R0FJRztBQUVILE1BQU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XX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.js deleted file mode 100644 index 1b0ead7160ba7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-destinations/test/integ.lambda-chain.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const destinations = require("aws-cdk-lib/aws-lambda-destinations"); -// Test success case with: -// 1. Invoke first function in the chain -// aws lambda invoke --function-name --invocation-type Event --payload '"OK"' response.json -// 2. Check logs of third function (should show 'Event: "OK"') -// aws logs filter-log-events --log-group-name /aws/lambda/ -// -// Test failure case with: -// 1. Invoke first function in the chain -// aws lambda invoke --function-name --invocation-type Event --payload '"error"' response.json -// 2. Check logs of error function (should show 'Event: {"errorType": "Error", "errorMessage": "UnkownError", "trace":"..."}') -// aws logs filter-log-events --log-group-name /aws/lambda/ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const lambdaProps = { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = async (event) => { - console.log('Event: %j', event); - if (event.status === 'error') throw new Error('UnkownError'); - return event; - };`), - }; - const first = new lambda.Function(this, 'First', lambdaProps); - const second = new lambda.Function(this, 'Second', lambdaProps); - const third = new lambda.Function(this, 'Third', lambdaProps); - const error = new lambda.Function(this, 'Error', lambdaProps); - this.firstFunctionName = first.functionName; - this.thirdFunctionName = third.functionName; - first.configureAsyncInvoke({ - onSuccess: new destinations.LambdaDestination(second, { responseOnly: true }), - onFailure: new destinations.LambdaDestination(error, { responseOnly: true }), - retryAttempts: 0, - }); - second.configureAsyncInvoke({ - onSuccess: new destinations.LambdaDestination(third, { responseOnly: true }), - }); - new aws_cdk_lib_1.CfnOutput(this, 'FirstFunctionName', { value: first.functionName }); - new aws_cdk_lib_1.CfnOutput(this, 'ThirdFunctionName', { value: third.functionName }); - new aws_cdk_lib_1.CfnOutput(this, 'ErrorFunctionName', { value: error.functionName }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'aws-cdk-lambda-chain'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'LambdaDestChain3', { - testCases: [stack], -}); -integ.assertions.invokeFunction({ - functionName: stack.firstFunctionName, - invocationType: integ_tests_alpha_1.InvocationType.EVENT, - payload: JSON.stringify({ - status: 'success', - }), -}); -integ.assertions.awsApiCall('CloudWatchLogs', 'filterLogEvents', { - logGroupName: `/aws/lambda/${stack.thirdFunctionName}`, -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - events: integ_tests_alpha_1.Match.arrayWith([ - integ_tests_alpha_1.Match.objectLike({ - message: integ_tests_alpha_1.Match.stringLikeRegexp('success'), - }), - ]), -})).waitForAssertions(); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWNoYWluLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtYmRhLWNoYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELDZDQUFnRTtBQUNoRSxrRUFBOEY7QUFFOUYsb0VBQW9F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XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.js deleted file mode 100644 index 84146523169b5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb-with-filter-criteria.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-event-source-filter-criteria-dynamodb'); -const fn = new test_function_1.TestFunction(stack, 'F'); -const table = new dynamodb.Table(stack, 'T', { - partitionKey: { - name: 'id', - type: dynamodb.AttributeType.STRING, - }, - stream: dynamodb.StreamViewType.NEW_IMAGE, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -fn.addEventSource(new aws_lambda_event_sources_1.DynamoEventSource(table, { - batchSize: 5, - startingPosition: lambda.StartingPosition.LATEST, - filters: [ - lambda.FilterCriteria.filter({ - eventName: lambda.FilterRule.isEqual('INSERT'), - dynamodb: { - Keys: { - id: { - S: lambda.FilterRule.exists(), - }, - }, - }, - }), - ], -})); -new integ.IntegTest(app, 'DynamoDBFilterCriteria', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZHluYW1vZGItd2l0aC1maWx0ZXItY3JpdGVyaWEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5keW5hbW9kYi13aXRoLWZpbHRlci1jcml0ZXJpYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFEQUFxRDtBQUNyRCxpREFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxtREFBK0M7QUFDL0MsbUZBQXlFO0FBRXpFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsOENBQThDLENBQUMsQ0FBQztBQUVqRixNQUFNLEVBQUUsR0FBRyxJQUFJLDRCQUFZLENBQUMsS0FBSyxFQUFFLEdBQUcsQ0FBQyxDQUFDO0FBQ3hDLE1BQU0sS0FBSyxHQUFHLElBQUksUUFBUSxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsR0FBRyxFQUFFO0lBQzNDLFlBQVksRUFBRTtRQUNaLElBQUksRUFBRSxJQUFJO1FBQ1YsSUFBSSxFQUFFLFFBQVEsQ0FBQyxhQUFhLENBQUMsTUFBTTtLQUNwQztJQUNELE1BQU0sRUFBRSxRQUFRLENBQUMsY0FBYyxDQUFDLFNBQVM7SUFDekMsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztDQUN6QyxDQUFDLENBQUM7QUFFSCxFQUFFLENBQUMsY0FBYyxDQUFDLElBQUksNENBQWlCLENBQUMsS0FBSyxFQUFFO0lBQzdDLFNBQVMsRUFBRS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0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.js deleted file mode 100644 index 81e481fb66092..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.dynamodb.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const dynamodb = require("aws-cdk-lib/aws-dynamodb"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class DynamoEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const queue = new dynamodb.Table(this, 'T', { - partitionKey: { - name: 'id', - type: dynamodb.AttributeType.STRING, - }, - stream: dynamodb.StreamViewType.NEW_IMAGE, - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - fn.addEventSource(new aws_lambda_event_sources_1.DynamoEventSource(queue, { - batchSize: 5, - startingPosition: lambda.StartingPosition.TRIM_HORIZON, - tumblingWindow: cdk.Duration.seconds(60), - })); - } -} -const app = new cdk.App(); -new DynamoEventSourceTest(app, 'lambda-event-source-dynamodb'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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sUG9saWN5LkRFU1RST1ksXG4gICAgfSk7XG5cbiAgICBmbi5hZGRFdmVudFNvdXJjZShuZXcgRHluYW1vRXZlbnRTb3VyY2UocXVldWUsIHtcbiAgICAgIGJhdGNoU2l6ZTogNSxcbiAgICAgIHN0YXJ0aW5nUG9zaXRpb246IGxhbWJkYS5TdGFydGluZ1Bvc2l0aW9uLlRSSU1fSE9SSVpPTixcbiAgICAgIHR1bWJsaW5nV2luZG93OiBjZGsuRHVyYXRpb24uc2Vjb25kcyg2MCksXG4gICAgfSkpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgRHluYW1vRXZlbnRTb3VyY2VUZXN0KGFwcCwgJ2xhbWJkYS1ldmVudC1zb3VyY2UtZHluYW1vZGInKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.js deleted file mode 100644 index 5c007f1f2f60e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kafka-selfmanaged.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class KafkaSelfManagedEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const dummyCertString = `-----BEGIN CERTIFICATE----- -MIIE5DCCAsygAwIBAgIRAPJdwaFaNRrytHBto0j5BA0wDQYJKoZIhvcNAQELBQAw -cmUuiAii9R0= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFgjCCA2qgAwIBAgIQdjNZd6uFf9hbNC5RdfmHrzANBgkqhkiG9w0BAQsFADBb -c8PH3PSoAaRwMMgOSA2ALJvbRz8mpg== ------END CERTIFICATE-----" -`; - const dummyPrivateKey = `-----BEGIN ENCRYPTED PRIVATE KEY----- -zp2mwJn2NYB7AZ7+imp0azDZb+8YG2aUCiyqb6PnnA== ------END ENCRYPTED PRIVATE KEY-----`; - const fn = new test_function_1.TestFunction(this, 'F'); - const rootCASecret = new secretsmanager.Secret(this, 'S', { - secretObjectValue: { - certificate: cdk.SecretValue.unsafePlainText(dummyCertString), - }, - }); - const clientCertificatesSecret = new secretsmanager.Secret(this, 'SC', { - secretObjectValue: { - certificate: cdk.SecretValue.unsafePlainText(dummyCertString), - privateKey: cdk.SecretValue.unsafePlainText(dummyPrivateKey), - }, - }); - rootCASecret.grantRead(fn); - clientCertificatesSecret.grantRead(fn); - const bootstrapServers = [ - 'my-self-hosted-kafka-broker-1:9092', - 'my-self-hosted-kafka-broker-2:9092', - 'my-self-hosted-kafka-broker-3:9092', - ]; - fn.addEventSource(new aws_lambda_event_sources_1.SelfManagedKafkaEventSource({ - bootstrapServers, - topic: 'my-test-topic', - consumerGroupId: 'myTestConsumerGroup', - secret: clientCertificatesSecret, - authenticationMethod: aws_lambda_event_sources_1.AuthenticationMethod.CLIENT_CERTIFICATE_TLS_AUTH, - rootCACertificate: rootCASecret, - startingPosition: lambda.StartingPosition.TRIM_HORIZON, - })); - } -} -const app = new cdk.App(); -const stack = new KafkaSelfManagedEventSourceTest(app, 'lambda-event-source-kafka-self-managed'); -new integ.IntegTest(app, 'LambdaEventSourceKafkaSelfManagedTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2Fma2Etc2VsZm1hbmFnZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5rYWZrYS1zZWxmbWFuYWdlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCxpRUFBaUU7QUFDakUsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxtREFBK0M7QUFDL0MsbUZBQXlHO0FBRXpHLE1BQU0sK0JBQWdDLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDckQsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sZUFBZSxHQUFHOzs7Ozs7OztDQVEzQixDQUFDO1FBRUUsTUFBTSxlQUFlLEdBQUc7O29DQUVRLENBQUM7UUFFakMsTUFBTSxFQUFFLEdBQUcsSUFBSSw0QkFBWSxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FBQztRQUN2QyxNQUFNLFlBQVksR0FBRyxJQUFJLGNBQWMsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLEdBQUcsRUFBRTtZQUN4RCxpQkFBaUIsRUFBRTtnQkFDakIsV0FBVyxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsZUFBZSxDQUFDLGVBQWUsQ0FBQzthQUM5RDtTQUNGLENBQUMsQ0FBQztRQUNILE1BQU0sd0JBQXdCLEdBQUcsSUFBSSxjQUFjLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUU7WUFDckUsaUJBQWlCLEVBQUU7Z0JBQ2pCLFdB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YXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.js deleted file mode 100644 index b46e135b63006..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis-at-timestamp.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'lambda-event-source-kinesis-at-timestamp'); -const fn = new test_function_1.TestFunction(stack, 'F'); -const stream = new kinesis.Stream(stack, 'S'); -fn.addEventSource(new aws_lambda_event_sources_1.KinesisEventSource(stream, { - startingPosition: lambda.StartingPosition.AT_TIMESTAMP, - startingPositionTimestamp: 1655237653, -})); -new integ.IntegTest(app, 'AtTimestamp', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpcy1hdC10aW1lc3RhbXAuanMiLCJzb3Vy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1wb3J0IHsgQXBwLCBTdGFjayB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGludGVnIGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCB7IFRlc3RGdW5jdGlvbiB9IGZyb20gJy4vdGVzdC1mdW5jdGlvbic7XG5pbXBvcnQgeyBLaW5lc2lzRXZlbnRTb3VyY2UgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtbGFtYmRhLWV2ZW50LXNvdXJjZXMnO1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2xhbWJkYS1ldmVudC1zb3VyY2Uta2luZXNpcy1hdC10aW1lc3RhbXAnKTtcblxuY29uc3QgZm4gPSBuZXcgVGVzdEZ1bmN0aW9uKHN0YWNrLCAnRicpO1xuXG5jb25zdCBzdHJlYW0gPSBuZXcga2luZXNpcy5TdHJlYW0oc3RhY2ssICdTJyk7XG5cbmZuLmFkZEV2ZW50U291cmNlKG5ldyBLaW5lc2lzRXZlbnRTb3VyY2Uoc3RyZWFtLCB7XG4gIHN0YXJ0aW5nUG9zaXRpb246IGxhbWJkYS5TdGFydGluZ1Bvc2l0aW9uLkFUX1RJTUVTVEFNUCxcbiAgc3RhcnRpbmdQb3NpdGlvblRpbWVzdGFtcDogMTY1NTIzNzY1Myxcbn0pKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdBdFRpbWVzdGFtcCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.js deleted file mode 100644 index f5316bd6f71bb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesis.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class KinesisEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const stream = new kinesis.Stream(this, 'Q'); - fn.addEventSource(new aws_lambda_event_sources_1.KinesisEventSource(stream, { - startingPosition: lambda.StartingPosition.TRIM_HORIZON, - tumblingWindow: cdk.Duration.seconds(60), - })); - } -} -const app = new cdk.App(); -new KinesisEventSourceTest(app, 'lambda-event-source-kinesis'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmtpbmVzaXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtREFBbUQ7QUFDbkQsaURBQWlEO0FBQ2pELG1DQUFtQztBQUNuQyxtREFBK0M7QUFDL0MsbUZBQTBFO0FBRTFFLE1BQU0sc0JBQXVCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDNUMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUs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HMgY2RrLlN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IGNkay5BcHAsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgY29uc3QgZm4gPSBuZXcgVGVzdEZ1bmN0aW9uKHRoaXMsICdGJyk7XG4gICAgY29uc3Qgc3RyZWFtID0gbmV3IGtpbmVzaXMuU3RyZWFtKHRoaXMsICdRJyk7XG5cbiAgICBmbi5hZGRFdmVudFNvdXJjZShuZXcgS2luZXNpc0V2ZW50U291cmNlKHN0cmVhbSwge1xuICAgICAgc3RhcnRpbmdQb3NpdGlvbjogbGFtYmRhLlN0YXJ0aW5nUG9zaXRpb24uVFJJTV9IT1JJWk9OLFxuICAgICAgdHVtYmxpbmdXaW5kb3c6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDYwKSxcbiAgICB9KSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBLaW5lc2lzRXZlbnRTb3VyY2VUZXN0KGFwcCwgJ2xhbWJkYS1ldmVudC1zb3VyY2Uta2luZXNpcycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.js deleted file mode 100644 index c253d15ca1c90..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.kinesiswithdlq.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -/* - * Stack verification steps: - * * aws kinesis put-record --stream-name --partition-key 123 --data testdata - * * aws sqs receive-message --queue-url --max-number-of-messages 1 --query 'Messages[0].Body' - * The last command should return a string that contains the Lambda function ARN in it. - */ -async function handler(event) { - // eslint-disable-next-line no-console - console.log('event:', JSON.stringify(event, undefined, 2)); - throw new Error(); -} -class KinesisWithDLQTest extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new lambda.Function(this, 'F', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - }); - new aws_cdk_lib_1.CfnOutput(this, 'FunctionArn', { value: fn.functionArn }); - const stream = new kinesis.Stream(this, 'S'); - new aws_cdk_lib_1.CfnOutput(this, 'InputKinesisStreamName', { value: stream.streamName }); - const dlq = new sqs.Queue(this, 'Q'); - new aws_cdk_lib_1.CfnOutput(this, 'DlqSqsQueueUrl', { value: dlq.queueUrl }); - fn.addEventSource(new aws_lambda_event_sources_1.KinesisEventSource(stream, { - startingPosition: lambda.StartingPosition.TRIM_HORIZON, - onFailure: new aws_lambda_event_sources_1.SqsDlq(dlq), - retryAttempts: 0, - })); - } -} -const app = new aws_cdk_lib_1.App(); -new KinesisWithDLQTest(app, 'lambda-event-source-kinesis-with-dlq'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpc3dpdGhkbHEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5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tcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js deleted file mode 100644 index dc5c5218a3d67..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class S3EventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const bucket = new s3.Bucket(this, 'B', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - fn.addEventSource(new aws_lambda_event_sources_1.S3EventSource(bucket, { - events: [s3.EventType.OBJECT_CREATED], - filters: [{ prefix: 'subdir/' }], - })); - } -} -const app = new cdk.App(); -new S3EventSourceTest(app, 'lambda-event-source-s3'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuczMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsbURBQStDO0FBQy9DLG1GQU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9uJztcbmltcG9ydCB7IFMzRXZlbnRTb3VyY2UgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtbGFtYmRhLWV2ZW50LXNvdXJjZXMnO1xuXG5jbGFzcyBTM0V2ZW50U291cmNlVGVzdCBleHRlbmRzIGNkay5TdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQXBwLCBpZDogc3RyaW5nKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIGNvbnN0IGZuID0gbmV3IFRlc3RGdW5jdGlvbih0aGlzLCAnRicpO1xuICAgIGNvbnN0IGJ1Y2tldCA9IG5ldyBzMy5CdWNrZXQodGhpcywgJ0InLCB7XG4gICAgICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgYXV0b0RlbGV0ZU9iamVjdHM6IHRydWUsXG4gICAgfSk7XG5cbiAgICBmbi5hZGRFdmVudFNvdXJjZShuZXcgUzNFdmVudFNvdXJjZShidWNrZXQsIHtcbiAgICAgIGV2ZW50czogW3MzLkV2ZW50VHlwZS5PQkpFQ1RfQ1JFQVRFRF0sXG4gICAgICBmaWx0ZXJzOiBbeyBwcmVmaXg6ICdzdWJkaXIvJyB9XSxcbiAgICB9KSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBTM0V2ZW50U291cmNlVGVzdChhcHAsICdsYW1iZGEtZXZlbnQtc291cmNlLXMzJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.js deleted file mode 100644 index de176707f7ed6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sns.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class SqsEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const topic = new sns.Topic(this, 'T'); - fn.addEventSource(new aws_lambda_event_sources_1.SnsEventSource(topic)); - } -} -const app = new cdk.App(); -new SqsEventSourceTest(app, 'lambda-event-source-sns'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxtREFBK0M7QUFDL0MsbUZBQXNFO0FBRXRFLE1BQU0sa0JBQW1CLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDeEMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sRUFBRSxHQUFHLElBQUksNEJBQVksQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFDdkMsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxHQUFHLENBQUMsQ0FB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at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.js deleted file mode 100644 index 5d5292d2b2517..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-max-concurrency.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class SqsEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const queue = new sqs.Queue(this, 'Q'); - fn.addEventSource(new aws_lambda_event_sources_1.SqsEventSource(queue, { - batchSize: 5, - maxConcurrency: 5, - })); - } -} -const app = new cdk.App(); -const stack = new SqsEventSourceTest(app, 'sqs-event-source-max-concurrency'); -new integ_tests_alpha_1.IntegTest(app, 'sqs-max-concurrency-integ-test', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3FzLW1heC1jb25jdXJyZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNxcy1tYXg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rIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCB7IFRlc3RGdW5jdGlvbiB9IGZyb20gJy4vdGVzdC1mdW5jdGlvbic7XG5pbXBvcnQgeyBTcXNFdmVudFNvdXJjZSB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1sYW1iZGEtZXZlbnQtc291cmNlcyc7XG5cbmNsYXNzIFNxc0V2ZW50U291cmNlVGVzdCBleHRlbmRzIGNkay5TdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQXBwLCBpZDogc3RyaW5nKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIGNvbnN0IGZuID0gbmV3IFRlc3RGdW5jdGlvbih0aGlzLCAnRicpO1xuICAgIGNvbnN0IHF1ZXVlID0gbmV3IHNxcy5RdWV1ZSh0aGlzLCAnUScpO1xuXG4gICAgZm4uYWRkRXZlbnRTb3VyY2UobmV3IFNxc0V2ZW50U291cmNlKHF1ZXVlLCB7XG4gICAgICBiYXRjaFNpemU6IDUsXG4gICAgICBtYXhDb25jdXJyZW5jeTogNSxcbiAgICB9KSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFNxc0V2ZW50U291cmNlVGVzdChhcHAsICdzcXMtZXZlbnQtc291cmNlLW1heC1jb25jdXJyZW5jeScpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ3Nxcy1tYXgtY29uY3VycmVuY3ktaW50ZWctdGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.js deleted file mode 100644 index 9cf26090196a6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs-with-filter-criteria.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-event-source-filter-criteria-sqs'); -const fn = new test_function_1.TestFunction(stack, 'F'); -const queue = new sqs.Queue(stack, 'Q'); -fn.addEventSource(new aws_lambda_event_sources_1.SqsEventSource(queue, { - batchSize: 5, - filters: [ - lambda.FilterCriteria.filter({ - body: { - id: lambda.FilterRule.exists(), - }, - }), - ], -})); -new integ.IntegTest(app, 'SQSFilterCriteria', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3FzLXdpdGgtZmlsdGVyLWNyaXRlcmlhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3FzLXdpdGgtZmlsdGVyLWNyaXRlcmlhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQU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WIvYXdzLXNxcyc7XG5pbXBvcnQgKiBhcyBjZGsgZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0ICogYXMgaW50ZWcgZnJvbSAnQGF3cy1jZGsvaW50ZWctdGVzdHMtYWxwaGEnO1xuaW1wb3J0IHsgVGVzdEZ1bmN0aW9uIH0gZnJvbSAnLi90ZXN0LWZ1bmN0aW9uJztcbmltcG9ydCB7IFNxc0V2ZW50U291cmNlIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWxhbWJkYS1ldmVudC1zb3VyY2VzJztcblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2xhbWJkYS1ldmVudC1zb3VyY2UtZmlsdGVyLWNyaXRlcmlhLXNxcycpO1xuXG5jb25zdCBmbiA9IG5ldyBUZXN0RnVuY3Rpb24oc3RhY2ssICdGJyk7XG5jb25zdCBxdWV1ZSA9IG5ldyBzcXMuUXVldWUoc3RhY2ssICdRJyk7XG5cbmZuLmFkZEV2ZW50U291cmNlKG5ldyBTcXNFdmVudFNvdXJjZShxdWV1ZSwge1xuICBiYXRjaFNpemU6IDUsXG4gIGZpbHRlcnM6IFtcbiAgICBsYW1iZGEuRmlsdGVyQ3JpdGVyaWEuZmlsdGVyKHtcbiAgICAgIGJvZHk6IHtcbiAgICAgICAgaWQ6IGxhbWJkYS5GaWx0ZXJSdWxlLmV4aXN0cygpLFxuICAgICAgfSxcbiAgICB9KSxcbiAgXSxcbn0pKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdTUVNGaWx0ZXJDcml0ZXJpYScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.js deleted file mode 100644 index a6a401c4f74e8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.sqs.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const test_function_1 = require("./test-function"); -const aws_lambda_event_sources_1 = require("aws-cdk-lib/aws-lambda-event-sources"); -class SqsEventSourceTest extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new test_function_1.TestFunction(this, 'F'); - const queue = new sqs.Queue(this, 'Q'); - fn.addEventSource(new aws_lambda_event_sources_1.SqsEventSource(queue, { - batchSize: 5, - })); - } -} -const app = new cdk.App(); -new SqsEventSourceTest(app, 'lambda-event-source-sqs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3FzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3FzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxtREFBK0M7QUFDL0MsbUZBQXNFO0FBRXRFLE1BQU0sa0JBQW1CLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDeEMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sRUFBRSxHQUFHL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3IFNxc0V2ZW50U291cmNlKHF1ZXVlLCB7XG4gICAgICBiYXRjaFNpemU6IDUsXG4gICAgfSkpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgU3FzRXZlbnRTb3VyY2VUZXN0KGFwcCwgJ2xhbWJkYS1ldmVudC1zb3VyY2Utc3FzJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.d.ts deleted file mode 100644 index 882549339a9f9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as lambda from 'aws-cdk-lib/aws-lambda'; -import * as constructs from 'constructs'; -export declare class TestFunction extends lambda.Function { - constructor(scope: constructs.Construct, id: string); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.js deleted file mode 100644 index 952c04254b382..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/test-function.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestFunction = void 0; -const lambda = require("aws-cdk-lib/aws-lambda"); -class TestFunction extends lambda.Function { - constructor(scope, id) { - super(scope, id, { - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - runtime: lambda.Runtime.NODEJS_14_X, - }); - } -} -exports.TestFunction = TestFunction; -/* eslint-disable no-console */ -async function handler(event) { - console.log('event:', JSON.stringify(event, undefined, 2)); - return { event }; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1mdW5jdGlvbi5qcyIsInNv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SwgaWQsIHtcbiAgICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgICAgIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21JbmxpbmUoYGV4cG9ydHMuaGFuZGxlciA9ICR7aGFuZGxlci50b1N0cmluZygpfWApLFxuICAgICAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gICAgfSk7XG4gIH1cbn1cblxuLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuYXN5bmMgZnVuY3Rpb24gaGFuZGxlcihldmVudDogYW55KSB7XG4gIGNvbnNvbGUubG9nKCdldmVudDonLCBKU09OLnN0cmluZ2lmeShldmVudCwgdW5kZWZpbmVkLCAyKSk7XG4gIHJldHVybiB7IGV2ZW50IH07XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.d.ts deleted file mode 100644 index 6225c5bf079d7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): (string | undefined)[]; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.js deleted file mode 100644 index ea09f08dc3a29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/define.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -function handler() { - return [ - process.env.KEY, - process.env.BOOL, - process.env.NUMBER, - process.env.STRING, - ]; -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGVmaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLFNBQWdCLE9BQU87SUFDckIsT0FBTztRQUNMLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRztRQUNmLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBSTtRQUNoQixPQUFPLENBQUMsR0FBRyxDQUFDLE1BQU07UUFDbEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxNQUFNO0tBQ25CLENBQUM7QUFDSixDQUFDO0FBUEQsMEJBT0MiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gaGFuZGxlcigpIHtcbiAgcmV0dXJuIFtcbiAgICBwcm9jZXNzLmVudi5LRVksXG4gICAgcHJvY2Vzcy5lbnYuQk9PTCxcbiAgICBwcm9jZXNzLmVudi5OVU1CRVIsXG4gICAgcHJvY2Vzcy5lbnYuU1RSSU5HLFxuICBdO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.js deleted file mode 100644 index 4b664238425e8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies-sdk-v3.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -/* eslint-disable no-console */ -// @ts-ignore -const client_s3_1 = require("@aws-sdk/client-s3"); // eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved -const s3 = new client_s3_1.S3Client(); -async function handler() { - console.log(s3); -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwZW5kZW5jaWVzLXNkay12My5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRlcGVuZGVuY2llcy1zZGstdjMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQStCO0FBQy9CLGFBQWE7QUFDYixrREFBOEMsQ0FBQyw4RUFBOEU7QUFFN0gsTUFBTSxFQUFFLEdBQUcsSUFBSSxvQkFBUSxFQUFFLENBQUM7QUFFbkIsS0FBSyxVQUFVLE9BQU87SUFDM0IsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUNsQixDQUFDO0FBRkQsMEJBRUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1jb25zb2xlICovXG4vLyBAdHMtaWdub3JlXG5pbXBvcnQgeyBTM0NsaWVudCB9IGZyb20gJ0Bhd3Mtc2RrL2NsaWVudC1zMyc7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgaW1wb3J0L25vLWV4dHJhbmVvdXMtZGVwZW5kZW5jaWVzLCBpbXBvcnQvbm8tdW5yZXNvbHZlZFxuXG5jb25zdCBzMyA9IG5ldyBTM0NsaWVudCgpO1xuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gaGFuZGxlcigpIHtcbiAgY29uc29sZS5sb2coczMpO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.js deleted file mode 100644 index 3b8dce303c94c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/dependencies.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -/* eslint-disable no-console */ -const aws_sdk_1 = require("aws-sdk"); // eslint-disable-line import/no-extraneous-dependencies -const delay_1 = require("delay"); -const s3 = new aws_sdk_1.S3(); -async function handler() { - console.log(s3); - await (0, delay_1.default)(5); -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwZW5kZW5jaWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGVwZW5kZW5jaWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUErQjtBQUMvQixxQ0FBNkIsQ0FBQyx3REFBd0Q7QUFDdEYsaUNBQTBCO0FBRTFCLE1BQU0sRUFBRSxHQUFHLElBQUksWUFBRSxFQUFFLENBQUM7QUFFYixLQUFLLFVBQVUsT0FBTztJQUMzQixPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hCLE1BQU0sSUFBQSxlQUFLLEVBQUMsQ0FBQyxDQUFDLENBQUM7QUFDakIsQ0FBQztBQUhELDBCQUdDIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuaW1wb3J0IHsgUzMgfSBmcm9tICdhd3Mtc2RrJzsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBpbXBvcnQvbm8tZXh0cmFuZW91cy1kZXBlbmRlbmNpZXNcbmltcG9ydCBkZWxheSBmcm9tICdkZWxheSc7XG5cbmNvbnN0IHMzID0gbmV3IFMzKCk7XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBoYW5kbGVyKCkge1xuICBjb25zb2xlLmxvZyhzMyk7XG4gIGF3YWl0IGRlbGF5KDUpO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.js deleted file mode 100644 index 110ec35fa795c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/esm.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -/* eslint-disable no-console */ -const crypto = require("crypto"); -async function handler() { - console.log(crypto.createHash('sha512').update('cdk').digest('hex')); -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZXNtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUErQjtBQUMvQixpQ0FBaUM7QUFFMUIsS0FBSyxVQUFVLE9BQU87SUFDM0IsT0FBTyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztBQUN2RSxDQUFDO0FBRkQsMEJBRUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1jb25zb2xlICovXG5pbXBvcnQgKiBhcyBjcnlwdG8gZnJvbSAnY3J5cHRvJztcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGhhbmRsZXIoKSB7XG4gIGNvbnNvbGUubG9nKGNyeXB0by5jcmVhdGVIYXNoKCdzaGE1MTInKS51cGRhdGUoJ2NkaycpLmRpZ2VzdCgnaGV4JykpO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.js deleted file mode 100644 index 27878862e231a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/pnpm/dependencies-pnpm.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -// eslint-disable-next-line import/no-extraneous-dependencies -const axios_1 = require("axios"); -async function handler() { - await axios_1.default.get('https://www.google.com'); -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwZW5kZW5jaWVzLXBucG0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXBlbmRlbmNpZXMtcG5wbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2REFBNkQ7QUFDN0QsaUNBQTBCO0FBRW5CLEtBQUssVUFBVSxPQUFPO0lBQzNCLE1BQU0sZUFBSyxDQUFDLEdBQUcsQ0FBQyx3QkFBd0IsQ0FBQyxDQUFDO0FBQzVDLENBQUM7QUFGRCwwQkFFQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBpbXBvcnQvbm8tZXh0cmFuZW91cy1kZXBlbmRlbmNpZXNcbmltcG9ydCBheGlvcyBmcm9tICdheGlvcyc7XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBoYW5kbGVyKCkge1xuICBhd2FpdCBheGlvcy5nZXQoJ2h0dHBzOi8vd3d3Lmdvb2dsZS5jb20nKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.js deleted file mode 100644 index f965b92e2c068..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-decorator-handler.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -function enumerable(value) { - return function (_target, _propertyKey, descriptor) { - descriptor.enumerable = value; - }; -} -class Greeter { - constructor(message) { - this.greeting = message; - } - greet() { - return 'Hello, ' + this.greeting; - } -} -__decorate([ - enumerable(false) -], Greeter.prototype, "greet", null); -async function handler() { - const message = new Greeter('World').greet(); - console.log(message); // eslint-disable-line no-console -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHMtZGVjb3JhdG9yLWhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0cy1kZWNvcmF0b3ItaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxTQUFTLFVBQVUsQ0FBQyxLQUFjO0lBQ2hDLE9BQU8sVUFBVSxPQUFZLEVBQUUsWUFBb0IsRUFBRSxVQUE4QjtRQUNqRixVQUFVLENBQUMsVUFBVSxHQUFHLEtBQUssQ0FBQztJQUNoQyxDQUFDLENBQUM7QUFDSixDQUFDO0FBRUQsTUFBTSxPQUFPO0lBRVgsWUFBWSxPQUFlO1FBQ3pCLElBQUksQ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obWVzc2FnZSk7IC8vIGVzbGludC1kaXNhYmxlLWxpbmUgbm8tY29uc29sZVxufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.d.ts deleted file mode 100644 index bc49bdd93ab29..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.js deleted file mode 100644 index dc6a8062b6a10..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-handler.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -const util_1 = require("./util"); -async function handler() { - console.log((0, util_1.mult)(3, 4)); // eslint-disable-line no-console -} -exports.handler = handler; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHMtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRzLWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQThCO0FBRXZCLEtBQUssVUFBVSxPQUFPO0lBQzNCLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBQSxXQUFJLEVBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxpQ0FBaUM7QUFDNUQsQ0FBQztBQUZELDBCQUVDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbXVsdCB9IGZyb20gJy4vdXRpbCc7XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBoYW5kbGVyKCk6IFByb21pc2U8dm9pZD4ge1xuICBjb25zb2xlLmxvZyhtdWx0KDMsIDQpKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.js deleted file mode 100644 index 2eb471baa273d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/ts-web-handler.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const http_1 = require("http"); -const util_1 = require("./util"); -// Create simple http server -const server = new http_1.Server((_req, res) => { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - res.end(`${(0, util_1.mult)(3, 4)}`); - console.log((0, util_1.mult)(3, 4)); // eslint-disable-line no-console -}); -const port = parseInt(process.env.PORT || '3001', 10); -server.listen(port); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHMtd2ViLWhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0cy13ZWItaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUE4QjtBQUM5QixpQ0FBOEI7QU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nQocHJvY2Vzcy5lbnYuUE9SVCB8fCAnMzAwMScsIDEwKTtcbnNlcnZlci5saXN0ZW4ocG9ydCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.d.ts deleted file mode 100644 index d87ed809ebff8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function add(a: number, b: number): number; -export declare function mult(a: number, b: number): number; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.js deleted file mode 100644 index 441f0efc98d92..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ-handlers/util.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mult = exports.add = void 0; -function add(a, b) { - return a + b; -} -exports.add = add; -function mult(a, b) { - return a * b; -} -exports.mult = mult; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsU0FBZ0IsR0FBRyxDQUFDLENBQVMsRUFBRSxDQUFTO0lBQ3RDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNmLENBQUM7QUFGRCxrQkFFQztBQUVELFNBQWdCLElBQUksQ0FBQyxDQUFTLEVBQUUsQ0FBUztJQUN2QyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDZixDQUFDO0FBRkQsb0JBRUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gYWRkKGE6IG51bWJlciwgYjogbnVtYmVyKTogbnVtYmVyIHtcbiAgcmV0dXJuIGEgKyBiO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gbXVsdChhOiBudW1iZXIsIGI6IG51bWJlcik6IG51bWJlciB7XG4gIHJldHVybiBhICogYjtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.js deleted file mode 100644 index 2c3ec84f61d68..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.compilations.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda-nodejs"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new lambda.NodejsFunction(this, 'ts-decorator-handler', { - entry: path.join(__dirname, 'integ-handlers/ts-decorator-handler.ts'), - bundling: { - minify: true, - sourceMap: true, - sourceMapMode: lambda.SourceMapMode.BOTH, - preCompilation: true, - }, - runtime: aws_lambda_1.Runtime.NODEJS_16_X, - }); - new lambda.NodejsFunction(this, 'ts-decorator-handler-tsconfig', { - entry: path.join(__dirname, 'integ-handlers/ts-decorator-handler.ts'), - bundling: { - minify: true, - sourceMap: true, - sourceMapMode: lambda.SourceMapMode.BOTH, - tsconfig: path.join(__dirname, '..', 'tsconfig.json'), - preCompilation: true, - }, - runtime: aws_lambda_1.Runtime.NODEJS_16_X, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-compilations-lambda-nodejs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY29tcGlsYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY29tcGlsYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLHVEQUFpRDtBQUNqRCw2Q0FBcUQ7QUFFckQsd0RBQXdEO0FBRXhELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxzQkFBc0IsRUFBRTtZQUN0RCxLQUFLLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsd0NBQXdDLENBQUM7WUFDckUsUUFBUSxFQUFFO2dCQUNSLE1BQU0sRUFBRSxJQUFJO2dCQUNaLFNBQVMsRUFBRSxJQUFJO2dCQUNmLGFBQWEsRUFBRSxNQUFNLENBQUMsYUFBYSxDQUFDLElBQUk7Z0JBQ3hDLGNBQWMsRUFBRSxJQUFJO2FBQ3JCO1lBQ0QsT0FBTyxFQUFFLG9CQUFPLENBQUMsV0FBVztTQUM3QixDQUFDLENBQUM7UUFFSCxJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLCtCQUErQixFQUFFO1lBQy9ELEtBQ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5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1jb21waWxhdGlvbnMtbGFtYmRhLW5vZGVqcycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.js deleted file mode 100644 index 438b9abf12e09..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies-pnpm.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const lambda = require("aws-cdk-lib/aws-lambda-nodejs"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'TestStack'); -const handler = new lambda.NodejsFunction(stack, 'Function', { - entry: path.join(__dirname, 'integ-handlers/pnpm/dependencies-pnpm.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_18_X, - bundling: { - minify: true, - // Will be installed, not bundled - // (axios is a package with sub-dependencies, - // will be used to ensure pnpm bundling works as expected) - nodeModules: ['axios'], - forceDockerBundling: true, - }, - depsLockFilePath: path.join(__dirname, 'integ-handlers/pnpm/pnpm-lock.yaml'), -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'PnpmTest', { - testCases: [stack], - stackUpdateWorkflow: false, // this will tell the runner to not check in assets. -}); -const response = integ.assertions.invokeFunction({ - functionName: handler.functionName, -}); -response.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - // expect invoking without error - StatusCode: 200, - ExecutedVersion: '$LATEST', - Payload: 'null', -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwZW5kZW5jaWVzLXBucG0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kZXBlbmRlbmNpZXMtcG5wbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qix1REFBaUQ7QUFDakQsbUNBQW1DO0FBQ25DLGtFQUF1RTtBQUN2RSx3REFBd0Q7QUFFeEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxXQUFXLENBQUMsQ0FBQztBQUU5QyxNQUFNLE9BQU8sR0FBRyxJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUMzRCxLQUFLLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsMENBQTBDLENBQUM7SUFDdkUsT0FBTyxFQUFFLG9CQUFPLENBQUMsV0FBVztJQUM1QixRQUFRLEVBQUU7UUFDUixNQUFNLEVBQUUsSUFBSTtRQUNaLGlDQUFpQztRQUNqQyw2Q0FBNkM7UUFDN0MsMERBQTBEO1FBQzFELFdBQVcsRUFBRSxDQUFDLE9BQU8sQ0FBQztRQUN0QixtQkFBbUIsRUFBRSxJQUFJO0tBQzFCO0lBQ0QsZ0JBQWdCLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsb0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HBlY3QgaW52b2tpbmcgd2l0aG91dCBlcnJvclxuICBTdGF0dXNDb2RlOiAyMDAsXG4gIEV4ZWN1dGVkVmVyc2lvbjogJyRMQVRFU1QnLFxuICBQYXlsb2FkOiAnbnVsbCcsXG59KSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.js deleted file mode 100644 index 8e56d203e5a32..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.dependencies.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const lambda = require("aws-cdk-lib/aws-lambda-nodejs"); -class SdkV2TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // This function uses aws-sdk but it will not be included - this.lambdaFunction = new lambda.NodejsFunction(this, 'external', { - entry: path.join(__dirname, 'integ-handlers/dependencies.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_16_X, - bundling: { - minify: true, - // Will be installed, not bundled - // (delay is a zero dependency package and its version is fixed - // in the package.json to ensure a stable hash for this integ test) - nodeModules: ['delay'], - forceDockerBundling: true, - }, - }); - } -} -class SdkV3TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // This function uses @aws-sdk/* but it will not be included - this.lambdaFunction = new lambda.NodejsFunction(this, 'external-sdk-v3', { - entry: path.join(__dirname, 'integ-handlers/dependencies-sdk-v3.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_18_X, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const sdkV2testCase = new SdkV2TestStack(app, 'cdk-integ-lambda-nodejs-dependencies'); -const sdkV3testCase = new SdkV3TestStack(app, 'cdk-integ-lambda-nodejs-dependencies-for-sdk-v3'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'LambdaDependencies', { - testCases: [sdkV2testCase, sdkV3testCase], -}); -for (const testCase of [sdkV2testCase, sdkV3testCase]) { - const response = integ.assertions.invokeFunction({ - functionName: testCase.lambdaFunction.functionName, - }); - response.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - // expect invoking without error - StatusCode: 200, - ExecutedVersion: '$LATEST', - Payload: 'null', - })); -} -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVwZW5kZW5jaWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZGVwZW5kZW5jaWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLHVEQUE0RDtBQUM1RCw2Q0FBcUQ7QUFDckQsa0VBQXVFO0FBRXZFLHdEQUF3RDtBQUV4RCxNQUFNLGNBQWUsU0FBUSxtQkFBSztJQUdoQyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLHlEQUF5RDtRQUN6RCxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksTUFBTSxDQUFDLGNBQWMsQ0FBQyxJQUFJLEVBQUUsVUFBVSx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aW52b2tlRnVuY3Rpb24oe1xuICAgIGZ1bmN0aW9uTmFtZTogdGVzdENhc2UubGFtYmRhRnVuY3Rpb24uZnVuY3Rpb25OYW1lLFxuICB9KTtcbiAgcmVzcG9uc2UuZXhwZWN0KEV4cGVjdGVkUmVzdWx0Lm9iamVjdExpa2Uoe1xuICAgIC8vIGV4cGVjdCBpbnZva2luZyB3aXRob3V0IGVycm9yXG4gICAgU3RhdHVzQ29kZTogMjAwLFxuICAgIEV4ZWN1dGVkVmVyc2lvbjogJyRMQVRFU1QnLFxuICAgIFBheWxvYWQ6ICdudWxsJyxcbiAgfSkpO1xufVxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.js deleted file mode 100644 index 0504df662f7c9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.esm.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda-nodejs"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new lambda.NodejsFunction(this, 'esm', { - entry: path.join(__dirname, 'integ-handlers/esm.ts'), - bundling: { - format: lambda.OutputFormat.ESM, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk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3cy1jZGstbGliL2F3cy1sYW1iZGEtbm9kZWpzJztcblxuY2xhc3MgVGVzdFN0YWNrIGV4dGVuZHMgU3RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIG5ldyBsYW1iZGEuTm9kZWpzRnVuY3Rpb24odGhpcywgJ2VzbScsIHtcbiAgICAgIGVudHJ5OiBwYXRoLmpvaW4oX19kaXJuYW1lLCAnaW50ZWctaGFuZGxlcnMvZXNtLnRzJyksXG4gICAgICBidW5kbGluZzoge1xuICAgICAgICBmb3JtYXQ6IGxhbWJkYS5PdXRwdXRGb3JtYXQuRVNNLFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1sYW1iZGEtbm9kZWpzLWVzbScpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js deleted file mode 100644 index 1923e3650b358..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.function.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const os = require("os"); -const path = require("path"); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda-nodejs"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new lambda.NodejsFunction(this, 'ts-handler', { - entry: path.join(__dirname, 'integ-handlers/ts-handler.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - bundling: { - minify: true, - sourceMap: true, - sourceMapMode: lambda.SourceMapMode.BOTH, - }, - }); - new lambda.NodejsFunction(this, 'js-handler', { - entry: path.join(__dirname, 'integ-handlers/js-handler.js'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - }); - new lambda.NodejsFunction(this, 'ts-handler-vpc', { - entry: path.join(__dirname, 'integ-handlers/ts-handler.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - vpc: new aws_ec2_1.Vpc(this, 'Vpc'), - }); - new lambda.NodejsFunction(this, 'ts-handler-custom-handler-no-dots', { - entry: path.join(__dirname, 'integ-handlers/ts-handler.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - bundling: { - minify: true, - sourceMap: true, - sourceMapMode: lambda.SourceMapMode.BOTH, - }, - handler: 'handler', - }); - new lambda.NodejsFunction(this, 'ts-handler-custom-handler-dots', { - entry: path.join(__dirname, 'integ-handlers/ts-web-handler.ts'), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - bundling: { - minify: true, - sourceMap: true, - sourceMapMode: lambda.SourceMapMode.BOTH, - commandHooks: { - beforeBundling: () => [], - beforeInstall: () => [], - afterBundling: (_inputDir, outputDir) => [ - `${os.platform() === 'win32' ? 'copy' : 'cp'} ${path.join(__dirname, 'integ-handlers', 'ts-web-run.sh')} ${outputDir}`, - ], - }, - }, - handler: 'ts-web.run.sh', - layers: [ - aws_lambda_1.LayerVersion.fromLayerVersionArn(this, 'lambda-adapter-layer', `arn:aws:lambda:${aws_cdk_lib_1.Aws.REGION}:753240598075:layer:LambdaAdapterLayerX86:13`), - ], - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-lambda-nodejs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5mdW5jdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlCQUF5QjtBQUN6Qiw2QkFBNkI7QUFDN0IsaURBQTBDO0FBQzFDLHVEQUErRDtBQUMvRCw2Q0FBMEQ7QUFFMUQsd0RBQXdEO0FBRXhELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUU7WUFDNUMsS0FBSyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLDhCQUE4QixDQUFDO1lBQzNELE9BQU8sRUFBRSxvQkFBTyxDQUFDLFdBQVc7WUFDNUIsUUFBUSxFQUFFO2dCQUNSLE1BQU0sRUFBRSxJQUFJO2dCQUNaLFNBQVMsRUFBRSxJQUFJO2dCQUNmLGFBQWEsRUFBRSxNQUFNLENBQUMsYUFBYSxDQUFDLElBQUk7YUFDekM7U0FDRixDQUFDLENBQUM7UUFFSCxJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRTtZQUM1QyxLQUFLLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsOEJBQThCLENBQUM7WUFDM0QsT0F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b3JlQnVuZGxpbmc6ICgpID0+IFtdLFxuICAgICAgICAgIGJlZm9yZUluc3RhbGw6ICgpID0+IFtdLFxuICAgICAgICAgIGFmdGVyQnVuZGxpbmc6IChfaW5wdXREaXIsIG91dHB1dERpcikgPT4gW1xuICAgICAgICAgICAgYCR7b3MucGxhdGZvcm0oKSA9PT0gJ3dpbjMyJyA/ICdjb3B5JyA6ICdjcCd9ICR7cGF0aC5qb2luKFxuICAgICAgICAgICAgICBfX2Rpcm5hbWUsXG4gICAgICAgICAgICAgICdpbnRlZy1oYW5kbGVycycsXG4gICAgICAgICAgICAgICd0cy13ZWItcnVuLnNoJyxcbiAgICAgICAgICAgICl9ICR7b3V0cHV0RGlyfWAsXG4gICAgICAgICAgXSxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICBoYW5kbGVyOiAndHMtd2ViLnJ1bi5zaCcsXG4gICAgICBsYXllcnM6IFtcbiAgICAgICAgTGF5ZXJWZXJzaW9uLmZyb21MYXllclZlcnNpb25Bcm4oXG4gICAgICAgICAgdGhpcyxcbiAgICAgICAgICAnbGFtYmRhLWFkYXB0ZXItbGF5ZXInLFxuICAgICAgICAgIGBhcm46YXdzOmxhbWJkYToke0F3cy5SRUdJT059Ojc1MzI0MDU5ODA3NTpsYXllcjpMYW1iZGFBZGFwdGVyTGF5ZXJYODY6MTNgLFxuICAgICAgICApLFxuICAgICAgXSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1sYW1iZGEtbm9kZWpzJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.d.ts deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.js deleted file mode 100644 index 657318e3eed05..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/docker-lambda-handler/app.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* eslint-disable no-console */ -exports.handler = async (event) => { - console.log('hello world'); - console.log(`event ${JSON.stringify(event)}`); - return { - statusCode: 200, - }; -}; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXBwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQkFBK0I7QUFFL0IsT0FBTyxDQUFDLE9BQU8sR0FBRyxLQUFLLEVBQUUsS0FBVSxFQUFFLEVBQUU7SUFDckMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsQ0FBQztJQUMzQixPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDOUMsT0FBTztRQUNMLFVBQVUsRUFBRSxHQUFHO0tBQ2hCLENBQUM7QUFDSixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby1jb25zb2xlICovXG5cbmV4cG9ydHMuaGFuZGxlciA9IGFzeW5jIChldmVudDogYW55KSA9PiB7XG4gIGNvbnNvbGUubG9nKCdoZWxsbyB3b3JsZCcpO1xuICBjb25zb2xlLmxvZyhgZXZlbnQgJHtKU09OLnN0cmluZ2lmeShldmVudCl9YCk7XG4gIHJldHVybiB7XG4gICAgc3RhdHVzQ29kZTogMjAwLFxuICB9O1xufTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.js deleted file mode 100644 index 751e8b2617264..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.file.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - /// !show - new lambda.Function(this, 'MyLambda', { - code: lambda.Code.fromAsset(path.join(__dirname, 'handler.zip')), - handler: 'index.main', - runtime: lambda.Runtime.PYTHON_3_9, - }); - /// !hide - } -} -const app = new cdk.App(); -new TestStack(app, 'lambda-test-assets-file'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmZpbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hc3NldHMuZmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixtQ0FBbUM7QUFDbkMsaURBQWlEO0FBRWpELE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixTQUFTO1FBQ1QsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQ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uICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAnbGFtYmRhLXRlc3QtYXNzZXRzLWZpbGUnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.js deleted file mode 100644 index 39be3833f5647..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.assets.lit.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - /// !show - new lambda.Function(this, 'MyLambda', { - code: lambda.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')), - handler: 'index.main', - runtime: lambda.Runtime.PYTHON_3_9, - }); - /// !hide - } -} -const app = new cdk.App(); -new TestStack(app, 'lambda-test-assets'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFzc2V0cy5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsbUNBQ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9uKHRoaXMsICdNeUxhbWJkYScsIHtcbiAgICAgIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21Bc3NldChwYXRoLmpvaW4oX19kaXJuYW1lLCAnbXktbGFtYmRhLWhhbmRsZXInKSksXG4gICAgICBoYW5kbGVyOiAnaW5kZXgubWFpbicsXG4gICAgICBydW50aW1lOiBsYW1iZGEuUnVudGltZS5QWVRIT05fM185LFxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBUZXN0U3RhY2soYXBwLCAnbGFtYmRhLXRlc3QtYXNzZXRzJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.js deleted file mode 100644 index 5f4452599c099..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.autoscaling.lit.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const appscaling = require("aws-cdk-lib/aws-applicationautoscaling"); -const cdk = require("aws-cdk-lib"); -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const lambda = require("aws-cdk-lib/aws-lambda"); -/** -* Stack verification steps: -* aws application-autoscaling describe-scalable-targets --service-namespace lambda --resource-ids function::prod -* has a minCapacity of 3 and maxCapacity of 50 -*/ -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const fn = new lambda.Function(this, 'MyLambda', { - code: new lambda.InlineCode('exports.handler = async () => { console.log(\'hello world\'); };'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }); - const version = fn.currentVersion; - const alias = new lambda.Alias(this, 'Alias', { - aliasName: 'prod', - version, - }); - const scalingTarget = alias.addAutoScaling({ minCapacity: 3, maxCapacity: 50 }); - scalingTarget.scaleOnUtilization({ - utilizationTarget: 0.5, - }); - scalingTarget.scaleOnSchedule('ScaleUpInTheMorning', { - schedule: appscaling.Schedule.cron({ hour: '8', minute: '0' }), - minCapacity: 20, - }); - scalingTarget.scaleOnSchedule('ScaleDownAtNight', { - schedule: appscaling.Schedule.cron({ hour: '20', minute: '0' }), - maxCapacity: 20, - }); - new cdk.CfnOutput(this, 'FunctionName', { - value: fn.functionName, - }); - } -} -const app = new cdk.App(); -const stack = new TestStack(app, 'aws-lambda-autoscaling'); -// Changes the function description when the feature flag is present -// to validate the changed function hash. -cdk.Aspects.of(stack).add(new lambda.FunctionVersionUpgrade(cx_api_1.LAMBDA_RECOGNIZE_LAYER_VERSION)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXV0b3NjYWxpbmcubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXV0b3NjYWxpbmcubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscUVBQXFFO0FBQ3JFLG1DQUFtQztBQUNuQywrQ0FBb0U7QUFDcEUsaURBQWlEO0FBRWpEOzs7O0VBSUU7QUFDRixNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxFQUFFLEdBQUcsSUFBSSxNQ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uc2NhbGVPblNjaGVkdWxlKCdTY2FsZVVwSW5UaGVNb3JuaW5nJywge1xuICAgICAgc2NoZWR1bGU6IGFwcHNjYWxpbmcuU2NoZWR1bGUuY3Jvbih7IGhvdXI6ICc4JywgbWludXRlOiAnMCcgfSksXG4gICAgICBtaW5DYXBhY2l0eTogMjAsXG4gICAgfSk7XG5cbiAgICBzY2FsaW5nVGFyZ2V0LnNjYWxlT25TY2hlZHVsZSgnU2NhbGVEb3duQXROaWdodCcsIHtcbiAgICAgIHNjaGVkdWxlOiBhcHBzY2FsaW5nLlNjaGVkdWxlLmNyb24oeyBob3VyOiAnMjAnLCBtaW51dGU6ICcwJyB9KSxcbiAgICAgIG1heENhcGFjaXR5OiAyMCxcbiAgICB9KTtcblxuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdGdW5jdGlvbk5hbWUnLCB7XG4gICAgICB2YWx1ZTogZm4uZnVuY3Rpb25OYW1lLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFRlc3RTdGFjayhhcHAsICdhd3MtbGFtYmRhLWF1dG9zY2FsaW5nJyk7XG5cbi8vIENoYW5nZXMgdGhlIGZ1bmN0aW9uIGRlc2NyaXB0aW9uIHdoZW4gdGhlIGZlYXR1cmUgZmxhZyBpcyBwcmVzZW50XG4vLyB0byB2YWxpZGF0ZSB0aGUgY2hhbmdlZCBmdW5jdGlvbiBoYXNoLlxuY2RrLkFzcGVjdHMub2Yoc3RhY2spLmFkZChuZXcgbGFtYmRhLkZ1bmN0aW9uVmVyc2lvblVwZ3JhZGUoTEFNQkRBX1JFQ09HTklaRV9MQVlFUl9WRVJTSU9OKSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.js deleted file mode 100644 index dacbef53491f5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.docker-opts.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const lambda = require("aws-cdk-lib/aws-lambda"); -/** - * Stack verification steps: - * * aws cloudformation describe-stacks --stack-name cdk-integ-lambda-bundling-docker-bundling-opts --query Stacks[0].Outputs[0].OutputValue - * * aws lambda invoke --function-name response.json - * * cat response.json - * The last command should show '200' - */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const assetPath = path.join(__dirname, 'python-lambda-handler'); - const fn = new lambda.Function(this, 'Function', { - code: lambda.Code.fromAsset(assetPath, { - bundling: { - image: lambda.Runtime.PYTHON_3_9.bundlingImage, - command: [ - 'bash', '-c', [ - 'cp -au . /asset-output', - 'cd /asset-output', - 'pip install -r requirements.txt -t .', - ].join(' && '), - ], - network: 'host', - }, - }), - runtime: lambda.Runtime.PYTHON_3_9, - handler: 'index.handler', - }); - this.functionName = fn.functionName; - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'cdk-integ-lambda-bundling-docker-bundling-opts'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'DockerOptsBundling', { - testCases: [stack], - stackUpdateWorkflow: false, -}); -const invoke = integ.assertions.invokeFunction({ - functionName: stack.functionName, -}); -invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: '200', -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVuZGxpbmcuZG9ja2VyLW9wdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idW5kbGluZy5kb2NrZXItb3B0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qiw2Q0FBcUQ7QUFDckQsa0VBQXVFO0FBRXZFLGlEQUFpRDtBQUVqRDs7Ozs7O0dBTUc7QUFDSCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUUzQixZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLHVCQUF1QixDQUFDLENBQUM7UUFDaEUsTUFBTSxFQUFFLEdBQUcsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDL0MsSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLFNBQVMsRUFBRTtnQkFDckMsUUFBUSxFQUFFO29CQUNSLEtBQUssRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxhQUF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NlLFxufSk7XG5cbmNvbnN0IGludm9rZSA9IGludGVnLmFzc2VydGlvbnMuaW52b2tlRnVuY3Rpb24oe1xuICBmdW5jdGlvbk5hbWU6IHN0YWNrLmZ1bmN0aW9uTmFtZSxcbn0pO1xuaW52b2tlLmV4cGVjdChFeHBlY3RlZFJlc3VsdC5vYmplY3RMaWtlKHtcbiAgUGF5bG9hZDogJzIwMCcsXG59KSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.js deleted file mode 100644 index 720d02c193ad3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.bundling.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const lambda = require("aws-cdk-lib/aws-lambda"); -/** - * Stack verification steps: - * * aws cloudformation describe-stacks --stack-name cdk-integ-lambda-bundling --query Stacks[0].Outputs[0].OutputValue - * * aws lambda invoke --function-name response.json - * * cat response.json - * The last command should show '200' - */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const assetPath = path.join(__dirname, 'python-lambda-handler'); - const fn = new lambda.Function(this, 'Function', { - code: lambda.Code.fromAsset(assetPath, { - bundling: { - image: lambda.Runtime.PYTHON_3_9.bundlingImage, - command: [ - 'bash', '-c', [ - 'cp -au . /asset-output', - 'cd /asset-output', - 'pip install -r requirements.txt -t .', - ].join(' && '), - ], - }, - }), - runtime: lambda.Runtime.PYTHON_3_9, - handler: 'index.handler', - }); - this.functionName = fn.functionName; - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'cdk-integ-lambda-bundling'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'Bundling', { - testCases: [stack], - stackUpdateWorkflow: false, -}); -const invoke = integ.assertions.invokeFunction({ - functionName: stack.functionName, -}); -invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: '200', -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVuZGxpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idW5kbGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qiw2Q0FBcUQ7QUFDckQsa0VBQXVFO0FBRXZFLGlEQUFpRDtBQUVqRDs7Ozs7O0dBTUc7QUFDSCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUUzQixZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLHVCQUF1QixDQUFDLENBQUM7UUFDaEUsTUFBTSxFQUFFLEdBQUcsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDL0MsSUFBSSxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLFNBQVMsRUFBRTtnQkFDckMsUUFBUSxFQUFFO29CQUNSLEtBQUssRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxhQUFhO29CQUM5QyxPQUFPLEVBQUU7d0JBQ1AsTUFBTSxFQUFFLElBQUksRUFBRTs0QkFDWix3QkFBd0I7NEJBQ3hCLGtCQUFrQjs0QkFDbEIsc0NBQXNDO3lCQUN2QyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUM7cUJBQ2Y7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5kOiBbXG4gICAgICAgICAgICAnYmFzaCcsICctYycsIFtcbiAgICAgICAgICAgICAgJ2NwIC1hdSAuIC9hc3NldC1vdXRwdXQnLFxuICAgICAgICAgICAgICAnY2QgL2Fzc2V0LW91dHB1dCcsXG4gICAgICAgICAgICAgICdwaXAgaW5zdGFsbCAtciByZXF1aXJlbWVudHMudHh0IC10IC4nLFxuICAgICAgICAgICAgXS5qb2luKCcgJiYgJyksXG4gICAgICAgICAgXSxcbiAgICAgICAgfSxcbiAgICAgIH0pLFxuICAgICAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuUFlUSE9OXzNfOSxcbiAgICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgICB9KTtcblxuICAgIHRoaXMuZnVuY3Rpb25OYW1lID0gZm4uZnVuY3Rpb25OYW1lO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctbGFtYmRhLWJ1bmRsaW5nJyk7XG5cbmNvbnN0IGludGVnID0gbmV3IEludGVnVGVzdChhcHAsICdCdW5kbGluZycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBzdGFja1VwZGF0ZVdvcmtmbG93OiBmYWxzZSxcbn0pO1xuXG5jb25zdCBpbnZva2UgPSBpbnRlZy5hc3NlcnRpb25zLmludm9rZUZ1bmN0aW9uKHtcbiAgZnVuY3Rpb25OYW1lOiBzdGFjay5mdW5jdGlvbk5hbWUsXG59KTtcbmludm9rZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIFBheWxvYWQ6ICcyMDAnLFxufSkpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.js deleted file mode 100644 index da35e907cab3e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.current-version.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const lambda = require("aws-cdk-lib/aws-lambda"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const handler = new lambda.Function(this, 'MyLambda', { - code: lambda.Code.fromAsset(path.join(__dirname, 'layer-code')), - handler: 'index.main', - runtime: lambda.Runtime.PYTHON_3_8, - currentVersionOptions: { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.RETAIN, - retryAttempts: 1, - }, - }); - handler.currentVersion.addAlias('live'); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'lambda-test-current-version'); -// Changes the function description when the feature flag is present -// to validate the changed function hash. -aws_cdk_lib_1.Aspects.of(stack).add(new lambda.FunctionVersionUpgrade(cx_api_1.LAMBDA_RECOGNIZE_LAYER_VERSION)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3VycmVudC12ZXJzaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY3VycmVudC12ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDZDQUFpRTtBQUNqRSwrQ0FBb0U7QUFDcEUsaURBQWlEO0FBRWpELE1BQU0s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gZmxhZyBpcyBwcmVzZW50XG4vLyB0byB2YWxpZGF0ZSB0aGUgY2hhbmdlZCBmdW5jdGlvbiBoYXNoLlxuQXNwZWN0cy5vZihzdGFjaykuYWRkKG5ldyBsYW1iZGEuRnVuY3Rpb25WZXJzaW9uVXBncmFkZShMQU1CREFfUkVDT0dOSVpFX0xBWUVSX1ZFUlNJT04pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.js deleted file mode 100644 index b94d87691067b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-adot.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -class StackUnderTest extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new aws_lambda_1.Function(this, 'MyFunc1', { - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: aws_lambda_1.Code.fromInline(`exports.handler = ${handler.toString()}`), - architecture: props.architecture, - adotInstrumentation: { - layerVersion: aws_lambda_1.AdotLayerVersion.fromJavaScriptSdkLayerVersion(aws_lambda_1.AdotLambdaLayerJavaScriptSdkVersion.LATEST), - execWrapper: aws_lambda_1.AdotLambdaExecWrapper.REGULAR_HANDLER, - }, - }); - new aws_lambda_1.Function(this, 'MyFunc2', { - runtime: aws_lambda_1.Runtime.PYTHON_3_9, - handler: 'index.handler', - code: aws_lambda_1.Code.fromInline('def handler(event, context): pass'), - adotInstrumentation: { - layerVersion: aws_lambda_1.AdotLayerVersion.fromPythonSdkLayerVersion(aws_lambda_1.AdotLambdaLayerPythonSdkVersion.LATEST), - execWrapper: aws_lambda_1.AdotLambdaExecWrapper.REGULAR_HANDLER, - }, - }); - new aws_lambda_1.Function(this, 'MyFunc3', { - runtime: aws_lambda_1.Runtime.PYTHON_3_9, - handler: 'index.handler', - code: aws_lambda_1.Code.fromInline('def handler(event, context): pass'), - adotInstrumentation: { - layerVersion: aws_lambda_1.AdotLayerVersion.fromJavaSdkLayerVersion(aws_lambda_1.AdotLambdaLayerJavaSdkVersion.LATEST), - execWrapper: aws_lambda_1.AdotLambdaExecWrapper.REGULAR_HANDLER, - }, - }); - new aws_lambda_1.Function(this, 'MyFunc4', { - runtime: aws_lambda_1.Runtime.PYTHON_3_9, - handler: 'index.handler', - code: aws_lambda_1.Code.fromInline('def handler(event, context): pass'), - adotInstrumentation: { - layerVersion: aws_lambda_1.AdotLayerVersion.fromJavaAutoInstrumentationLayerVersion(aws_lambda_1.AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST), - execWrapper: aws_lambda_1.AdotLambdaExecWrapper.REGULAR_HANDLER, - }, - }); - new aws_lambda_1.Function(this, 'MyFunc5', { - runtime: aws_lambda_1.Runtime.PYTHON_3_9, - handler: 'index.handler', - code: aws_lambda_1.Code.fromInline('def handler(event, context): pass'), - adotInstrumentation: { - layerVersion: aws_lambda_1.AdotLayerVersion.fromGenericLayerVersion(aws_lambda_1.AdotLambdaLayerGenericVersion.LATEST), - execWrapper: aws_lambda_1.AdotLambdaExecWrapper.REGULAR_HANDLER, - }, - }); - } -} -/* eslint-disable no-console */ -function handler(event, _context, callback) { - console.log(JSON.stringify(event, undefined, 2)); - return callback(); -} -new integ_tests_alpha_1.IntegTest(app, 'IntegTest', { - testCases: [ - new StackUnderTest(app, 'Stack1', { - architecture: aws_lambda_1.Architecture.ARM_64, - }), - new StackUnderTest(app, 'Stack2', { - architecture: aws_lambda_1.Architecture.X86_64, - }), - ], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWFkb3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sYW1iZGEtYWRvdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFFdkQsNkNBQWdEO0FBQ2hELHVEQVlnQztBQUVoQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQU0xQixNQUFNLGNBQWUsU0FBUSxtQkFBSztJQUNoQyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTBCO1FBQ2xFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLElBQUkscUJBQVEsQ0FBQyxJQUFJLEVBQUUsU0FBUyxFQUFFO1lBQzVCLE9BQU8sRUFBRSxvQkFBTyxDQUFDLFdBQVc7WUFDNUIsT0FBTyxFQUFFLGVBQWU7WUFDeEIsSUFBSSxFQUFFLGlCQUFJLENBQUMsVUFBVSxDQUFDLHFCQUFxQixPQUFPLENBQUMsUUFBUSxFQUFFLEVBQUUsQ0FBQztZQUNoRSxZQUFZLEVBQUUsS0FBSyxDQUFDLFlBQVk7WUFDaEMsbUJBQW1CLEVBQUU7Z0JBQ25CLFlBQVksRUFBRSw2QkFBZ0IsQ0FBQyw2QkFBNkIsQ0FBQyxnREFBbUMsQ0FBQyxNQUFNLENBQUM7Z0JBQ3hHLFdBQVcs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B7XG4gICAgICBhcmNoaXRlY3R1cmU6IEFyY2hpdGVjdHVyZS5YODZfNjQsXG4gICAgfSksXG4gIF0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.js deleted file mode 100644 index 152c2acc9fa1a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-customize-roles.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-lambda-customize-roles'); -iam.Role.customizeRoles(stack, { - usePrecreatedRoles: { - 'integ-lambda-customize-roles/MyLambda/ServiceRole': 'precreated-role', - }, -}); -const fn = new lambda.Function(stack, 'MyLambda', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const bucket = new aws_s3_1.Bucket(stack, 'Bucket'); -bucket.grantRead(fn); -/** - * This test will not deploy and is only used to provide an example - * of the synthesized iam policy report - */ -new integ_tests_alpha_1.IntegTest(app, 'IntegTest', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - enabled: false, - },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XI6ICdpbmRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG59KTtcblxuY29uc3QgYnVja2V0ID0gbmV3IEJ1Y2tldChzdGFjaywgJ0J1Y2tldCcpO1xuYnVja2V0LmdyYW50UmVhZChmbik7XG5cbi8qKlxuICogVGhpcyB0ZXN0IHdpbGwgbm90IGRlcGxveSBhbmQgaXMgb25seSB1c2VkIHRvIHByb3ZpZGUgYW4gZXhhbXBsZVxuICogb2YgdGhlIHN5bnRoZXNpemVkIGlhbSBwb2xpY3kgcmVwb3J0XG4gKi9cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnSW50ZWdUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGNka0NvbW1hbmRPcHRpb25zOiB7XG4gICAgZGVwbG95OiB7XG4gICAgICBlbmFibGVkOiBmYWxzZSxcbiAgICB9LFxuICAgIGRlc3Ryb3k6IHtcbiAgICAgIGVuYWJsZWQ6IGZhbHNlLFxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.js deleted file mode 100644 index 086f015004e07..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda-insights-mapping.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'stack'); -new lambda.Function(stack, 'MyFunc1', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_54_0, -}); -new lambda.Function(stack, 'MyFunc2', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_86_0, -}); -new lambda.Function(stack, 'MyFunc3', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_89_0, -}); -new lambda.Function(stack, 'MyFunc4', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_98_0, -}); -new lambda.Function(stack, 'MyFunc5', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_119_0, -}); -new lambda.Function(stack, 'MyFunc6', { - runtime: lambda.Runtime.NODEJS_14_X, - architecture: lambda.Architecture.ARM_64, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_119_0, -}); -app.synth(); -/* eslint-disable no-console */ -function handler(event, _context, callback) { - console.log(JSON.stringify(event, undefined, 2)); - return callback(); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLWluc2lnaHRzLW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naWZ5KGV2ZW50LCB1bmRlZmluZWQsIDIpKTtcbiAgcmV0dXJuIGNhbGxiYWNrKCk7XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.js deleted file mode 100644 index daca52a72ee9b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker-arm64.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'lambda-ecr-docker-arm64'); -new aws_lambda_1.DockerImageFunction(stack, 'MyLambda', { - code: aws_lambda_1.DockerImageCode.fromImageAsset(path.join(__dirname, 'docker-arm64-handler')), - architecture: aws_lambda_1.Architecture.ARM_64, -}); -new integ.IntegTest(app, 'lambda-docker-arm64', { - testCases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lLCBEb2NrZXJJbWFnZUNvZGUsIERvY2tlckltYWdlRnVuY3Rpb24gfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtbGFtYmRhJztcblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsICdsYW1iZGEtZWNyLWRvY2tlci1hcm02NCcpO1xuXG5uZXcgRG9ja2VySW1hZ2VGdW5jdGlvbihzdGFjaywgJ015TGFtYmRhJywge1xuICBjb2RlOiBEb2NrZXJJbWFnZUNvZGUuZnJvbUltYWdlQXNzZXQocGF0aC5qb2luKF9fZGlybmFtZSwgJ2RvY2tlci1hcm02NC1oYW5kbGVyJykpLFxuICBhcmNoaXRlY3R1cmU6IEFyY2hpdGVjdHVyZS5BUk1fNjQsXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdsYW1iZGEtZG9ja2VyLWFybTY0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.js deleted file mode 100644 index d3ee02ca6e6f6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.docker.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - this.fn = new aws_lambda_1.DockerImageFunction(this, 'MyLambda', { - code: aws_lambda_1.DockerImageCode.fromImageAsset(path.join(__dirname, 'docker-lambda-handler')), - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testStack = new TestStack(app, 'lambda-ecr-docker'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'integ', { - testCases: [testStack], -}); -const invoke = integ.assertions.invokeFunction({ - functionName: testStack.fn.functionName, -}); -invoke.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Payload: integ_tests_alpha_1.Match.serializedJson({ statusCode: 200 }), -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLmRvY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWJkYS5kb2NrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsNkNBQXlDO0FBQ3pDLGtFQUE4RTtBQUM5RSx1REFBd0Y7QUFFeEYsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFFM0IsWUFBWSxLQUFVLEVBQUUsRUFBVTtRQUNoQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxnQ0FBbUIsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ2xELElBQUksRUFBRSw0QkFBZSxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSx1QkFBdUIsQ0FBQyxDQUFDO1NBQ3BGLENBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjtBQUVELE1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aW9uXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBBcHAsIGlkOiBzdHJpbmcpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgdGhpcy5mbiA9IG5ldyBEb2NrZXJJbWFnZUZ1bmN0aW9uKHRoaXMsICdNeUxhbWJkYScsIHtcbiAgICAgIGNvZGU6IERvY2tlckltYWdlQ29kZS5mcm9tSW1hZ2VBc3NldChwYXRoLmpvaW4oX19kaXJuYW1lLCAnZG9ja2VyLWxhbWJkYS1oYW5kbGVyJykpLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RTdGFjayA9IG5ldyBUZXN0U3RhY2soYXBwLCAnbGFtYmRhLWVjci1kb2NrZXInKTtcbmNvbnN0IGludGVnID0gbmV3IEludGVnVGVzdChhcHAsICdpbnRlZycsIHtcbiAgdGVzdENhc2VzOiBbdGVzdFN0YWNrXSxcbn0pO1xuXG5jb25zdCBpbnZva2UgPSBpbnRlZy5hc3NlcnRpb25zLmludm9rZUZ1bmN0aW9uKHtcbiAgZnVuY3Rpb25OYW1lOiB0ZXN0U3RhY2suZm4uZnVuY3Rpb25OYW1lLFxufSk7XG5cbmludm9rZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIFBheWxvYWQ6IE1hdGNoLnNlcmlhbGl6ZWRKc29uKHsgc3RhdHVzQ29kZTogMjAwIH0pLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.js deleted file mode 100644 index d5f34f0a1fcd6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.filesystem.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const efs = require("aws-cdk-lib/aws-efs"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-lambda-1'); -const vpc = new ec2.Vpc(stack, 'Vpc', { - maxAzs: 3, - natGateways: 1, -}); -const fileSystem = new efs.FileSystem(stack, 'Efs', { - vpc, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -// create an access point and expose the root of the filesystem -const accessPoint = fileSystem.addAccessPoint('AccessPoint', { - createAcl: { - ownerGid: '1001', - ownerUid: '1001', - permissions: '750', - }, - path: '/export/lambda', - posixUser: { - gid: '1001', - uid: '1001', - }, -}); -const lambdaCode = new lambda.InlineCode(` -import json -import os -import string -import random -import datetime - -MSG_FILE_PATH = '/mnt/msg/content' - -def randomString(stringLength=10): - letters = string.ascii_lowercase - return ''.join(random.choice(letters) for i in range(stringLength)) - -def lambda_handler(event, context): - with open(MSG_FILE_PATH, 'a') as f: - f.write(f"{datetime.datetime.utcnow():%Y-%m-%d-%H:%M:%S} " + randomString(5) + ' ') - - file = open(MSG_FILE_PATH, "r") - file_content = file.read() - file.close() - - return { - 'statusCode': 200, - 'body': str(file_content) - } -`); -// this function will mount the access point to '/mnt/msg' and write content onto /mnt/msg/content -const lambda1 = new lambda.Function(stack, 'MyLambda', { - code: lambdaCode, - handler: 'index.lambda_handler', - runtime: lambda.Runtime.PYTHON_3_7, - vpc, - filesystem: lambda.FileSystem.fromEfsAccessPoint(accessPoint, '/mnt/msg'), -}); -let importedFileSystem = efs.FileSystem.fromFileSystemAttributes(stack, 'fileSystemImported', { - fileSystemId: fileSystem.fileSystemId, - securityGroup: ec2.SecurityGroup.fromSecurityGroupId(stack, 'securityGroup', fileSystem.connections.securityGroups[0].securityGroupId), -}); -let importedAccessPoint = efs.AccessPoint.fromAccessPointAttributes(stack, 'AccessPointImported', { - accessPointId: accessPoint.accessPointId, - fileSystem: importedFileSystem, -}); -// this function will mount the access point to '/mnt/msg' and write content onto /mnt/msg/content -const lambda2 = new lambda.Function(stack, 'MyLambda2', { - code: lambdaCode, - handler: 'index.lambda_handler', - runtime: lambda.Runtime.PYTHON_3_7, - vpc, - filesystem: lambda.FileSystem.fromEfsAccessPoint(importedAccessPoint, '/mnt/msg'), -}); -// lambda2 doesn't have dependencies on MountTargets because the fileSystem is imported. -// Ideally, lambda2 would be deployed in another stack but integ doesn't support it. -// We are adding a dependency on the first lambda to simulate this situation. -lambda2.node.addDependency(lambda1); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLmZpbGVzeXN0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sYW1iZGEuZmlsZXN5c3RlbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUVqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGtCQUFrQixDQUFDLENBQUM7QUFHckQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUU7SUFDcEMs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GU6IGxhbWJkYUNvZGUsXG4gIGhhbmRsZXI6ICdpbmRleC5sYW1iZGFfaGFuZGxlcicsXG4gIHJ1bnRpbWU6IGxhbWJkYS5SdW50aW1lLlBZVEhPTl8zXzcsXG4gIHZwYyxcbiAgZmlsZXN5c3RlbTogbGFtYmRhLkZpbGVTeXN0ZW0uZnJvbUVmc0FjY2Vzc1BvaW50KFxuICAgIGltcG9ydGVkQWNjZXNzUG9pbnQsXG4gICAgJy9tbnQvbXNnJyxcbiAgKSxcbn0pO1xuXG4vLyBsYW1iZGEyIGRvZXNuJ3QgaGF2ZSBkZXBlbmRlbmNpZXMgb24gTW91bnRUYXJnZXRzIGJlY2F1c2UgdGhlIGZpbGVTeXN0ZW0gaXMgaW1wb3J0ZWQuXG4vLyBJZGVhbGx5LCBsYW1iZGEyIHdvdWxkIGJlIGRlcGxveWVkIGluIGFub3RoZXIgc3RhY2sgYnV0IGludGVnIGRvZXNuJ3Qgc3VwcG9ydCBpdC5cbi8vIFdlIGFyZSBhZGRpbmcgYSBkZXBlbmRlbmN5IG9uIHRoZSBmaXJzdCBsYW1iZGEgdG8gc2ltdWxhdGUgdGhpcyBzaXR1YXRpb24uXG5sYW1iZGEyLm5vZGUuYWRkRGVwZW5kZW5jeShsYW1iZGExKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.js deleted file mode 100644 index 1185f42ff20f5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-lambda-1'); -const fn = new lambda.Function(stack, 'MyLambda', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -fn.addToRolePolicy(new iam.PolicyStatement({ - resources: ['*'], - actions: ['*'], -})); -fn.addFunctionUrl(); -const version = fn.currentVersion; -const alias = new lambda.Alias(stack, 'Alias', { - aliasName: 'prod', - version, -}); -alias.addPermission('AliasPermission', { - principal: new iam.ServicePrincipal('cloudformation.amazonaws.com'), -}); -alias.addFunctionUrl({ - authType: lambda.FunctionUrlAuthType.NONE, -}); -// Changes the function description when the feature flag is present -// to validate the changed function hash. -cdk.Aspects.of(stack).add(new lambda.FunctionVersionUpgrade(cx_api_1.LAMBDA_RECOGNIZE_LAYER_VERSION)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtYmRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywrQ0FBb0U7QUFDcEUsaURBQWlEO0FBRWpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsa0JBQWtCLENBQUMsQ0FBQztBQUVyRCxNQUFNLEVBQUUsR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUNoRCxJQUFJLEVBQUUsSUFBSSxNQUFNLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQztJQUNsQyxPQUFPLEVBQUUsZUFBZTtJQUN4QixPQUFPLEVBQUUsTUFBTSxDQUFDLE9BQU8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hLkZ1bmN0aW9uVXJsQXV0aFR5cGUuTk9ORSxcbn0pO1xuXG4vLyBDaGFuZ2VzIHRoZSBmdW5jdGlvbiBkZXNjcmlwdGlvbiB3aGVuIHRoZSBmZWF0dXJlIGZsYWcgaXMgcHJlc2VudFxuLy8gdG8gdmFsaWRhdGUgdGhlIGNoYW5nZWQgZnVuY3Rpb24gaGFzaC5cbmNkay5Bc3BlY3RzLm9mKHN0YWNrKS5hZGQobmV3IGxhbWJkYS5GdW5jdGlvblZlcnNpb25VcGdyYWRlKExBTUJEQV9SRUNPR05JWkVfTEFZRVJfVkVSU0lPTikpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.js deleted file mode 100644 index 313faad08903e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda.prov.concurrent.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-lambda-pce-1'); -const lambdaCode = 'exports.handler = async function(event, context) { ' + - 'console.log("Hello from CDK! with #type# Provisioned Concurrent Exec!");}'; -const pce = 5; -// Integration test for provisioned concurrent execution via Alias -const fn = new lambda.Function(stack, 'MyLambdaAliasPCE', { - code: new lambda.InlineCode(lambdaCode.replace('#type#', 'Alias')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -fn.addToRolePolicy(new iam.PolicyStatement({ - resources: ['*'], - actions: ['*'], -})); -const version = fn.currentVersion; -const alias = new lambda.Alias(stack, 'Alias', { - aliasName: 'prod', - version, - provisionedConcurrentExecutions: pce, -}); -alias.addPermission('AliasPermission', { - principal: new iam.ServicePrincipal('cloudformation.amazonaws.com'), -}); -// Integration test for provisioned concurrent execution via Version -const fnVersionPCE = new lambda.Function(stack, 'MyLambdaVersionPCE', { - code: new lambda.InlineCode(lambdaCode.replace('#type#', 'Version')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - currentVersionOptions: { - provisionedConcurrentExecutions: pce, - }, -}); -fnVersionPCE.addToRolePolicy(new iam.PolicyStatement({ - resources: ['*'], - actions: ['*'], -})); -const version2 = fnVersionPCE.currentVersion; -const alias2 = new lambda.Alias(stack, 'Alias2', { - aliasName: 'prod', - version: version2, -}); -alias2.addPermission('AliasPermission2', { - principal: new iam.ServicePrincipal('cloudformation.amazonaws.com'), -}); -// Changes the function description when the feature flag is present -// to validate the changed function hash. -cdk.Aspects.of(stack).add(new lambda.FunctionVersionUpgrade(cx_api_1.LAMBDA_RECOGNIZE_LAYER_VERSION)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLnByb3YuY29uY3VycmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxhbWJkYS5wcm92LmNvbmN1cnJlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLCtDQUFvRTtBQUNwRSxpREFBaUQ7QUFFakQsTUFBTSxHQUF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gIGN1cnJlbnRWZXJzaW9uT3B0aW9uczoge1xuICAgIHByb3Zpc2lvbmVkQ29uY3VycmVudEV4ZWN1dGlvbnM6IHBjZSxcbiAgfSxcbn0pO1xuXG5mblZlcnNpb25QQ0UuYWRkVG9Sb2xlUG9saWN5KG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgcmVzb3VyY2VzOiBbJyonXSxcbiAgYWN0aW9uczogWycqJ10sXG59KSk7XG5cbmNvbnN0IHZlcnNpb24yID0gZm5WZXJzaW9uUENFLmN1cnJlbnRWZXJzaW9uO1xuXG5jb25zdCBhbGlhczIgPSBuZXcgbGFtYmRhLkFsaWFzKHN0YWNrLCAnQWxpYXMyJywge1xuICBhbGlhc05hbWU6ICdwcm9kJyxcbiAgdmVyc2lvbjogdmVyc2lvbjIsXG59KTtcblxuYWxpYXMyLmFkZFBlcm1pc3Npb24oJ0FsaWFzUGVybWlzc2lvbjInLCB7XG4gIHByaW5jaXBhbDogbmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdjbG91ZGZvcm1hdGlvbi5hbWF6b25hd3MuY29tJyksXG59KTtcblxuLy8gQ2hhbmdlcyB0aGUgZnVuY3Rpb24gZGVzY3JpcHRpb24gd2hlbiB0aGUgZmVhdHVyZSBmbGFnIGlzIHByZXNlbnRcbi8vIHRvIHZhbGlkYXRlIHRoZSBjaGFuZ2VkIGZ1bmN0aW9uIGhhc2guXG5jZGsuQXNwZWN0cy5vZihzdGFjaykuYWRkKG5ldyBsYW1iZGEuRnVuY3Rpb25WZXJzaW9uVXBncmFkZShMQU1CREFfUkVDT0dOSVpFX0xBWUVSX1ZFUlNJT04pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.js deleted file mode 100644 index b46f626d6610e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.layer-version.lit.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-layer-version-1'); -// Just for the example - granting to the current account is not necessary. -const awsAccountId = stack.account; -/// !show -const layer = new lambda.LayerVersion(stack, 'MyLayer', { - code: lambda.Code.fromAsset(path.join(__dirname, 'layer-code')), - compatibleRuntimes: [lambda.Runtime.NODEJS_14_X], - license: 'Apache-2.0', - description: 'A layer to test the L2 construct', -}); -// To grant usage by other AWS accounts -layer.addPermission('remote-account-grant', { accountId: awsAccountId }); -// To grant usage to all accounts in some AWS Ogranization -// layer.grantUsage({ accountId: '*', organizationId }); -new lambda.Function(stack, 'MyLayeredLambda', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - layers: [layer], -}); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGF5ZXItdmVyc2lvbi5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5sYXllci12ZXJzaW9uLmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixtQ0FBbUM7QUFDbkMsaURBQWlEO0FBRWpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FB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pemF0aW9uXG4vLyBsYXllci5ncmFudFVzYWdlKHsgYWNjb3VudElkOiAnKicsIG9yZ2FuaXphdGlvbklkIH0pO1xuXG5uZXcgbGFtYmRhLkZ1bmN0aW9uKHN0YWNrLCAnTXlMYXllcmVkTGFtYmRhJywge1xuICBjb2RlOiBuZXcgbGFtYmRhLklubGluZUNvZGUoJ2ZvbycpLFxuICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gIHJ1bnRpbWU6IGxhbWJkYS5SdW50aW1lLk5PREVKU18xNF9YLFxuICBsYXllcnM6IFtsYXllcl0sXG59KTtcbi8vLyAhaGlkZVxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.js deleted file mode 100644 index 8adbc484bb1c6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.log-retention.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const logs = require("aws-cdk-lib/aws-logs"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-lambda-log-retention'); -new lambda.Function(stack, 'OneWeek', { - code: new lambda.InlineCode('exports.handler = (event) => console.log(JSON.stringify(event));'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - logRetention: logs.RetentionDays.ONE_WEEK, -}); -new lambda.Function(stack, 'OneMonth', { - code: new lambda.InlineCode('exports.handler = (event) => console.log(JSON.stringify(event));'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - logRetention: logs.RetentionDays.ONE_MONTH, -}); -new lambda.Function(stack, 'OneYear', { - code: new lambda.InlineCode('exports.handler = (event) => console.log(JSON.stringify(event));'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - logRetention: logs.RetentionDays.ONE_YEAR, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9nLXJldGVudGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxvZy1yZXRlbnRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBNkM7QUFDN0MsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUVqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDhCQUE4QixDQUFDLENBQUM7QUFFakUsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUU7SUFDcEMsSUFBSSxFQUFFLElBQUksTUFBTSxDQUFDLFVBQVUsQ0FBQyxrRUFBa0UsQ0FBQztJQUMvRixPQUFPLEVBQUUsZUFBZTtJQUN4QixPQUFPLEVBQUUsTUFBTSxDQUFDLE9BQU8sQ0FBQyxXQUFXO0lBQ25DLFlBQVksRUFBRSxJQUFJLENBQUMsYUFBYSxDQUFDLFFBQVE7Q0FDMUMsQ0FBQyxDQUFDO0FBRUgsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDckMsSUFBSSxFQUFFLElBQUksTUFBT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JyksXG4gIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gIGxvZ1JldGVudGlvbjogbG9ncy5SZXRlbnRpb25EYXlzLk9ORV9XRUVLLFxufSk7XG5cbm5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssICdPbmVNb250aCcsIHtcbiAgY29kZTogbmV3IGxhbWJkYS5JbmxpbmVDb2RlKCdleHBvcnRzLmhhbmRsZXIgPSAoZXZlbnQpID0+IGNvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KGV2ZW50KSk7JyksXG4gIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gIGxvZ1JldGVudGlvbjogbG9ncy5SZXRlbnRpb25EYXlzLk9ORV9NT05USCxcbn0pO1xuXG5uZXcgbGFtYmRhLkZ1bmN0aW9uKHN0YWNrLCAnT25lWWVhcicsIHtcbiAgY29kZTogbmV3IGxhbWJkYS5JbmxpbmVDb2RlKCdleHBvcnRzLmhhbmRsZXIgPSAoZXZlbnQpID0+IGNvbnNvbGUubG9nKEpTT04uc3RyaW5naWZ5KGV2ZW50KSk7JyksXG4gIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gIGxvZ1JldGVudGlvbjogbG9ncy5SZXRlbnRpb25EYXlzLk9ORV9ZRUFSLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.js deleted file mode 100644 index c46359adc5166..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.permissions.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-permissions'); -const fn = new lambda.Function(stack, 'MyLambda', { - code: new lambda.InlineCode('foo'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -fn.grantInvoke(new iam.AnyPrincipal().inOrganization('o-yyyyyyyyyy')); -fn.grantInvoke(new iam.OrganizationPrincipal('o-xxxxxxxxxx')); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGVybWlzc2lvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wZXJtaXNzaW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsaURBQWlEO0FBRWpELE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsb0JBQW9CLENBQUMsQ0FBQztBQUV2RCxNQUFNLEVBQUUsR0FBRyxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUNoRCxJQUFJLEVBQUUsSUFBSSxNQUFNLENBQUMs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KSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.js deleted file mode 100644 index 00ac4504347bf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime-management.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-lambda-runtime-management'); -new aws_lambda_1.Function(stack, 'Lambda', { - code: new aws_lambda_1.InlineCode('foo'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_18_X, - runtimeManagementMode: aws_lambda_1.RuntimeManagementMode.AUTO, -}); -new integ.IntegTest(app, 'lambda-runtime-management', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucnVudGltZS1tYW5hZ2VtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucnVudGltZS1tYW5hZ2VtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQXlDO0FBQ3pDLG9EQUFvRDtBQUNwRCx1REFBOEY7QUFFOUYsTUFBTSxHQUFHLEdB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xlcjogJ2luZGV4LmhhbmRsZXInLFxuICBydW50aW1lOiBSdW50aW1lLk5PREVKU18xOF9YLFxuICBydW50aW1lTWFuYWdlbWVudE1vZGU6IFJ1bnRpbWVNYW5hZ2VtZW50TW9kZS5BVVRPLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnbGFtYmRhLXJ1bnRpbWUtbWFuYWdlbWVudCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js deleted file mode 100644 index ffc8859999159..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -// CloudFormation supports InlineCode only for a subset of runtimes. This integration test -// is used to verify that the ones marked in the CDK are in fact supported by CloudFormation. -// Running `cdk deploy` on this stack will confirm if all the runtimes here are supported. -// -// To verify that the lambda function works correctly, use the function names that are part -// of the stack output (printed on the console at the end of 'cdk deploy') and run the command - -// aws lambda invoke --function-name -// -// If successful, the output will contain "success" -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-lambda-runtime-inlinecode'); -const python37 = new aws_lambda_1.Function(stack, 'PYTHON_3_7', { - code: new aws_lambda_1.InlineCode('def handler(event, context):\n return "success"'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.PYTHON_3_7, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'PYTHON_3_7-functionName', { value: python37.functionName }); -const python38 = new aws_lambda_1.Function(stack, 'PYTHON_3_8', { - code: new aws_lambda_1.InlineCode('def handler(event, context):\n return "success"'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.PYTHON_3_8, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'PYTHON_3_8-functionName', { value: python38.functionName }); -const python39 = new aws_lambda_1.Function(stack, 'PYTHON_3_9', { - code: new aws_lambda_1.InlineCode('def handler(event, context):\n return "success"'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.PYTHON_3_9, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'PYTHON_3_9-functionName', { value: python39.functionName }); -const node14xfn = new aws_lambda_1.Function(stack, 'NODEJS_14_X', { - code: new aws_lambda_1.InlineCode('exports.handler = async function(event) { return "success" }'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_14_X, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'NODEJS_14_X-functionName', { value: node14xfn.functionName }); -const node16xfn = new aws_lambda_1.Function(stack, 'NODEJS_16_X', { - code: new aws_lambda_1.InlineCode('exports.handler = async function(event) { return "success" }'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_16_X, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'NODEJS_16_X-functionName', { value: node16xfn.functionName }); -const node18xfn = new aws_lambda_1.Function(stack, 'NODEJS_18_X', { - code: new aws_lambda_1.InlineCode('exports.handler = async function(event) { return "success" }'), - handler: 'index.handler', - runtime: aws_lambda_1.Runtime.NODEJS_18_X, -}); -new aws_cdk_lib_1.CfnOutput(stack, 'NODEJS_18_X-functionName', { value: node18xfn.functionName }); -app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ZTE2eGZuID0gbmV3IEZ1bmN0aW9uKHN0YWNrLCAnTk9ERUpTXzE2X1gnLCB7XG4gIGNvZGU6IG5ldyBJbmxpbmVDb2RlKCdleHBvcnRzLmhhbmRsZXIgPSBhc3luYyBmdW5jdGlvbihldmVudCkgeyByZXR1cm4gXCJzdWNjZXNzXCIgfScpLFxuICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gIHJ1bnRpbWU6IFJ1bnRpbWUuTk9ERUpTXzE2X1gsXG59KTtcbm5ldyBDZm5PdXRwdXQoc3RhY2ssICdOT0RFSlNfMTZfWC1mdW5jdGlvbk5hbWUnLCB7IHZhbHVlOiBub2RlMTZ4Zm4uZnVuY3Rpb25OYW1lIH0pO1xuXG5jb25zdCBub2RlMTh4Zm4gPSBuZXcgRnVuY3Rpb24oc3RhY2ssICdOT0RFSlNfMThfWCcsIHtcbiAgY29kZTogbmV3IElubGluZUNvZGUoJ2V4cG9ydHMuaGFuZGxlciA9IGFzeW5jIGZ1bmN0aW9uKGV2ZW50KSB7IHJldHVybiBcInN1Y2Nlc3NcIiB9JyksXG4gIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgcnVudGltZTogUnVudGltZS5OT0RFSlNfMThfWCxcbn0pO1xubmV3IENmbk91dHB1dChzdGFjaywgJ05PREVKU18xOF9YLWZ1bmN0aW9uTmFtZScsIHsgdmFsdWU6IG5vZGUxOHhmbi5mdW5jdGlvbk5hbWUgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.js deleted file mode 100644 index baa5ef781c758..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.vpc-lambda.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-vpc-lambda'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -new lambda.Function(stack, 'MyLambda', { - code: new lambda.InlineCode('def main(event, context): pass'), - handler: 'index.main', - runtime: lambda.Runtime.PYTHON_3_9, - vpc, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnZwYy1sYW1iZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUVqRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLG9CQUFvQixDQUFDLENBQUM7QUFDdkQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUNyQyxJQUFJLEVBQUUsSUFBSSxNQUFNLENBQUMsVUFBVSxDQUFDLGdDQUFnQyxDQUFDO0lBQzdELE9BQU8sRUFBRSxZQUFZO0lBQ3JCLE9BQU8sRUFBRSxNQUFNLENBQUMsT0FBTyxDQUFDLFVBQVU7SUFDbEMsR0FBRztDQUNKLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGVjMiBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZWMyJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBsYW1iZGEgZnJvbSAnYXdzLWNkay1saWIvYXdzLWxhbWJkYSc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLXZwYy1sYW1iZGEnKTtcbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVlBDJywgeyBtYXhBenM6IDIgfSk7XG5cbm5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssICdNeUxhbWJkYScsIHtcbiAgY29kZTogbmV3IGxhbWJkYS5JbmxpbmVDb2RlKCdkZWYgbWFpbihldmVudCwgY29udGV4dCk6IHBhc3MnKSxcbiAgaGFuZGxlcjogJ2luZGV4Lm1haW4nLFxuICBydW50aW1lOiBsYW1iZGEuUnVudGltZS5QWVRIT05fM185LFxuICB2cGMsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.d.ts deleted file mode 100644 index 62d2eeab03274..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function main(_event: any, _context: any): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.js deleted file mode 100644 index dbe4f6ee3ee40..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/layer-code/layer.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.main = void 0; -async function main(_event, _context) { - return 'Done!'; -} -exports.main = main; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF5ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBTyxLQUFLLFVBQVUsSUFBSSxDQUFDLE1BQVcsRUFBRSxRQUFhO0lBQ25ELE9BQU8sT0FBTyxDQUFDO0FBQ2pCLENBQUM7QUFGRCxvQkFFQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBhc3luYyBmdW5jdGlvbiBtYWluKF9ldmVudDogYW55LCBfY29udGV4dDogYW55KSB7XG4gIHJldHVybiAnRG9uZSEnO1xufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.js deleted file mode 100644 index cbec40f487b56..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.kinesis.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kinesis = require("aws-cdk-lib/aws-kinesis"); -const logs = require("aws-cdk-lib/aws-logs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const dests = require("aws-cdk-lib/aws-logs-destinations"); -class KinesisEnv extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const stream = new kinesis.Stream(this, 'MyStream'); - const logGroup = new logs.LogGroup(this, 'LogGroup', { removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }); - const kinesisDestination = new dests.KinesisDestination(stream); - new logs.SubscriptionFilter(this, 'Subscription', { - logGroup: logGroup, - destination: kinesisDestination, - filterPattern: logs.FilterPattern.allEvents(), - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new KinesisEnv(app, 'kinesis-logsubscription-integ'); -// If the proper dependency is not set, then the deployment fails with: -// Resource handler returned message: "Could not deliver test message to specified -// Kinesis stream. Check if the given kinesis stream is in ACTIVE state. -// (Service: CloudWatchLogs, Status Code: 400, Request ID: [...])" -new integ_tests_alpha_1.IntegTest(app, 'KinesisInteg', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcua2luZXNpcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmtpbmVzaXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtREFBbUQ7QUFDbkQsNkNBQTZDO0FBQzdDLDZDQUF3RDtBQUN4RCxrRUFBdUQ7QUFFdkQsMkRBQTJEO0FBRzNELE1BQU0sVUFBVyxTQUFRLG1CQUFLO0lBQzVCLFlBQVksS0FBMkIsRUFBRSxFQUFVO1FB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R0ZXJuLmFsbEV2ZW50cygpLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IEtpbmVzaXNFbnYoYXBwLCAna2luZXNpcy1sb2dzdWJzY3JpcHRpb24taW50ZWcnKTtcblxuLy8gSWYgdGhlIHByb3BlciBkZXBlbmRlbmN5IGlzIG5vdCBzZXQsIHRoZW4gdGhlIGRlcGxveW1lbnQgZmFpbHMgd2l0aDpcbi8vIFJlc291cmNlIGhhbmRsZXIgcmV0dXJuZWQgbWVzc2FnZTogXCJDb3VsZCBub3QgZGVsaXZlciB0ZXN0IG1lc3NhZ2UgdG8gc3BlY2lmaWVkXG4vLyBLaW5lc2lzIHN0cmVhbS4gQ2hlY2sgaWYgdGhlIGdpdmVuIGtpbmVzaXMgc3RyZWFtIGlzIGluIEFDVElWRSBzdGF0ZS5cbi8vIChTZXJ2aWNlOiBDbG91ZFdhdGNoTG9ncywgU3RhdHVzIENvZGU6IDQwMCwgUmVxdWVzdCBJRDogWy4uLl0pXCJcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnS2luZXNpc0ludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js deleted file mode 100644 index 4d725f4cb021d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs-destinations/test/integ.lambda.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const aws_events_targets_1 = require("aws-cdk-lib/aws-events-targets"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_lambda_destinations_1 = require("aws-cdk-lib/aws-lambda-destinations"); -const logs = require("aws-cdk-lib/aws-logs"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_destinations_1 = require("aws-cdk-lib/aws-logs-destinations"); -class LambdaStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - this.queue = new sqs.Queue(this, 'Queue'); - const fn = new lambda.Function(this, 'MyFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = async (event) => { - return 'success'; - };`), - onSuccess: new aws_lambda_destinations_1.SqsDestination(this.queue), - }); - const logGroup = new logs.LogGroup(this, 'LogGroup', { removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }); - const lambdaDestination = new aws_logs_destinations_1.LambdaDestination(fn); - new logs.SubscriptionFilter(this, 'Subscription', { - logGroup: logGroup, - destination: lambdaDestination, - filterPattern: logs.FilterPattern.allEvents(), - }); - const customRule = new events.Rule(this, 'CustomRule', { - eventPattern: { - source: ['cdk-lambda-integ'], - detailType: ['cdk-integ-custom-rule'], - }, - }); - customRule.addTarget(new aws_events_targets_1.CloudWatchLogGroup(logGroup, { - logEvent: aws_events_targets_1.LogGroupTargetInput.fromObject({ - message: 'Howdy Ho!', - }), - })); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new LambdaStack(app, 'lambda-logssubscription-integ'); -const integ = new integ_tests_alpha_1.IntegTest(app, 'LambdaInteg', { - testCases: [stack], -}); -const putEvents = integ.assertions.awsApiCall('EventBridge', 'putEvents', { - Entries: [ - { - Detail: JSON.stringify({ - foo: 'bar', - }), - DetailType: 'cdk-integ-custom-rule', - Source: 'cdk-lambda-integ', - }, - ], -}); -putEvents.provider.addToRolePolicy({ - Effect: 'Allow', - Action: ['events:PutEvents'], - Resource: ['*'], -}); -const receiveMessage = integ.assertions.awsApiCall('SQS', 'receiveMessage', { - QueueUrl: stack.queue.queueUrl, - WaitTimeSeconds: 20, -}); -// TODO: Replace with `receiveMessage.assertAtPath('Messages.0.Body', ExpectedResult.objectLike({...` -// when issue #24215 is addressed -receiveMessage.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Messages: [{ - Body: integ_tests_alpha_1.Match.stringLikeRegexp('"responsePayload":"success"'), - }], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtYmRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlEO0FBQ2pELHVFQUF5RjtBQUN6RixpREFBaUQ7QUFDakQsaUZBQXFFO0FBQ3JFLDZDQUE2QztBQUM3QywyQ0FBMkM7QUFDM0MsNkNBQXdEO0FBQ3hELGtFQUE4RTtBQUU5RSw2RUFBc0U7QUFFdEUsTUFBTSxXQUFZLFNBQVEsbUJBQUs7SUFJN0IsWUFBWSxLQUEyQixFQUFFLEVBQVU7UUFDakQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFFMUMsTUFBTSxFQUFFLEdBQUcsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUU7WUFDakQsT0FBTyxFQUFFLE1BQ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WctY3VzdG9tLXJ1bGUnLFxuICAgICAgU291cmNlOiAnY2RrLWxhbWJkYS1pbnRlZycsXG4gICAgfSxcbiAgXSxcbn0pO1xucHV0RXZlbnRzLnByb3ZpZGVyLmFkZFRvUm9sZVBvbGljeSh7XG4gIEVmZmVjdDogJ0FsbG93JyxcbiAgQWN0aW9uOiBbJ2V2ZW50czpQdXRFdmVudHMnXSxcbiAgUmVzb3VyY2U6IFsnKiddLFxufSk7XG5cbmNvbnN0IHJlY2VpdmVNZXNzYWdlID0gaW50ZWcuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdTUVMnLCAncmVjZWl2ZU1lc3NhZ2UnLCB7XG4gIFF1ZXVlVXJsOiBzdGFjay5xdWV1ZS5xdWV1ZVVybCxcbiAgV2FpdFRpbWVTZWNvbmRzOiAyMCxcbn0pO1xuXG4vLyBUT0RPOiBSZXBsYWNlIHdpdGggYHJlY2VpdmVNZXNzYWdlLmFzc2VydEF0UGF0aCgnTWVzc2FnZXMuMC5Cb2R5JywgRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7Li4uYFxuLy8gd2hlbiBpc3N1ZSAjMjQyMTUgaXMgYWRkcmVzc2VkXG5yZWNlaXZlTWVzc2FnZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSgge1xuICBNZXNzYWdlczpcbiAgW3tcbiAgICBCb2R5OiBNYXRjaC5zdHJpbmdMaWtlUmVnZXhwKCAnXCJyZXNwb25zZVBheWxvYWRcIjpcInN1Y2Nlc3NcIicgKSxcbiAgfV0sXG59KSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.js deleted file mode 100644 index bc9b121593fa4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.expose-metric.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -/* - * Stack verification steps: - * - * -- aws cloudwatch describe-alarms --alarm-name-prefix aws-cdk-expose-metric-integ - * has Namespace of `MyApp` and Statistic of `Average` - */ -class ExposeMetricIntegStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const logGroup = new aws_logs_1.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - /// !show - const mf = new aws_logs_1.MetricFilter(this, 'MetricFilter', { - logGroup, - metricNamespace: 'MyApp', - metricName: 'Latency', - filterPattern: aws_logs_1.FilterPattern.exists('$.latency'), - metricValue: '$.latency', - }); - new aws_cloudwatch_1.Alarm(this, 'alarm from metric filter', { - metric: mf.metric(), - threshold: 100, - evaluationPeriods: 2, - }); - /// !hide - } -} -const app = new aws_cdk_lib_1.App(); -new ExposeMetricIntegStack(app, 'aws-cdk-expose-metric-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXhwb3NlLW1ldHJpYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmV4cG9zZS1tZXRyaWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrREFBbUQ7QUFDbkQsNkNBQW9FO0FBQ3B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aXN0cygnJC5sYXRlbmN5JyksXG4gICAgICBtZXRyaWNWYWx1ZTogJyQubGF0ZW5jeScsXG4gICAgfSk7XG5cbiAgICBuZXcgQWxhcm0odGhpcywgJ2FsYXJtIGZyb20gbWV0cmljIGZpbHRlcicsIHtcbiAgICAgIG1ldHJpYzogbWYubWV0cmljKCksXG4gICAgICB0aHJlc2hvbGQ6IDEwMCxcbiAgICAgIGV2YWx1YXRpb25QZXJpb2RzOiAyLFxuICAgIH0pO1xuXG4gICAgLy8vICFoaWRlXG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IEV4cG9zZU1ldHJpY0ludGVnU3RhY2soYXBwLCAnYXdzLWNkay1leHBvc2UtbWV0cmljLWludGVnJyk7XG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.js deleted file mode 100644 index f899e12789366..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -class LogRetentionIntegStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new aws_logs_1.LogRetention(this, 'MyLambda', { - logGroupName: 'logRetentionLogGroup', - retention: aws_logs_1.RetentionDays.ONE_DAY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - new aws_logs_1.LogRetention(this, 'MyLambda2', { - logGroupName: 'logRetentionLogGroup2', - retention: aws_logs_1.RetentionDays.ONE_DAY, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new LogRetentionIntegStack(app, 'aws-cdk-log-retention-integ'); -new integ_tests_alpha_1.IntegTest(app, 'LogRetentionInteg', { testCases: [stack] }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9nLXJldGVudGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmxvZy1yZXRlbnRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBb0U7QUFDcEUsa0VBQXVEO0FBQ3ZELG1EQUFtRTtBQUVuRSxNQUFNLHNCQUF1QixTQUFRLG1CQUFLO0lBQ3hDLFlBQVksS0FBVSxFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUNwRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixJQUFJLHVCQUFZLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUNqQyxZQUFZLEVBQUUsc0JBQXNCO1lBQ3BDLFNBQVMsRUFBRSx3QkFBYSxDQUFDLE9BQU87WUFDaEMsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztTQUNyQyxDQUFDLENBQUM7UUFFSCxJQUFJLHVCQUFZLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRTtZQUNsQyxZQUFZLEVBQUUsdUJBQXVCO1lBQ3JDLFNBQVMsRUFBRSx3QkFBYSxDQUFDLE9BQU87WUFDaEMsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0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XG4gICAgbmV3IExvZ1JldGVudGlvbih0aGlzLCAnTXlMYW1iZGEyJywge1xuICAgICAgbG9nR3JvdXBOYW1lOiAnbG9nUmV0ZW50aW9uTG9nR3JvdXAyJyxcbiAgICAgIHJldGVudGlvbjogUmV0ZW50aW9uRGF5cy5PTkVfREFZLFxuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IExvZ1JldGVudGlvbkludGVnU3RhY2soYXBwLCAnYXdzLWNkay1sb2ctcmV0ZW50aW9uLWludGVnJyk7XG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0xvZ1JldGVudGlvbkludGVnJywgeyB0ZXN0Q2FzZXM6IFtzdGFja10gfSk7XG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.js deleted file mode 100644 index afc5d6242896d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.loggroup-grantread.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-loggroup-grantreads-integ'); -const logGroup = new aws_logs_1.LogGroup(stack, 'LogGroup'); -logGroup.grantRead(new aws_iam_1.ServicePrincipal('es.amazonaws.com')); -new integ_tests_alpha_1.IntegTest(app, 'loggroup-grantreads', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubG9nZ3JvdXAtZ3JhbnRyZWFkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubG9nZ3JvdXAtZ3JhbnRyZWFkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQXVEO0FBQ3ZELDZDQUF5QztBQUN6QyxrRUFBdUQ7QUFDdkQsbURBQWdEO0FBRWhELE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsbUNBQW1DLENBQUMsQ0FBQztBQUVsRSxNQUFNLFFBQVEsR0FBRyxJQUFJLG1CQUFRLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0FBQ2pELFFBQVEsQ0FBQyxTQUFTLENBQUMsSUFBSSwwQkFBZ0IsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLENBQUM7QUFFN0QsSUFBSSw2QkFBUyxDQUFDLEdBQUcsRUFBRSxxQkFBcUIsRUFBRTtJQUN4QyxTQUFTLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDO0FBQ0gsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VydmljZVByaW5jaXBhbCB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1pYW0nO1xuaW1wb3J0IHsgQXBwLCBTdGFjayB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCB7IExvZ0dyb3VwIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWxvZ3MnO1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBTdGFjayhhcHAsICdhd3MtY2RrLWxvZ2dyb3VwLWdyYW50cmVhZHMtaW50ZWcnKTtcblxuY29uc3QgbG9nR3JvdXAgPSBuZXcgTG9nR3JvdXAoc3RhY2ssICdMb2dHcm91cCcpO1xubG9nR3JvdXAuZ3JhbnRSZWFkKG5ldyBTZXJ2aWNlUHJpbmNpcGFsKCdlcy5hbWF6b25hd3MuY29tJykpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2xvZ2dyb3VwLWdyYW50cmVhZHMnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.js deleted file mode 100644 index 4adacb5e53354..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-dimensions.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const logGroup = new aws_logs_1.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - new aws_logs_1.MetricFilter(this, 'MetricFilter', { - logGroup, - metricNamespace: 'MyApp', - metricName: 'Latency', - filterPattern: aws_logs_1.FilterPattern.exists('$.latency'), - metricValue: '$.latency', - dimensions: { - ErrorCode: '$.errorCode', - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'aws-cdk-metricfilter-dimensions-integ'); -new integ_tests_alpha_1.IntegTest(app, 'metricfilter-dimensions', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWV0cmljZmlsdGVyLWRpbWVuc2lvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5tZXRyaWNmaWx0ZXItZGltZW5zaW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFvRTtBQUNwRSxrRUFBdUQ7QUFDdkQsbURBQTZFO0FBRTdFLE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBVSxFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUNwRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLFFBQVEsR0FBRyxJQUFJLG1CQUFRLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUM5QyxhQUFhLEVBQUUsMkJBQWEsQ0FBQyxPQUFPO1NBQ3JDLENBQUMsQ0F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N1cGVyKHNjb3BlLCBpZCwgcHJvcHMpO1xuXG4gICAgY29uc3QgbG9nR3JvdXAgPSBuZXcgTG9nR3JvdXAodGhpcywgJ0xvZ0dyb3VwJywge1xuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgIH0pO1xuXG4gICAgbmV3IE1ldHJpY0ZpbHRlcih0aGlzLCAnTWV0cmljRmlsdGVyJywge1xuICAgICAgbG9nR3JvdXAsXG4gICAgICBtZXRyaWNOYW1lc3BhY2U6ICdNeUFwcCcsXG4gICAgICBtZXRyaWNOYW1lOiAnTGF0ZW5jeScsXG4gICAgICBmaWx0ZXJQYXR0ZXJuOiBGaWx0ZXJQYXR0ZXJuLmV4aXN0cygnJC5sYXRlbmN5JyksXG4gICAgICBtZXRyaWNWYWx1ZTogJyQubGF0ZW5jeScsXG4gICAgICBkaW1lbnNpb25zOiB7XG4gICAgICAgIEVycm9yQ29kZTogJyQuZXJyb3JDb2RlJyxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ2F3cy1jZGstbWV0cmljZmlsdGVyLWRpbWVuc2lvbnMtaW50ZWcnKTtcblxubmV3IEludGVnVGVzdChhcHAsICdtZXRyaWNmaWx0ZXItZGltZW5zaW9ucycsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.js deleted file mode 100644 index 1c99009d25681..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter-unit.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cloudwatch_1 = require("aws-cdk-lib/aws-cloudwatch"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const logGroup = new aws_logs_1.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - new aws_logs_1.MetricFilter(this, 'MetricFilter', { - logGroup, - metricNamespace: 'MyApp', - metricName: 'Latency', - filterPattern: aws_logs_1.FilterPattern.exists('$.latency'), - metricValue: '$.latency', - dimensions: { - ErrorCode: '$.errorCode', - }, - unit: aws_cloudwatch_1.Unit.MILLISECONDS, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'aws-cdk-metricfilter-unit-integ'); -new integ_tests_alpha_1.IntegTest(app, 'metricfilter-unit', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubWV0cmljZmlsdGVyLXVuaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5tZXRyaWNmaWx0ZXItdW5pdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtEQUFrRDtBQUNsRCw2Q0FBb0U7QUFDcEUsa0VBQXVEO0FBQ3ZELG1EQUE2RTtBQUU3RSxNQUFNLFNB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2F3cy1jZGstbWV0cmljZmlsdGVyLXVuaXQtaW50ZWcnKTtcblxubmV3IEludGVnVGVzdChhcHAsICdtZXRyaWNmaWx0ZXItdW5pdCcsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.js deleted file mode 100644 index 49f23f0442cba..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.metricfilter.lit.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -class MetricFilterIntegStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const logGroup = new aws_logs_1.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - /// !show - new aws_logs_1.MetricFilter(this, 'MetricFilter', { - logGroup, - metricNamespace: 'MyApp', - metricName: 'Latency', - filterPattern: aws_logs_1.FilterPattern.exists('$.latency'), - metricValue: '$.latency', - }); - /// !hide - } -} -const app = new aws_cdk_lib_1.App(); -new MetricFilterIntegStack(app, 'aws-cdk-metricfilter-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50Z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x0ZXJQYXR0ZXJuLCBMb2dHcm91cCwgTWV0cmljRmlsdGVyIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLWxvZ3MnO1xuXG5jbGFzcyBNZXRyaWNGaWx0ZXJJbnRlZ1N0YWNrIGV4dGVuZHMgU3RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQXBwLCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IGxvZ0dyb3VwID0gbmV3IExvZ0dyb3VwKHRoaXMsICdMb2dHcm91cCcsIHtcbiAgICAgIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgICB9KTtcblxuICAgIC8vLyAhc2hvd1xuICAgIG5ldyBNZXRyaWNGaWx0ZXIodGhpcywgJ01ldHJpY0ZpbHRlcicsIHtcbiAgICAgIGxvZ0dyb3VwLFxuICAgICAgbWV0cmljTmFtZXNwYWNlOiAnTXlBcHAnLFxuICAgICAgbWV0cmljTmFtZTogJ0xhdGVuY3knLFxuICAgICAgZmlsdGVyUGF0dGVybjogRmlsdGVyUGF0dGVybi5leGlzdHMoJyQubGF0ZW5jeScpLFxuICAgICAgbWV0cmljVmFsdWU6ICckLmxhdGVuY3knLFxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbm5ldyBNZXRyaWNGaWx0ZXJJbnRlZ1N0YWNrKGFwcCwgJ2F3cy1jZGstbWV0cmljZmlsdGVyLWludGVnJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.js deleted file mode 100644 index d67d7e738fdd1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.save-logs-insights-query-definition.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_logs_1 = require("aws-cdk-lib/aws-logs"); -class LogsInsightsQueryDefinitionIntegStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const logGroup = new aws_logs_1.LogGroup(this, 'LogGroup', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - // Test query creation with single parse and filter statements - new aws_logs_1.QueryDefinition(this, 'QueryDefinition', { - queryDefinitionName: 'QueryDefinition', - queryString: new aws_logs_1.QueryString({ - fields: ['@timestamp', '@message'], - parse: '@message "[*] *" as loggingType, loggingMessage', - filter: 'loggingType = "ERROR"', - sort: '@timestamp desc', - limit: 20, - display: 'loggingMessage', - }), - logGroups: [logGroup], - }); - // Test query creation with multiple parse and filter statements - new aws_logs_1.QueryDefinition(this, 'QueryDefinitionWithMultipleStatements', { - queryDefinitionName: 'QueryDefinitionWithMultipleStatements', - queryString: new aws_logs_1.QueryString({ - fields: ['@timestamp', '@message'], - parseStatements: [ - '@message "[*] *" as loggingType, loggingMessage', - '@message "<*>: *" as differentLoggingType, differentLoggingMessage', - ], - filterStatements: [ - 'loggingType = "ERROR"', - 'loggingMessage = "A very strange error occurred!"', - ], - sort: '@timestamp desc', - limit: 20, - display: 'loggingMessage', - }), - logGroups: [logGroup], - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new LogsInsightsQueryDefinitionIntegStack(app, 'aws-cdk-logs-insights-querydefinition-integ'); -new integ_tests_alpha_1.IntegTest(app, 'LogsInsightsQueryDefinitionIntegTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2F2ZS1sb2dzLWluc2lnaHRzLXF1ZXJ5LWRlZmluaXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zYXZlLWxvZ3MtaW5zaWdodHMtcXVlcnktZGVmaW5pdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFvRTtBQUNwRSxrRUFBdUQ7QUFFdkQsbURBQThFO0FBRTlFLE1BQU0scUNBQXNDLFNBQVEsbUJBQUs7SUFDdkQsWUFBWSxLQUFVLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQ3BELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sUUFBUSxHQUFHLElBQUksbUJBQVEsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQzlDLGFBQWEsRUFBRSwyQkFBYSxDQUFDLE9BQU87U0FDckMsQ0FBQyxDQUFDO1FBRUgsOERBQThEO1FBQzlELElBQUksMEJBQWUsQ0FBQyxJQUFJLEVBQUUsaUJBQWlCLEVBQUU7WUFDM0MsbUJBQW1CLEVBQUUsaUJBQWlCO1lBQ3RDLFdBQVcsRUFBRSxJQUFJLHNCQUFXLENBQUM7Z0JBQzNCLE1BQU0sRUFBRSxDQUFDLFlBQVksRUFBRSxVQUFVLENBQUM7Z0JBQ2xDLEtBQUssRUFBRSxpREFBaUQ7Z0JBQ3hELE1BQU0sRUFBRSx1QkFBdUI7Z0JBQy9CLElBQUksRUFBRSxpQkFBaU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GRlc2MnLFxuICAgICAgICBsaW1pdDogMjAsXG4gICAgICAgIGRpc3BsYXk6ICdsb2dnaW5nTWVzc2FnZScsXG4gICAgICB9KSxcbiAgICAgIGxvZ0dyb3VwczogW2xvZ0dyb3VwXSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBMb2dzSW5zaWdodHNRdWVyeURlZmluaXRpb25JbnRlZ1N0YWNrKGFwcCwgJ2F3cy1jZGstbG9ncy1pbnNpZ2h0cy1xdWVyeWRlZmluaXRpb24taW50ZWcnKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnTG9nc0luc2lnaHRzUXVlcnlEZWZpbml0aW9uSW50ZWdUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.js deleted file mode 100644 index f45980ab8372d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.advancedsecurity.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const user = new aws_iam_1.User(this, 'User'); - new opensearch.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - fineGrainedAccessControl: { - masterUserArn: user.userArn, - }, - encryptionAtRest: { - enabled: true, - }, - nodeToNodeEncryption: true, - enforceHttps: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-opensearch-advancedsecurity'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC5hZHZhbmNlZHNlY3VyaXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcub3BlbnNlYXJjaC5hZHZhbmNlZHNlY3VyaXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTJDO0FBQzNDLDZDQUFvRTtBQUVwRSxnRUFBZ0U7QUFFaEUsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLElBQUksR0FBRyxJQUFJLGNBQUksQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFcEMsSUFBSSxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFDcEMsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztZQUNwQyxPQUFPLEVBQUUsVUFBVSxDQUFDLGFBQWEsQ0FBQyxpQkFBaUI7WUFDbkQsd0JBQXdCLEVBQUU7Z0JBQ3hCLGFBQWEsRUFBRSxJQUFJ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uLkVMQVNUSUNTRUFSQ0hfN18xLFxuICAgICAgZmluZUdyYWluZWRBY2Nlc3NDb250cm9sOiB7XG4gICAgICAgIG1hc3RlclVzZXJBcm46IHVzZXIudXNlckFybixcbiAgICAgIH0sXG4gICAgICBlbmNyeXB0aW9uQXRSZXN0OiB7XG4gICAgICAgIGVuYWJsZWQ6IHRydWUsXG4gICAgICB9LFxuICAgICAgbm9kZVRvTm9kZUVuY3J5cHRpb246IHRydWUsXG4gICAgICBlbmZvcmNlSHR0cHM6IHRydWUsXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctb3BlbnNlYXJjaC1hZHZhbmNlZHNlY3VyaXR5Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.js deleted file mode 100644 index 9428374bc8259..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.cognitodashboardsauth.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cognito = require("aws-cdk-lib/aws-cognito"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // Adding required resources per https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cognito-auth.html#cognito-auth-config - const identityPool = new cognito.CfnIdentityPool(this, 'IdentityPool', { - allowUnauthenticatedIdentities: true, - }); - const userPool = new cognito.UserPool(this, 'UserPool', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - userPool.addDomain('UserPoolDomain', { - cognitoDomain: { - domainPrefix: 'integ-test-domain-prefix', - }, - }); - const role = new iam.Role(this, 'Role', { - assumedBy: new iam.ServicePrincipal('opensearchservice.amazonaws.com'), - managedPolicies: [ - iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonOpenSearchServiceCognitoAccess'), - ], - }); - // Adding a domain with cognito dashboards auth configured - new opensearch.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.OPENSEARCH_1_0, - cognitoDashboardsAuth: { - role, - identityPoolId: identityPool.ref, - userPoolId: userPool.userPoolId, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'cdk-integ-opensearch-cognitodashboardsauth'); -new integ_tests_alpha_1.IntegTest(app, 'CognitoAuthForOpenSearchDashboards', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC5jb2duaXRvZGFzaGJvYXJkc2F1dGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5vcGVuc2VhcmNoLmNvZ25pdG9kYXNoYm9hcmRzYXV0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1EQUFtRDtBQUNuRCwyQ0FBMkM7QUFDM0MsNkNBQW9FO0FBQ3B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NlYXJjaFNlcnZpY2VDb2duaXRvQWNjZXNzJyksXG4gICAgICBdLFxuICAgIH0pO1xuXG4gICAgLy8gQWRkaW5nIGEgZG9tYWluIHdpdGggY29nbml0byBkYXNoYm9hcmRzIGF1dGggY29uZmlndXJlZFxuICAgIG5ldyBvcGVuc2VhcmNoLkRvbWFpbih0aGlzLCAnRG9tYWluJywge1xuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgdmVyc2lvbjogb3BlbnNlYXJjaC5FbmdpbmVWZXJzaW9uLk9QRU5TRUFSQ0hfMV8wLFxuICAgICAgY29nbml0b0Rhc2hib2FyZHNBdXRoOiB7XG4gICAgICAgIHJvbGUsXG4gICAgICAgIGlkZW50aXR5UG9vbElkOiBpZGVudGl0eVBvb2wucmVmLFxuICAgICAgICB1c2VyUG9vbElkOiB1c2VyUG9vbC51c2VyUG9vbElkLFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5jb25zdCBzdGFjayA9IG5ldyBUZXN0U3RhY2soYXBwLCAnY2RrLWludGVnLW9wZW5zZWFyY2gtY29nbml0b2Rhc2hib2FyZHNhdXRoJyk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnQ29nbml0b0F1dGhGb3JPcGVuU2VhcmNoRGFzaGJvYXJkcycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js deleted file mode 100644 index 79fd2cff54766..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.custom-kms-key.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const key = new kms.Key(this, 'Key'); - const domainProps = { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - encryptionAtRest: { - enabled: true, - kmsKey: key, - }, - accessPolicies: [ - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['es:ESHttp*'], - principals: [new iam.AccountRootPrincipal()], - resources: ['*'], - }), - ], - }; - new opensearch.Domain(this, 'Domain', domainProps); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-opensearch-custom-kms-key'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC5jdXN0b20ta21zLWtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm9wZW5zZWFyY2guY3VzdG9tLWttcy1rZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLDZDQUFvRTtBQUVwRSxnRUFBZ0U7QUFFaEUsTUFBTSxTQUFVLFNBQVEsbUJBQ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AgICAgICAgcHJpbmNpcGFsczogW25ldyBpYW0uQWNjb3VudFJvb3RQcmluY2lwYWwoKV0sXG4gICAgICAgICAgcmVzb3VyY2VzOiBbJyonXSxcbiAgICAgICAgfSksXG4gICAgICBdLFxuICAgIH07XG5cbiAgICBuZXcgb3BlbnNlYXJjaC5Eb21haW4odGhpcywgJ0RvbWFpbicsIGRvbWFpblByb3BzKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1vcGVuc2VhcmNoLWN1c3RvbS1rbXMta2V5Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js deleted file mode 100644 index 62faf383dddc4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const domainProps = { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - ebs: { - volumeSize: 10, - volumeType: aws_ec2_1.EbsDeviceVolumeType.GENERAL_PURPOSE_SSD, - }, - logging: { - slowSearchLogEnabled: true, - appLogEnabled: true, - }, - nodeToNodeEncryption: true, - encryptionAtRest: { - enabled: true, - }, - advancedOptions: { - 'rest.action.multi.allow_explicit_index': 'false', - 'indices.fielddata.cache.size': '25', - 'indices.query.bool.max_clause_count': '2048', - }, - // test the access policies custom resource works - accessPolicies: [ - new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['es:ESHttp*'], - principals: [new iam.AccountRootPrincipal()], - resources: ['*'], - }), - ], - }; - // create 2 domains to ensure that Cloudwatch Log Group policy names dont conflict - new opensearch.Domain(this, 'Domain1', domainProps); - new opensearch.Domain(this, 'Domain2', domainProps); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-opensearch'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm9wZW5zZWFyY2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBMEQ7QUFDMUQsMkNBQTJDO0FBQzNDLDZDQUFvRTtBQUVwRSxnRUFBZ0U7QUFFaEUsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLFdBQVcsR0FBMkI7WUFDMUMsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztZQUNwQyxPQUFPLEVBQUUsVUFBVSxDQUFDLGFBQWEsQ0FBQyxpQkFBaUI7WUFDbkQsR0FBRyxFQUFFO2dCQUNILFVBQVUsRUFBRSxFQ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FwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctb3BlbnNlYXJjaCcpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.js deleted file mode 100644 index 3a352ae5363c3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.ultrawarm.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new opensearch.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - capacity: { - masterNodes: 2, - warmNodes: 2, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-opensearch-ultrawarm'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC51bHRyYXdhcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5vcGVuc2VhcmNoLnVsdHJhd2FybS50cyJdLCJuYW1lc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FN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIG5ldyBvcGVuc2VhcmNoLkRvbWFpbih0aGlzLCAnRG9tYWluJywge1xuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgdmVyc2lvbjogb3BlbnNlYXJjaC5FbmdpbmVWZXJzaW9uLkVMQVNUSUNTRUFSQ0hfN18xLFxuICAgICAgY2FwYWNpdHk6IHtcbiAgICAgICAgbWFzdGVyTm9kZXM6IDIsXG4gICAgICAgIHdhcm1Ob2RlczogMixcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctb3BlbnNlYXJjaC11bHRyYXdhcm0nKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js deleted file mode 100644 index abbb2742c8841..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.unsignedbasicauth.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new opensearch.Domain(this, 'Domain', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - useUnsignedBasicAuth: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-opensearch-unsignedbasicauth'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC51bnNpZ25lZGJhc2ljYXV0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm9wZW5zZWFyY2gudW5zaWduZWRiYXNpY2F1dGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBb0U7QUFFcEUsZ0VBQWdFO0FBRWhFLE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFDcEMsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztZQUNwQyxPQUFPLEVBQUUsVUFBVSxDQUFDLGFBQWEsQ0FBQyxpQkFBaUI7WUFDbkQsb0JBQW9CLEVBQUUsSUFBSTtTQUMzQixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0Y7QUFFRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUN0QixJQUFJLFNBQVMsQ0FBQyxHQUFHLEVBQUUsd0NBQXdDLENBQUMsQ0FBQztBQUM3RCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcHAsIFJlbW92YWxQb2xpY3ksIFN0YWNrLCBTdGFja1Byb3BzIH0gZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5pbXBvcnQgKiBhcyBvcGVuc2VhcmNoIGZyb20gJ2F3cy1jZGstbGliL2F3cy1vcGVuc2VhcmNoc2VydmljZSc7XG5cbmNsYXNzIFRlc3RTdGFjayBleHRlbmRzIFN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM/OiBTdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICBuZXcgb3BlbnNlYXJjaC5Eb21haW4odGhpcywgJ0RvbWFpbicsIHtcbiAgICAgIHJlbW92YWxQb2xpY3k6IFJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgICAgIHZlcnNpb246IG9wZW5zZWFyY2guRW5naW5lVmVyc2lvbi5FTEFTVElDU0VBUkNIXzdfMSxcbiAgICAgIHVzZVVuc2lnbmVkQmFzaWNBdXRoOiB0cnVlLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbm5ldyBUZXN0U3RhY2soYXBwLCAnY2RrLWludGVnLW9wZW5zZWFyY2gtdW5zaWduZWRiYXNpY2F1dGgnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.js deleted file mode 100644 index 0a5c42704b4df..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.vpc.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const opensearch = require("aws-cdk-lib/aws-opensearchservice"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const serviceLinkedRole = new aws_cdk_lib_1.CfnResource(this, 'ServiceLinkedRole', { - type: 'AWS::IAM::ServiceLinkedRole', - properties: { - AWSServiceName: 'opensearchservice.amazonaws.com', - Description: 'Role for OpenSearch VPC Test', - }, - }); - const vpc = new ec2.Vpc(this, 'Vpc'); - const domainProps = { - version: opensearch.EngineVersion.ELASTICSEARCH_7_1, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - vpc, - zoneAwareness: { - enabled: true, - }, - capacity: { - dataNodes: 2, - }, - }; - const domain = new opensearch.Domain(this, 'Domain', domainProps); - domain.node.addDependency(serviceLinkedRole); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'cdk-integ-opensearch-vpc'); -new integ.IntegTest(app, 'cdk-integ-opensearch-vpc-test', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcub3BlbnNlYXJjaC52cGMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5vcGVuc2VhcmNoLnZwYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzt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U1NlcnZpY2VOYW1lOiAnb3BlbnNlYXJjaHNlcnZpY2UuYW1hem9uYXdzLmNvbScsXG4gICAgICAgIERlc2NyaXB0aW9uOiAnUm9sZSBmb3IgT3BlblNlYXJjaCBWUEMgVGVzdCcsXG4gICAgICB9LFxuICAgIH0pO1xuXG4gICAgY29uc3QgdnBjID0gbmV3IGVjMi5WcGModGhpcywgJ1ZwYycpO1xuICAgIGNvbnN0IGRvbWFpblByb3BzOiBvcGVuc2VhcmNoLkRvbWFpblByb3BzID0ge1xuICAgICAgdmVyc2lvbjogb3BlbnNlYXJjaC5FbmdpbmVWZXJzaW9uLkVMQVNUSUNTRUFSQ0hfN18xLFxuICAgICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgdnBjLFxuICAgICAgem9uZUF3YXJlbmVzczoge1xuICAgICAgICBlbmFibGVkOiB0cnVlLFxuICAgICAgfSxcbiAgICAgIGNhcGFjaXR5OiB7XG4gICAgICAgIGRhdGFOb2RlczogMixcbiAgICAgIH0sXG4gICAgfTtcblxuICAgIGNvbnN0IGRvbWFpbiA9IG5ldyBvcGVuc2VhcmNoLkRvbWFpbih0aGlzLCAnRG9tYWluJywgZG9tYWluUHJvcHMpO1xuICAgIGRvbWFpbi5ub2RlLmFkZERlcGVuZGVuY3koc2VydmljZUxpbmtlZFJvbGUpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHRlc3RDYXNlID0gbmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctb3BlbnNlYXJjaC12cGMnKTtcbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLW9wZW5zZWFyY2gtdnBjLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.js deleted file mode 100644 index 5aca4539345b5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-dual.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-cluster-dual-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0 }); -const ipv6 = new ec2.CfnVPCCidrBlock(stack, 'Ipv6CidrBlock', { vpcId: vpc.vpcId, amazonProvidedIpv6CidrBlock: true }); -vpc.isolatedSubnets.forEach((subnet, idx) => { - const cfnSubnet = subnet.node.defaultChild; - cfnSubnet.ipv6CidrBlock = cdk.Fn.select(idx, cdk.Fn.cidr(cdk.Fn.select(0, vpc.vpcIpv6CidrBlocks), 256, '64')); - cfnSubnet.addDependsOn(ipv6); -}); -new rds.DatabaseCluster(stack, 'DualstackCluster', { - engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_3_02_0 }), - credentials: rds.Credentials.fromUsername('admin', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, - vpc, - }, - networkType: rds.NetworkType.DUAL, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new rds.DatabaseCluster(stack, 'Ipv4Cluster', { - engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_3_02_0 }), - credentials: rds.Credentials.fromUsername('admin', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, - vpc, - }, - networkType: rds.NetworkType.IPV4, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new integ_tests_alpha_1.IntegTest(app, 'cluster-dual-test', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci1kdWFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2x1c3Rlci1kdWFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsZ0NBQWdDLENBQUMsQ0FBQztBQUVuRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsV0FBVyxFQUFFLENBQUMsR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uICBlbmdpbmU6IHJkcy5EYXRhYmFzZUNsdXN0ZXJFbmdpbmUuYXVyb3JhTXlzcWwoeyB2ZXJzaW9uOiByZHMuQXVyb3JhTXlzcWxFbmdpbmVWZXJzaW9uLlZFUl8zXzAyXzAgfSksXG4gIGNyZWRlbnRpYWxzOiByZHMuQ3JlZGVudGlhbHMuZnJvbVVzZXJuYW1lKCdhZG1pbicsIHsgcGFzc3dvcmQ6IGNkay5TZWNyZXRWYWx1ZS51bnNhZmVQbGFpblRleHQoJzc5NTk4NjZjYWNjMDJjMmQyNDNlY2ZlMTc3NDY0ZmU2JykgfSksXG4gIGluc3RhbmNlUHJvcHM6IHtcbiAgICBpbnN0YW5jZVR5cGU6IGVjMi5JbnN0YW5jZVR5cGUub2YoZWMyLkluc3RhbmNlQ2xhc3MuQlVSU1RBQkxFMywgZWMyLkluc3RhbmNlU2l6ZS5NRURJVU0pLFxuICAgIHZwY1N1Ym5ldHM6IHsgc3VibmV0VHlwZTogZWMyLlN1Ym5ldFR5cGUuUFJJVkFURV9JU09MQVRFRCB9LFxuICAgIHZwYyxcbiAgfSxcbiAgbmV0d29ya1R5cGU6IHJkcy5OZXR3b3JrVHlwZS5JUFY0LFxuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2x1c3Rlci1kdWFsLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.js deleted file mode 100644 index c723c51e472b7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-rotation.lit.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-cluster-rotation'); -const vpc = new ec2.Vpc(stack, 'VPC'); -const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup', { vpc }); -const endpoint = new ec2.InterfaceVpcEndpoint(stack, 'Endpoint', { - vpc, - service: ec2.InterfaceVpcEndpointAwsService.SECRETS_MANAGER, -}); -/// !show -const cluster = new rds.DatabaseCluster(stack, 'Database', { - engine: rds.DatabaseClusterEngine.AURORA, - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpc, - }, -}); -cluster.addRotationSingleUser(); -const clusterWithCustomRotationOptions = new rds.DatabaseCluster(stack, 'CustomRotationOptions', { - engine: rds.DatabaseClusterEngine.AURORA, - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpc, - }, -}); -clusterWithCustomRotationOptions.addRotationSingleUser({ - automaticallyAfter: cdk.Duration.days(7), - excludeCharacters: '!@#$%^&*', - securityGroup, - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, - endpoint: endpoint, -}); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci1yb3RhdGlvbi5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic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9mKGVjMi5JbnN0YW5jZUNsYXNzLkJVUlNUQUJMRTMsIGVjMi5JbnN0YW5jZVNpemUuU01BTEwpLFxuICAgIHZwYyxcbiAgfSxcbn0pO1xuY2x1c3RlcldpdGhDdXN0b21Sb3RhdGlvbk9wdGlvbnMuYWRkUm90YXRpb25TaW5nbGVVc2VyKHtcbiAgYXV0b21hdGljYWxseUFmdGVyOiBjZGsuRHVyYXRpb24uZGF5cyg3KSxcbiAgZXhjbHVkZUNoYXJhY3RlcnM6ICchQCMkJV4mKicsXG4gIHNlY3VyaXR5R3JvdXAsXG4gIHZwY1N1Ym5ldHM6IHsgc3VibmV0VHlwZTogZWMyLlN1Ym5ldFR5cGUuUFJJVkFURV9XSVRIX0VHUkVTUyB9LFxuICBlbmRwb2ludDogZW5kcG9pbnQsXG59KTtcbi8vLyAhaGlkZVxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.js deleted file mode 100644 index 5d2515b17bc0e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const kms = require("aws-cdk-lib/aws-kms"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-s3-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -const kmsKey = new kms.Key(stack, 'DbSecurity'); -const importBucket = new s3.Bucket(stack, 'ImportBucket'); -const exportBucket = new s3.Bucket(stack, 'ExportBucket'); -const cluster = new aws_rds_1.DatabaseCluster(stack, 'Database', { - engine: aws_rds_1.DatabaseClusterEngine.AURORA, - credentials: aws_rds_1.Credentials.fromUsername('admin', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - vpc, - }, - storageEncryptionKey: kmsKey, - s3ImportBuckets: [importBucket], - s3ExportBuckets: [exportBucket], -}); -cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci1zMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsdXN0ZXItczMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsaURBQTBGO0FBRTFGLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUF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3JkOiBjZGsuU2VjcmV0VmFsdWUudW5zYWZlUGxhaW5UZXh0KCc3OTU5ODY2Y2FjYzAyYzJkMjQzZWNmZTE3NzQ2NGZlNicpIH0pLFxuICBpbnN0YW5jZVByb3BzOiB7XG4gICAgaW5zdGFuY2VUeXBlOiBlYzIuSW5zdGFuY2VUeXBlLm9mKGVjMi5JbnN0YW5jZUNsYXNzLkJVUlNUQUJMRTMsIGVjMi5JbnN0YW5jZVNpemUuU01BTEwpLFxuICAgIHZwY1N1Ym5ldHM6IHsgc3VibmV0VHlwZTogZWMyLlN1Ym5ldFR5cGUuUFVCTElDIH0sXG4gICAgdnBjLFxuICB9LFxuICBzdG9yYWdlRW5jcnlwdGlvbktleToga21zS2V5LFxuICBzM0ltcG9ydEJ1Y2tldHM6IFtpbXBvcnRCdWNrZXRdLFxuICBzM0V4cG9ydEJ1Y2tldHM6IFtleHBvcnRCdWNrZXRdLFxufSk7XG5cbmNsdXN0ZXIuY29ubmVjdGlvbnMuYWxsb3dEZWZhdWx0UG9ydEZyb21BbnlJcHY0KCdPcGVuIHRvIHRoZSB3b3JsZCcpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.js deleted file mode 100644 index 086f280ebac80..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-s3.mysql-8.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-s3-mysql-8-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -const importExportBucket = new s3.Bucket(stack, 'ImportExportBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new rds.DatabaseCluster(stack, 'Database', { - engine: rds.DatabaseClusterEngine.auroraMysql({ - version: rds.AuroraMysqlEngineVersion.VER_3_01_0, - }), - credentials: rds.Credentials.fromUsername('admin', { - password: cdk.SecretValue.plainText('7959866cacc02c2d243ecfe177464fe6'), - }), - instances: 1, - instanceProps: { vpc }, - s3ImportBuckets: [importExportBucket], - s3ExportBuckets: [importExportBucket], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci1zMy5teXNxbC04LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY2x1c3Rlci1zMy5teXNxbC04LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsOEJBQThCLENBQUMsQ0FBQztBQUVqRSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0s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25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstcmRzLXMzLW15c3FsLTgtaW50ZWcnKTtcblxuY29uc3QgdnBjID0gbmV3IGVjMi5WcGMoc3RhY2ssICdWUEMnLCB7IG1heEF6czogMiB9KTtcbmNvbnN0IGltcG9ydEV4cG9ydEJ1Y2tldCA9IG5ldyBzMy5CdWNrZXQoc3RhY2ssICdJbXBvcnRFeHBvcnRCdWNrZXQnLCB7XG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG59KTtcblxubmV3IHJkcy5EYXRhYmFzZUNsdXN0ZXIoc3RhY2ssICdEYXRhYmFzZScsIHtcbiAgZW5naW5lOiByZHMuRGF0YWJhc2VDbHVzdGVyRW5naW5lLmF1cm9yYU15c3FsKHtcbiAgICB2ZXJzaW9uOiByZHMuQXVyb3JhTXlzcWxFbmdpbmVWZXJzaW9uLlZFUl8zXzAxXzAsXG4gIH0pLFxuICBjcmVkZW50aWFsczogcmRzLkNyZWRlbnRpYWxzLmZyb21Vc2VybmFtZSgnYWRtaW4nLCB7XG4gICAgcGFzc3dvcmQ6IGNkay5TZWNyZXRWYWx1ZS5wbGFpblRleHQoJzc5NTk4NjZjYWNjMDJjMmQyNDNlY2ZlMTc3NDY0ZmU2JyksXG4gIH0pLFxuICBpbnN0YW5jZXM6IDEsXG4gIGluc3RhbmNlUHJvcHM6IHsgdnBjIH0sXG4gIHMzSW1wb3J0QnVja2V0czogW2ltcG9ydEV4cG9ydEJ1Y2tldF0sXG4gIHMzRXhwb3J0QnVja2V0czogW2ltcG9ydEV4cG9ydEJ1Y2tldF0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.js deleted file mode 100644 index e7bb9bae63099..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-snapshot.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const constructs_1 = require("constructs"); -const rds = require("aws-cdk-lib/aws-rds"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 1 }); - const cluster = new rds.DatabaseCluster(this, 'Cluster', { - engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_10_2 }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpc, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - const snapshoter = new Snapshoter(this, 'Snapshoter', { - cluster, - snapshotIdentifier: 'cdk-integ-cluster-snapshot', - }); - const fromSnapshot = new rds.DatabaseClusterFromSnapshot(this, 'FromSnapshot', { - snapshotIdentifier: snapshoter.snapshotArn, - snapshotCredentials: rds.SnapshotCredentials.fromGeneratedSecret('admin'), - engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_10_2 }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpc, - }, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - fromSnapshot.addRotationSingleUser(); - } -} -class Snapshoter extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - const clusterArn = aws_cdk_lib_1.Stack.of(this).formatArn({ - service: 'rds', - resource: 'cluster', - resourceName: props.cluster.clusterIdentifier, - arnFormat: aws_cdk_lib_1.ArnFormat.COLON_RESOURCE_NAME, - }); - const snapshotArn = aws_cdk_lib_1.Stack.of(this).formatArn({ - service: 'rds', - resource: 'cluster-snapshot', - resourceName: props.snapshotIdentifier, - arnFormat: aws_cdk_lib_1.ArnFormat.COLON_RESOURCE_NAME, - }); - const code = lambda.Code.fromAsset(path.join(__dirname, 'snapshot-handler')); - const onEventHandler = new lambda.Function(this, 'OnEventHandler', { - code, - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.onEventHandler', - }); - onEventHandler.addToRolePolicy(new iam.PolicyStatement({ - actions: ['rds:CreateDBClusterSnapshot', 'rds:DeleteDBClusterSnapshot'], - resources: [clusterArn, snapshotArn], - })); - const isCompleteHandler = new lambda.Function(this, 'IsCompleteHandler', { - code, - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.isCompleteHandler', - }); - isCompleteHandler.addToRolePolicy(new iam.PolicyStatement({ - actions: ['rds:DescribeDBClusterSnapshots'], - resources: [clusterArn, snapshotArn], - })); - const provider = new cr.Provider(this, 'SnapshotProvider', { - onEventHandler, - isCompleteHandler, - }); - const customResource = new aws_cdk_lib_1.CustomResource(this, 'Snapshot', { - resourceType: 'Custom::Snapshoter', - serviceToken: provider.serviceToken, - properties: { - DBClusterIdentifier: props.cluster.clusterIdentifier, - DBClusterSnapshotIdentifier: props.snapshotIdentifier, - }, - }); - this.snapshotArn = customResource.getAttString('DBClusterSnapshotArn'); - } -} -const app = new aws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ci5hZGRUb1JvbGVQb2xpY3kobmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoe1xuICAgICAgYWN0aW9uczogWydyZHM6RGVzY3JpYmVEQkNsdXN0ZXJTbmFwc2hvdHMnXSxcbiAgICAgIHJlc291cmNlczogW2NsdXN0ZXJBcm4sIHNuYXBzaG90QXJuXSxcbiAgICB9KSk7XG5cbiAgICBjb25zdCBwcm92aWRlciA9IG5ldyBjci5Qcm92aWRlcih0aGlzLCAnU25hcHNob3RQcm92aWRlcicsIHtcbiAgICAgIG9uRXZlbnRIYW5kbGVyLFxuICAgICAgaXNDb21wbGV0ZUhhbmRsZXIsXG4gICAgfSk7XG5cbiAgICBjb25zdCBjdXN0b21SZXNvdXJjZSA9IG5ldyBDdXN0b21SZXNvdXJjZSh0aGlzLCAnU25hcHNob3QnLCB7XG4gICAgICByZXNvdXJjZVR5cGU6ICdDdXN0b206OlNuYXBzaG90ZXInLFxuICAgICAgc2VydmljZVRva2VuOiBwcm92aWRlci5zZXJ2aWNlVG9rZW4sXG4gICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgIERCQ2x1c3RlcklkZW50aWZpZXI6IHByb3BzLmNsdXN0ZXIuY2x1c3RlcklkZW50aWZpZXIsXG4gICAgICAgIERCQ2x1c3RlclNuYXBzaG90SWRlbnRpZmllcjogcHJvcHMuc25hcHNob3RJZGVudGlmaWVyLFxuICAgICAgfSxcbiAgICB9KTtcbiAgICB0aGlzLnNuYXBzaG90QXJuID0gY3VzdG9tUmVzb3VyY2UuZ2V0QXR0U3RyaW5nKCdEQkNsdXN0ZXJTbmFwc2hvdEFybicpO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbm5ldyBUZXN0U3RhY2soYXBwLCAnY2RrLWludGVnLWNsdXN0ZXItc25hcHNob3QnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js deleted file mode 100644 index cb219f7e2ef10..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const cdk = require("aws-cdk-lib"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -const params = new aws_rds_1.ParameterGroup(stack, 'Params', { - engine: aws_rds_1.DatabaseClusterEngine.AURORA, - description: 'A nice parameter group', - parameters: { - character_set_database: 'utf8mb4', - }, -}); -const kmsKey = new kms.Key(stack, 'DbSecurity'); -const cluster = new aws_rds_1.DatabaseCluster(stack, 'Database', { - engine: aws_rds_1.DatabaseClusterEngine.AURORA, - credentials: aws_rds_1.Credentials.fromUsername('admin', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - vpc, - }, - parameterGroup: params, - storageEncryptionKey: kmsKey, -}); -cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -const role = new iam.Role(stack, 'ClusterIamAccess', { - assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), -}); -const clusterIamAuthArn = stack.formatArn({ - service: 'rds-db', - resource: `dbuser:${cluster.clusterResourceIdentifier}`, - resourceName: 'db_user', -}); -role.addToPolicy(new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - actions: ['rds-db:connect'], - resources: [clusterIamAuthArn], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2x1c3Rlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNsdXN0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsaURBQTBHO0FBRTFHLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsbUJBQW1CLENBQUMsQ0FBQztBQUV0RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxFQUFFLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBRXJELE1BQU0sTUFBTSxHQUFHLElBQUksd0JBQWMsQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFO0lBQ2pELE1BQU0sRUFBRSwrQkFBcUIsQ0FBQyxNQUFNO0lBQ3BDLFdBQVcsRUFBRSx3QkFBd0I7SUFDckMsVUFBVSxFQUFFO1FBQ1Ysc0JBQXNCLEVBQUUsU0FBUztLQUNsQztDQUNGLENBQUMsQ0FBQztBQUVILE1BQU0sTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLE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2aWNlUHJpbmNpcGFsKCdlY3MtdGFza3MuYW1hem9uYXdzLmNvbScpLFxufSk7XG5jb25zdCBjbHVzdGVySWFtQXV0aEFybiA9IHN0YWNrLmZvcm1hdEFybih7XG4gIHNlcnZpY2U6ICdyZHMtZGInLFxuICByZXNvdXJjZTogYGRidXNlcjoke2NsdXN0ZXIuY2x1c3RlclJlc291cmNlSWRlbnRpZmllcn1gLFxuICByZXNvdXJjZU5hbWU6ICdkYl91c2VyJyxcbn0pO1xucm9sZS5hZGRUb1BvbGljeShcbiAgbmV3IGlhbS5Qb2xpY3lTdGF0ZW1lbnQoe1xuICAgIGVmZmVjdDogaWFtLkVmZmVjdC5BTExPVyxcbiAgICBhY3Rpb25zOiBbJ3Jkcy1kYjpjb25uZWN0J10sXG4gICAgcmVzb3VyY2VzOiBbY2x1c3RlcklhbUF1dGhBcm5dLFxuICB9KSxcbik7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.js deleted file mode 100644 index f4cbfddb23a71..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-dual.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-instance-dual-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 0 }); -const ipv6 = new ec2.CfnVPCCidrBlock(stack, 'Ipv6CidrBlock', { vpcId: vpc.vpcId, amazonProvidedIpv6CidrBlock: true }); -vpc.isolatedSubnets.forEach((subnet, idx) => { - const cfnSubnet = subnet.node.defaultChild; - cfnSubnet.ipv6CidrBlock = cdk.Fn.select(idx, cdk.Fn.cidr(cdk.Fn.select(0, vpc.vpcIpv6CidrBlocks), 256, '64')); - cfnSubnet.addDependsOn(ipv6); -}); -new rds.DatabaseInstance(stack, 'DualstackInstance', { - engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_15_2 }), - credentials: rds.Credentials.fromUsername('postgres', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MICRO), - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, - multiAz: false, - publiclyAccessible: false, - networkType: rds.NetworkType.DUAL, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new rds.DatabaseInstance(stack, 'Ipv4Instance', { - engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_15_2 }), - credentials: rds.Credentials.fromUsername('postgres', { password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6') }), - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MICRO), - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }, - multiAz: false, - publiclyAccessible: false, - networkType: rds.NetworkType.IPV4, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new integ_tests_alpha_1.IntegTest(app, 'instance-dual-test', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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lDUk8pLFxuICB2cGMsXG4gIHZwY1N1Ym5ldHM6IHsgc3VibmV0VHlwZTogZWMyLlN1Ym5ldFR5cGUuUFJJVkFURV9JU09MQVRFRCB9LFxuICBtdWx0aUF6OiBmYWxzZSxcbiAgcHVibGljbHlBY2Nlc3NpYmxlOiBmYWxzZSxcbiAgbmV0d29ya1R5cGU6IHJkcy5OZXR3b3JrVHlwZS5JUFY0LFxuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW5zdGFuY2UtZHVhbC10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.js deleted file mode 100644 index 766380b840016..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-from-generated-password.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -class DatabaseInstanceStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc'); - new rds.DatabaseInstance(this, 'Instance', { - engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_21 }), - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - credentials: rds.Credentials.fromGeneratedSecret('admin', { excludeCharacters: '!&*^#@()' }), - vpc, - databaseName: 'CDKDB', - storageEncrypted: true, - backupRetention: cdk.Duration.days(0), - deleteAutomatedBackups: true, - }); - } -} -new DatabaseInstanceStack(app, 'aws-cdk-rds-fixed-username'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UtZnJvbS1nZW5lcmF0ZWQtcGFzc3dvcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5pbnN0YW5jZS1mcm9tLWdlbmVyYXRlZC1wYXNzd29yZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0scUJBQXNCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDM0MsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLEtBQXNCO1FBQzVELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFckMsSUFBSSxHQUFHLENBQUMsZ0JBQWdCLENBQUMsSUFBSSxFQUFFLFVBQVUsRUFBRTtZQUN6QyxNQUFNLEVBQUUsR0FBRyxDQUFDLHNCQUFzQixDQUFDLEtBQUssQ0FBQyxFQUFFLE9BQU8sRUFBRSxHQUFHLENBQUMsa0JBQWtCLENBQ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jb25zdCB2cGMgPSBuZXcgZWMyLlZwYyh0aGlzLCAnVnBjJyk7XG5cbiAgICBuZXcgcmRzLkRhdGFiYXNlSW5zdGFuY2UodGhpcywgJ0luc3RhbmNlJywge1xuICAgICAgZW5naW5lOiByZHMuRGF0YWJhc2VJbnN0YW5jZUVuZ2luZS5teXNxbCh7IHZlcnNpb246IHJkcy5NeXNxbEVuZ2luZVZlcnNpb24uVkVSXzhfMF8yMSB9KSxcbiAgICAgIGluc3RhbmNlVHlwZTogZWMyLkluc3RhbmNlVHlwZS5vZihlYzIuSW5zdGFuY2VDbGFzcy5CVVJTVEFCTEUzLCBlYzIuSW5zdGFuY2VTaXplLlNNQUxMKSxcbiAgICAgIGNyZWRlbnRpYWxzOiByZHMuQ3JlZGVudGlhbHMuZnJvbUdlbmVyYXRlZFNlY3JldCgnYWRtaW4nLCB7IGV4Y2x1ZGVDaGFyYWN0ZXJzOiAnISYqXiNAKCknIH0pLFxuICAgICAgdnBjLFxuICAgICAgZGF0YWJhc2VOYW1lOiAnQ0RLREInLFxuICAgICAgc3RvcmFnZUVuY3J5cHRlZDogdHJ1ZSxcbiAgICAgIGJhY2t1cFJldGVudGlvbjogY2RrLkR1cmF0aW9uLmRheXMoMCksXG4gICAgICBkZWxldGVBdXRvbWF0ZWRCYWNrdXBzOiB0cnVlLFxuICAgIH0pO1xuICB9XG59XG5cbm5ldyBEYXRhYmFzZUluc3RhbmNlU3RhY2soYXBwLCAnYXdzLWNkay1yZHMtZml4ZWQtdXNlcm5hbWUnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.js deleted file mode 100644 index a152df1a1efed..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-gp3.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const vpc = new aws_ec2_1.Vpc(this, 'Vpc', { maxAzs: 2, natGateways: 1 }); - new aws_rds_1.DatabaseInstance(this, 'Instance', { - engine: aws_rds_1.DatabaseInstanceEngine.mysql({ version: aws_rds_1.MysqlEngineVersion.VER_8_0_30 }), - instanceType: aws_ec2_1.InstanceType.of(aws_ec2_1.InstanceClass.BURSTABLE3, aws_ec2_1.InstanceSize.SMALL), - vpc, - allocatedStorage: 1000, - storageType: aws_rds_1.StorageType.GP3, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ.IntegTest(app, 'InstanceGp3Test', { - testCases: [new TestStack(app, 'cdk-integ-rds-instance-gp3')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UtZ3AzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW5zdGFuY2UtZ3AzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQXFGO0FBQ3JGLDZDQUF3RDtBQUN4RCxvREFBb0Q7QUFFcEQsaURBQWdIO0FBRWhILE1BQU0sU0FBVSxTQUF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WN5OiBSZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ0luc3RhbmNlR3AzVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbbmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctcmRzLWluc3RhbmNlLWdwMycpXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.js deleted file mode 100644 index 26c669371e250..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3-postgres.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-instance-s3-postgres-integ'); -new rds.DatabaseInstance(stack, 'Instance', { - engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_15_2 }), - vpc: new ec2.Vpc(stack, 'VPC', { maxAzs: 2, natGateways: 1 }), - multiAz: false, - publiclyAccessible: true, - iamAuthentication: true, - s3ImportBuckets: [new s3.Bucket(stack, 'ImportBucket', { removalPolicy: cdk.RemovalPolicy.DESTROY })], - s3ExportBuckets: [new s3.Bucket(stack, 'ExportBucket', { removalPolicy: cdk.RemovalPolicy.DESTROY })], - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UtczMtcG9zdGdyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5pbnN0YW5jZS1zMy1wb3N0Z3Jlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLDJDQUEyQztBQUUzQyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHdDQUF3QyxDQUFDLENBQUM7QUFFM0UsSUFBSSxHQUFHLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUMxQyxNQUFNLEVBQUUsR0FBRyxDQUFDLHNCQUFzQixDQUFDLFFBQVEsQ0FBQyxFQUFFLE9BQU8sRUFBRSxHQUFHLENBQUMscUJBQXFCLENBQUMsUUFBUSxFQUFFLENBQUM7SUFDNUYsR0FBRyxFQUFFLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEVBQUUsTUFBTSxFQUFFLENBQUMsRUFBRSxXQUFXLEVBQUUsQ0FBQyxFQUFFLENBQUM7SUFDN0QsT0FBTyxFQUFFLEtBQUs7SUFDZCxrQkFBa0IsRUFBRSxJQUFJO0lBQ3hCLGlCQUFpQixFQUFFLElBQUk7SUFDdkIsZUFBZSxFQUFFL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F4QXpzOiAyLCBuYXRHYXRld2F5czogMSB9KSxcbiAgbXVsdGlBejogZmFsc2UsXG4gIHB1YmxpY2x5QWNjZXNzaWJsZTogdHJ1ZSxcbiAgaWFtQXV0aGVudGljYXRpb246IHRydWUsXG4gIHMzSW1wb3J0QnVja2V0czogW25ldyBzMy5CdWNrZXQoc3RhY2ssICdJbXBvcnRCdWNrZXQnLCB7IHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1kgfSldLFxuICBzM0V4cG9ydEJ1Y2tldHM6IFtuZXcgczMuQnVja2V0KHN0YWNrLCAnRXhwb3J0QnVja2V0JywgeyByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZIH0pXSxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.js deleted file mode 100644 index 4e50dcb70d492..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance-s3.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-instance-s3-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); -const importBucket = new s3.Bucket(stack, 'ImportBucket', { removalPolicy: cdk.RemovalPolicy.DESTROY }); -const exportBucket = new s3.Bucket(stack, 'ExportBucket', { removalPolicy: cdk.RemovalPolicy.DESTROY }); -new aws_rds_1.DatabaseInstance(stack, 'Database', { - engine: aws_rds_1.DatabaseInstanceEngine.sqlServerSe({ version: aws_rds_1.SqlServerEngineVersion.VER_14 }), - vpc, - licenseModel: aws_rds_1.LicenseModel.LICENSE_INCLUDED, - s3ImportBuckets: [importBucket], - s3ExportBuckets: [exportBucket], - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UtczMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5pbnN0YW5jZS1zMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLGlEQUFxSDtBQUVySCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLCtCQUErQixDQUFDLENBQUM7QUFFbEUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxNQUFNLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLGNBQWMsRUFBRSxFQUFFLGFBQWEsR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GFjayA9IG5ldyBjZGsuU3RhY2soYXBwLCAnYXdzLWNkay1yZHMtaW5zdGFuY2UtczMtaW50ZWcnKTtcblxuY29uc3QgdnBjID0gbmV3IGVjMi5WcGMoc3RhY2ssICdWUEMnLCB7IG1heEF6czogMiB9KTtcblxuY29uc3QgaW1wb3J0QnVja2V0ID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ0ltcG9ydEJ1Y2tldCcsIHsgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSB9KTtcbmNvbnN0IGV4cG9ydEJ1Y2tldCA9IG5ldyBzMy5CdWNrZXQoc3RhY2ssICdFeHBvcnRCdWNrZXQnLCB7IHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1kgfSk7XG5cbm5ldyBEYXRhYmFzZUluc3RhbmNlKHN0YWNrLCAnRGF0YWJhc2UnLCB7XG4gIGVuZ2luZTogRGF0YWJhc2VJbnN0YW5jZUVuZ2luZS5zcWxTZXJ2ZXJTZSh7IHZlcnNpb246IFNxbFNlcnZlckVuZ2luZVZlcnNpb24uVkVSXzE0IH0pLFxuICB2cGMsXG4gIGxpY2Vuc2VNb2RlbDogTGljZW5zZU1vZGVsLkxJQ0VOU0VfSU5DTFVERUQsXG4gIHMzSW1wb3J0QnVja2V0czogW2ltcG9ydEJ1Y2tldF0sXG4gIHMzRXhwb3J0QnVja2V0czogW2V4cG9ydEJ1Y2tldF0sXG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.js deleted file mode 100644 index b9610476e8f47..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.instance.lit.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudwatch = require("aws-cdk-lib/aws-cloudwatch"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const targets = require("aws-cdk-lib/aws-events-targets"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const logs = require("aws-cdk-lib/aws-logs"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -class DatabaseInstanceStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'VPC', { maxAzs: 2 }); - /// !show - // Set open cursors with parameter group - const parameterGroup = new rds.ParameterGroup(this, 'ParameterGroup', { - engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), - parameters: { - open_cursors: '2500', - }, - }); - /// Add XMLDB and OEM with option group - const optionGroup = new rds.OptionGroup(this, 'OptionGroup', { - engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), - configurations: [ - { - name: 'LOCATOR', - }, - { - name: 'OEM', - port: 1158, - vpc, - }, - ], - }); - // Allow connections to OEM - optionGroup.optionConnections.OEM.connections.allowDefaultPortFromAnyIpv4(); - // Database instance with production values - const instance = new rds.DatabaseInstance(this, 'Instance', { - engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }), - licenseModel: rds.LicenseModel.BRING_YOUR_OWN_LICENSE, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), - multiAz: true, - storageType: rds.StorageType.IO1, - credentials: rds.Credentials.fromUsername('syscdk'), - vpc, - databaseName: 'ORCL', - storageEncrypted: true, - backupRetention: cdk.Duration.days(7), - monitoringInterval: cdk.Duration.seconds(60), - enablePerformanceInsights: true, - cloudwatchLogsExports: [ - 'trace', - 'audit', - 'alert', - 'listener', - ], - cloudwatchLogsRetention: logs.RetentionDays.ONE_MONTH, - autoMinorVersionUpgrade: true, - optionGroup, - parameterGroup, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - }); - // Allow connections on default port from any IPV4 - instance.connections.allowDefaultPortFromAnyIpv4(); - // Rotate the master user password every 30 days - instance.addRotationSingleUser(); - // Add alarm for high CPU - new cloudwatch.Alarm(this, 'HighCPU', { - metric: instance.metricCPUUtilization(), - threshold: 90, - evaluationPeriods: 1, - }); - // Trigger Lambda function on instance availability events - const fn = new lambda.Function(this, 'Function', { - code: lambda.Code.fromInline('exports.handler = (event) => console.log(event);'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - }); - const availabilityRule = instance.onEvent('Availability', { target: new targets.LambdaFunction(fn) }); - availabilityRule.addEventPattern({ - detail: { - EventCategories: [ - 'availability', - ], - }, - }); - /// !hide - } -} -new DatabaseInstanceStack(app, 'aws-cdk-rds-instance'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW5zdGFuY2UubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW5zdGFuY2UubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQXlEO0FBQ3pELDJDQUEyQztBQUMzQywwREFBMEQ7QUFDMUQsaURBQWlEO0FBQ2pELDZDQUE2QztBQUM3QyxtQ0FBbUM7QU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k7XG5cbiAgICAvLyBUcmlnZ2VyIExhbWJkYSBmdW5jdGlvbiBvbiBpbnN0YW5jZSBhdmFpbGFiaWxpdHkgZXZlbnRzXG4gICAgY29uc3QgZm4gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdGdW5jdGlvbicsIHtcbiAgICAgIGNvZGU6IGxhbWJkYS5Db2RlLmZyb21JbmxpbmUoJ2V4cG9ydHMuaGFuZGxlciA9IChldmVudCkgPT4gY29uc29sZS5sb2coZXZlbnQpOycpLFxuICAgICAgaGFuZGxlcjogJ2luZGV4LmhhbmRsZXInLFxuICAgICAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuTk9ERUpTXzE0X1gsXG4gICAgfSk7XG5cbiAgICBjb25zdCBhdmFpbGFiaWxpdHlSdWxlID0gaW5zdGFuY2Uub25FdmVudCgnQXZhaWxhYmlsaXR5JywgeyB0YXJnZXQ6IG5ldyB0YXJnZXRzLkxhbWJkYUZ1bmN0aW9uKGZuKSB9KTtcbiAgICBhdmFpbGFiaWxpdHlSdWxlLmFkZEV2ZW50UGF0dGVybih7XG4gICAgICBkZXRhaWw6IHtcbiAgICAgICAgRXZlbnRDYXRlZ29yaWVzOiBbXG4gICAgICAgICAgJ2F2YWlsYWJpbGl0eScsXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIH0pO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbm5ldyBEYXRhYmFzZUluc3RhbmNlU3RhY2soYXBwLCAnYXdzLWNkay1yZHMtaW5zdGFuY2UnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.js deleted file mode 100644 index e8eff43a6deb4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-proxy'); -const vpc = new ec2.Vpc(stack, 'vpc', { maxAzs: 2 }); -const dbInstance = new rds.DatabaseInstance(stack, 'dbInstance', { - engine: rds.DatabaseInstanceEngine.postgres({ - version: rds.PostgresEngineVersion.VER_15_2, - }), - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), - credentials: rds.Credentials.fromUsername('master', { - excludeCharacters: '"@/\\', - }), - vpc, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new rds.DatabaseProxy(stack, 'dbProxy', { - borrowTimeout: cdk.Duration.seconds(30), - maxConnectionsPercent: 50, - secrets: [dbInstance.secret], - proxyTarget: rds.ProxyTarget.fromInstance(dbInstance), - vpc, -}); -const cluster = new rds.DatabaseCluster(stack, 'dbCluster', { - engine: rds.DatabaseClusterEngine.auroraPostgres({ - version: rds.AuroraPostgresEngineVersion.VER_14_5, - }), - instanceProps: { vpc }, -}); -new rds.DatabaseProxy(stack, 'Proxy', { - dbProxyName: 'cluster-db-proxy', - proxyTarget: rds.ProxyTarget.fromCluster(cluster), - secrets: [cluster.secret], - vpc, -}); -new integ.IntegTest(app, 'database-proxy-integ-test', { - testCases: [stack], - diffAssets: true, - cdkCommandOptions: { - deploy: { - args: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LXByb3h5LWludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgZGlmZkFzc2V0czogdHJ1ZSxcbiAgY2RrQ29tbWFuZE9wdGlvbnM6IHtcbiAgICBkZXBsb3k6IHtcbiAgICAgIGFyZ3M6IHtcbiAgICAgICAgcm9sbGJhY2s6IHRydWUsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.js deleted file mode 100644 index e973604abaff1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.read-replica.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_ec2_1 = require("aws-cdk-lib/aws-ec2"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new aws_ec2_1.Vpc(this, 'Vpc', { - maxAzs: 2, - subnetConfiguration: [ - { - name: 'isolated', - subnetType: aws_ec2_1.SubnetType.PRIVATE_ISOLATED, - }, - ], - }); - const instanceType = aws_ec2_1.InstanceType.of(aws_ec2_1.InstanceClass.T3, aws_ec2_1.InstanceSize.SMALL); - const vpcSubnets = { subnetType: aws_ec2_1.SubnetType.PRIVATE_ISOLATED }; - const postgresSource = new rds.DatabaseInstance(this, 'PostgresSource', { - engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_15_2 }), - backupRetention: aws_cdk_lib_1.Duration.days(5), - instanceType, - vpc, - vpcSubnets, - }); - new rds.DatabaseInstanceReadReplica(this, 'PostgresReplica', { - sourceDatabaseInstance: postgresSource, - instanceType, - vpc, - vpcSubnets, - }); - const mysqlSource = new rds.DatabaseInstance(this, 'MysqlSource', { - engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0 }), - backupRetention: aws_cdk_lib_1.Duration.days(5), - instanceType, - vpc, - vpcSubnets, - }); - const parameterGroup = new rds.ParameterGroup(this, 'ReplicaParameterGroup', { - engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0 }), - parameters: { - wait_timeout: '86400', - }, - }); - new rds.DatabaseInstanceReadReplica(this, 'MysqlReplica', { - sourceDatabaseInstance: mysqlSource, - backupRetention: aws_cdk_lib_1.Duration.days(3), - instanceType, - vpc, - vpcSubnets, - parameterGroup, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-rds-read-replica'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVhZC1yZXBsaWNhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucmVhZC1yZXBsaWNhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWtIO0FBQ2xILDZDQUErRDtBQUUvRCwyQ0FBMkM7QUFFM0MsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEdBQUcsR0FBRyxJQUFJLGFBQUcsQ0FBQyxJQUFJLEVBQUUs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HBhcmFtZXRlcnM6IHtcbiAgICAgICAgd2FpdF90aW1lb3V0OiAnODY0MDAnLFxuICAgICAgfSxcbiAgICB9KTtcblxuICAgIG5ldyByZHMuRGF0YWJhc2VJbnN0YW5jZVJlYWRSZXBsaWNhKHRoaXMsICdNeXNxbFJlcGxpY2EnLCB7XG4gICAgICBzb3VyY2VEYXRhYmFzZUluc3RhbmNlOiBteXNxbFNvdXJjZSxcbiAgICAgIGJhY2t1cFJldGVudGlvbjogRHVyYXRpb24uZGF5cygzKSxcbiAgICAgIGluc3RhbmNlVHlwZSxcbiAgICAgIHZwYyxcbiAgICAgIHZwY1N1Ym5ldHMsXG4gICAgICBwYXJhbWV0ZXJHcm91cCxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1yZHMtcmVhZC1yZXBsaWNhJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.js deleted file mode 100644 index 8092563ea7174..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.rolling-instance-updates.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integTests = require("@aws-cdk/integ-tests-alpha"); -const rds = require("aws-cdk-lib/aws-rds"); -class RollingInstanceUpdateTestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc', { - maxAzs: 2, - }); - new rds.DatabaseCluster(this, 'DatabaseCluster', { - engine: rds.DatabaseClusterEngine.AURORA, - instances: 3, - instanceProps: { - instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL), - vpc, - }, - removalPolicy: cdk.RemovalPolicy.DESTROY, - instanceUpdateBehaviour: props.instanceUpdateBehaviour, - }); - } -} -// Beginning of the test suite -const app = new cdk.App(); -new integTests.IntegTest(app, 'InstanceUpdateBehaviorTests', { - testCases: [ - new RollingInstanceUpdateTestStack(app, 'BulkUpdate', { - instanceUpdateBehaviour: rds.InstanceUpdateBehaviour.BULK, - }), - new RollingInstanceUpdateTestStack(app, 'RollingUpdate', { - instanceUpdateBehaviour: rds.InstanceUpdateBehaviour.ROLLING, - }), - ], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucm9sbGluZy1pbnN0YW5jZS11cGRhdGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucm9sbGluZy1pbnN0YW5jZS11cGRhdGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyx5REFBeUQ7QUFFekQsMkNBQTJDO0FBTTNDLE1BQU0sOEJBQStCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDcEQsWUFBWSxLQUEyQixFQUFFLEVBQVUsRUFBRSxLQUEwQztRQUM3RixLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUN4QixNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQU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gICAgICAgIGluc3RhbmNlVHlwZTogZWMyLkluc3RhbmNlVHlwZS5vZihlYzIuSW5zdGFuY2VDbGFzcy5CVVJTVEFCTEUzLCBlYzIuSW5zdGFuY2VTaXplLlNNQUxMKSxcbiAgICAgICAgdnBjLFxuICAgICAgfSxcbiAgICAgIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgICBpbnN0YW5jZVVwZGF0ZUJlaGF2aW91cjogcHJvcHMuaW5zdGFuY2VVcGRhdGVCZWhhdmlvdXIsXG4gICAgfSk7XG4gIH1cbn1cblxuXG4vLyBCZWdpbm5pbmcgb2YgdGhlIHRlc3Qgc3VpdGVcbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgaW50ZWdUZXN0cy5JbnRlZ1Rlc3QoYXBwLCAnSW5zdGFuY2VVcGRhdGVCZWhhdmlvclRlc3RzJywge1xuICB0ZXN0Q2FzZXM6IFtcbiAgICBuZXcgUm9sbGluZ0luc3RhbmNlVXBkYXRlVGVzdFN0YWNrKGFwcCwgJ0J1bGtVcGRhdGUnLCB7XG4gICAgICBpbnN0YW5jZVVwZGF0ZUJlaGF2aW91cjogcmRzLkluc3RhbmNlVXBkYXRlQmVoYXZpb3VyLkJVTEssXG4gICAgfSksXG4gICAgbmV3IFJvbGxpbmdJbnN0YW5jZVVwZGF0ZVRlc3RTdGFjayhhcHAsICdSb2xsaW5nVXBkYXRlJywge1xuICAgICAgaW5zdGFuY2VVcGRhdGVCZWhhdmlvdXI6IHJkcy5JbnN0YW5jZVVwZGF0ZUJlaGF2aW91ci5ST0xMSU5HLFxuICAgIH0pLFxuICBdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.js deleted file mode 100644 index 5740dc389a288..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-no-vpc.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-sls-cluster-no-vpc-integ'); -const cluster = new rds.ServerlessCluster(stack, 'Serverless Database Without VPC', { - engine: rds.DatabaseClusterEngine.AURORA_MYSQL, - credentials: { - username: 'admin', - password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6'), - }, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -const noCopyTagsCluster = new rds.ServerlessCluster(stack, 'Serverless Database Without VPC and Copy Tags', { - engine: rds.DatabaseClusterEngine.AURORA_MYSQL, - credentials: { - username: 'admin', - password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6'), - }, - removalPolicy: cdk.RemovalPolicy.DESTROY, - copyTagsToSnapshot: false, -}); -noCopyTagsCluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmVybGVzcy1jbHVzdGVyLW5vLXZwYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlcnZlcmxlc3MtY2x1c3Rl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GhvdXQgVlBDIGFuZCBDb3B5IFRhZ3MnLCB7XG4gIGVuZ2luZTogcmRzLkRhdGFiYXNlQ2x1c3RlckVuZ2luZS5BVVJPUkFfTVlTUUwsXG4gIGNyZWRlbnRpYWxzOiB7XG4gICAgdXNlcm5hbWU6ICdhZG1pbicsXG4gICAgcGFzc3dvcmQ6IGNkay5TZWNyZXRWYWx1ZS51bnNhZmVQbGFpblRleHQoJzc5NTk4NjZjYWNjMDJjMmQyNDNlY2ZlMTc3NDY0ZmU2JyksXG4gIH0sXG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gIGNvcHlUYWdzVG9TbmFwc2hvdDogZmFsc2UsXG59KTtcbm5vQ29weVRhZ3NDbHVzdGVyLmNvbm5lY3Rpb25zLmFsbG93RGVmYXVsdFBvcnRGcm9tQW55SXB2NCgnT3BlbiB0byB0aGUgd29ybGQnKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.js deleted file mode 100644 index 9e00bfa565c05..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation-custom-names.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-integ-secret-rotation'); -const kmsKey = new kms.Key(stack, 'DbSecurity'); -const secret = new aws_rds_1.DatabaseSecret(stack, 'test-secret', { - username: 'admin', - dbname: 'admindb', - secretName: 'admin-secret', -}); -const cluster = new aws_rds_1.ServerlessCluster(stack, 'Database', { - engine: aws_rds_1.DatabaseClusterEngine.AURORA_MYSQL, - credentials: aws_rds_1.Credentials.fromSecret(secret), - storageEncryptionKey: kmsKey, -}); -secret.addRotationSchedule('test-schedule', { - hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(), -}); -cluster.grantDataApiAccess(new iam.AccountRootPrincipal()); -cluster.grantDataApiAccess(new iam.ServicePrincipal('ecs-tasks.amazonaws.com')); -new integ_tests_alpha_1.IntegTest(app, 'cdk-rds-integ-secret-rotation', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmVybGVzcy1jbHVzdGVyLXNlY3JldC1yb3RhdGlvbi1jdXN0b20tbmFtZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zZXJ2ZXJsZXNzLWNsdXN0ZXItc2VjcmV0LXJvdGF0aW9uLWN1c3RvbS1uYW1lcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsaUVBQWlFO0FBQ2pFLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsaURBQTRHO0FBRTVHLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDL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FiYXNlQ2x1c3RlckVuZ2luZS5BVVJPUkFfTVlTUUwsXG4gIGNyZWRlbnRpYWxzOiBDcmVkZW50aWFscy5mcm9tU2VjcmV0KHNlY3JldCksXG4gIHN0b3JhZ2VFbmNyeXB0aW9uS2V5OiBrbXNLZXksXG59KTtcblxuc2VjcmV0LmFkZFJvdGF0aW9uU2NoZWR1bGUoJ3Rlc3Qtc2NoZWR1bGUnLCB7XG4gIGhvc3RlZFJvdGF0aW9uOiBzZWNyZXRzbWFuYWdlci5Ib3N0ZWRSb3RhdGlvbi5teXNxbFNpbmdsZVVzZXIoKSxcbn0pO1xuXG5jbHVzdGVyLmdyYW50RGF0YUFwaUFjY2VzcyhuZXcgaWFtLkFjY291bnRSb290UHJpbmNpcGFsKCkpO1xuY2x1c3Rlci5ncmFudERhdGFBcGlBY2Nlc3MobmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdlY3MtdGFza3MuYW1hem9uYXdzLmNvbScpKTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstcmRzLWludGVnLXNlY3JldC1yb3RhdGlvbicsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.js deleted file mode 100644 index 5ba107fbfb1d4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster-secret-rotation.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_rds_1 = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-integ-secret-rotation'); -const kmsKey = new kms.Key(stack, 'DbSecurity'); -const secret = new aws_rds_1.DatabaseSecret(stack, 'test-secret', { - username: 'admin', -}); -const cluster = new aws_rds_1.ServerlessCluster(stack, 'Database', { - engine: aws_rds_1.DatabaseClusterEngine.AURORA_MYSQL, - credentials: aws_rds_1.Credentials.fromSecret(secret), - storageEncryptionKey: kmsKey, -}); -secret.addRotationSchedule('test-schedule', { - hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(), -}); -cluster.grantDataApiAccess(new iam.AccountRootPrincipal()); -cluster.grantDataApiAccess(new iam.ServicePrincipal('ecs-tasks.amazonaws.com')); -new integ_tests_alpha_1.IntegTest(app, 'cdk-rds-integ-secret-rotation', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmVybGVzcy1jbHVzdGVyLXNlY3JldC1yb3RhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlcnZlcmxlc3MtY2x1c3Rlci1zZWNyZXQtcm90YXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLGlFQUFpRTtBQUNqRSxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELGlEQUE0RztBQUU1RyxN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V0KSxcbiAgc3RvcmFnZUVuY3J5cHRpb25LZXk6IGttc0tleSxcbn0pO1xuXG5zZWNyZXQuYWRkUm90YXRpb25TY2hlZHVsZSgndGVzdC1zY2hlZHVsZScsIHtcbiAgaG9zdGVkUm90YXRpb246IHNlY3JldHNtYW5hZ2VyLkhvc3RlZFJvdGF0aW9uLm15c3FsU2luZ2xlVXNlcigpLFxufSk7XG5cbmNsdXN0ZXIuZ3JhbnREYXRhQXBpQWNjZXNzKG5ldyBpYW0uQWNjb3VudFJvb3RQcmluY2lwYWwoKSk7XG5jbHVzdGVyLmdyYW50RGF0YUFwaUFjY2VzcyhuZXcgaWFtLlNlcnZpY2VQcmluY2lwYWwoJ2Vjcy10YXNrcy5hbWF6b25hd3MuY29tJykpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1yZHMtaW50ZWctc2VjcmV0LXJvdGF0aW9uJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.js deleted file mode 100644 index 7e52ef29a8912..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.serverless-cluster.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const rds = require("aws-cdk-lib/aws-rds"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-rds-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const subnetGroup = new rds.SubnetGroup(stack, 'SubnetGroup', { - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - description: 'My Subnet Group', - subnetGroupName: 'MyNotLowerCaseSubnetGroupName', -}); -const cluster = new rds.ServerlessCluster(stack, 'Serverless Database', { - engine: rds.DatabaseClusterEngine.AURORA_MYSQL, - credentials: { - username: 'admin', - password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6'), - }, - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - subnetGroup, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -cluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -const noCopyTagsCluster = new rds.ServerlessCluster(stack, 'Serverless Database Without Copy Tags', { - engine: rds.DatabaseClusterEngine.AURORA_MYSQL, - credentials: { - username: 'admin', - password: cdk.SecretValue.unsafePlainText('7959866cacc02c2d243ecfe177464fe6'), - }, - vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, - subnetGroup, - removalPolicy: cdk.RemovalPolicy.DESTROY, - copyTagsToSnapshot: false, -}); -noCopyTagsCluster.connections.allowDefaultPortFromAnyIpv4('Open to the world'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmVybGVzcy1jbHVzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2VydmVybGVzcy1jbHVzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQywyQ0FBMkM7QUFFM0MsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM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iAgY3JlZGVudGlhbHM6IHtcbiAgICB1c2VybmFtZTogJ2FkbWluJyxcbiAgICBwYXNzd29yZDogY2RrLlNlY3JldFZhbHVlLnVuc2FmZVBsYWluVGV4dCgnNzk1OTg2NmNhY2MwMmMyZDI0M2VjZmUxNzc0NjRmZTYnKSxcbiAgfSxcbiAgdnBjLFxuICB2cGNTdWJuZXRzOiB7IHN1Ym5ldFR5cGU6IGVjMi5TdWJuZXRUeXBlLlBVQkxJQyB9LFxuICBzdWJuZXRHcm91cCxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbiAgY29weVRhZ3NUb1NuYXBzaG90OiBmYWxzZSxcbn0pO1xubm9Db3B5VGFnc0NsdXN0ZXIuY29ubmVjdGlvbnMuYWxsb3dEZWZhdWx0UG9ydEZyb21BbnlJcHY0KCdPcGVuIHRvIHRoZSB3b3JsZCcpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.d.ts deleted file mode 100644 index e074ead763e0a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare function onEventHandler(event: AWSCDKAsyncCustomResource.OnEventRequest): Promise; -export declare function isCompleteHandler(event: AWSCDKAsyncCustomResource.IsCompleteRequest): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.js deleted file mode 100644 index 96200908f12ba..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/snapshot-handler/index.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isCompleteHandler = exports.onEventHandler = void 0; -/* eslint-disable no-console */ -/// -const aws_sdk_1 = require("aws-sdk"); // eslint-disable-line import/no-extraneous-dependencies -async function onEventHandler(event) { - console.log('Event: %j', event); - const rds = new aws_sdk_1.RDS(); - const physicalResourceId = `${event.ResourceProperties.DBClusterIdentifier}-${event.ResourceProperties.DBClusterIdentifier}`; - if (event.RequestType === 'Create' || event.RequestType === 'Update') { - const data = await rds.createDBClusterSnapshot({ - DBClusterIdentifier: event.ResourceProperties.DBClusterIdentifier, - DBClusterSnapshotIdentifier: event.ResourceProperties.DBClusterSnapshotIdentifier, - }).promise(); - return { - PhysicalResourceId: physicalResourceId, - Data: { - DBClusterSnapshotArn: data.DBClusterSnapshot?.DBClusterSnapshotArn, - }, - }; - } - if (event.RequestType === 'Delete') { - await rds.deleteDBClusterSnapshot({ - DBClusterSnapshotIdentifier: event.ResourceProperties.DBClusterSnapshotIdentifier, - }).promise(); - } - return { - PhysicalResourceId: `${event.ResourceProperties.DBClusterIdentifier}-${event.ResourceProperties.DBClusterIdentifier}`, - }; -} -exports.onEventHandler = onEventHandler; -async function isCompleteHandler(event) { - console.log('Event: %j', event); - const snapshotStatus = await tryGetClusterSnapshotStatus(event.ResourceProperties.DBClusterSnapshotIdentifier); - switch (event.RequestType) { - case 'Create': - case 'Update': - return { IsComplete: snapshotStatus === 'available' }; - case 'Delete': - return { IsComplete: snapshotStatus === undefined }; - } -} -exports.isCompleteHandler = isCompleteHandler; -async function tryGetClusterSnapshotStatus(identifier) { - try { - const rds = new aws_sdk_1.RDS(); - const data = await rds.describeDBClusterSnapshots({ - DBClusterSnapshotIdentifier: identifier, - }).promise(); - return data.DBClusterSnapshots?.[0].Status; - } - catch (err) { - if (err.code === 'DBClusterSnapshotNotFoundFault') { - return undefined; - } - throw err; - } -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRle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GVycjogYW55KSB7XG4gICAgaWYgKGVyci5jb2RlID09PSAnREJDbHVzdGVyU25hcHNob3ROb3RGb3VuZEZhdWx0Jykge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgdGhyb3cgZXJyO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js deleted file mode 100644 index 70aa9e80c7fa4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// import { ROUTE53_PATTERNS_USE_CERTIFICATE } from '@aws-cdk/cx-api'; -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_route53_patterns_1 = require("aws-cdk-lib/aws-route53-patterns"); -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; -if (!hostedZoneId) - throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID"'); -const hostedZoneName = process.env.CDK_INTEG_HOSTED_ZONE_NAME ?? process.env.HOSTED_ZONE_NAME; -if (!hostedZoneName) - throw new Error('For this test you must provide your own HostedZoneName as an env var "HOSTED_ZONE_NAME"'); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; -if (!domainName) - throw new Error('For this test you must provide your own Domain Name as an env var "DOMAIN_NAME"'); -const app = new aws_cdk_lib_1.App({ -// uncomment this to test the old behavior -// postCliContext: { -// [ROUTE53_PATTERNS_USE_CERTIFICATE]: false, -// }, -}); -const testCase = new aws_cdk_lib_1.Stack(app, 'integ-https-redirect-same-region', { - env: { region: 'us-east-1' }, -}); -const hostedZone = aws_route53_1.PublicHostedZone.fromHostedZoneAttributes(testCase, 'HostedZone', { - hostedZoneId, - zoneName: hostedZoneName, -}); -new aws_route53_patterns_1.HttpsRedirect(testCase, 'redirect', { - zone: hostedZone, - recordNames: [`integ-same-region.${hostedZoneName}`], - targetDomain: 'aws.amazon.com', -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-test', { - testCases: [testCase], - enableLookups: true, - stackUpdateWorkflow: false, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaG9zdGVkLXJlZGlyZWN0LXNhbWUtcmVnaW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaG9zdGVkLXJlZGlyZWN0LXNhbWUtcmVnaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQTJEO0FBQzNELDZDQUF5QztBQUN6QyxzRUFBc0U7QUFDdEUsa0VBQXVEO0FBQ3ZELDJFQUFpRTtBQUNqRSxNQUFNLFlBQVksR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDO0FBQ3hGLElBQUksQ0FBQyxZQUFZO0lBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxxRkFBcUYsQ0FBQyxDQUFDO0FBQzFILE1BQU0sY0FBYyxHQUFHLE9BQU8sQ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3cy5hbWF6b24uY29tJyxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2ludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbiAgZW5hYmxlTG9va3VwczogdHJ1ZSxcbiAgc3RhY2tVcGRhdGVXb3JrZmxvdzogZmFsc2UsXG59KTtcblxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.js deleted file mode 100644 index cec1fd20c0f6e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// import { ROUTE53_PATTERNS_USE_CERTIFICATE } from '@aws-cdk/cx-api'; -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_route53_patterns_1 = require("aws-cdk-lib/aws-route53-patterns"); -const hostedZoneId = process.env.CDK_INTEG_HOSTED_ZONE_ID ?? process.env.HOSTED_ZONE_ID; -if (!hostedZoneId) - throw new Error('For this test you must provide your own HostedZoneId as an env var "HOSTED_ZONE_ID"'); -const hostedZoneName = process.env.CDK_INTEG_HOSTED_ZONE_NAME ?? process.env.HOSTED_ZONE_NAME; -if (!hostedZoneName) - throw new Error('For this test you must provide your own HostedZoneName as an env var "HOSTED_ZONE_NAME"'); -const domainName = process.env.CDK_INTEG_DOMAIN_NAME ?? process.env.DOMAIN_NAME; -if (!domainName) - throw new Error('For this test you must provide your own Domain Name as an env var "DOMAIN_NAME"'); -const app = new aws_cdk_lib_1.App({ -// uncomment this to test the old behavior -// postCliContext: { -// [ROUTE53_PATTERNS_USE_CERTIFICATE]: false, -// }, -}); -const testCase = new aws_cdk_lib_1.Stack(app, 'integ-https-redirect', { - crossRegionReferences: true, - env: { - account: process.env.CDK_DEFAULT_ACCOUNT, - region: 'us-east-2', // specifying region to test cross region functionality - }, -}); -const hostedZone = aws_route53_1.PublicHostedZone.fromHostedZoneAttributes(testCase, 'HostedZone', { - hostedZoneId, - zoneName: hostedZoneName, -}); -new aws_route53_patterns_1.HttpsRedirect(testCase, 'redirect', { - zone: hostedZone, - recordNames: [`integ.${hostedZoneName}`], - targetDomain: 'aws.amazon.com', -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-test', { - testCases: [testCase], - enableLookups: true, - stackUpdateWorkflow: false, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaG9zdGVkLXJlZGlyZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaG9zdGVkLXJlZGlyZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseURBQTJEO0FBQzNELDZDQUF5QztBQUN6QyxzRUFBc0U7QUFDdEUsa0VBQXVEO0FBQ3ZELDJFQUFpRTtBQUNqRSxNQUFNLFlBQVksR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxDQUFDO0FBQ3hGLElBQUksQ0FBQyxZQUFZO0lBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxxRkFBcUYsQ0FBQyxDQUFDO0FBQzFILE1BQ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Rlcyh0ZXN0Q2FzZSwgJ0hvc3RlZFpvbmUnLCB7XG4gIGhvc3RlZFpvbmVJZCxcbiAgem9uZU5hbWU6IGhvc3RlZFpvbmVOYW1lLFxufSk7XG5uZXcgSHR0cHNSZWRpcmVjdCh0ZXN0Q2FzZSwgJ3JlZGlyZWN0Jywge1xuICB6b25lOiBob3N0ZWRab25lLFxuICByZWNvcmROYW1lczogW2BpbnRlZy4ke2hvc3RlZFpvbmVOYW1lfWBdLFxuICB0YXJnZXREb21haW46ICdhd3MuYW1hem9uLmNvbScsXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdpbnRlZy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFt0ZXN0Q2FzZV0sXG4gIGVuYWJsZUxvb2t1cHM6IHRydWUsXG4gIHN0YWNrVXBkYXRlV29ya2Zsb3c6IGZhbHNlLFxufSk7XG5cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.js deleted file mode 100644 index b4a9bcd7c53d1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.alb-alias-target.js +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const route53 = require("aws-cdk-lib/aws-route53"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { - maxAzs: 2, -}); -const lb = new elbv2.ApplicationLoadBalancer(stack, 'LB', { - vpc, - internetFacing: true, -}); -const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'test.public' }); -new route53.ARecord(zone, 'Alias', { - zone, - recordName: '_foo', - target: route53.RecordTarget.fromAlias(new targets.LoadBalancerTarget(lb)), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWxiLWFsaWFzLXRhcmdldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFsYi1hbGlhcy10YXJnZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQTJDO0FBQzNDLGdFQUFnRTtBQUNoRSxtREFBbUQ7QUFDbkQsbUNBQW1DO0FBQ25DLDJEQUEyRDtBQUUzRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHFCQUFxQixDQUFDLENBQUM7QUFFeEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUU7SUFDcEMsTUFBTSxFQUFFLENBQUM7Q0FDVixDQUFDLENBQUM7QUFFSCxNQUFNLEVBQUUsR0FBRyxJQUFJLEtBQUssQ0FBQyx1QkFBdUIsQ0FBQyxLQUFLLEVBQUUsSUFBSSxFQUFFO0lBQ3hELEdBQUc7SUFDSCxjQUFjLEVBQUUsSUFBSTtDQUNyQixDQUFDLENB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J2Mi5BcHBsaWNhdGlvbkxvYWRCYWxhbmNlcihzdGFjaywgJ0xCJywge1xuICB2cGMsXG4gIGludGVybmV0RmFjaW5nOiB0cnVlLFxufSk7XG5cbmNvbnN0IHpvbmUgPSBuZXcgcm91dGU1My5QdWJsaWNIb3N0ZWRab25lKHN0YWNrLCAnSG9zdGVkWm9uZScsIHsgem9uZU5hbWU6ICd0ZXN0LnB1YmxpYycgfSk7XG5cbm5ldyByb3V0ZTUzLkFSZWNvcmQoem9uZSwgJ0FsaWFzJywge1xuICB6b25lLFxuICByZWNvcmROYW1lOiAnX2ZvbycsXG4gIHRhcmdldDogcm91dGU1My5SZWNvcmRUYXJnZXQuZnJvbUFsaWFzKG5ldyB0YXJnZXRzLkxvYWRCYWxhbmNlclRhcmdldChsYikpLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.js deleted file mode 100644 index e94e8edd3e142..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.api-gateway-domain-name.js +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const apig = require("aws-cdk-lib/aws-apigateway"); -const acm = require("aws-cdk-lib/aws-certificatemanager"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const route53 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const domainName = 'example.com'; - const certArn = 'arn:aws:acm:us-east-1:111111111111:certificate'; - const hostedZoneId = 'AAAAAAAAAAAAA'; - const handler = new lambda.Function(this, 'Handler', { - code: lambda.Code.fromInline(`exports.handler = async () => { - return { - statusCode: '200', - body: 'hello, world!' - }; - };`), - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - }); - const certificate = acm.Certificate.fromCertificateArn(this, 'cert', certArn); - const api = new apig.LambdaRestApi(this, 'api', { - cloudWatchRole: true, - handler, - domainName: { - certificate, - domainName, - endpointType: apig.EndpointType.REGIONAL, - }, - }); - const zone = route53.HostedZone.fromHostedZoneAttributes(this, 'hosted-zone', { - zoneName: domainName, - hostedZoneId, - }); - new route53.ARecord(this, 'Alias', { - zone, - target: route53.RecordTarget.fromAlias(new targets.ApiGateway(api)), - }); - } -} -const app = new aws_cdk_lib_1.App(); -const testCase = new TestStack(app, 'aws-cdk-apigw-alias-integ'); -new integ_tests_alpha_1.IntegTest(app, 'apigateway-domain-name', { - testCases: [testCase], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXBpLWdhdGV3YXktZG9tYWluLW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hcGktZ2F0ZXdheS1kb21haW4tbmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtREFBbUQ7QUFDbkQsMERBQTBEO0FBQzFELGlEQUFpRDtBQUNqRCxtREFBbUQ7QUFDbkQsNkNBQXlDO0FBQ3pDLGtFQUF1RDtBQUV2RCwyREFBMkQ7QUFFM0QsTUFBTSxTQUFVL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ZToge1xuICAgICAgICBjZXJ0aWZpY2F0ZSxcbiAgICAgICAgZG9tYWluTmFtZSxcbiAgICAgICAgZW5kcG9pbnRUeXBlOiBhcGlnLkVuZHBvaW50VHlwZS5SRUdJT05BTCxcbiAgICAgIH0sXG4gICAgfSk7XG5cbiAgICBjb25zdCB6b25lID0gcm91dGU1My5Ib3N0ZWRab25lLmZyb21Ib3N0ZWRab25lQXR0cmlidXRlcyh0aGlzLCAnaG9zdGVkLXpvbmUnLCB7XG4gICAgICB6b25lTmFtZTogZG9tYWluTmFtZSxcbiAgICAgIGhvc3RlZFpvbmVJZCxcbiAgICB9KTtcblxuICAgIG5ldyByb3V0ZTUzLkFSZWNvcmQodGhpcywgJ0FsaWFzJywge1xuICAgICAgem9uZSxcbiAgICAgIHRhcmdldDogcm91dGU1My5SZWNvcmRUYXJnZXQuZnJvbUFsaWFzKG5ldyB0YXJnZXRzLkFwaUdhdGV3YXkoYXBpKSksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuY29uc3QgdGVzdENhc2UgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ2F3cy1jZGstYXBpZ3ctYWxpYXMtaW50ZWcnKTtcbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnYXBpZ2F0ZXdheS1kb21haW4tbmFtZScsIHtcbiAgdGVzdENhc2VzOiBbdGVzdENhc2VdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.js deleted file mode 100644 index 5dd83c5e0f200..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.cloudfront-alias-target.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const route53 = require("aws-cdk-lib/aws-route53"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-cloudfront'); -const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'test.public' }); -const sourceBucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const distribution = new cloudfront.CloudFrontWebDistribution(stack, 'MyDistribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: sourceBucket, - }, - behaviors: [{ isDefaultBehavior: true }], - }, - ], -}); -new route53.ARecord(zone, 'Alias', { - zone, - recordName: '_foo', - target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2xvdWRmcm9udC1hbGlhcy10YXJnZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jbG91ZGZyb250LWFsaWFzLXRhcmdldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUF5RDtBQUN6RCxtREFBbUQ7QUFDbkQseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQywyREFBMkQ7QUFFM0QsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQU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RhcmdldDogcm91dGU1My5SZWNvcmRUYXJnZXQuZnJvbUFsaWFzKG5ldyB0YXJnZXRzLkNsb3VkRnJvbnRUYXJnZXQoZGlzdHJpYnV0aW9uKSksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.js deleted file mode 100644 index 57ab6fa8d9f90..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.globalaccelerator-alias-target.js +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const globalaccelerator = require("aws-cdk-lib/aws-globalaccelerator"); -const route53 = require("aws-cdk-lib/aws-route53"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-globalaccelerator-integ'); -let accelerator = new globalaccelerator.Accelerator(stack, 'Accelerator', { - acceleratorName: `${stack.stackName}`, - enabled: true, -}); -const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'test.public' }); -new route53.ARecord(stack, 'LocalGlobalAcceleratorAlias', { - comment: 'Alias to the locally created Global Accelerator', - target: route53.RecordTarget.fromAlias(new targets.GlobalAcceleratorTarget(accelerator)), - recordName: 'test-local', - zone, -}); -new route53.ARecord(stack, 'ExistingGlobalAcceleratorAlias', { - comment: 'Alias to the an existing Global Accelerator', - target: route53.RecordTarget.fromAlias(new targets.GlobalAcceleratorDomainTarget('someexisting.awsglobalaccelerator.com')), - recordName: 'test-existing', - zone, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2xvYmFsYWNjZWxlcmF0b3ItYWxpYXMtdGFyZ2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ2xvYmFsYWNjZWxlcmF0b3ItYWxpYXMtdGFyZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHVFQUF1RTtBQUN2RSxtREFBbUQ7QUFDbkQsbUNBQW1DO0FBQ25DLDJEQUEyRDtBQUUzRCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGlDQUFpQyxDQUFDLENBQUM7QUFFcEUsSUFBSSxXQUFXLEdBQUcsSUFBSSxpQkFBaUIsQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFLGFBQWEsRUFBRTtJQUN4RSxlQUFlLEVBQUUsR0FBRyxLQUFLLENBQUMsU0FBUyxFQUFFO0lBQ3JDLE9BQU8sRUFBRSxJQUFJO0NBQ2QsQ0FBQyxDQUFDO0FBRUgsTUFBTSxJQUFJLEdBQUcsSUFBSSxPQUFPLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRSxFQUFFLFFBQVEsRUFBRSxhQUFhLEVBQUUsQ0FBQyxDQUFDO0FBRTVGLElBQUksT0FBTyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsNkJBQTZCLEVBQUU7SUFDeEQsT0FBTyxFQUFFLGl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/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.js deleted file mode 100644 index a9f3a5b88ae01..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.interface-vpc-endpoint-target.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const route53 = require("aws-cdk-lib/aws-route53"); -const cdk = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-interface-vpc-endpoint', { - env: { - region: 'us-west-2', - }, -}); -const vpc = new ec2.Vpc(stack, 'VPC'); -const interfaceVpcEndpoint = new ec2.InterfaceVpcEndpoint(stack, 'InterfaceEndpoint', { - vpc, - service: { - name: 'com.amazonaws.us-west-2.sms', - port: 80, - }, - privateDnsEnabled: false, - subnets: { - subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS, - }, -}); -const zone = new route53.PrivateHostedZone(stack, 'PrivateZone', { - vpc, - zoneName: 'test.aws.cdk.com', -}); -new route53.ARecord(stack, 'AliasEndpointRecord', { - zone, - recordName: 'foo', - target: route53.RecordTarget.fromAlias(new targets.InterfaceVpcEndpointTarget(interfaceVpcEndpoint)), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW50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FxuICBwcml2YXRlRG5zRW5hYmxlZDogZmFsc2UsXG4gIHN1Ym5ldHM6IHtcbiAgICBzdWJuZXRUeXBlOiBlYzIuU3VibmV0VHlwZS5QUklWQVRFX1dJVEhfRUdSRVNTLFxuICB9LFxufSk7XG5jb25zdCB6b25lID0gbmV3IHJvdXRlNTMuUHJpdmF0ZUhvc3RlZFpvbmUoc3RhY2ssICdQcml2YXRlWm9uZScsIHtcbiAgdnBjLFxuICB6b25lTmFtZTogJ3Rlc3QuYXdzLmNkay5jb20nLFxufSk7XG5cbm5ldyByb3V0ZTUzLkFSZWNvcmQoc3RhY2ssICdBbGlhc0VuZHBvaW50UmVjb3JkJywge1xuICB6b25lLFxuICByZWNvcmROYW1lOiAnZm9vJyxcbiAgdGFyZ2V0OiByb3V0ZTUzLlJlY29yZFRhcmdldC5mcm9tQWxpYXMobmV3IHRhcmdldHMuSW50ZXJmYWNlVnBjRW5kcG9pbnRUYXJnZXQoaW50ZXJmYWNlVnBjRW5kcG9pbnQpKSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.js deleted file mode 100644 index 9c32253c7f069..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.route53-record.js +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const route53 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const targets = require("aws-cdk-lib/aws-route53-targets"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const zone = new route53.PublicHostedZone(this, 'HostedZone', { - zoneName: 'cdk-integ.com', - }); - const www = new route53.ARecord(this, 'WWW', { - zone, - recordName: 'www.cdk-integ.com', - target: route53.RecordTarget.fromIpAddresses('1.2.3.4'), - }); - new route53.ARecord(this, 'Alias', { - zone, - target: route53.RecordTarget.fromAlias(new targets.Route53RecordTarget(www)), - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'aws-cdk-r53-record-alias-target-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucm91dGU1My1yZWNvcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5yb3V0ZTUzLXJlY29yZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtREFBbUQ7QUFDbkQsNkNBQXlDO0FBRXpDLDJEQUEyRDtBQUUzRCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sSUFBSSxHQUFHLElBQUksT0FBTyxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxZQUFZLEVBQUU7WUFDNUQsUUFBUSxFQUFFLGVBQWU7U0FDMUIsQ0FBQyxDQUFDO1FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUU7WUFDM0MsSUFBSTtZQUNKLFVBQVUsRUFBRSxtQkFBbUI7WUFDL0IsTUFBTSxFQUFFLE9BQU8sQ0FBQyxZQUFZ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IGNvbnN0IHd3dyA9IG5ldyByb3V0ZTUzLkFSZWNvcmQodGhpcywgJ1dXVycsIHtcbiAgICAgIHpvbmUsXG4gICAgICByZWNvcmROYW1lOiAnd3d3LmNkay1pbnRlZy5jb20nLFxuICAgICAgdGFyZ2V0OiByb3V0ZTUzLlJlY29yZFRhcmdldC5mcm9tSXBBZGRyZXNzZXMoJzEuMi4zLjQnKSxcbiAgICB9KTtcblxuICAgIG5ldyByb3V0ZTUzLkFSZWNvcmQodGhpcywgJ0FsaWFzJywge1xuICAgICAgem9uZSxcbiAgICAgIHRhcmdldDogcm91dGU1My5SZWNvcmRUYXJnZXQuZnJvbUFsaWFzKG5ldyB0YXJnZXRzLlJvdXRlNTNSZWNvcmRUYXJnZXQod3d3KSksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLXI1My1yZWNvcmQtYWxpYXMtdGFyZ2V0LWludGVnJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js deleted file mode 100644 index 409b8c6f5f5de..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-route53-cross-account-integ'); -const parentZone = new aws_route53_1.PublicHostedZone(stack, 'ParentHostedZone', { - zoneName: 'myzone.com', - crossAccountZoneDelegationPrincipal: new iam.AccountPrincipal(cdk.Aws.ACCOUNT_ID), -}); -// with zoneId -const childZoneWithZoneId = new aws_route53_1.PublicHostedZone(stack, 'ChildHostedZoneWithZoneId', { - zoneName: 'sub.myzone.com', -}); -new aws_route53_1.CrossAccountZoneDelegationRecord(stack, 'DelegationWithZoneId', { - delegatedZone: childZoneWithZoneId, - parentHostedZoneId: parentZone.hostedZoneId, - delegationRole: parentZone.crossAccountZoneDelegationRole, -}); -// with zoneName -const childZoneWithZoneName = new aws_route53_1.PublicHostedZone(stack, 'ChildHostedZoneWithZoneName', { - zoneName: 'anothersub.myzone.com', -}); -new aws_route53_1.CrossAccountZoneDelegationRecord(stack, 'DelegationWithZoneName', { - delegatedZone: childZoneWithZoneName, - parentHostedZoneName: 'myzone.com', - delegationRole: parentZone.crossAccountZoneDelegationRole, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3Jvc3MtYWNjb3VudC16b25lLWRlbGVnYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jcm9zcy1hY2NvdW50LXpvbmUtZGVsZWdhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMseURBQTZGO0FBRTdGLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUscUNBQXFDL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cblxuLy8gd2l0aCB6b25lTmFtZVxuY29uc3QgY2hpbGRab25lV2l0aFpvbmVOYW1lID0gbmV3IFB1YmxpY0hvc3RlZFpvbmUoc3RhY2ssICdDaGlsZEhvc3RlZFpvbmVXaXRoWm9uZU5hbWUnLCB7XG4gIHpvbmVOYW1lOiAnYW5vdGhlcnN1Yi5teXpvbmUuY29tJyxcbn0pO1xubmV3IENyb3NzQWNjb3VudFpvbmVEZWxlZ2F0aW9uUmVjb3JkKHN0YWNrLCAnRGVsZWdhdGlvbldpdGhab25lTmFtZScsIHtcbiAgZGVsZWdhdGVkWm9uZTogY2hpbGRab25lV2l0aFpvbmVOYW1lLFxuICBwYXJlbnRIb3N0ZWRab25lTmFtZTogJ215em9uZS5jb20nLFxuICBkZWxlZ2F0aW9uUm9sZTogcGFyZW50Wm9uZS5jcm9zc0FjY291bnRab25lRGVsZWdhdGlvblJvbGUhLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.js deleted file mode 100644 index 12abc2c745ce9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.delete-existing-record-set.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const route53 = require("aws-cdk-lib/aws-route53"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const hostedZone = new route53.PublicHostedZone(this, 'HostedZone', { - zoneName: 'cdk.dev', - }); - // Simulate existing record - const existingRecord = new route53.ARecord(this, 'ExistingRecord', { - target: route53.RecordTarget.fromIpAddresses('1.2.3.4'), - zone: hostedZone, - recordName: 'integ', - }); - const newRecord = new route53.ARecord(this, 'NewRecord', { - target: route53.RecordTarget.fromIpAddresses('5.6.7.8'), - ttl: aws_cdk_lib_1.Duration.hours(2), - zone: hostedZone, - recordName: 'integ', - deleteExisting: true, - }); - newRecord.node.addDependency(existingRecord); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-route53-integ-delete-existing-record-set'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZGVsZXRlLWV4aXN0aW5nLXJlY29yZC1zZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5kZWxldGUtZXhpc3RpbmctcmVjb3JkLXNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUErRDtBQUUvRCxtREFBbUQ7QUFFbkQsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLFVBQVUsR0FBRyxJQUFJLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxJQUFJLEVBQUUsWUFBWSxFQUFFO1lBQ2xFLFFBQVEsRUFBRSxTQUFTO1NBQ3BCLENBQUMsQ0FBQztRQUVILDJCQUEyQjtRQUMzQixNQUFNLGNBQWMsR0FBRyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUFFLGdCQUFnQixFQUFFO1lBQ2pFLE1BQU0sRUFBRSxP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7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.js deleted file mode 100644 index 697e5fbf9df09..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.route53.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-route53-integ'); -const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 1 }); -const privateZone = new aws_route53_1.PrivateHostedZone(stack, 'PrivateZone', { - zoneName: 'cdk.local', vpc, -}); -const publicZone = new aws_route53_1.PublicHostedZone(stack, 'PublicZone', { - zoneName: 'cdk.test', -}); -const publicSubZone = new aws_route53_1.PublicHostedZone(stack, 'PublicSubZone', { - zoneName: 'sub.cdk.test', -}); -publicZone.addDelegation(publicSubZone); -new aws_route53_1.TxtRecord(privateZone, 'TXT', { - zone: privateZone, - recordName: '_foo', - values: [ - 'Bar!', - 'Baz?', - ], - ttl: cdk.Duration.minutes(1), -}); -new aws_route53_1.CnameRecord(stack, 'CNAME', { - zone: privateZone, - recordName: 'www', - domainName: 'server', -}); -new aws_route53_1.ARecord(stack, 'A', { - zone: privateZone, - recordName: 'test', - target: aws_route53_1.RecordTarget.fromIpAddresses('1.2.3.4', '5.6.7.8'), -}); -new aws_route53_1.CaaAmazonRecord(stack, 'CaaAmazon', { - zone: publicZone, -}); -new aws_route53_1.TxtRecord(stack, 'TXT', { - zone: publicZone, - values: [ - 'this is a very long string'.repeat(10), - ], -}); -new cdk.CfnOutput(stack, 'PrivateZoneId', { value: privateZone.hostedZoneId }); -new cdk.CfnOutput(stack, 'PublicZoneId', { value: publicZone.hostedZoneId }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucm91dGU1My5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJvdXRlNTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHlEQUE4STtBQUU5SSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHVCQUF1QixDQUFDLENBQUM7QUFFMUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUVyRCxNQUFNLFdBQVcsR0FBRyxJQUFJLCtCQUFpQixDQUFDLEtBQUssRUFBRSxhQUFhLEVBQUU7SUFDOUQsUUFBUSxFQUFFLFdBQVcsRUFBRSxHQUFHO0NBQzNCLENBQUMsQ0FBQztBQUVILE1BQU0sVUFBVSxHQUFHLElBQUksOEJBQWdCLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRTtJQUMzRCxRQUFRLEVBQUUsVUFBVTtDQUNyQixDQUFDLENBQUM7QUFDSCxNQUFNLGFBQWEsR0FBRyxJQUFJLDhCQUFnQixDQUFDLEtBQUssRUFBRSxlQUFlLEVBQUU7SU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CB9KTtcbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnUHVibGljWm9uZUlkJywgeyB2YWx1ZTogcHVibGljWm9uZS5ob3N0ZWRab25lSWQgfSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js deleted file mode 100644 index 9ce75c03848e2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.vpc-endpoint-service-domain-name.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -/** - * A load balancer that can host a VPC Endpoint Service. - * - * Why do this instead of using the NetworkLoadBalancer construct? aws-route53 - * cannot depend on aws-elasticloadbalancingv2 because aws-elasticloadbalancingv2 - * already takes a dependency on aws-route53. - */ -class DummyEndpointLoadBalancer { - constructor(scope, id, vpc) { - const lb = new cdk.CfnResource(scope, id, { - type: 'AWS::ElasticLoadBalancingV2::LoadBalancer', - properties: { - Type: 'network', - Name: 'mylb', - Scheme: 'internal', - Subnets: [vpc.privateSubnets[0].subnetId], - }, - }); - this.loadBalancerArn = lb.ref; - } -} -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-vpc-endpoint-dns-integ'); -const vpc = new ec2.Vpc(stack, 'VPC'); -const nlb = new DummyEndpointLoadBalancer(stack, 'mylb', vpc); -const vpces = new ec2.VpcEndpointService(stack, 'VPCES', { - vpcEndpointServiceLoadBalancers: [nlb], -}); -const zone = new aws_route53_1.PublicHostedZone(stack, 'PHZ', { - zoneName: 'aws-cdk.dev', -}); -new aws_route53_1.VpcEndpointServiceDomainName(stack, 'EndpointDomain', { - endpointService: vpces, - domainName: 'my-stuff.aws-cdk.dev', - publicHostedZone: zone, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudnBjLWVuZHBvaW50LXNlcnZpY2UtZG9tYWluLW5hbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52cGMtZW5kcG9pbnQtc2VydmljZS1kb21haW4tbmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFFbkMseURBQXlGO0FBRXpGOzs7Ozs7R0FNRztBQUNILE1BQU0seUJBQXlCO0lBSzdCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsR0FBWTtRQUNwRCxNQUFNLEVBQUUsR0FBRyxJQUFJLEdBQUcsQ0FBQyxXQUFXLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRTtZQUN4QyxJQUFJLEVBQUUsMkNBQTJDO1lBQ2pELFVBQVUsRUFBRTtnQkFDVixJQUFJLEVBQUUsU0FBUztnQkFDZixJQUFJLEVBQUUsTUFBTTtnQkFDWixNQUFNLEVBQUUsVUFBVTtnQkFDbEIsT0FBTyxFQUFFLENBQUMsR0FBRyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUM7YUFDMUM7U0FDRixDQUFDLENBQUM7UUFDSCxJQUFJLENBQUMsZUFBZSxHQUFHLEVBQUUsQ0FBQyxHQUFHL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V0d29yaycsXG4gICAgICAgIE5hbWU6ICdteWxiJyxcbiAgICAgICAgU2NoZW1lOiAnaW50ZXJuYWwnLFxuICAgICAgICBTdWJuZXRzOiBbdnBjLnByaXZhdGVTdWJuZXRzWzBdLnN1Ym5ldElkXSxcbiAgICAgIH0sXG4gICAgfSk7XG4gICAgdGhpcy5sb2FkQmFsYW5jZXJBcm4gPSBsYi5yZWY7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLXZwYy1lbmRwb2ludC1kbnMtaW50ZWcnKTtcbmNvbnN0IHZwYyA9IG5ldyBlYzIuVnBjKHN0YWNrLCAnVlBDJyk7XG5jb25zdCBubGIgPSBuZXcgRHVtbXlFbmRwb2ludExvYWRCYWxhbmNlcihzdGFjaywgJ215bGInLCB2cGMpO1xuY29uc3QgdnBjZXMgPSBuZXcgZWMyLlZwY0VuZHBvaW50U2VydmljZShzdGFjaywgJ1ZQQ0VTJywge1xuICB2cGNFbmRwb2ludFNlcnZpY2VMb2FkQmFsYW5jZXJzOiBbbmxiXSxcbn0pO1xuY29uc3Qgem9uZSA9IG5ldyBQdWJsaWNIb3N0ZWRab25lKHN0YWNrLCAnUEhaJywge1xuICB6b25lTmFtZTogJ2F3cy1jZGsuZGV2Jyxcbn0pO1xubmV3IFZwY0VuZHBvaW50U2VydmljZURvbWFpbk5hbWUoc3RhY2ssICdFbmRwb2ludERvbWFpbicsIHtcbiAgZW5kcG9pbnRTZXJ2aWNlOiB2cGNlcyxcbiAgZG9tYWluTmFtZTogJ215LXN0dWZmLmF3cy1jZGsuZGV2JyxcbiAgcHVibGljSG9zdGVkWm9uZTogem9uZSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.js deleted file mode 100644 index 4876fcbae3802..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.docker-opts.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'cdk-integ-assets-bundling-docker-opts'); -new assets.Asset(stack, 'BundledAsset', { - path: path.join(__dirname, 'markdown-asset'), - bundling: { - image: aws_cdk_lib_1.DockerImage.fromBuild(path.join(__dirname, 'alpine-markdown')), - command: [ - 'sh', '-c', ` - markdown index.md > /asset-output/index.html - `, - ], - network: 'host', - }, -}); -/// !hide -new integ.IntegTest(app, 'cdk-integ-s3-assets-bundling-docker-opts', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmJ1bmRsaW5nLmRvY2tlci1vcHRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXNzZXRzLmJ1bmRsaW5nLmRvY2tlci1vcHRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDZDQUFzRDtB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cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1hc3NldHMtYnVuZGxpbmctZG9ja2VyLW9wdHMnKTtcblxubmV3IGFzc2V0cy5Bc3NldChzdGFjaywgJ0J1bmRsZWRBc3NldCcsIHtcbiAgcGF0aDogcGF0aC5qb2luKF9fZGlybmFtZSwgJ21hcmtkb3duLWFzc2V0JyksIC8vIC9hc3NldC1pbnB1dCBhbmQgd29ya2luZyBkaXJlY3RvcnkgaW4gdGhlIGNvbnRhaW5lclxuICBidW5kbGluZzoge1xuICAgIGltYWdlOiBEb2NrZXJJbWFnZS5mcm9tQnVpbGQocGF0aC5qb2luKF9fZGlybmFtZSwgJ2FscGluZS1tYXJrZG93bicpKSwgLy8gQnVpbGQgYW4gaW1hZ2VcbiAgICBjb21tYW5kOiBbXG4gICAgICAnc2gnLCAnLWMnLCBgXG4gICAgICAgIG1hcmtkb3duIGluZGV4Lm1kID4gL2Fzc2V0LW91dHB1dC9pbmRleC5odG1sXG4gICAgICBgLFxuICAgIF0sXG4gICAgbmV0d29yazogJ2hvc3QnLFxuICB9LFxufSk7XG4vLy8gIWhpZGVcbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLXMzLWFzc2V0cy1idW5kbGluZy1kb2NrZXItb3B0cycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.js deleted file mode 100644 index e0514d4a2a88d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.bundling.lit.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - const asset = new assets.Asset(this, 'BundledAsset', { - path: path.join(__dirname, 'markdown-asset'), - bundling: { - image: aws_cdk_lib_1.DockerImage.fromBuild(path.join(__dirname, 'alpine-markdown')), - command: [ - 'sh', '-c', ` - markdown index.md > /asset-output/index.html - `, - ], - }, - }); - /// !hide - const user = new iam.User(this, 'MyUser'); - asset.grantRead(user); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'cdk-integ-assets-bundling'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmJ1bmRsaW5nLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFzc2V0cy5idW5kbGluZy5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLDZDQUFrRTtBQUVsRSxvREFBb0Q7QUFFcEQsTUFBTSxTQUFVLFNBQVEsbUJBQUs7SUFDM0IsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV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kay1saWIvYXdzLXMzLWFzc2V0cyc7XG5cbmNsYXNzIFRlc3RTdGFjayBleHRlbmRzIFN0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM/OiBTdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICAvLy8gIXNob3dcbiAgICBjb25zdCBhc3NldCA9IG5ldyBhc3NldHMuQXNzZXQodGhpcywgJ0J1bmRsZWRBc3NldCcsIHtcbiAgICAgIHBhdGg6IHBhdGguam9pbihfX2Rpcm5hbWUsICdtYXJrZG93bi1hc3NldCcpLCAvLyAvYXNzZXQtaW5wdXQgYW5kIHdvcmtpbmcgZGlyZWN0b3J5IGluIHRoZSBjb250YWluZXJcbiAgICAgIGJ1bmRsaW5nOiB7XG4gICAgICAgIGltYWdlOiBEb2NrZXJJbWFnZS5mcm9tQnVpbGQocGF0aC5qb2luKF9fZGlybmFtZSwgJ2FscGluZS1tYXJrZG93bicpKSwgLy8gQnVpbGQgYW4gaW1hZ2VcbiAgICAgICAgY29tbWFuZDogW1xuICAgICAgICAgICdzaCcsICctYycsIGBcbiAgICAgICAgICAgIG1hcmtkb3duIGluZGV4Lm1kID4gL2Fzc2V0LW91dHB1dC9pbmRleC5odG1sXG4gICAgICAgICAgYCxcbiAgICAgICAgXSxcbiAgICAgIH0sXG4gICAgfSk7XG4gICAgLy8vICFoaWRlXG5cbiAgICBjb25zdCB1c2VyID0gbmV3IGlhbS5Vc2VyKHRoaXMsICdNeVVzZXInKTtcbiAgICBhc3NldC5ncmFudFJlYWQodXNlcik7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctYXNzZXRzLWJ1bmRsaW5nJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.js deleted file mode 100644 index 153fa8e2c2494..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.directory.lit.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - const asset = new assets.Asset(this, 'SampleAsset', { - path: path.join(__dirname, 'sample-asset-directory'), - }); - /// !hide - const user = new iam.User(this, 'MyUser'); - asset.grantRead(user); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-asset-test'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmRpcmVjdG9yeS5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hc3NldHMuZGlyZWN0b3J5LmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUVwRCxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFV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vcHMpO1xuXG4gICAgLy8vICFzaG93XG4gICAgY29uc3QgYXNzZXQgPSBuZXcgYXNzZXRzLkFzc2V0KHRoaXMsICdTYW1wbGVBc3NldCcsIHtcbiAgICAgIHBhdGg6IHBhdGguam9pbihfX2Rpcm5hbWUsICdzYW1wbGUtYXNzZXQtZGlyZWN0b3J5JyksXG4gICAgfSk7XG4gICAgLy8vICFoaWRlXG5cbiAgICBjb25zdCB1c2VyID0gbmV3IGlhbS5Vc2VyKHRoaXMsICdNeVVzZXInKTtcbiAgICBhc3NldC5ncmFudFJlYWQodXNlcik7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBUZXN0U3RhY2soYXBwLCAnYXdzLWNkay1hc3NldC10ZXN0Jyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.js deleted file mode 100644 index 0e938fe222a60..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.file.lit.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - const asset = new assets.Asset(this, 'SampleAsset', { - path: path.join(__dirname, 'file-asset.txt'), - }); - /// !hide - const user = new iam.User(this, 'MyUser'); - asset.grantRead(user); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-asset-file-test'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLmZpbGUubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXNzZXRzLmZpbGUubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixTQUFTO1FBQ1QsTUFBTSxLQUFLLEdBQUcsSUFBSSxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxhQUFhLEVBQUU7WUFDbEQsSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLGdCQUFnQixDQUFDO1NBQzdDLENBQUMsQ0FBQztRQUNILFNBQVM7UUFFVCxNQUFNLElBQUksR0FBRyxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLFFBQVEsQ0FBQyxDQUFDO1FBQzFDLEtBQUssQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDeEIsQ0FBQztDQUNGO0FBRUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsSUFBSSxTQUFTLENBQUMsR0FBRyxFQUFFLHlCQUF5QixDQUFDLENBQUM7QUFDOUMsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJztcbmltcG9ydCAqIGFzIGlhbSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtaWFtJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBhc3NldHMgZnJvbSAnYXdzLWNkay1saWIvYXdzLXMzLWFzc2V0cyc7XG5cbmNsYXNzIFRlc3RTdGFjayBleHRlbmRzIGNkay5TdGFjayB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBjZGsuQXBwLCBpZDogc3RyaW5nLCBwcm9wcz86IGNkay5TdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICAvLy8gIXNob3dcbiAgICBjb25zdCBhc3NldCA9IG5ldyBhc3NldHMuQXNzZXQodGhpcywgJ1NhbXBsZUFzc2V0Jywge1xuICAgICAgcGF0aDogcGF0aC5qb2luKF9fZGlybmFtZSwgJ2ZpbGUtYXNzZXQudHh0JyksXG4gICAgfSk7XG4gICAgLy8vICFoaWRlXG5cbiAgICBjb25zdCB1c2VyID0gbmV3IGlhbS5Vc2VyKHRoaXMsICdNeVVzZXInKTtcbiAgICBhc3NldC5ncmFudFJlYWQodXNlcik7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBUZXN0U3RhY2soYXBwLCAnYXdzLWNkay1hc3NldC1maWxlLXRlc3QnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.js deleted file mode 100644 index cb11128bba89d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.permissions.lit.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const asset = new assets.Asset(this, 'MyFile', { - path: path.join(__dirname, 'file-asset.txt'), - }); - /// !show - const group = new iam.Group(this, 'MyUserGroup'); - asset.grantRead(group); - /// !hide - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-asset-refs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLnBlcm1pc3Npb25zLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFzc2V0cy5wZXJtaXNzaW9ucy5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFFcEQsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLEtBQXNCO1FBQzVELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sS0FBSyxHQUFH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b2luKF9fZGlybmFtZSwgJ2ZpbGUtYXNzZXQudHh0JyksXG4gICAgfSk7XG5cbiAgICAvLy8gIXNob3dcbiAgICBjb25zdCBncm91cCA9IG5ldyBpYW0uR3JvdXAodGhpcywgJ015VXNlckdyb3VwJyk7XG4gICAgYXNzZXQuZ3JhbnRSZWFkKGdyb3VwKTtcbiAgICAvLy8gIWhpZGVcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLWFzc2V0LXJlZnMnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.js deleted file mode 100644 index d35470d1ac84d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.assets.refs.lit.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - const asset = new assets.Asset(this, 'SampleAsset', { - path: path.join(__dirname, 'sample-asset-directory'), - }); - new cdk.CfnOutput(this, 'S3BucketName', { value: asset.s3BucketName }); - new cdk.CfnOutput(this, 'S3ObjectKey', { value: asset.s3ObjectKey }); - new cdk.CfnOutput(this, 'S3HttpURL', { value: asset.httpUrl }); - new cdk.CfnOutput(this, 'S3ObjectURL', { value: asset.s3ObjectUrl }); - /// !hide - // we need at least one resource - asset.grantRead(new iam.User(this, 'MyUser')); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-asset-refs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXNzZXRzLnJlZnMubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXNzZXRzLnJlZnMubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixTQUFTO1FBQ1QsTUFBTSxLQUFLLEdBQUcsSUFBSSxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxhQUFhLEVBQUU7WUFDbEQsSUFBSSxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLHdCQUF3QixDQUFDO1NBQ3JELENBQUMsQ0FBQztRQUVILElBQUksR0FBRyxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsY0FBYyxFQUFFLEVBQUUsS0FBSyxFQUFFLEtBQUssQ0FBQyxZQUFZLEVBQUUsQ0FBQyxDQUFDO1FBQ3ZFLElBQUksR0FBRyxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsYUFBYSxFQUFFLEVBQUUsS0FBSyxFQUFFLEtBQUssQ0FBQyxXQUFXLE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y8gIXNob3dcbiAgICBjb25zdCBhc3NldCA9IG5ldyBhc3NldHMuQXNzZXQodGhpcywgJ1NhbXBsZUFzc2V0Jywge1xuICAgICAgcGF0aDogcGF0aC5qb2luKF9fZGlybmFtZSwgJ3NhbXBsZS1hc3NldC1kaXJlY3RvcnknKSxcbiAgICB9KTtcblxuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdTM0J1Y2tldE5hbWUnLCB7IHZhbHVlOiBhc3NldC5zM0J1Y2tldE5hbWUgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1MzT2JqZWN0S2V5JywgeyB2YWx1ZTogYXNzZXQuczNPYmplY3RLZXkgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1MzSHR0cFVSTCcsIHsgdmFsdWU6IGFzc2V0Lmh0dHBVcmwgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1MzT2JqZWN0VVJMJywgeyB2YWx1ZTogYXNzZXQuczNPYmplY3RVcmwgfSk7XG4gICAgLy8vICFoaWRlXG5cbiAgICAvLyB3ZSBuZWVkIGF0IGxlYXN0IG9uZSByZXNvdXJjZVxuICAgIGFzc2V0LmdyYW50UmVhZChuZXcgaWFtLlVzZXIodGhpcywgJ015VXNlcicpKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLWFzc2V0LXJlZnMnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.js deleted file mode 100644 index 79301fbf3ee7a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-assets/test/integ.multi-assets.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -class TestStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // The template must contain at least one resource, so there is this... - new iam.User(this, 'DummyResource'); - // Check that the same asset added multiple times is - // uploaded and copied. - new assets.Asset(this, 'SampleAsset1', { - path: path.join(__dirname, 'file-asset.txt'), - }); - new assets.Asset(this, 'SampleAsset2', { - path: path.join(__dirname, 'file-asset.txt'), - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-cdk-multi-assets'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubXVsdGktYXNzZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubXVsdGktYXNzZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQy9CLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4Qix1RUFBdUU7UUFDdkUsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxl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GxlYXN0IG9uZSByZXNvdXJjZSwgc28gdGhlcmUgaXMgdGhpcy4uLlxuICAgIG5ldyBpYW0uVXNlcih0aGlzLCAnRHVtbXlSZXNvdXJjZScpO1xuXG4gICAgLy8gQ2hlY2sgdGhhdCB0aGUgc2FtZSBhc3NldCBhZGRlZCBtdWx0aXBsZSB0aW1lcyBpc1xuICAgIC8vIHVwbG9hZGVkIGFuZCBjb3BpZWQuXG4gICAgbmV3IGFzc2V0cy5Bc3NldCh0aGlzLCAnU2FtcGxlQXNzZXQxJywge1xuICAgICAgcGF0aDogcGF0aC5qb2luKF9fZGlybmFtZSwgJ2ZpbGUtYXNzZXQudHh0JyksXG4gICAgfSk7XG5cbiAgICBuZXcgYXNzZXRzLkFzc2V0KHRoaXMsICdTYW1wbGVBc3NldDInLCB7XG4gICAgICBwYXRoOiBwYXRoLmpvaW4oX19kaXJuYW1lLCAnZmlsZS1hc3NldC50eHQnKSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLW11bHRpLWFzc2V0cycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.js deleted file mode 100644 index d52c6bd69b020..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-cloudfront.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cloudfront = require("aws-cdk-lib/aws-cloudfront"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const s3deploy = require("aws-cdk-lib/aws-s3-deployment"); -class TestBucketDeployment extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const bucket = new s3.Bucket(this, 'Destination3', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - const distribution = new cloudfront.CloudFrontWebDistribution(this, 'Distribution', { - originConfigs: [ - { - s3OriginSource: { - s3BucketSource: bucket, - }, - behaviors: [{ isDefaultBehavior: true }], - }, - ], - }); - new s3deploy.BucketDeployment(this, 'DeployWithInvalidation', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket: bucket, - distribution, - distributionPaths: ['/images/*.png'], - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - } -} -const app = new cdk.App(); -new TestBucketDeployment(app, 'test-bucket-deployments-1'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWRlcGxveW1lbnQtY2xvdWRmcm9udC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmJ1Y2tldC1kZXBsb3ltZW50LWNsb3VkZnJvbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IseURBQXlEO0FBQ3pELHlDQUF5QztBQUN6QyxtQ0FBbUM7QUFDbkMsMERBQTBEO0FBRTFELE1BQU0sb0JBQXFCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDMUMsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQ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ZWZhdWx0QmVoYXZpb3I6IHRydWUgfV0sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0pO1xuXG4gICAgbmV3IHMzZGVwbG95LkJ1Y2tldERlcGxveW1lbnQodGhpcywgJ0RlcGxveVdpdGhJbnZhbGlkYXRpb24nLCB7XG4gICAgICBzb3VyY2VzOiBbczNkZXBsb3kuU291cmNlLmFzc2V0KHBhdGguam9pbihfX2Rpcm5hbWUsICdteS13ZWJzaXRlJykpXSxcbiAgICAgIGRlc3RpbmF0aW9uQnVja2V0OiBidWNrZXQsXG4gICAgICBkaXN0cmlidXRpb24sXG4gICAgICBkaXN0cmlidXRpb25QYXRoczogWycvaW1hZ2VzLyoucG5nJ10sXG4gICAgICByZXRhaW5PbkRlbGV0ZTogZmFsc2UsIC8vIGRlZmF1bHQgaXMgdHJ1ZSwgd2hpY2ggd2lsbCBibG9jayB0aGUgaW50ZWdyYXRpb24gdGVzdCBjbGVhbnVwXG4gICAgfSk7XG5cbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgVGVzdEJ1Y2tldERlcGxveW1lbnQoYXBwLCAndGVzdC1idWNrZXQtZGVwbG95bWVudHMtMScpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.js deleted file mode 100644 index 70ea46db28c88..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-data.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_s3_deployment_1 = require("aws-cdk-lib/aws-s3-deployment"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'TestBucketDeploymentContent'); -const bucket = new aws_s3_1.Bucket(stack, 'Bucket'); -const file1 = aws_s3_deployment_1.Source.data('file1.txt', 'boom'); -const file2 = aws_s3_deployment_1.Source.data('path/to/file2.txt', `bam! ${bucket.bucketName}`); -const file3 = aws_s3_deployment_1.Source.jsonData('my-json/config.json', { website_url: bucket.bucketWebsiteUrl }); -const file4 = aws_s3_deployment_1.Source.yamlData('my-yaml/config.yaml', { website_url: bucket.bucketWebsiteUrl }); -const deployment = new aws_s3_deployment_1.BucketDeployment(stack, 'DeployMeHere', { - destinationBucket: bucket, - sources: [file1, file2], - destinationKeyPrefix: 'deploy/here/', - retainOnDelete: false, // default is true, which will block the integration test cleanup -}); -deployment.addSource(file3); -deployment.addSource(file4); -new aws_cdk_lib_1.CfnOutput(stack, 'BucketName', { value: bucket.bucketName }); -new integ_tests_alpha_1.IntegTest(app, 'integ-test-bucket-deployment-data', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWRlcGxveW1lbnQtZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmJ1Y2tldC1kZXBsb3ltZW50LWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBNEM7QUFDNUMsNkNBQW9EO0FBQ3BELGtFQUF1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eyB3ZWJzaXRlX3VybDogYnVja2V0LmJ1Y2tldFdlYnNpdGVVcmwgfSk7XG5jb25zdCBmaWxlNCA9IFNvdXJjZS55YW1sRGF0YSgnbXkteWFtbC9jb25maWcueWFtbCcsIHsgd2Vic2l0ZV91cmw6IGJ1Y2tldC5idWNrZXRXZWJzaXRlVXJsIH0pO1xuXG5jb25zdCBkZXBsb3ltZW50ID0gbmV3IEJ1Y2tldERlcGxveW1lbnQoc3RhY2ssICdEZXBsb3lNZUhlcmUnLCB7XG4gIGRlc3RpbmF0aW9uQnVja2V0OiBidWNrZXQsXG4gIHNvdXJjZXM6IFtmaWxlMSwgZmlsZTJdLFxuICBkZXN0aW5hdGlvbktleVByZWZpeDogJ2RlcGxveS9oZXJlLycsXG4gIHJldGFpbk9uRGVsZXRlOiBmYWxzZSwgLy8gZGVmYXVsdCBpcyB0cnVlLCB3aGljaCB3aWxsIGJsb2NrIHRoZSBpbnRlZ3JhdGlvbiB0ZXN0IGNsZWFudXBcbn0pO1xuZGVwbG95bWVudC5hZGRTb3VyY2UoZmlsZTMpO1xuZGVwbG95bWVudC5hZGRTb3VyY2UoZmlsZTQpO1xuXG5uZXcgQ2ZuT3V0cHV0KHN0YWNrLCAnQnVja2V0TmFtZScsIHsgdmFsdWU6IGJ1Y2tldC5idWNrZXROYW1lIH0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2ludGVnLXRlc3QtYnVja2V0LWRlcGxveW1lbnQtZGF0YScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.js deleted file mode 100644 index f8ff0615ea635..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-deployed-bucket.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3deploy = require("aws-cdk-lib/aws-s3-deployment"); -class TestBucketDeployment extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.bucket = new s3.Bucket(this, 'Destination', { - publicReadAccess: false, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - const deploy = new s3deploy.BucketDeployment(this, 'DeployMe5', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website-second'))], - destinationBucket: this.bucket, - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - this.exportValue(deploy.deployedBucket.bucketWebsiteUrl, { - name: 'WebsiteUrl', - }); - } -} -const app = new cdk.App(); -const testCase = new TestBucketDeployment(app, 'test-bucket-deployment-deployed-bucket'); -new integ.IntegTest(app, 'integ-test-bucket-deployments', { - testCases: [testCase], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWRlcGxveW1lbnQtZGVwbG95ZWQtYnVja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYnVja2V0LWRlcGxveW1lbnQtZGVwbG95ZWQtYnVja2V0LnRzIl0sIm5hbWVzIjp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5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgICAgYXV0b0RlbGV0ZU9iamVjdHM6IHRydWUsIC8vIG5lZWRlZCBmb3IgaW50ZWdyYXRpb24gdGVzdCBjbGVhbnVwXG4gICAgfSk7XG5cbiAgICBjb25zdCBkZXBsb3kgPSBuZXcgczNkZXBsb3kuQnVja2V0RGVwbG95bWVudCh0aGlzLCAnRGVwbG95TWU1Jywge1xuICAgICAgc291cmNlczogW3MzZGVwbG95LlNvdXJjZS5hc3NldChwYXRoLmpvaW4oX19kaXJuYW1lLCAnbXktd2Vic2l0ZS1zZWNvbmQnKSldLFxuICAgICAgZGVzdGluYXRpb25CdWNrZXQ6IHRoaXMuYnVja2V0LFxuICAgICAgcmV0YWluT25EZWxldGU6IGZhbHNlLCAvLyBkZWZhdWx0IGlzIHRydWUsIHdoaWNoIHdpbGwgYmxvY2sgdGhlIGludGVncmF0aW9uIHRlc3QgY2xlYW51cFxuICAgIH0pO1xuXG4gICAgdGhpcy5leHBvcnRWYWx1ZShkZXBsb3kuZGVwbG95ZWRCdWNrZXQuYnVja2V0V2Vic2l0ZVVybCwge1xuICAgICAgbmFtZTogJ1dlYnNpdGVVcmwnLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5jb25zdCB0ZXN0Q2FzZSA9IG5ldyBUZXN0QnVja2V0RGVwbG95bWVudChhcHAsICd0ZXN0LWJ1Y2tldC1kZXBsb3ltZW50LWRlcGxveWVkLWJ1Y2tldCcpO1xuXG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnaW50ZWctdGVzdC1idWNrZXQtZGVwbG95bWVudHMnLCB7XG4gIHRlc3RDYXNlczogW3Rlc3RDYXNlXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.js deleted file mode 100644 index 1012e96e8ce12..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3deploy = require("aws-cdk-lib/aws-s3-deployment"); -class TestBucketDeployment extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const destinationBucket = new s3.Bucket(this, 'Destination', { - websiteIndexDocument: 'index.html', - publicReadAccess: false, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - new s3deploy.BucketDeployment(this, 'DeployMe', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket, - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - new s3deploy.BucketDeployment(this, 'DeployMeWithEfsStorage', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket, - destinationKeyPrefix: 'efs/', - useEfs: true, - vpc: new ec2.Vpc(this, 'InlineVpc'), - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - const bucket2 = new s3.Bucket(this, 'Destination2', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - new s3deploy.BucketDeployment(this, 'DeployWithPrefix', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket: bucket2, - destinationKeyPrefix: 'deploy/here/', - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - const bucket3 = new s3.Bucket(this, 'Destination3', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - new s3deploy.BucketDeployment(this, 'DeployWithMetadata', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket: bucket3, - retainOnDelete: false, - cacheControl: [s3deploy.CacheControl.setPublic(), s3deploy.CacheControl.maxAge(cdk.Duration.minutes(1))], - contentType: 'text/html', - metadata: { A: 'aaa', B: 'bbb', C: 'ccc' }, - }); - new s3deploy.BucketDeployment(this, 'DeployMeWithoutDeletingFilesOnDestination', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket, - prune: false, - retainOnDelete: false, - }); - new s3deploy.BucketDeployment(this, 'DeployMeWithExcludedFilesOnDestination', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket, - exclude: ['*.gif'], - retainOnDelete: false, - }); - const bucket4 = new s3.Bucket(this, 'Destination4', { - publicReadAccess: false, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - new s3deploy.BucketDeployment(this, 'DeployMeWithoutExtractingFilesOnDestination', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website'))], - destinationBucket: bucket4, - extract: false, - retainOnDelete: false, - }); - this.bucket5 = new s3.Bucket(this, 'Destination5', { - publicReadAccess: false, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, // needed for integration test cleanup - }); - const deploy5 = new s3deploy.BucketDeployment(this, 'DeployMe5', { - sources: [s3deploy.Source.asset(path.join(__dirname, 'my-website-second'))], - destinationBucket: this.bucket5, - retainOnDelete: false, // default is true, which will block the integration test cleanup - }); - deploy5.addSource(s3deploy.Source.data('some-key', 'helloworld')); - } -} -const app = new cdk.App(); -const testCase = new TestBucketDeployment(app, 'test-bucket-deployments-2'); -// Assert that DeployMeWithoutExtractingFilesOnDestination deploys a zip file to bucket4 -const integTest = new integ.IntegTest(app, 'integ-test-bucket-deployments', { - testCases: [testCase], -}); -const listObjectsCall = integTest.assertions.awsApiCall('S3', 'listObjects', { - Bucket: testCase.bucket5.bucketName, -}); -listObjectsCall.provider.addToRolePolicy({ - Effect: 'Allow', - Action: ['s3:GetObject', 's3:ListBucket'], - Resource: ['*'], -}); -listObjectsCall.expect(integ.ExpectedResult.objectLike({ - Contents: integ_tests_alpha_1.Match.arrayWith([ - integ_tests_alpha_1.Match.objectLike({ - Key: '403.html', - }), - integ_tests_alpha_1.Match.objectLike({ - Key: 'some-key', - }), - ]), -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWRlcGxveW1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtZGVwbG95bWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QiwyQ0FBMkM7QUFDM0MseUNBQXlDO0FBQ3pDLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQsa0VBQW1EO0FBRW5ELDBEQUEwRDtBQUUxRCxNQUFNLG9CQUFxQixTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBRTFDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBc0I7UUFDOUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxpQkFBaUIsR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUF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YXJyYXlXaXRoKFxuICAgIFtcbiAgICAgIE1hdGNoLm9iamVjdExpa2Uoe1xuICAgICAgICBLZXk6ICc0MDMuaHRtbCcsXG4gICAgICB9KSxcbiAgICAgIE1hdGNoLm9iamVjdExpa2Uoe1xuICAgICAgICBLZXk6ICdzb21lLWtleScsXG4gICAgICB9KSxcbiAgICBdLFxuICApLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js deleted file mode 100644 index ab9870218c498..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const s3n = require("aws-cdk-lib/aws-s3-notifications"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'test-3'); -const bucket = new s3.Bucket(stack, 'Bucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const topic = new sns.Topic(stack, 'Topic'); -const topic3 = new sns.Topic(stack, 'Topic3'); -bucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic)); -bucket.addEventNotification(s3.EventType.OBJECT_REMOVED, new s3n.SnsDestination(topic3), { prefix: 'home/myusername/' }); -const bucket2 = new s3.Bucket(stack, 'Bucket2', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -bucket2.addObjectRemovedNotification(new s3n.SnsDestination(topic3), { prefix: 'foo' }, { suffix: 'foo/bar' }); -const bucket3 = new s3.Bucket(stack, 'Bucket3', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const importedBucket3 = s3.Bucket.fromBucketName(stack, 'Bucket3Imported', bucket3.bucketName); -importedBucket3.addEventNotification(s3.EventType.OBJECT_CREATED_COPY, new s3n.SnsDestination(topic3)); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubm90aWZpY2F0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5vdGlmaWNhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBeUM7QUFDekMsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyx3REFBd0Q7QUFFeEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxRQUFRLENBQUMsQ0FBQztBQUUzQyxNQUFNLE1BQU0sR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFFBQVEsRUFBRTtJQUM1QyxhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUNILE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFDNUMsTUFBTSxNQUFNLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQztBQU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ja2V0MicsIHtcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuYnVja2V0Mi5hZGRPYmplY3RSZW1vdmVkTm90aWZpY2F0aW9uKG5ldyBzM24uU25zRGVzdGluYXRpb24odG9waWMzKSwgeyBwcmVmaXg6ICdmb28nIH0sIHsgc3VmZml4OiAnZm9vL2JhcicgfSk7XG5cbmNvbnN0IGJ1Y2tldDMgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnQnVja2V0MycsIHtcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5jb25zdCBpbXBvcnRlZEJ1Y2tldDMgPSBzMy5CdWNrZXQuZnJvbUJ1Y2tldE5hbWUoc3RhY2ssICdCdWNrZXQzSW1wb3J0ZWQnLCBidWNrZXQzLmJ1Y2tldE5hbWUpO1xuaW1wb3J0ZWRCdWNrZXQzLmFkZEV2ZW50Tm90aWZpY2F0aW9uKHMzLkV2ZW50VHlwZS5PQkpFQ1RfQ1JFQVRFRF9DT1BZLCBuZXcgczNuLlNuc0Rlc3RpbmF0aW9uKHRvcGljMykpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js deleted file mode 100644 index 271adefe8aab6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const s3n = require("aws-cdk-lib/aws-s3-notifications"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-bucket-notifications'); -const bucketA = new s3.Bucket(stack, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const fn = new lambda.Function(stack, 'MyFunction', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), -}); -const bucketB = new s3.Bucket(stack, 'YourBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -bucketA.addObjectCreatedNotification(new s3n.LambdaDestination(fn), { suffix: '.png' }); -bucketB.addEventNotification(s3.EventType.OBJECT_REMOVED, new s3n.LambdaDestination(fn)); -app.synth(); -/* eslint-disable no-console */ -function handler(event, _context, callback) { - console.log(JSON.stringify(event, undefined, 2)); - return callback(null, event); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LW5vdGlmaWNhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtbm90aWZpY2F0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCx5Q0FBeUM7QUFDekMsbUNBQW1DO0FBQ25DLHdEQUF3RDtBQUV4RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFL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vdXJCdWNrZXQnLCB7XG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG59KTtcblxuYnVja2V0QS5hZGRPYmplY3RDcmVhdGVkTm90aWZpY2F0aW9uKG5ldyBzM24uTGFtYmRhRGVzdGluYXRpb24oZm4pLCB7IHN1ZmZpeDogJy5wbmcnIH0pO1xuYnVja2V0Qi5hZGRFdmVudE5vdGlmaWNhdGlvbihzMy5FdmVudFR5cGUuT0JKRUNUX1JFTU9WRUQsIG5ldyBzM24uTGFtYmRhRGVzdGluYXRpb24oZm4pKTtcblxuYXBwLnN5bnRoKCk7XG5cbi8qIGVzbGludC1kaXNhYmxlIG5vLWNvbnNvbGUgKi9cbmZ1bmN0aW9uIGhhbmRsZXIoZXZlbnQ6IGFueSwgX2NvbnRleHQ6IGFueSwgY2FsbGJhY2s6IGFueSkge1xuICBjb25zb2xlLmxvZyhKU09OLnN0cmluZ2lmeShldmVudCwgdW5kZWZpbmVkLCAyKSk7XG4gIHJldHVybiBjYWxsYmFjayhudWxsLCBldmVudCk7XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js deleted file mode 100644 index bab4fe3bc069d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const s3n = require("aws-cdk-lib/aws-s3-notifications"); -class MyStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const objectCreateTopic = new sns.Topic(this, 'ObjectCreatedTopic'); - const objectRemovedTopic = new sns.Topic(this, 'ObjectDeletedTopic'); - const bucket = new s3.Bucket(this, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - bucket.addObjectCreatedNotification(new s3n.SnsDestination(objectCreateTopic)); - bucket.addObjectRemovedNotification(new s3n.SnsDestination(objectRemovedTopic), { prefix: 'foo/', suffix: '.txt' }); - } -} -const app = new cdk.App(); -new MyStack(app, 'sns-bucket-notifications'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLWJ1Y2tldC1ub3RpZmljYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc25zLWJ1Y2tldC1ub3RpZmljYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQXlDO0FBQ3pDLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsd0RBQXdEO0FBRXhELE1BQU0sT0FBUSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQzdCLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLGlCQUFpQixHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsb0JBQW9CLENBQUMsQ0FBQztRQUNwRSxNQUFNLGtCQUFrQixHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUs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1xuXG4gICAgY29uc3Qgb2JqZWN0Q3JlYXRlVG9waWMgPSBuZXcgc25zLlRvcGljKHRoaXMsICdPYmplY3RDcmVhdGVkVG9waWMnKTtcbiAgICBjb25zdCBvYmplY3RSZW1vdmVkVG9waWMgPSBuZXcgc25zLlRvcGljKHRoaXMsICdPYmplY3REZWxldGVkVG9waWMnKTtcbiAgICBjb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHRoaXMsICdNeUJ1Y2tldCcsIHtcbiAgICAgIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgfSk7XG5cbiAgICBidWNrZXQuYWRkT2JqZWN0Q3JlYXRlZE5vdGlmaWNhdGlvbihuZXcgczNuLlNuc0Rlc3RpbmF0aW9uKG9iamVjdENyZWF0ZVRvcGljKSk7XG4gICAgYnVja2V0LmFkZE9iamVjdFJlbW92ZWROb3RpZmljYXRpb24obmV3IHMzbi5TbnNEZXN0aW5hdGlvbihvYmplY3RSZW1vdmVkVG9waWMpLCB7IHByZWZpeDogJ2Zvby8nLCBzdWZmaXg6ICcudHh0JyB9KTtcblxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBNeVN0YWNrKGFwcCwgJ3Nucy1idWNrZXQtbm90aWZpY2F0aW9ucycpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js deleted file mode 100644 index 6648258905e3f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3n = require("aws-cdk-lib/aws-s3-notifications"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'sqs-bucket-notifications'); -const bucket1 = new s3.Bucket(stack, 'Bucket1', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const queue = new sqs.Queue(stack, 'MyQueue'); -bucket1.addObjectCreatedNotification(new s3n.SqsDestination(queue)); -const bucket2 = new s3.Bucket(stack, 'Bucket2', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -bucket2.addObjectCreatedNotification(new s3n.SqsDestination(queue), { suffix: '.png' }); -const encryptedQueue = new sqs.Queue(stack, 'EncryptedQueue', { encryption: sqs.QueueEncryption.KMS }); -bucket1.addObjectRemovedNotification(new s3n.SqsDestination(encryptedQueue)); -const integTest = new integ.IntegTest(app, 'SQSBucketNotificationsTest', { - testCases: [stack], -}); -integTest.assertions - // First remove the test notifications - .awsApiCall('SQS', 'purgeQueue', { - QueueUrl: queue.queueUrl, -}) - .next(integTest.assertions - .awsApiCall('S3', 'putObject', { - Bucket: bucket2.bucketName, - Key: 'image.png', - Body: 'Some content', -})) - .next(integTest.assertions - .awsApiCall('SQS', 'receiveMessage', { - QueueUrl: queue.queueUrl, - WaitTimeSeconds: 20, -}) - .assertAtPath('Messages.0.Body.Records.0.s3.object.key', integ.ExpectedResult.stringLikeRegexp('image\\.png'))); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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biAgICAgIFdhaXRUaW1lU2Vjb25kczogMjAsXG4gICAgfSlcbiAgICAuYXNzZXJ0QXRQYXRoKCdNZXNzYWdlcy4wLkJvZHkuUmVjb3Jkcy4wLnMzLm9iamVjdC5rZXknLCBpbnRlZy5FeHBlY3RlZFJlc3VsdC5zdHJpbmdMaWtlUmVnZXhwKCdpbWFnZVxcXFwucG5nJykpKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js deleted file mode 100644 index 916ec46796f52..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-auto-delete-objects.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const PUT_OBJECTS_RESOURCE_TYPE = 'Custom::S3PutObjects'; -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const bucket = new s3.Bucket(this, 'Bucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - // Put objects in the bucket to ensure auto delete works as expected - const serviceToken = aws_cdk_lib_1.CustomResourceProvider.getOrCreate(this, PUT_OBJECTS_RESOURCE_TYPE, { - codeDirectory: path.join(__dirname, 'put-objects-handler'), - runtime: aws_cdk_lib_1.CustomResourceProviderRuntime.NODEJS_14_X, - policyStatements: [{ - Effect: 'Allow', - Action: 's3:PutObject', - Resource: bucket.arnForObjects('*'), - }], - }); - new aws_cdk_lib_1.CustomResource(this, 'PutObjectsCustomResource', { - resourceType: PUT_OBJECTS_RESOURCE_TYPE, - serviceToken, - properties: { - BucketName: bucket.bucketName, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-s3-bucket-auto-delete-objects', { - testCases: [new TestStack(app, 'cdk-s3-bucket-auto-delete-objects')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWF1dG8tZGVsZXRlLW9iamVjdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtYXV0by1kZWxldGUtb2JqZWN0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qiw2Q0FBMkk7QUFDM0ksa0VBQXVEO0FBRXZELHlDQUF5QztBQUV6QyxNQUFNLHlCQUF5QixHQUFHLHNCQUFzQixDQUFDO0FBRXpELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxNQUFNLEdBQUcsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxRQUFRLEVBQUU7WUFDM0MsYUFBYSxFQUFFLDJCQUFhLENBQUMsT0FBTztZQUNwQyxpQkFBaUIsRUFBRSxJQUFJO1NBQ3hCLENBQUMsQ0FBQztRQUVILG9FQUFvRTtRQUNwRSx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ICAgIHBvbGljeVN0YXRlbWVudHM6IFt7XG4gICAgICAgIEVmZmVjdDogJ0FsbG93JyxcbiAgICAgICAgQWN0aW9uOiAnczM6UHV0T2JqZWN0JyxcbiAgICAgICAgUmVzb3VyY2U6IGJ1Y2tldC5hcm5Gb3JPYmplY3RzKCcqJyksXG4gICAgICB9XSxcbiAgICB9KTtcbiAgICBuZXcgQ3VzdG9tUmVzb3VyY2UodGhpcywgJ1B1dE9iamVjdHNDdXN0b21SZXNvdXJjZScsIHtcbiAgICAgIHJlc291cmNlVHlwZTogUFVUX09CSkVDVFNfUkVTT1VSQ0VfVFlQRSxcbiAgICAgIHNlcnZpY2VUb2tlbixcbiAgICAgIHByb3BlcnRpZXM6IHtcbiAgICAgICAgQnVja2V0TmFtZTogYnVja2V0LmJ1Y2tldE5hbWUsXG4gICAgICB9LFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctczMtYnVja2V0LWF1dG8tZGVsZXRlLW9iamVjdHMnLCB7XG4gIHRlc3RDYXNlczogW25ldyBUZXN0U3RhY2soYXBwLCAnY2RrLXMzLWJ1Y2tldC1hdXRvLWRlbGV0ZS1vYmplY3RzJyldLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.js deleted file mode 100644 index 33802fedad6fd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grant-write.js +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - encryption: s3.BucketEncryption.S3_MANAGED, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const user = new iam.User(stack, 'MyUser'); -bucket.grantWrite(user, '*', ['s3:PutObject', 's3:DeleteObject*']); -new integ.IntegTest(app, 'BucketGrantWriteTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWdyYW50LXdyaXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYnVja2V0LWdyYW50LXdyaXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELHlDQUF5QztBQUV6QyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLFlBQVksQ0FBQyxDQUFDO0FBRS9DLE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsVUFBVSxFQUFFO0lBQzlDLFVBQVUsRUFBRSxFQUFFLENBQUMsZ0JBQWdCLENBQUMsVUFBVTtJQUMxQyxhQUFhLEVBQUUsR0FBR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NlcicpO1xuXG5idWNrZXQuZ3JhbnRXcml0ZSh1c2VyLCAnKicsIFsnczM6UHV0T2JqZWN0JywgJ3MzOkRlbGV0ZU9iamVjdConXSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnQnVja2V0R3JhbnRXcml0ZVRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.js deleted file mode 100644 index 969ce66b7080e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-grantdelete-kms.js +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const kms = require("aws-cdk-lib/aws-kms"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3'); -const key = new kms.Key(stack, 'MyKey'); -const deleter = new iam.User(stack, 'Deleter'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - encryptionKey: key, - encryption: s3.BucketEncryption.KMS, -}); -// when -bucket.grantDelete(deleter); -new integ_tests_alpha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BQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiIyEvdXNyL2Jpbi9lbnYgbm9kZVxuaW1wb3J0ICogYXMgaWFtIGZyb20gJ2F3cy1jZGstbGliL2F3cy1pYW0nO1xuaW1wb3J0ICogYXMga21zIGZyb20gJ2F3cy1jZGstbGliL2F3cy1rbXMnO1xuaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCAqIGFzIHMzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1zMyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLXMzJyk7XG5cbmNvbnN0IGtleSA9IG5ldyBrbXMuS2V5KHN0YWNrLCAnTXlLZXknKTtcbmNvbnN0IGRlbGV0ZXIgPSBuZXcgaWFtLlVzZXIoc3RhY2ssICdEZWxldGVyJyk7XG5jb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnTXlCdWNrZXQnLCB7XG4gIGVuY3J5cHRpb25LZXk6IGtleSxcbiAgZW5jcnlwdGlvbjogczMuQnVja2V0RW5jcnlwdGlvbi5LTVMsXG59KTtcblxuLy8gd2hlblxuYnVja2V0LmdyYW50RGVsZXRlKGRlbGV0ZXIpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1pbnRlZy1zMy1ncmFudC1kZWxldGUta21zJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.js deleted file mode 100644 index ddf52e8c31ef4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-import-server-access-logs.js +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -// Reproduces the issues experienced in #23588 and #23547, both resulting from -// not validating log delivery is applied correctly when the target bucket for -// server access logs is in another account. -const app = new cdk.App(); -const targetBucketStack = new cdk.Stack(app, 'aws-cdk-s3-access-logs-target'); -const sourceBucketStack = new cdk.Stack(app, 'aws-cdk-s3-access-logs-delivery'); -const targetBucket = new s3.Bucket(targetBucketStack, 'TargetBucket', { - autoDeleteObjects: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - enforceSSL: true, - objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED, - encryption: s3.BucketEncryption.S3_MANAGED, - accessControl: s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL, -}); -new s3.Bucket(sourceBucketStack, 'SourceBucket', { - autoDeleteObjects: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - enforceSSL: true, - objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED, - encryption: s3.BucketEncryption.S3_MANAGED, - accessControl: s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL, - serverAccessLogsBucket: targetBucket, - serverAccessLogsPrefix: 'test/', -}); -new integ.IntegTest(app, 'ServerAccessLogsImportTest', { - testCases: [sourceBucketStack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWltcG9ydC1zZXJ2ZXItYWNjZXNzLWxvZ3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtaW1wb3J0LXNlcnZlci1hY2Nlc3MtbG9ncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELHlDQUF5QztBQUV6Qyw4RUFBOEU7QUFDOUUsOEVBQThFO0FBQzlFLDRDQUE0QztBQUM1QyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLGlCQUFpQixHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsK0JBQStCLENBQUMsQ0FBQztBQUM5RSxNQUFNLGlCQUFpQixHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsaUNBQWlDLENBQUMsQ0FBQztBQUVoRixNQUFNLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsaUJBQWlCLEVBQUUsY0FBYyxFQUFFO0lBQ3BFLGlCQUFpQixFQUFFLElBQUk7SUFDdkIsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztJQUN4QyxpQkFBaUIsRUFBRSxFQUFFLENBQUMsaUJBQWlCLENBQUMsU0FBUztJQUNqRCxVQUFVLEVBQUUsSUFBSTtJQUNoQixlQUFlLEVBQUUsRUFBRSxDQUFDLGVBQWUsQ0FBQyxxQkFBcUI7SUFDekQsVUFBVSxFQU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Y2VCdWNrZXQnLCB7XG4gIGF1dG9EZWxldGVPYmplY3RzOiB0cnVlLFxuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICBibG9ja1B1YmxpY0FjY2VzczogczMuQmxvY2tQdWJsaWNBY2Nlc3MuQkxPQ0tfQUxMLFxuICBlbmZvcmNlU1NMOiB0cnVlLFxuICBvYmplY3RPd25lcnNoaXA6IHMzLk9iamVjdE93bmVyc2hpcC5CVUNLRVRfT1dORVJfRU5GT1JDRUQsXG4gIGVuY3J5cHRpb246IHMzLkJ1Y2tldEVuY3J5cHRpb24uUzNfTUFOQUdFRCxcbiAgYWNjZXNzQ29udHJvbDogczMuQnVja2V0QWNjZXNzQ29udHJvbC5CVUNLRVRfT1dORVJfRlVMTF9DT05UUk9MLFxuICBzZXJ2ZXJBY2Nlc3NMb2dzQnVja2V0OiB0YXJnZXRCdWNrZXQsXG4gIHNlcnZlckFjY2Vzc0xvZ3NQcmVmaXg6ICd0ZXN0LycsXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdTZXJ2ZXJBY2Nlc3NMb2dzSW1wb3J0VGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc291cmNlQnVja2V0U3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.js deleted file mode 100644 index 4c323d5dc04e9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-intelligent-tiering.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-s3'); -new s3.Bucket(stack, 'MyBucket', { - intelligentTieringConfigurations: [{ - name: 'foo', - prefix: 'bar', - archiveAccessTierTime: aws_cdk_lib_1.Duration.days(90), - deepArchiveAccessTierTime: aws_cdk_lib_1.Duration.days(180), - tags: [{ key: 'test', value: 'bazz' }], - }], -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-intelligent-tiering', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LWludGVsbGlnZW50LXRpZXJpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtaW50ZWxsaWdlbnQtdGllcmluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFtRDtBQUNuRCxrRUFBdUQ7QUFDdkQseUNBQXlDO0FBRXpDLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBRXRCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFFM0MsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDL0IsZ0NBQWdDLEVBQUUsQ0FBQztZQUNqQyxJQUFJLEVBQUUsS0FBSztZQUNYLE1BQU0sRUFBRSxLQUFLO1lBQ2IscUJBQXFCLEVBQUUs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ChhcHAsICdjZGstaW50ZWctaW50ZWxsaWdlbnQtdGllcmluZycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.js deleted file mode 100644 index 751015abe5e92..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-inventory.js +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3'); -const inventoryBucket = new s3.Bucket(stack, 'InventoryBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const myBucket = new s3.Bucket(stack, 'MyBucket', { - inventories: [ - { - destination: { - bucket: inventoryBucket, - prefix: 'reports', - }, - frequency: s3.InventoryFrequency.DAILY, - format: s3.InventoryFormat.PARQUET, - }, - ], - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const secondInventoryBucket = new s3.Bucket(stack, 'SecondBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -myBucket.addInventory({ - destination: { - bucket: secondInventoryBucket, - }, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-bucket-inventory', { - testCases: [st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gIH0sXG4gICAgICBmcmVxdWVuY3k6IHMzLkludmVudG9yeUZyZXF1ZW5jeS5EQUlMWSxcbiAgICAgIGZvcm1hdDogczMuSW52ZW50b3J5Rm9ybWF0LlBBUlFVRVQsXG4gICAgfSxcbiAgXSxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5jb25zdCBzZWNvbmRJbnZlbnRvcnlCdWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnU2Vjb25kQnVja2V0Jywge1xuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm15QnVja2V0LmFkZEludmVudG9yeSh7XG4gIGRlc3RpbmF0aW9uOiB7XG4gICAgYnVja2V0OiBzZWNvbmRJbnZlbnRvcnlCdWNrZXQsXG4gIH0sXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctYnVja2V0LWludmVudG9yeScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.js deleted file mode 100644 index a538f0fa7e4a9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-object-lock.js +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3-bucket-object-lock'); -new s3.Bucket(stack, 'ObjectLockBucket', { - objectLockEnabled: true, -}); -new s3.Bucket(stack, 'ObjectLockWithRetentionBucket', { - objectLockDefaultRetention: s3.ObjectLockRetention.governance(cdk.Duration.days(2)), -}); -new integ.IntegTest(app, 'ServerAccessLogsImportTest', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LW9iamVjdC1sb2NrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYnVja2V0LW9iamVjdC1sb2NrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLG1DQUFtQztBQUNuQyxvREFBb0Q7QUFDcEQseUNBQXlDO0FBRXpDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsK0JBQStCLENBQUMsQ0FBQztBQUVsRSxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLGtCQUFrQixFQUFFO0lBQ3ZDLGlCQUFpQixFQUFFLElBQUk7Q0FDeEIsQ0FBQyxDQUFDO0FBRUgsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSwrQkFBK0IsRUFBRTtJQUNwRCwwQkFBMEIsRUFBRSxFQUFFLENBQUMsbUJBQW1CLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO0NBQ3BGLENBQUMsQ0FBQztBQUVILElBQUksS0FBSyxDQUFDLFNBQVMsQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLEVBQUU7SUFDckQsU0FBUyxFQUFFLENBQUMsS0FBSyxDQUFDO0NBQ25CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIiMhL3Vzci9iaW4vZW52IG5vZGVcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBpbnRlZyBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgKiBhcyBzMyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtczMnO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1jZGstczMtYnVja2V0LW9iamVjdC1sb2NrJyk7XG5cbm5ldyBzMy5CdWNrZXQoc3RhY2ssICdPYmplY3RMb2NrQnVja2V0Jywge1xuICBvYmplY3RMb2NrRW5hYmxlZDogdHJ1ZSxcbn0pO1xuXG5uZXcgczMuQnVja2V0KHN0YWNrLCAnT2JqZWN0TG9ja1dpdGhSZXRlbnRpb25CdWNrZXQnLCB7XG4gIG9iamVjdExvY2tEZWZhdWx0UmV0ZW50aW9uOiBzMy5PYmplY3RMb2NrUmV0ZW50aW9uLmdvdmVybmFuY2UoY2RrLkR1cmF0aW9uLmRheXMoMikpLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnU2VydmVyQWNjZXNzTG9nc0ltcG9ydFRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.js deleted file mode 100644 index ea3a52135c259..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket-sharing.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -/** - * Stack that defines the bucket - */ -class Producer extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const bucket = new s3.Bucket(this, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - this.myBucket = bucket; - } -} -/** - * Stack that consumes the bucket - */ -class Consumer extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const user = new iam.User(this, 'MyUser'); - props.userBucket.grantReadWrite(user); - } -} -const producer = new Producer(app, 'ProducerStack'); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-bucket-sharing', { - testCases: [new Consumer(app, 'ConsumerStack', { userBucket: producer.myBucket })], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LXNoYXJpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtc2hhcmluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELHlDQUF5QztBQUV6QyxNQUFNLEdBQUcsR0FBRyxJQUFJLE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RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogY2RrLkFwcCwgaWQ6IHN0cmluZywgcHJvcHM6IENvbnN1bWVyUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IHVzZXIgPSBuZXcgaWFtLlVzZXIodGhpcywgJ015VXNlcicpO1xuICAgIHByb3BzLnVzZXJCdWNrZXQuZ3JhbnRSZWFkV3JpdGUodXNlcik7XG4gIH1cbn1cblxuY29uc3QgcHJvZHVjZXIgPSBuZXcgUHJvZHVjZXIoYXBwLCAnUHJvZHVjZXJTdGFjaycpO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ2Nkay1pbnRlZy1idWNrZXQtc2hhcmluZycsIHtcbiAgdGVzdENhc2VzOiBbbmV3IENvbnN1bWVyKGFwcCwgJ0NvbnN1bWVyU3RhY2snLCB7IHVzZXJCdWNrZXQ6IHByb2R1Y2VyLm15QnVja2V0IH0pXSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.js deleted file mode 100644 index 425dd98cee38a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.domain-name.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const bucket = new s3.Bucket(this, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const bucket2 = s3.Bucket.fromBucketAttributes(this, 'MyBucket2', { - bucketArn: 'arn:aws:s3:::my-bucket-test', - }); - new cdk.CfnOutput(this, 'RealBucketDomain', { value: bucket.bucketDomainName }); - new cdk.CfnOutput(this, 'ImportedBucketDomain', { value: bucket2.bucketDomainName }); - } -} -const app = new cdk.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-bucket-domain-name', { - testCases: [new TestStack(app, 'aws-cdk-domain-name')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LmRvbWFpbi1uYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYnVja2V0LmRvbWFpbi1uYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCx5Q0FBeUM7QUFFekMsTUFBTSxTQUFVLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDL0IsWUFBWSxLQUFjLEVBQUUsRUFBVTtRQUNwQyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQzd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6IHN0cmluZykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCk7XG5cbiAgICBjb25zdCBidWNrZXQgPSBuZXcgczMuQnVja2V0KHRoaXMsICdNeUJ1Y2tldCcsIHtcbiAgICAgIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRFU1RST1ksXG4gICAgfSk7XG4gICAgY29uc3QgYnVja2V0MiA9IHMzLkJ1Y2tldC5mcm9tQnVja2V0QXR0cmlidXRlcyh0aGlzLCAnTXlCdWNrZXQyJywge1xuICAgICAgYnVja2V0QXJuOiAnYXJuOmF3czpzMzo6Om15LWJ1Y2tldC10ZXN0JyxcbiAgICB9KTtcblxuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdSZWFsQnVja2V0RG9tYWluJywgeyB2YWx1ZTogYnVja2V0LmJ1Y2tldERvbWFpbk5hbWUgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ0ltcG9ydGVkQnVja2V0RG9tYWluJywgeyB2YWx1ZTogYnVja2V0Mi5idWNrZXREb21haW5OYW1lIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLWJ1Y2tldC1kb21haW4tbmFtZScsIHtcbiAgdGVzdENhc2VzOiBbbmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLWRvbWFpbi1uYW1lJyldLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.js deleted file mode 100644 index e817caf5458fb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.js +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3'); -const bucket = new s3.Bucket(stack, 'MyBucket', { - encryption: s3.BucketEncryption.KMS, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const otherwiseEncryptedBucket = new s3.Bucket(stack, 'MyOtherBucket', { - encryption: s3.BucketEncryption.S3_MANAGED, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const user = new iam.User(stack, 'MyUser'); -bucket.grantReadWrite(user); -otherwiseEncryptedBucket.grantRead(user); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-s3-bucket', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYnVja2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELHlDQUF5QztBQUV6QyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLFlBQVksQ0FBQyxDQUFDO0FBRS9DLE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsVUFBVSxFQUFFO0lBQzlDLFVBQVUsRUFBRSxFQUFFLENBQUMsZ0JBQWdCLENBQUMsR0FBRztJQUNuQyxhQUFhLEVBQUUsR0FBRyxDQUFDLGFBQWEsQ0FBQyxPQUFPO0NBQ3pDLENBQUMsQ0FBQztBQUV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NUyxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5jb25zdCBvdGhlcndpc2VFbmNyeXB0ZWRCdWNrZXQgPSBuZXcgczMuQnVja2V0KHN0YWNrLCAnTXlPdGhlckJ1Y2tldCcsIHtcbiAgZW5jcnlwdGlvbjogczMuQnVja2V0RW5jcnlwdGlvbi5TM19NQU5BR0VELFxuICByZW1vdmFsUG9saWN5OiBjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbmNvbnN0IHVzZXIgPSBuZXcgaWFtLlVzZXIoc3RhY2ssICdNeVVzZXInKTtcbmJ1Y2tldC5ncmFudFJlYWRXcml0ZSh1c2VyKTtcbm90aGVyd2lzZUVuY3J5cHRlZEJ1Y2tldC5ncmFudFJlYWQodXNlcik7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLXMzLWJ1Y2tldCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js deleted file mode 100644 index 1c67cd2b8ddc0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3-notifications'); -new s3.Bucket(stack, 'MyEventBridgeBucket', { - eventBridgeEnabled: true, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new integ.IntegTest(app, 'NotificationTest', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0Lm5vdGlmaWNhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQubm90aWZpY2F0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELHlDQUF5QztBQUV6QyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUUxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDBCQUEwQixDQUFDLENBQUM7QUFFN0QsSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxxQkFBcUIsRUFBRTtJQUMxQyxrQkFBa0IsRUFBRSxJQUFJO0lBQ3hCLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87Q0FDekMsQ0FBQyxDQUFDO0FBRUgsSUFBSSxLQUFLLENBQUMsU0FBUyxDQUFDLEdBQUcsRUFBRSxrQkFBa0IsRUFBRTtJQUMzQyxTQUFTLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiIyEvdXNyL2Jpbi9lbnYgbm9kZVxuaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGludGVnIGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCAqIGFzIHMzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1zMyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLXMzLW5vdGlmaWNhdGlvbnMnKTtcblxubmV3IHMzLkJ1Y2tldChzdGFjaywgJ015RXZlbnRCcmlkZ2VCdWNrZXQnLCB7XG4gIGV2ZW50QnJpZGdlRW5hYmxlZDogdHJ1ZSxcbiAgcmVtb3ZhbFBvbGljeTogY2RrLlJlbW92YWxQb2xpY3kuREVTVFJPWSxcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ05vdGlmaWNhdGlvblRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js deleted file mode 100644 index 9cb8d5f4cc15d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.server-access-logs.js +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-s3-access-logs'); -const accessLogBucket = new s3.Bucket(stack, 'MyAccessLogsBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new s3.Bucket(stack, 'MyBucket', { - serverAccessLogsBucket: accessLogBucket, - serverAccessLogsPrefix: 'example', - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-s3-access-logs', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LnNlcnZlci1hY2Nlc3MtbG9ncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmJ1Y2tldC5zZXJ2ZXItYWNjZXNzLWxvZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCx5Q0FBeUM7QUFFekMsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSx3QkFBd0IsQ0FBQyxDQUFDO0FBRTNELE1BQU0sZUFBZSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsb0JBQW9CLEVBQUU7SUFDakUsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztDQUN6QyxDQUFDLENBQUM7QUFFSCxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUMvQixzQkFBc0IsRUFBRSxlQUFlO0lBQ3ZDLHNCQUFzQixFQUFFLFNBQVM7SUFDakM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packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.js deleted file mode 100644 index bd6a0b96ada62..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.url.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const s3 = require("aws-cdk-lib/aws-s3"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const bucket = new s3.Bucket(this, 'MyBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - new cdk.CfnOutput(this, 'BucketURL', { value: bucket.bucketWebsiteUrl }); - new cdk.CfnOutput(this, 'ObjectURL', { value: bucket.urlForObject('myfolder/myfile.txt') }); - new cdk.CfnOutput(this, 'VirtualHostedObjectURL', { value: bucket.virtualHostedUrlForObject('myfolder/myfile.txt') }); - new cdk.CfnOutput(this, 'VirtualHostedObjectURLNonRegional', { value: bucket.virtualHostedUrlForObject('myfolder/myfile.txt', { regional: false }) }); - new cdk.CfnOutput(this, 'S3ObjectURL', { value: bucket.s3UrlForObject('myfolder/myfile.txt') }); - } -} -const app = new cdk.App(); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-s3-urls', { - testCases: [new TestStack(app, 'aws-cdk-s3-urls')], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LnVyb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ay5DZm5PdXRwdXQodGhpcywgJ09iamVjdFVSTCcsIHsgdmFsdWU6IGJ1Y2tldC51cmxGb3JPYmplY3QoJ215Zm9sZGVyL215ZmlsZS50eHQnKSB9KTtcbiAgICBuZXcgY2RrLkNmbk91dHB1dCh0aGlzLCAnVmlydHVhbEhvc3RlZE9iamVjdFVSTCcsIHsgdmFsdWU6IGJ1Y2tldC52aXJ0dWFsSG9zdGVkVXJsRm9yT2JqZWN0KCdteWZvbGRlci9teWZpbGUudHh0JykgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1ZpcnR1YWxIb3N0ZWRPYmplY3RVUkxOb25SZWdpb25hbCcsIHsgdmFsdWU6IGJ1Y2tldC52aXJ0dWFsSG9zdGVkVXJsRm9yT2JqZWN0KCdteWZvbGRlci9teWZpbGUudHh0JywgeyByZWdpb25hbDogZmFsc2UgfSkgfSk7XG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1MzT2JqZWN0VVJMJywgeyB2YWx1ZTogYnVja2V0LnMzVXJsRm9yT2JqZWN0KCdteWZvbGRlci9teWZpbGUudHh0JykgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctczMtdXJscycsIHtcbiAgdGVzdENhc2VzOiBbbmV3IFRlc3RTdGFjayhhcHAsICdhd3MtY2RrLXMzLXVybHMnKV0sXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.js deleted file mode 100644 index 7c7508e600e64..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle-expiration.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-s3'); -new aws_s3_1.Bucket(stack, 'MyBucket', { - lifecycleRules: [{ - noncurrentVersionExpiration: aws_cdk_lib_1.Duration.days(30), - noncurrentVersionsToRetain: 123, - }], -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-lifecycle-expiration', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGlmZWN5Y2xlLWV4cGlyYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5saWZlY3ljbGUtZXhwaXJhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFtRDtBQUNuRCxrRUFBdUQ7QUFDdkQsK0NBQTRDO0FBRTVDLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBRXRCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFFM0MsSUFBSSxlQUFNLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUM1QixjQUFjLEVBQUUsQ0FBQztZQUNmLDJCQUEyQixFQUFFLHNCQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztZQUM5QywwQkFBMEIsRUFBRSxHQUFHO1NBQ2hDLENBQUM7Q0FDSCxDQUFDLENBQUM7QUFFSCxJQUFJLDZCQUFTLENBQUMsR0FBRyxFQUFFLGdDQUFnQyxFQUFFO0lBQ25ELFNBQVMsRUFBRSxDQUFDLEtBQUssQ0FBQztDQUNuQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcHAsIER1cmF0aW9uLCBTdGFjayB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IEludGVnVGVzdCB9IGZyb20gJ0Bhd3MtY2RrL2ludGVnLXRlc3RzLWFscGhhJztcbmltcG9ydCB7IEJ1Y2tldCB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1zMyc7XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgU3RhY2soYXBwLCAnYXdzLWNkay1zMycpO1xuXG5uZXcgQnVja2V0KHN0YWNrLCAnTXlCdWNrZXQnLCB7XG4gIGxpZmVjeWNsZVJ1bGVzOiBbe1xuICAgIG5vbmN1cnJlbnRWZXJzaW9uRXhwaXJhdGlvbjogRHVyYXRpb24uZGF5cygzMCksXG4gICAgbm9uY3VycmVudFZlcnNpb25zVG9SZXRhaW46IDEyMyxcbiAgfV0sXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctbGlmZWN5Y2xlLWV4cGlyYXRpb24nLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.js deleted file mode 100644 index 847a517c049c0..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.lifecycle.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-s3'); -// Test a lifecycle rule with an expiration DATE -new aws_s3_1.Bucket(stack, 'MyBucket', { - lifecycleRules: [ - { - expirationDate: new Date('2019-10-01'), - }, - { - expirationDate: new Date('2019-10-01'), - objectSizeLessThan: 600, - objectSizeGreaterThan: 500, - }, - ], - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-lifecycle', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGlmZWN5Y2xlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGlmZWN5Y2xlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkNBQXdEO0FBQ3hELGtFQUF1RDtBQUN2RCwrQ0FBNEM7QUFFNUMsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxtQkFBSyxDQUFDLEdBQUcsRUFBRSxZQUFZLENBQUMsQ0FBQztBQUUzQyxnREFBZ0Q7QUFDaEQsSUFBSSxlQUFNLENBQUMsS0FBSyxFQUFFLFVBQVUsRUFBRTtJQUM1QixjQUFjLEVBQUU7UUFDZDtZQ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2JqZWN0U2l6ZUdyZWF0ZXJUaGFuOiA1MDAsXG4gICAgfSxcbiAgXSxcbiAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLWxpZmVjeWNsZScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.d.ts deleted file mode 100644 index 3554dc94d4617..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function handler(event: AWSLambda.CloudFormationCustomResourceEvent): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.js deleted file mode 100644 index cc9a2d16bd8f8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/put-objects-handler/index.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.handler = void 0; -// eslint-disable-next-line import/no-extraneous-dependencies -const aws_sdk_1 = require("aws-sdk"); -const s3 = new aws_sdk_1.S3(); -async function handler(event) { - switch (event.RequestType) { - case 'Create': - if (event.ResourceProperties.Fail) { - throw new Error('Failing on request!'); - } - const bucketName = event.ResourceProperties.BucketName; - if (!bucketName) { - throw new Error('Missing BucketName'); - } - return putObjects(bucketName); - case 'Update': - case 'Delete': - return; - } -} -exports.handler = handler; -async function putObjects(bucketName, n = 5) { - // Put n objects in parallel - await Promise.all([...Array(n).keys()] - .map(key => s3.putObject({ - Bucket: bucketName, - Key: `Key${key}`, - Body: `Body${key}`, - }).promise())); -} -//# sourceM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C8vIFB1dCBuIG9iamVjdHMgaW4gcGFyYWxsZWxcbiAgYXdhaXQgUHJvbWlzZS5hbGwoWy4uLkFycmF5KG4pLmtleXMoKV1cbiAgICAubWFwKGtleSA9PiBzMy5wdXRPYmplY3Qoe1xuICAgICAgQnVja2V0OiBidWNrZXROYW1lLFxuICAgICAgS2V5OiBgS2V5JHtrZXl9YCxcbiAgICAgIEJvZHk6IGBCb2R5JHtrZXl9YCxcbiAgICB9KS5wcm9taXNlKCkpKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.js b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.js deleted file mode 100644 index c07e270cb28ce..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.hosted-rotation.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const secret = new secretsmanager.Secret(this, 'Secret'); - secret.addRotationSchedule('Schedule', { - hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(), - }); - const customSecret = new secretsmanager.Secret(this, 'CustomSecret', { - generateSecretString: { - excludeCharacters: '&@/', - }, - }); - customSecret.addRotationSchedule('Schedule', { - hostedRotation: secretsmanager.HostedRotation.mysqlSingleUser(), - }); - } -} -const app = new cdk.App();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O1xubmV3IFRlc3RTdGFjayhhcHAsICdjZGstaW50ZWctc2VjcmV0LWhvc3RlZC1yb3RhdGlvbicpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.js b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.js deleted file mode 100644 index c7e0a52cd70e4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.lambda-rotation.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kms = require("aws-cdk-lib/aws-kms"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const key = new kms.Key(this, 'Key', { removalPolicy: cdk.RemovalPolicy.DESTROY }); - const secret = new secretsmanager.Secret(this, 'Secret', { - encryptionKey: key, - }); - secret.addRotationSchedule('Schedule', { - rotationLambda: new lambda.Function(this, 'Lambda', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: lambda.Code.fromInline('NOOP'), - }), - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'cdk-integ-secret-lambda-rotation'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtYmRhLXJvdGF0aW9uLmpzIiwic291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PT1AnKSxcbiAgICAgIH0pLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1zZWNyZXQtbGFtYmRhLXJvdGF0aW9uJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.js b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.js deleted file mode 100644 index b9ef3110e04ee..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.replica.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -class TestStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const secret = new secretsmanager.Secret(this, 'Secret'); - secret.addReplicaRegion('eu-central-1'); - } -} -const app = new cdk.App(); -new TestStack(app, 'cdk-integ-secrets-replica'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucmVwbGljYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJlcGxpY2EudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsaUVBQWlFO0FBRWpFLE1BQU0sU0FBVSxTQUFRLEdBQU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 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.js b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.js deleted file mode 100644 index 69af6652b7c5e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret-name-parsed.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const cdk = require("aws-cdk-lib"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -/** - * Creates several secrets, with varying names and IDs, with the parseOwnedSecretName feature flag set, - * to verify the secretName returned by `Secret.secretName` matches the `Name` returned by `DescribeSecrets`. - */ -class SecretsManagerStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const defaultSecret = new secretsmanager.Secret(this, 'DefaultSecret'); - const namedSecret = new secretsmanager.Secret(this, 'NamedSecret', { secretName: 'namedSecret' }); - const namedSecretWithHyphen = new secretsmanager.Secret(this, 'NamedSecretWithHyphen', { secretName: 'named-secret-1' }); - const longSecret = new secretsmanager.Secret(this, 'AReallyLongLogicalIThatWillBeTrimmedBeforeItsUsedInTheName'); - const secrets = [defaultSecret, namedSecret, namedSecretWithHyphen, longSecret]; - const resourceType = 'Custom::IntegVerificationSecretNameMatches'; - const serviceToken = cdk.CustomResourceProvider.getOrCreate(this, resourceType, { - codeDirectory: path.join(__dirname, 'integ.secret-name-parsed.handler'), - runtime: cdk.CustomResourceProviderRuntime.NODEJS_14_X, - policyStatements: [{ - Effect: 'Allow', - Resource: secrets.map(s => s.secretArn), - Action: ['secretsmanager:DescribeSecret'], - }], - }); - new cdk.CustomResource(this, 'SecretNameVerification', { - resourceType: resourceType, - serviceToken, - properties: { - Secrets: secrets.map(s => ({ secretArn: s.secretArn, secretName: s.secretName })), - }, - }); - } -} -const app = new cdk.App(); -new SecretsManagerStack(app, 'Integ-SecretsManager-ParsedSecretName'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VjcmV0LW5hbWUtcGFyc2VkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2VjcmV0LW5hbWUtcGFyc2VkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLG1DQUFtQztBQUNuQyxpRUFBaUU7QUFFakU7OztHQUdHO0FBRUgsTUFBTSxtQkFBb0IsU0FBUSxHQUFHLENBQUMsS0FBSztJQUN6QyxZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsTUFBTSxhQUFhLEdBQUcsSUFBSSxjQUFjLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxlQUFlLENBQUMsQ0FBQztRQUN2RSxNQUFNLFdBQVcsR0FBRyxJQUFJLGNBQWMsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLGFBQWEsRUFBRSxFQUFFLFVBQVUsRUFBRSxhQUFhLEVBQUUsQ0FBQyxDQUFDO1FBQ2xHLE1BQU0scUJBQXFCLEdBQUcsSUFBSSxjQUFjLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSx1QkFBdUIsRUFBRSxFQUFFLFVBQVUsRUFBRSxnQkFBZ0IsRUFBRSxDQUFDLENBQUM7UUFDekgsTUFBTSxVQUFVLEdBQUcsSUFBSSxjQUFjLEN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BuZXcgY2RrLkN1c3RvbVJlc291cmNlKHRoaXMsICdTZWNyZXROYW1lVmVyaWZpY2F0aW9uJywge1xuICAgICAgcmVzb3VyY2VUeXBlOiByZXNvdXJjZVR5cGUsXG4gICAgICBzZXJ2aWNlVG9rZW4sXG4gICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgIFNlY3JldHM6IHNlY3JldHMubWFwKHMgPT4gKHsgc2VjcmV0QXJuOiBzLnNlY3JldEFybiwgc2VjcmV0TmFtZTogcy5zZWNyZXROYW1lIH0pKSxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBTZWNyZXRzTWFuYWdlclN0YWNrKGFwcCwgJ0ludGVnLVNlY3JldHNNYW5hZ2VyLVBhcnNlZFNlY3JldE5hbWUnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.js deleted file mode 100644 index ad594a876e3ff..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-secretsmanager/test/integ.secret.lit.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const secretsmanager = require("aws-cdk-lib/aws-secretsmanager"); -class SecretsManagerStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - const role = new iam.Role(this, 'TestRole', { assumedBy: new iam.AccountRootPrincipal() }); - /// !show - // Default secret - const secret = new secretsmanager.Secret(this, 'Secret'); - secret.grantRead(role); - const user = new iam.User(this, 'User', { - password: secret.secretValue, - }); - // Templated secret - const templatedSecret = new secretsmanager.Secret(this, 'TemplatedSecret', { - generateSecretString: { - secretStringTemplate: JSON.stringify({ username: 'user' }), - generateStringKey: 'password', - }, - }); - new iam.User(this, 'OtherUser', { - // 'userName' is not actually a secret, so it's okay to use `unsafeUnwrap` to convert - // the `SecretValue` into a 'string'. - userName: templatedSecret.secretValueFromJson('username').unsafeUnwrap(), - password: templatedSecret.secretValueFromJson('password'), - }); - // Secret with predefined value - const accessKey = new iam.AccessKey(this, 'AccessKey', { user }); - new secretsmanager.Secret(this, 'PredefinedSecret', { - secretStringValue: accessKey.secretAccessKey, - }); - // JSON secret - new secretsmanager.Secret(this, 'JSONSecret', { - secretObjectValue: { - username: aws_cdk_lib_1.SecretValue.unsafePlainText(user.userName), - database: aws_cdk_lib_1.SecretValue.unsafePlainText('foo'), - password: accessKey.secretAccessKey, - }, - }); - /// !hide - } -} -const app = new cdk.App(); -new SecretsManagerStack(app, 'Integ-SecretsManager-Secret'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VjcmV0LmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlY3JldC5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDZDQUEwQztBQUMxQyxpRUFBaUU7QUFFakUsTUFBTSxtQkFBb0IsU0FBUSxHQUFHLENBQUMsS0FBSztJQUN6QyxZQUFZLEtBQWMsRUFBRSxFQUFVO1FBQ3BDLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUF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G5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFNlY3JldHNNYW5hZ2VyU3RhY2soYXBwLCAnSW50ZWctU2VjcmV0c01hbmFnZXItU2VjcmV0Jyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.js deleted file mode 100644 index 97b88a9f6994e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.portfolio.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const servicecatalog = require("aws-cdk-lib/aws-servicecatalog"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-servicecatalog-portfolio'); -const role = new iam.Role(stack, 'TestRole', { - assumedBy: new iam.AccountRootPrincipal(), -}); -const group = new iam.Group(stack, 'TestGroup'); -const portfolio = new servicecatalog.Portfolio(stack, 'TestPortfolio', { - displayName: 'TestPortfolio', - providerName: 'TestProvider', - description: 'This is our Service Catalog Portfolio', - messageLanguage: servicecatalog.MessageLanguage.EN, -}); -portfolio.giveAccessToRole(role); -portfolio.giveAccessToGroup(group); -const tagOptions = new servicecatalog.TagOptions(stack, 'TagOptions', { - allowedValuesForTags: { - key1: ['value1', 'value2'], - key2: ['value1'], - }, -}); -portfolio.associateTagOptions(tagOptions); -portfolio.shareWithAccount('123456789012'); -const product = new servicecatalog.CloudFormationProduct(stack, 'TestProduct', { - productName: 'testProduct', - owner: 'testOwner', - productVersions: [ - { - validateTemplate: false, - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromUrl('https://awsdocs.s3.amazonaws.com/servicecatalog/development-environment.template'), - }, - ], - tagOptions: tagOptions, -}); -portfolio.addProduct(product); -portfolio.constrainTagUpdates(product); -const topic = new sns.Topic(stack, 'Topic1'); -const specialTopic = new sns.Topic(stack, 'specialTopic'); -portfolio.notifyOnStackEvents(product, topic); -portfolio.notifyOnStackEvents(product, specialTopic, { - description: 'special topic description', - messageLanguage: servicecatalog.MessageLanguage.EN, -}); -const launchRole = new iam.Role(stack, 'LaunchRole', { - assumedBy: new iam.ServicePrincipal('servicecatalog.amazonaws.com'), -}); -portfolio.setLaunchRole(product, launchRole); -const secondPortfolio = new servicecatalog.Portfolio(stack, 'SecondTestPortfolio', { - displayName: 'SecondTestPortfolio', - providerName: 'TestProvider', -}); -const adminRole = new iam.Role(stack, 'AdminRole', { - assumedBy: new iam.AccountRootPrincipal(), -}); -secondPortfolio.deployWithStackSets(product, { - accounts: ['000000000000', '111111111111', '222222222222'], - regions: ['us-east-1', 'us-west-2', 'eu-west-1'], - adminRole: adminRole, - executionRoleName: 'StackSetExecutionRole', - allowStackSetInstanceOperations: true, -}); -portfolio.constrainCloudFormationParameters(product, { - rule: { - ruleName: 'SubnetsinVPC', - assertions: [{ - assert: cdk.Fn.conditionEachMemberIn(cdk.Fn.valueOfAll('AWs::EC2::Subnet::Id', 'VpcId'), cdk.Fn.refAll('AWS::EC2::VPC::Id')), - description: 'test description', - }], - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucG9ydGZvbGlvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucG9ydGZvbGlvLnRzIl0sIm5h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YXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.js deleted file mode 100644 index 1590ea7c2f0ff..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicecatalog/test/integ.product.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const servicecatalog = require("aws-cdk-lib/aws-servicecatalog"); -const aws_servicecatalog_1 = require("aws-cdk-lib/aws-servicecatalog"); -/** - * Follow these instructions to manually test provisioning a Product with an Asset with the resources provisioned in this stack: - * - * 1. Deploy the stack: - ``` - $ cdk deploy --app "node integ.product.js" integ-servicecatalog-product - ``` - * - * 2. Obtain IAM Principal ARN that will provision product. - One way this can be done is by using - ``` - $ aws sts get-caller-identity - ``` - * - * 3. Associate your principal to your portfolio. PortfolioId is stored as an output values from the deployed stack. - ``` - $ aws servicecatalog associate-principal-with-portfolio \ - --portfolio-id= \ - --principal-arn= \ - --principal-type=IAM - ``` - * - * 4. Provision Product using the following prefilled values. - ``` - $ aws servicecatalog provision-product \ - --provisioned-product-name=testAssetProvisioningProduct \ - --product-name=testProduct \ - --provisioning-artifact-name=testAssetProduct - ``` - * - * 5. Verify Provision Product was provisioned providing the ProvisionedProductId from the previous step. - ``` - $ aws servicecatalog describe-provisioned-product --id= - ``` - * - * 6. Terminate Provisioned Product providing the ProvisionedProductId from the previous step. - ``` - $ aws servicecatalog terminate-provisioned-product --provisioned-product-id= - ``` - * - * 7. Disassociate your principal from your portfolio. - ``` - $ aws servicecatalog disassociate-principal-from-portfolio \ - --portfolio-id= \ - --principal-arn= \ - ``` - * - * 8. Destroy the stack: - ``` - $ cdk destroy --app "node integ.product.js" integ-servicecatalog-product - ``` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'integ-servicecatalog-product', { - env: { - account: process.env.CDK_INTEG_ACCOUNT ?? process.env.CDK_DEFAULT_ACCOUNT, - region: process.env.CDK_INTEG_REGION ?? process.env.CDK_DEFAULT_REGION, - }, -}); -class TestProductStack extends servicecatalog.ProductStack { - constructor(scope, id) { - super(scope, id); - new sns.Topic(this, 'TopicProduct'); - } -} -const portfolio = new servicecatalog.Portfolio(stack, 'TestPortfolio', { - displayName: 'TestPortfolio', - providerName: 'TestProvider', - description: 'This is our Service Catalog Portfolio', - messageLanguage: servicecatalog.MessageLanguage.EN, -}); -class TestAssetProductStack extends servicecatalog.ProductStack { - constructor(scope, id, props) { - super(scope, id, props); - new lambda.Function(this, 'HelloHandler', { - runtime: lambda.Runtime.PYTHON_3_9, - code: lambda.Code.fromAsset('./assets'), - handler: 'index.handler', - }); - new lambda.Function(this, 'HelloHandler2', { - runtime: lambda.Runtime.PYTHON_3_9, - code: lambda.Code.fromAsset('./assetsv2'), - handler: 'index.handler', - }); - } -} -const productStackHistory = new aws_servicecatalog_1.ProductStackHistory(stack, 'ProductStackHistory', { - productStack: new TestProductStack(stack, 'SNSTopicProduct3'), - currentVersionName: 'v1', - currentVersionLocked: false, -}); -const testAssetBucket = new s3.Bucket(stack, 'TestAssetBucket', { - bucketName: `product-stack-asset-bucket-${stack.account}-${stack.region}`, - removalPolicy: cdk.RemovalPolicy.DESTROY, - autoDeleteObjects: true, -}); -const product = new servicecatalog.CloudFormationProduct(stack, 'TestProduct', { - productName: 'testProduct', - owner: 'testOwner', - productVersions: [ - { - validateTemplate: false, - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromUrl('https://awsdocs.s3.amazonaws.com/servicecatalog/development-environment.template'), - }, - { - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromAsset(path.join(__dirname, 'product1.template.json')), - }, - { - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromAsset(path.join(__dirname, 'product2.template.json')), - }, - { - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromProductStack(new TestProductStack(stack, 'SNSTopicProduct1')), - }, - { - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromProductStack(new TestProductStack(stack, 'SNSTopicProduct2')), - }, - { - productVersionName: 'testAssetProduct', - validateTemplate: false, - cloudFormationTemplate: servicecatalog.CloudFormationTemplate.fromProductStack(new TestAssetProductStack(stack, 'S3AssetProduct', { - assetBucket: testAssetBucket, - })), - }, - productStackHistory.currentVersion(), - ], -}); -new integ_tests_alpha_1.IntegTest(app, 'integ-product', { - testCases: [stack], - enableLookups: true, -}); -portfolio.addProduct(product); -new cdk.CfnOutput(stack, 'PortfolioId', { value: portfolio.portfolioId }); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvZHVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnByb2R1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELHlDQUF5QztBQUN6QywyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCxpRUFBaUU7QUFDakUsdUVBQXdGO0FBRXhGOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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V0LFxuICAgICAgfSkpLFxuICAgIH0sXG4gICAgcHJvZHVjdFN0YWNrSGlzdG9yeS5jdXJyZW50VmVyc2lvbigpLFxuICBdLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnaW50ZWctcHJvZHVjdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBlbmFibGVMb29rdXBzOiB0cnVlLFxufSk7XG5cbnBvcnRmb2xpby5hZGRQcm9kdWN0KHByb2R1Y3QpO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1BvcnRmb2xpb0lkJywgeyB2YWx1ZTogcG9ydGZvbGlvLnBvcnRmb2xpb0lkIH0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.js deleted file mode 100644 index d20946915215d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-cname-record.lit.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const servicediscovery = require("aws-cdk-lib/aws-servicediscovery"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); -const namespace = new servicediscovery.PublicDnsNamespace(stack, 'Namespace', { - name: 'foobar.com', -}); -const service = namespace.createService('Service', { - name: 'foo', - dnsRecordType: servicediscovery.DnsRecordType.CNAME, - dnsTtl: cdk.Duration.seconds(30), -}); -service.registerCnameInstance('CnameInstance', { - instanceCname: 'service.pizza', -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmljZS13aXRoLWNuYW1lLXJlY29yZC5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zZXJ2aWNlLXdpdGgtY25hbWUtcmVjb3JkLmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQztBQUNuQyxxRUFBcUU7QUFFckUsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw0QkFBNEIsQ0FBQyxDQUFDO0FBRS9ELE1BQU0sU0FBUyxHQUFHLElBQUksZ0JBQWdCLENBQUMsa0JBQWtCLENBQUMsS0FBSyxFQUFFLFdBQVcsRUFBRTtJQUM1RSxJQUFJLEVBQUUsWUFBWTtDQUNuQixDQUFDLENBQUM7QUFFSCxNQUFNLE9BQU8sR0FBRyxTQUFTLENBQUMsYUFBYSxDQUFDLFNBQVMsRUFBRTtJQUNqRCxJQUFJLEVBQUUsS0FBSztJQUNYLGFBQWEsRUFBRSxnQkFBZ0IsQ0FBQyxhQUFhLENBQUMsS0FBSztJQUNuRCxNQUFNLEVBQUUsR0FBRyxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDO0NBQ2pDLENBQUMsQ0FBQztBQUVILE9BQU8sQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLEVBQUU7SUFDN0MsYUFBYSxFQUFFLGVBQWU7Q0FDL0IsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY2RrIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIHNlcnZpY2VkaXNjb3ZlcnkgZnJvbSAnYXdzLWNkay1saWIvYXdzLXNlcnZpY2VkaXNjb3ZlcnknO1xuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1zZXJ2aWNlZGlzY292ZXJ5LWludGVnJyk7XG5cbmNvbnN0IG5hbWVzcGFjZSA9IG5ldyBzZXJ2aWNlZGlzY292ZXJ5LlB1YmxpY0Ruc05hbWVzcGFjZShzdGFjaywgJ05hbWVzcGFjZScsIHtcbiAgbmFtZTogJ2Zvb2Jhci5jb20nLFxufSk7XG5cbmNvbnN0IHNlcnZpY2UgPSBuYW1lc3BhY2UuY3JlYXRlU2VydmljZSgnU2VydmljZScsIHtcbiAgbmFtZTogJ2ZvbycsXG4gIGRuc1JlY29yZFR5cGU6IHNlcnZpY2VkaXNjb3ZlcnkuRG5zUmVjb3JkVHlwZS5DTkFNRSxcbiAgZG5zVHRsOiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxuc2VydmljZS5yZWdpc3RlckNuYW1lSW5zdGFuY2UoJ0NuYW1lSW5zdGFuY2UnLCB7XG4gIGluc3RhbmNlQ25hbWU6ICdzZXJ2aWNlLnBpenphJyxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.js deleted file mode 100644 index 618a4232adda9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-http-namespace.lit.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const servicediscovery = require("aws-cdk-lib/aws-servicediscovery"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); -const namespace = new servicediscovery.HttpNamespace(stack, 'MyNamespace', { - name: 'MyHTTPNamespace', -}); -const service1 = namespace.createService('NonIpService', { - description: 'service registering non-ip instances', -}); -service1.registerNonIpInstance('NonIpInstance', { - customAttributes: { arn: 'arn:aws:s3:::mybucket' }, -}); -const service2 = namespace.createService('IpService', { - description: 'service registering ip instances', - healthCheck: { - type: servicediscovery.HealthCheckType.HTTP, - resourcePath: '/check', - }, -}); -service2.registerIpInstance('IpInstance', { - ipv4: '54.239.25.192', -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmljZS13aXRoLWh0dHAtbmFtZXNwYWNlLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlcnZpY2Utd2l0aC1odHRwLW5hbWVzcGFjZS5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMscUVBQXFFO0FBRXJFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxH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BwLCAnYXdzLXNlcnZpY2VkaXNjb3ZlcnktaW50ZWcnKTtcblxuY29uc3QgbmFtZXNwYWNlID0gbmV3IHNlcnZpY2VkaXNjb3ZlcnkuSHR0cE5hbWVzcGFjZShzdGFjaywgJ015TmFtZXNwYWNlJywge1xuICBuYW1lOiAnTXlIVFRQTmFtZXNwYWNlJyxcbn0pO1xuXG5jb25zdCBzZXJ2aWNlMSA9IG5hbWVzcGFjZS5jcmVhdGVTZXJ2aWNlKCdOb25JcFNlcnZpY2UnLCB7XG4gIGRlc2NyaXB0aW9uOiAnc2VydmljZSByZWdpc3RlcmluZyBub24taXAgaW5zdGFuY2VzJyxcbn0pO1xuXG5zZXJ2aWNlMS5yZWdpc3Rlck5vbklwSW5zdGFuY2UoJ05vbklwSW5zdGFuY2UnLCB7XG4gIGN1c3RvbUF0dHJpYnV0ZXM6IHsgYXJuOiAnYXJuOmF3czpzMzo6Om15YnVja2V0JyB9LFxufSk7XG5cbmNvbnN0IHNlcnZpY2UyID0gbmFtZXNwYWNlLmNyZWF0ZVNlcnZpY2UoJ0lwU2VydmljZScsIHtcbiAgZGVzY3JpcHRpb246ICdzZXJ2aWNlIHJlZ2lzdGVyaW5nIGlwIGluc3RhbmNlcycsXG4gIGhlYWx0aENoZWNrOiB7XG4gICAgdHlwZTogc2VydmljZWRpc2NvdmVyeS5IZWFsdGhDaGVja1R5cGUuSFRUUCxcbiAgICByZXNvdXJjZVBhdGg6ICcvY2hlY2snLFxuICB9LFxufSk7XG5cbnNlcnZpY2UyLnJlZ2lzdGVySXBJbnN0YW5jZSgnSXBJbnN0YW5jZScsIHtcbiAgaXB2NDogJzU0LjIzOS4yNS4xOTInLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.js deleted file mode 100644 index d419795f15d6a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-private-dns-namespace.lit.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const elbv2 = require("aws-cdk-lib/aws-elasticloadbalancingv2"); -const cdk = require("aws-cdk-lib"); -const servicediscovery = require("aws-cdk-lib/aws-servicediscovery"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); -const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2 }); -const namespace = new servicediscovery.PrivateDnsNamespace(stack, 'Namespace', { - name: 'boobar.com', - vpc, -}); -const service = namespace.createService('Service', { - dnsRecordType: servicediscovery.DnsRecordType.A_AAAA, - dnsTtl: cdk.Duration.seconds(30), - loadBalancer: true, -}); -const loadbalancer = new elbv2.ApplicationLoadBalancer(stack, 'LB', { vpc, internetFacing: true }); -service.registerLoadBalancer('Loadbalancer', loadbalancer); -const arnService = namespace.createService('ArnService', { - discoveryType: servicediscovery.DiscoveryType.API, -}); -arnService.registerNonIpInstance('NonIpInstance', { - customAttributes: { arn: 'arn://' }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmljZS13aXRoLXByaXZhdGUtZG5zLW5hbWVzcGFjZS5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6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NvbnN0IHNlcnZpY2UgPSBuYW1lc3BhY2UuY3JlYXRlU2VydmljZSgnU2VydmljZScsIHtcbiAgZG5zUmVjb3JkVHlwZTogc2VydmljZWRpc2NvdmVyeS5EbnNSZWNvcmRUeXBlLkFfQUFBQSxcbiAgZG5zVHRsOiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG4gIGxvYWRCYWxhbmNlcjogdHJ1ZSxcbn0pO1xuXG5jb25zdCBsb2FkYmFsYW5jZXIgPSBuZXcgZWxidjIuQXBwbGljYXRpb25Mb2FkQmFsYW5jZXIoc3RhY2ssICdMQicsIHsgdnBjLCBpbnRlcm5ldEZhY2luZzogdHJ1ZSB9KTtcblxuc2VydmljZS5yZWdpc3RlckxvYWRCYWxhbmNlcignTG9hZGJhbGFuY2VyJywgbG9hZGJhbGFuY2VyKTtcblxuY29uc3QgYXJuU2VydmljZSA9IG5hbWVzcGFjZS5jcmVhdGVTZXJ2aWNlKCdBcm5TZXJ2aWNlJywge1xuICBkaXNjb3ZlcnlUeXBlOiBzZXJ2aWNlZGlzY292ZXJ5LkRpc2NvdmVyeVR5cGUuQVBJLFxufSk7XG5cbmFyblNlcnZpY2UucmVnaXN0ZXJOb25JcEluc3RhbmNlKCdOb25JcEluc3RhbmNlJywge1xuICBjdXN0b21BdHRyaWJ1dGVzOiB7IGFybjogJ2FybjovLycgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.js deleted file mode 100644 index d1861e58dc21a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-servicediscovery/test/integ.service-with-public-dns-namespace.lit.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const servicediscovery = require("aws-cdk-lib/aws-servicediscovery"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-servicediscovery-integ'); -const namespace = new servicediscovery.PublicDnsNamespace(stack, 'Namespace', { - name: 'foobar.com', -}); -const service = namespace.createService('Service', { - name: 'foo', - dnsRecordType: servicediscovery.DnsRecordType.A, - dnsTtl: cdk.Duration.seconds(30), - healthCheck: { - type: servicediscovery.HealthCheckType.HTTPS, - resourcePath: '/healthcheck', - failureThreshold: 2, - }, -}); -service.registerIpInstance('IpInstance', { - ipv4: '54.239.25.192', - port: 443, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VydmljZS13aXRoLXB1YmxpYy1kbnMtbmFtZXNwYWNlLmxpdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlcnZpY2Utd2l0aC1wdWJsaWMtZG5zLW5hbWVzcGFjZS5saXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMscUVBQXFFO0FBRXJFLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLENBQUMsQ0FBQztBQUUvRCxNQUFNLFNBQVMsR0FBRyxJQUFJLGdCQUFn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FtZXNwYWNlJywge1xuICBuYW1lOiAnZm9vYmFyLmNvbScsXG59KTtcblxuY29uc3Qgc2VydmljZSA9IG5hbWVzcGFjZS5jcmVhdGVTZXJ2aWNlKCdTZXJ2aWNlJywge1xuICBuYW1lOiAnZm9vJyxcbiAgZG5zUmVjb3JkVHlwZTogc2VydmljZWRpc2NvdmVyeS5EbnNSZWNvcmRUeXBlLkEsXG4gIGRuc1R0bDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxuICBoZWFsdGhDaGVjazoge1xuICAgIHR5cGU6IHNlcnZpY2VkaXNjb3ZlcnkuSGVhbHRoQ2hlY2tUeXBlLkhUVFBTLFxuICAgIHJlc291cmNlUGF0aDogJy9oZWFsdGhjaGVjaycsXG4gICAgZmFpbHVyZVRocmVzaG9sZDogMixcbiAgfSxcbn0pO1xuXG5zZXJ2aWNlLnJlZ2lzdGVySXBJbnN0YW5jZSgnSXBJbnN0YW5jZScsIHtcbiAgaXB2NDogJzU0LjIzOS4yNS4xOTInLFxuICBwb3J0OiA0NDMsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.js deleted file mode 100644 index b61dd6011bfe5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses-actions/test/integ.actions.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kms = require("aws-cdk-lib/aws-kms"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const s3 = require("aws-cdk-lib/aws-s3"); -const ses = require("aws-cdk-lib/aws-ses"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const actions = require("aws-cdk-lib/aws-ses-actions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ses-receipt'); -const topic = new sns.Topic(stack, 'Topic'); -const fn = new lambda.Function(stack, 'Function', { - code: lambda.Code.fromInline('exports.handler = async (event) => event;'), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, -}); -const bucket = new s3.Bucket(stack, 'Bucket'); -const kmsKey = new kms.Key(stack, 'Key'); -const ruleSet = new ses.ReceiptRuleSet(stack, 'RuleSet', { - dropSpam: true, -}); -const firstRule = ruleSet.addRule('FirstRule', { - actions: [ - new actions.AddHeader({ - name: 'X-My-Header', - value: 'value', - }), - new actions.Lambda({ - function: fn, - invocationType: actions.LambdaInvocationType.REQUEST_RESPONSE, - topic, - }), - new actions.S3({ - bucket, - kmsKey, - objectKeyPrefix: 'emails/', - topic, - }), - new actions.Sns({ - encoding: actions.EmailEncoding.BASE64, - topic, - }), - ], - receiptRuleName: 'FirstRule', - recipients: ['cdk-ses-receipt-test@yopmail.com'], - scanEnabled: true, - tlsPolicy: ses.TlsPolicy.REQUIRE, -}); -firstRule.addAction(new actions.Bounce({ - sender: 'cdk-ses-receipt-test@yopmail.com', - template: actions.BounceTemplate.MESSAGE_CONTENT_REJECTED, - topic, -})); -const secondRule = ruleSet.addRule('SecondRule'); -secondRule.addAction(new actions.Stop({ - topic, -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYWN0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmFjdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsaURBQ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Y2RrLXNlcy1yZWNlaXB0LXRlc3RAeW9wbWFpbC5jb20nLFxuICB0ZW1wbGF0ZTogYWN0aW9ucy5Cb3VuY2VUZW1wbGF0ZS5NRVNTQUdFX0NPTlRFTlRfUkVKRUNURUQsXG4gIHRvcGljLFxufSkpO1xuXG5jb25zdCBzZWNvbmRSdWxlID0gcnVsZVNldC5hZGRSdWxlKCdTZWNvbmRSdWxlJyk7XG5cbnNlY29uZFJ1bGUuYWRkQWN0aW9uKG5ldyBhY3Rpb25zLlN0b3Aoe1xuICB0b3BpYyxcbn0pKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.js deleted file mode 100644 index d60cfa94b2515..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.configuration-set.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ses = require("aws-cdk-lib/aws-ses"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new ses.ConfigurationSet(this, 'ConfigurationSet'); - } -} -const app = new aws_cdk_lib_1.App(); -new integ.IntegTest(app, 'ConfigurationSetInteg', { - testCases: [new TestStack(app, 'cdk-ses-configuration-set-integ')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW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N0YWNrIHtcbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM/OiBTdGFja1Byb3BzKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCBwcm9wcyk7XG5cbiAgICBuZXcgc2VzLkNvbmZpZ3VyYXRpb25TZXQodGhpcywgJ0NvbmZpZ3VyYXRpb25TZXQnKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnQ29uZmlndXJhdGlvblNldEludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1zZXMtY29uZmlndXJhdGlvbi1zZXQtaW50ZWcnKV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.js deleted file mode 100644 index a9af1f6bbba5d..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.email-identity.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_route53_1 = require("aws-cdk-lib/aws-route53"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ses = require("aws-cdk-lib/aws-ses"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const hostedZone = new aws_route53_1.PublicHostedZone(this, 'HostedZone', { - zoneName: 'cdk.dev', - }); - new ses.EmailIdentity(this, 'EmailIdentity', { - identity: ses.Identity.publicHostedZone(hostedZone), - mailFromDomain: 'mail.cdk.dev', - }); - } -} -const app = new aws_cdk_lib_1.App(); -new integ.IntegTest(app, 'EmailIdentityInteg', { - testCases: [new TestStack(app, 'cdk-ses-email-identity-integ')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZW1haWwtaWRlbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5lbWFpbC1pZGVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUEyRDtBQUMzRCw2Q0FBcUQ7QUFDckQsb0RBQW9EO0FBRXBELDJDQUEyQztBQUUzQyxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRXhCLE1BQU0sVUFBVSxHQUFHLElBQUksOEJBQWdCLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRTtZQUMxRCxRQUFRLEVBQUUsU0FBUztTQUNwQixDQUFDLENBQUM7UUFFSCxJQUFJLEdBQUcsQ0FBQyxhQUFhLENBQUMsSUFBSSxFQUFFLGVBQWUsRUFBRTtZQUMzQyxRQUFRLEVBQUUsR0FBRyxDQUFDLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxVQUFVLENBQUM7WUFDbkQsY0FBYyxFQUFFLGNBQWM7U0FDL0IsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBRUQsTUFBTSxHQUFHLEdBQUcsSUFBSSxpQkFBRyxFQUFFLENBQUM7QUFFdEIsSUFBSSxL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ZGV2JyxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnRW1haWxJZGVudGl0eUludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1zZXMtZW1haWwtaWRlbnRpdHktaW50ZWcnKV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.js deleted file mode 100644 index b917181f6d111..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.receipt.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const ses = require("aws-cdk-lib/aws-ses"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-ses-receipt'); -const ruleSet = new ses.ReceiptRuleSet(stack, 'RuleSet', { - dropSpam: true, -}); -ruleSet.addRule('FirstRule', { - receiptRuleName: 'FirstRule', - recipients: ['cdk-ses-receipt-test@yopmail.com'], - scanEnabled: true, - tlsPolicy: ses.TlsPolicy.REQUIRE, -}); -ruleSet.addRule('SecondRule'); -new ses.AllowListReceiptFilter(stack, 'Allowlist', { - ips: [ - '10.0.0.0/16', - ], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWc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rID0gbmV3IGNkay5TdGFjayhhcHAsICdhd3MtY2RrLXNlcy1yZWNlaXB0Jyk7XG5cbmNvbnN0IHJ1bGVTZXQgPSBuZXcgc2VzLlJlY2VpcHRSdWxlU2V0KHN0YWNrLCAnUnVsZVNldCcsIHtcbiAgZHJvcFNwYW06IHRydWUsXG59KTtcblxucnVsZVNldC5hZGRSdWxlKCdGaXJzdFJ1bGUnLCB7XG4gIHJlY2VpcHRSdWxlTmFtZTogJ0ZpcnN0UnVsZScsXG4gIHJlY2lwaWVudHM6IFsnY2RrLXNlcy1yZWNlaXB0LXRlc3RAeW9wbWFpbC5jb20nXSxcbiAgc2NhbkVuYWJsZWQ6IHRydWUsXG4gIHRsc1BvbGljeTogc2VzLlRsc1BvbGljeS5SRVFVSVJFLFxufSk7XG5cbnJ1bGVTZXQuYWRkUnVsZSgnU2Vjb25kUnVsZScpO1xuXG5uZXcgc2VzLkFsbG93TGlzdFJlY2VpcHRGaWx0ZXIoc3RhY2ssICdBbGxvd2xpc3QnLCB7XG4gIGlwczogW1xuICAgICcxMC4wLjAuMC8xNicsXG4gIF0sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.js deleted file mode 100644 index cd2f1398dea63..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ses/test/integ.vdm-attributes.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_ses_1 = require("aws-cdk-lib/aws-ses"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new aws_ses_1.VdmAttributes(this, 'Vdm'); - } -} -const app = new aws_cdk_lib_1.App(); -new integ.IntegTest(app, 'VdmAttribtuesInteg', { - testCases: [new TestStack(app, 'cdk-integ-ses-vdm-attributes')], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudmRtLWF0dHJpYnV0ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy52ZG0tYXR0cmlidXRlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFxRDtBQUNyRCxvREFBb0Q7QUFFcEQsaURBQW9EO0FBRXBELE1BQU0sU0FBVSxTQUFRLG1CQUFLO0lBQzNCLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBa0I7UUFDMUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsSUFBSSx1QkFBYSxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztJQUNqQyxDQUFDO0NBQ0Y7QUFFRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixJQUFJLEtBQUssQ0FBQyxTQUFTLENBQUMsR0FBRyxFQUFFLG9CQUFvQixFQUFFO0lBQzdDLFNBQVMsRUFBRSxDQUFDLElBQUksU0FBUyxDQUFDLEdBQUcsRUFBRSw4QkFBOEIsQ0FBQyxDQUFDO0NBQ2hFLENBQUMsQ0FBQztBQUVILEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwcCwgU3RhY2ssIFN0YWNrUHJvcHMgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBpbnRlZyBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcbmltcG9ydCB7IFZkbUF0dHJpYnV0ZXMgfSBmcm9tICdhd3MtY2RrLWxpYi9hd3Mtc2VzJztcblxuY2xhc3MgVGVzdFN0YWNrIGV4dGVuZHMgU3RhY2sge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWNrUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIG5ldyBWZG1BdHRyaWJ1dGVzKHRoaXMsICdWZG0nKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnVmRtQXR0cmlidHVlc0ludGVnJywge1xuICB0ZXN0Q2FzZXM6IFtuZXcgVGVzdFN0YWNrKGFwcCwgJ2Nkay1pbnRlZy1zZXMtdmRtLWF0dHJpYnV0ZXMnKV0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.js deleted file mode 100644 index 4129b2917d40a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda-cross-region.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const cdk = require("aws-cdk-lib"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -/// !cdk-integ * pragma:enable-lookups -const app = new cdk.App(); -const topicStack = new cdk.Stack(app, 'TopicStack', { - env: { - account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, - region: 'us-east-1', - }, -}); -const topic = new sns.Topic(topicStack, 'MyTopic', { - topicName: cdk.PhysicalName.GENERATE_IF_NEEDED, -}); -const functionStack = new cdk.Stack(app, 'FunctionStack', { - env: { region: 'us-east-2' }, -}); -const fction = new lambda.Function(functionStack, 'Echo', { - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), -}); -topic.addSubscription(new subs.LambdaSubscription(fction)); -app.synth(); -function handler(event, _context, callback) { - /* eslint-disable no-console */ - console.log('===================================================='); - console.log(JSON.stringify(event, undefined, 2)); - console.log('===================================================='); - return callback(undefined, event); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLWxhbWJkYS1jcm9zcy1yZWdpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zbnMtbGFtYmRhLWNyb3NzLXJlZ2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLDBEQUEwRDtBQUUxRCxzQ0FBc0M7QUFDdEMsTUFBTSxHQUF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fQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.js deleted file mode 100644 index 947dacb7cdb49..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-lambda.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -class SnsToLambda extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const topic = new sns.Topic(this, 'MyTopic'); - const func = new lambda.Function(this, 'Echo', { - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - }); - topic.addSubscription(new subs.LambdaSubscription(func, { - deadLetterQueue: new sqs.Queue(this, 'DeadLetterQueue'), - })); - const funcFiltered = new lambda.Function(this, 'Filtered', { - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - }); - topic.addSubscription(new subs.LambdaSubscription(funcFiltered, { - filterPolicy: { - color: sns.SubscriptionFilter.stringFilter({ - allowlist: ['red'], - matchPrefixes: ['bl', 'ye'], - }), - size: sns.SubscriptionFilter.stringFilter({ - denylist: ['small', 'medium'], - }), - price: sns.SubscriptionFilter.numericFilter({ - between: { start: 100, stop: 200 }, - }), - }, - })); - const funcFilteredWithMessageBody = new lambda.Function(this, 'FilteredMessageBody', { - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - code: lambda.Code.fromInline(`exports.handler = ${handler.toString()}`), - }); - topic.addSubscription(new subs.LambdaSubscription(funcFilteredWithMessageBody, { - filterPolicyWithMessageBody: { - background: sns.FilterOrPolicy.policy({ - color: sns.FilterOrPolicy.filter(sns.SubscriptionFilter.stringFilter({ - allowlist: ['red'], - matchPrefixes: ['bl', 'ye'], - })), - }), - }, - })); - } -} -const app = new cdk.App(); -new SnsToLambda(app, 'aws-cdk-sns-lambda'); -app.synth(); -function handler(event, _context, callback) { - /* eslint-disable no-console */ - console.log('===================================================='); - console.log(JSON.stringify(event, undefined, 2)); - console.log('===================================================='); - return callback(undefined, event); -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLWxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNucy1sYW1iZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFQSxpREFBaUQ7QUFDakQsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMERBQTBEO0FBRTFELE1BQU0sV0FBWSxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQ2pDLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUFDO1FBRTdDLE1BQU0sSUFBSSxHQUFHLElBQUksTU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XG4gICAgICAgICAgY29sb3I6IHNucy5GaWx0ZXJPclBvbGljeS5maWx0ZXIoc25zLlN1YnNjcmlwdGlvbkZpbHRlci5zdHJpbmdGaWx0ZXIoe1xuICAgICAgICAgICAgYWxsb3dsaXN0OiBbJ3JlZCddLFxuICAgICAgICAgICAgbWF0Y2hQcmVmaXhlczogWydibCcsICd5ZSddLFxuICAgICAgICAgIH0pKSxcbiAgICAgICAgfSksXG4gICAgICB9LFxuICAgIH0pKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5uZXcgU25zVG9MYW1iZGEoYXBwLCAnYXdzLWNkay1zbnMtbGFtYmRhJyk7XG5cbmFwcC5zeW50aCgpO1xuXG5mdW5jdGlvbiBoYW5kbGVyKGV2ZW50OiBhbnksIF9jb250ZXh0OiBhbnksIGNhbGxiYWNrOiBhbnkpIHtcbiAgLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuICBjb25zb2xlLmxvZygnPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PScpO1xuICBjb25zb2xlLmxvZyhKU09OLnN0cmluZ2lmeShldmVudCwgdW5kZWZpbmVkLCAyKSk7XG4gIGNvbnNvbGUubG9nKCc9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Jyk7XG4gIHJldHVybiBjYWxsYmFjayh1bmRlZmluZWQsIGV2ZW50KTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.js deleted file mode 100644 index 0e46ce52ccb15..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs-cross-region.lit.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -/// !cdk-integ * pragma:enable-lookups -const app = new cdk.App(); -/// !show -const topicStack = new cdk.Stack(app, 'TopicStack', { - env: { - account: process.env.CDK_INTEG_ACCOUNT || process.env.CDK_DEFAULT_ACCOUNT, - region: 'us-east-1', - }, -}); -const topic = new sns.Topic(topicStack, 'MyTopic', { - topicName: cdk.PhysicalName.GENERATE_IF_NEEDED, -}); -const queueStack = new cdk.Stack(app, 'QueueStack', { - env: { region: 'us-east-2' }, -}); -const queue = new sqs.Queue(queueStack, 'MyQueue'); -topic.addSubscription(new subs.SqsSubscription(queue)); -/// !hide -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLXNxcy1jcm9zcy1yZWdpb24ubGl0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc25zLXNxcy1jcm9zcy1yZWdpb24ubGl0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsMERBQTBEO0FBRTFELHNDQUFzQztBQUN0QyxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUU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Yic7XG5pbXBvcnQgKiBhcyBzdWJzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1zbnMtc3Vic2NyaXB0aW9ucyc7XG5cbi8vLyAhY2RrLWludGVnICogcHJhZ21hOmVuYWJsZS1sb29rdXBzXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG4vLy8gIXNob3dcbmNvbnN0IHRvcGljU3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ1RvcGljU3RhY2snLCB7XG4gIGVudjoge1xuICAgIGFjY291bnQ6IHByb2Nlc3MuZW52LkNES19JTlRFR19BQ0NPVU5UIHx8IHByb2Nlc3MuZW52LkNES19ERUZBVUxUX0FDQ09VTlQsXG4gICAgcmVnaW9uOiAndXMtZWFzdC0xJyxcbiAgfSxcbn0pO1xuY29uc3QgdG9waWMgPSBuZXcgc25zLlRvcGljKHRvcGljU3RhY2ssICdNeVRvcGljJywge1xuICB0b3BpY05hbWU6IGNkay5QaHlzaWNhbE5hbWUuR0VORVJBVEVfSUZfTkVFREVELFxufSk7XG5cbmNvbnN0IHF1ZXVlU3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ1F1ZXVlU3RhY2snLCB7XG4gIGVudjogeyByZWdpb246ICd1cy1lYXN0LTInIH0sXG59KTtcbmNvbnN0IHF1ZXVlID0gbmV3IHNxcy5RdWV1ZShxdWV1ZVN0YWNrLCAnTXlRdWV1ZScpO1xuXG50b3BpYy5hZGRTdWJzY3JpcHRpb24obmV3IHN1YnMuU3FzU3Vic2NyaXB0aW9uKHF1ZXVlKSk7XG4vLy8gIWhpZGVcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.js deleted file mode 100644 index c1868782e2524..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -class SnsToSqsStack extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.topic = new sns.Topic(this, 'MyTopic'); - const queueStack = new cdk.Stack(app, 'QueueStack'); - this.queue = new sqs.Queue(queueStack, 'MyQueue'); - this.topic.addSubscription(new subs.SqsSubscription(this.queue, { - filterPolicyWithMessageBody: { - background: sns.Policy.policy({ - color: sns.Filter.filter(sns.SubscriptionFilter.stringFilter({ - allowlist: ['red', 'green'], - denylist: ['white', 'orange'], - })), - }), - price: sns.Filter.filter(sns.SubscriptionFilter.numericFilter({ - allowlist: [100, 200], - between: { start: 300, stop: 350 }, - greaterThan: 500, - lessThan: 1000, - betweenStrict: { start: 2000, stop: 3000 }, - })), - }, - })); - } -} -// Beginning of the test suite -const app = new cdk.App(); -const stack = new SnsToSqsStack(app, 'SnsToSqsStack'); -const integTest = new integ_tests_alpha_1.IntegTest(app, 'SNS Subscriptions', { - testCases: [ - stack, - ], -}); -integTest.assertions.awsApiCall('SNS', 'publish', { - Message: '{ background: { color: \'green\' }, price: 200 }', - TopicArn: stack.topic.topicArn, -}); -const message = integTest.assertions.awsApiCall('SQS', 'receiveMessage', { - QueueUrl: stack.queue.queueUrl, - WaitTimeSeconds: 20, -}); -message.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Messages: [{ Body: '{color: "green", price: 200}' }], -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLXNxcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNucy1zcXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxrRUFBdUU7QUFDdkUsMERBQTBEO0FBQzFELE1BQU0sYUFBYyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBR25DLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxLQUFzQjtRQUM1RCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUN4QixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsU0FBUyxDQUFDLENBQUM7UUFDNUMsTUFBTSxVQUFVLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxZQUFZLENBQUMsQ0FBQztRQUNwRCxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxVQUFVLEVBQUUsU0FBUyxDQUFDLENBQUM7UUFDbEQsSUFBSSxDQUFDLEtBQUssQ0FBQyxlQUFlLENBQUMsSUFBSSxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUU7WUFDOUQsMkJBQTJCLEVBQUU7Z0JBQzNCLFVBQVUsRUFBRSxHQUFHLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQztvQkFDNUIsS0FBSyxFQUFFLEdBQUcsQ0FBQyx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IwMDAsIHN0b3A6IDMwMDAgfSxcbiAgICAgICAgfSkpLFxuICAgICAgfSxcbiAgICB9KSk7XG4gIH1cbn1cbi8vIEJlZ2lubmluZyBvZiB0aGUgdGVzdCBzdWl0ZVxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFNuc1RvU3FzU3RhY2soYXBwLCAnU25zVG9TcXNTdGFjaycpO1xuY29uc3QgaW50ZWdUZXN0ID0gbmV3IEludGVnVGVzdChhcHAsICdTTlMgU3Vic2NyaXB0aW9ucycsIHtcbiAgdGVzdENhc2VzOiBbXG4gICAgc3RhY2ssXG4gIF0sXG59KTtcbmludGVnVGVzdC5hc3NlcnRpb25zLmF3c0FwaUNhbGwoJ1NOUycsICdwdWJsaXNoJywge1xuICBNZXNzYWdlOiAneyBiYWNrZ3JvdW5kOiB7IGNvbG9yOiBcXCdncmVlblxcJyB9LCBwcmljZTogMjAwIH0nLFxuICBUb3BpY0Fybjogc3RhY2sudG9waWMudG9waWNBcm4sXG59KTtcbmNvbnN0IG1lc3NhZ2UgPSBpbnRlZ1Rlc3QuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdTUVMnLCAncmVjZWl2ZU1lc3NhZ2UnLCB7XG4gIFF1ZXVlVXJsOiBzdGFjay5xdWV1ZS5xdWV1ZVVybCxcbiAgV2FpdFRpbWVTZWNvbmRzOiAyMCxcbn0pO1xubWVzc2FnZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIE1lc3NhZ2VzOiBbeyBCb2R5OiAne2NvbG9yOiBcImdyZWVuXCIsIHByaWNlOiAyMDB9JyB9XSxcbn0pKTtcbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.js deleted file mode 100644 index c21a7aadc1601..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns-subscriptions/test/integ.sns-sqs.lit.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const kms = require("aws-cdk-lib/aws-kms"); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const cdk = require("aws-cdk-lib"); -const cxapi = require("aws-cdk-lib/cx-api"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -const restrictSqsDescryption = { [cxapi.SNS_SUBSCRIPTIONS_SQS_DECRYPTION_POLICY]: true }; -class SnsToSqs extends cdk.Stack { - constructor(scope, id, props) { - super(scope, id, props); - /// !show - const topic = new sns.Topic(this, 'MyTopic'); - const queue = new sqs.Queue(this, 'MyQueue', { - encryptionMasterKey: new kms.Key(this, 'EncryptionMasterKey'), - }); - topic.addSubscription(new subs.SqsSubscription(queue, { - deadLetterQueue: new sqs.Queue(this, 'DeadLetterQueue'), - })); - /// !hide - } -} -const app = new cdk.App({ - context: restrictSqsDescryption, -}); -new SnsToSqs(app, 'aws-cdk-sns-sqs'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLXNxcy5saXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zbnMtc3FzLmxpdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMz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WUsIHtcbiAgICAgIGRlYWRMZXR0ZXJRdWV1ZTogbmV3IHNxcy5RdWV1ZSh0aGlzLCAnRGVhZExldHRlclF1ZXVlJyksXG4gICAgfSkpO1xuICAgIC8vLyAhaGlkZVxuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKHtcbiAgY29udGV4dDogcmVzdHJpY3RTcXNEZXNjcnlwdGlvbixcbn0pO1xuXG5uZXcgU25zVG9TcXMoYXBwLCAnYXdzLWNkay1zbnMtc3FzJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.js deleted file mode 100644 index 057a0a48aa4f6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_sns_1 = require("aws-cdk-lib/aws-sns"); -class SNSFifoInteg extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - new aws_sns_1.Topic(this, 'MyTopic', { - topicName: 'fooTopic', - displayName: 'fooDisplayName', - contentBasedDeduplication: true, - fifo: true, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new SNSFifoInteg(app, 'SNSFifoInteg'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW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gICAgdG9waWNOYW1lOiAnZm9vVG9waWMnLFxuICAgICAgZGlzcGxheU5hbWU6ICdmb29EaXNwbGF5TmFtZScsXG4gICAgICBjb250ZW50QmFzZWREZWR1cGxpY2F0aW9uOiB0cnVlLFxuICAgICAgZmlmbzogdHJ1ZSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbm5ldyBTTlNGaWZvSW50ZWcoYXBwLCAnU05TRmlmb0ludGVnJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.js deleted file mode 100644 index cb57fb0a131b7..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-fifo.no-name.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_sns_1 = require("aws-cdk-lib/aws-sns"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-sns-fifo-1'); -new aws_sns_1.Topic(stack, 'MyTopic', { - fifo: true, -}); -new integ_tests_alpha_1.IntegTest(app, 'SnsFifoNoNameTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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nLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.js deleted file mode 100644 index 9e884ff2efc80..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_sns_1 = require("aws-cdk-lib/aws-sns"); -class SNSInteg extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const key = new aws_kms_1.Key(this, 'CustomKey'); - new aws_sns_1.Topic(this, 'MyTopic', { - topicName: 'fooTopic', - displayName: 'fooDisplayName', - masterKey: key, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new SNSInteg(app, 'SNSInteg'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTBDO0FBQzFDLDZDQUFxRDtBQUNyRCxpREFBNEM7QUFFNUMsTUFBTSxRQUFTLFNBQVEsbUJBQUs7SUFDMUIsWUFBWSxLQUFVLEVBQUUsRUFBVSxFQ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J2Zvb0Rpc3BsYXlOYW1lJyxcbiAgICAgIG1hc3RlcktleToga2V5LFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxubmV3IFNOU0ludGVnKGFwcCwgJ1NOU0ludGVnJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.js b/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.js deleted file mode 100644 index 562bf54e0b1ce..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-sqs/test/integ.sqs.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_sqs_1 = require("aws-cdk-lib/aws-sqs"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-sqs'); -const dlq = new aws_sqs_1.Queue(stack, 'DeadLetterQueue'); -const queue = new aws_sqs_1.Queue(stack, 'Queue', { - deadLetterQueue: { queue: dlq, maxReceiveCount: 5 }, - encryption: aws_sqs_1.QueueEncryption.KMS_MANAGED, -}); -const fifo = new aws_sqs_1.Queue(stack, 'FifoQueue', { - fifo: true, - encryptionMasterKey: new aws_kms_1.Key(stack, 'EncryptionKey', { removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }), -}); -const highThroughputFifo = new aws_sqs_1.Queue(stack, 'HighThroughputFifoQueue', { - fifo: true, - fifoThroughputLimit: aws_sqs_1.FifoThroughputLimit.PER_MESSAGE_GROUP_ID, - deduplicationScope: aws_sqs_1.DeduplicationScope.MESSAGE_GROUP, -}); -const sqsManagedEncryptedQueue = new aws_sqs_1.Queue(stack, 'SqsManagedEncryptedQueue', { - encryption: aws_sqs_1.QueueEncryption.SQS_MANAGED, -}); -const unencryptedQueue = new aws_sqs_1.Queue(stack, 'UnencryptedQueue', { - encryption: aws_sqs_1.QueueEncryption.UNENCRYPTED, -}); -const ssl = new aws_sqs_1.Queue(stack, 'SSLQueue', { enforceSSL: true }); -const role = new aws_iam_1.Role(stack, 'Role', { - assumedBy: new aws_iam_1.AccountRootPrincipal(), -}); -dlq.grantConsumeMessages(role); -queue.grantConsumeMessages(role); -fifo.grantConsumeMessages(role); -highThroughputFifo.grantConsumeMessages(role); -sqsManagedEncryptedQueue.grantConsumeMessages(role); -unencryptedQueue.grantConsumeMessages(role); -ssl.grantConsumeMessages(role); -new aws_cdk_lib_1.CfnOutput(stack, 'QueueUrl', { value: queue.queueUrl }); -new integ.IntegTest(app, 'SqsTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3FzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3FzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQWlFO0FBQ2pFLGlEQUEwQztBQUMxQyw2Q0FBbUU7QUFDbkUsb0RBQW9EO0FBQ3BELGlEQUFzRztBQUV0RyxNQUFNLEdBQUcsR0FBRyxJQUFJLGlCQUFHLEVBQUUsQ0FBQztBQUV0QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsR0FBRyxFQUFFLGFBQWEsQ0FBQyxDQUFD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XNzYWdlcyhyb2xlKTtcbnNzbC5ncmFudENvbnN1bWVNZXNzYWdlcyhyb2xlKTtcblxubmV3IENmbk91dHB1dChzdGFjaywgJ1F1ZXVlVXJsJywgeyB2YWx1ZTogcXVldWUucXVldWVVcmwgfSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnU3FzVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.js deleted file mode 100644 index 1746ad5cb9b5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.list-parameter.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ssm = require("aws-cdk-lib/aws-ssm"); -const paramName = 'integ-list-param'; -const paramValue = ['value1', 'value2']; -class TestCaseBase extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - this.listParam = new ssm.StringListParameter(this, 'ListParam', { - parameterName: paramName, - stringListValue: paramValue, - }); - } -} -const app = new cdk.App({ - treeMetadata: false, -}); -app.node.setContext('@aws-cdk/core:newStyleStackSynthesis', true); -const base = new TestCaseBase(app, 'base'); -const testCase = new cdk.Stack(app, 'list-param'); -// creates the dependency between stacks -new cdk.CfnOutput(testCase, 'Output', { - value: cdk.Fn.join(',', base.listParam.stringListValue), -}); -/** - * get the value from the `base` stack and then write it to a new parameter - * We will then assert that the value that is written is the correct value - * This validates that the `fromXXX` and `valueForXXX` imports the value correctly - */ -const fromAttrs = ssm.StringListParameter.fromListParameterAttributes(testCase, 'FromAttrs', { - parameterName: paramName, - elementType: ssm.ParameterValueType.STRING, -}); -const ssmAttrsValue = new ssm.CfnParameter(testCase, 'attrs-test', { - type: 'StringList', - value: cdk.Fn.join(',', fromAttrs.stringListValue), -}); -const value = ssm.StringListParameter.valueForTypedListParameter(testCase, paramName, ssm.ParameterValueType.STRING); -const ssmValue = new ssm.CfnParameter(testCase, 'value-test', { - type: 'StringList', - value: cdk.Fn.join(',', value), -}); -const versionValue = ssm.StringListParameter.valueForTypedListParameter(testCase, paramName, ssm.ParameterValueType.STRING, 1); -const ssmVersionValue = new ssm.CfnParameter(testCase, 'version-value-test', { - type: 'StringList', - value: cdk.Fn.join(',', versionValue), -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'ssm-string-param', { - testCases: [ - testCase, - ], -}); -// list the parameters -const actualAttrs = integ.assertions.awsApiCall('SSM', 'getParameters', { - Names: [ssmVersionValue.ref, ssmValue.ref, ssmAttrsValue.ref], -}); -actualAttrs.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - Parameters: integ_tests_alpha_1.Match.arrayWith([ - integ_tests_alpha_1.Match.objectLike({ - Value: paramValue.join(','), - }), - integ_tests_alpha_1.Match.objectLike({ - Value: paramValue.join(','), - }), - integ_tests_alpha_1.Match.objectLike({ - Value: paramValue.join(','), - }), - ]), -})); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGlzdC1wYXJhbWV0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5saXN0LXBhcmFtZXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1DQUFtQzt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zc21WYWx1ZS5yZWYsIHNzbUF0dHJzVmFsdWUucmVmXSxcbn0pO1xuXG5hY3R1YWxBdHRycy5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIFBhcmFtZXRlcnM6IE1hdGNoLmFycmF5V2l0aChbXG4gICAgTWF0Y2gub2JqZWN0TGlrZSh7XG4gICAgICBWYWx1ZTogcGFyYW1WYWx1ZS5qb2luKCcsJyksXG4gICAgfSksXG4gICAgTWF0Y2gub2JqZWN0TGlrZSh7XG4gICAgICBWYWx1ZTogcGFyYW1WYWx1ZS5qb2luKCcsJyksXG4gICAgfSksXG4gICAgTWF0Y2gub2JqZWN0TGlrZSh7XG4gICAgICBWYWx1ZTogcGFyYW1WYWx1ZS5qb2luKCcsJyksXG4gICAgfSksXG4gIF0pLFxufSkpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.js deleted file mode 100644 index 569a10a7e34ac..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-arns.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ssm = require("aws-cdk-lib/aws-ssm"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-parameter-arns'); -const input = new aws_cdk_lib_1.CfnParameter(stack, 'ParameterNameParameter', { type: 'String', default: 'myParamName' }); -const params = [ - new ssm.StringParameter(stack, 'StringAutogen', { stringValue: 'hello, world' }), - new ssm.StringParameter(stack, 'StringSimple', { stringValue: 'hello, world', parameterName: 'simple-name' }), - new ssm.StringParameter(stack, 'StringPath', { stringValue: 'hello, world', parameterName: '/path/name/foo/bar' }), - new ssm.StringListParameter(stack, 'ListAutogen', { stringListValue: ['hello', 'world'] }), - new ssm.StringListParameter(stack, 'ListSimple', { stringListValue: ['hello', 'world'], parameterName: 'list-simple-name' }), - new ssm.StringListParameter(stack, 'ListPath', { stringListValue: ['hello', 'world'], parameterName: '/list/path/name' }), - new ssm.StringParameter(stack, 'ParameterizedSimple', { stringValue: 'hello, world', parameterName: input.valueAsString, simpleName: true }), - new ssm.StringParameter(stack, 'ParameterizedNonSimple', { stringValue: 'hello, world', parameterName: `/${input.valueAsString}/non/simple`, simpleName: false }), -]; -for (const p of params) { - new aws_cdk_lib_1.CfnOutput(stack, `${p.node.id}Arn`, { value: p.parameterArn }); -} -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-ssm-parameter-arns', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGFyYW1ldGVyLWFybnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wYXJhbWV0ZXItYXJucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUFrRTtBQUNsRSxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQUVyRCxNQUFNLEtBQUssR0FBRyxJQUFJLDBCQUFZLENBQUMsS0F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JpbmdQYXJhbWV0ZXIoc3RhY2ssICdQYXJhbWV0ZXJpemVkU2ltcGxlJywgeyBzdHJpbmdWYWx1ZTogJ2hlbGxvLCB3b3JsZCcsIHBhcmFtZXRlck5hbWU6IGlucHV0LnZhbHVlQXNTdHJpbmcsIHNpbXBsZU5hbWU6IHRydWUgfSksXG4gIG5ldyBzc20uU3RyaW5nUGFyYW1ldGVyKHN0YWNrLCAnUGFyYW1ldGVyaXplZE5vblNpbXBsZScsIHsgc3RyaW5nVmFsdWU6ICdoZWxsbywgd29ybGQnLCBwYXJhbWV0ZXJOYW1lOiBgLyR7aW5wdXQudmFsdWVBc1N0cmluZ30vbm9uL3NpbXBsZWAsIHNpbXBsZU5hbWU6IGZhbHNlIH0pLFxuXTtcblxuZm9yIChjb25zdCBwIG9mIHBhcmFtcykge1xuICBuZXcgQ2ZuT3V0cHV0KHN0YWNrLCBgJHtwLm5vZGUuaWR9QXJuYCwgeyB2YWx1ZTogcC5wYXJhbWV0ZXJBcm4gfSk7XG59XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2RrLWludGVnLXNzbS1wYXJhbWV0ZXItYXJucycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.js deleted file mode 100644 index da5be1650dcad..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter-store-string.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const ssm = require("aws-cdk-lib/aws-ssm"); -const SECURE_PARAM_NAME = '/My/Secret/Parameter'; -class CreatingStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - new ssm.StringParameter(this, 'String', { - parameterName: '/My/Public/Parameter', - stringValue: 'Abc123', - }); - new integ.AwsApiCall(this, 'SecureParam', { - service: 'SSM', - api: 'putParameter', - parameters: { - Name: SECURE_PARAM_NAME, - Type: 'SecureString', - Value: 'Abc123', - }, - }); - } -} -class UsingStack extends cdk.Stack { - constructor(scope, id) { - super(scope, id); - // Parameter that contains version number, will be used to pass - // version value from token. - const parameterVersion = new cdk.CfnParameter(this, 'MyParameterVersion', { - type: 'Number', - default: 1, - }).valueAsNumber; - // Retrieve the latest value of the non-secret parameter - // with name "/My/String/Parameter". - const stringValue = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValue', { - parameterName: '/My/Public/Parameter', - // 'version' can be specified but is optional. - }).stringValue; - const stringValueVersionFromToken = ssm.StringParameter.fromStringParameterAttributes(this, 'MyValueVersionFromToken', { - parameterName: '/My/Public/Parameter', - // parameter version from token - version: parameterVersion, - }).stringValue; - // Retrieve a specific version of the secret (SecureString) parameter. - const secretValue = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValue', { - parameterName: '/My/Secret/Parameter', - }).stringValue; - const secretValueVersion = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersion', { - parameterName: '/My/Secret/Parameter', - version: 1, - }).stringValue; - const secretValueVersionFromToken = ssm.StringParameter.fromSecureStringParameterAttributes(this, 'MySecureValueVersionFromToken', { - parameterName: '/My/Secret/Parameter', - // parameter version from token - version: parameterVersion, - }).stringValue; - const user = new cdk.CfnResource(this, 'DummyResourceUsingStringParameters', { - type: 'AWS::IAM::User', - properties: { - LoginProfile: { - Password: cdk.Fn.join('-', [ - stringValue, - stringValueVersionFromToken, - secretValue, - secretValueVersion, - secretValueVersionFromToken, - ]), - }, - }, - }); - user.applyRemovalPolicy(cdk.RemovalPolicy.DESTROY); - } -} -const app = new cdk.App(); -const creating = new CreatingStack(app, 'sspms-creating'); -const using = new UsingStack(app, 'sspms-using'); -using.addDependency(creating); -const cleanup = new cdk.Stack(app, 'sspms-cleanup'); -cleanup.addDependency(using); -const integTest = new integ.IntegTest(app, 'SSMParameterStoreTest', { - assertionStack: cleanup, - testCases: [using], -}); -integTest.assertions.awsApiCall('SSM', 'deleteParameter', { - Name: SECURE_PARAM_NAME, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGFyYW1ldGVyLXN0b3JlLXN0cmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBhcmFtZXRlci1zdG9yZS1zdHJpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELDJDQUEyQztBQUUzQyxNQUFNLGlCQUFpQixHQUFHLHNCQUFzQixDQUFDO0FBRWpELE1BQU0sYUFBYyxTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQ25DLFlBQVksS0FBYyxFQUFFLEVBQVU7UUFDcEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLEdBQUcsQ0FBQyxlQUFlLENBQUMsSUFBSSxFQUFFLFFBQVEsRUFBRTtZQUN0QyxhQUFhLEVBQUUsc0JBQXNCO1lBQ3JDLFdBQVcsRUFBRSxRQUFRO1NBQ3RCLENBQUMsQ0FBQztRQUVILElBQUksS0FBSyxDQUFDLFVBQVUsQ0FBQyxJQUFJLEVBQUUsYUFBYSxFQUFFO1lBQ3hDLE9BQU8sRUFBRSxLQUFLO1lBQ2QsR0FBRyxFQUF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uICAgICAgICAgICAgc2VjcmV0VmFsdWVWZXJzaW9uLFxuICAgICAgICAgICAgc2VjcmV0VmFsdWVWZXJzaW9uRnJvbVRva2VuLFxuICAgICAgICAgIF0pLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9KTtcbiAgICB1c2VyLmFwcGx5UmVtb3ZhbFBvbGljeShjZGsuUmVtb3ZhbFBvbGljeS5ERVNUUk9ZKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuXG5jb25zdCBjcmVhdGluZyA9IG5ldyBDcmVhdGluZ1N0YWNrKGFwcCwgJ3NzcG1zLWNyZWF0aW5nJyk7XG5cbmNvbnN0IHVzaW5nID0gbmV3IFVzaW5nU3RhY2soYXBwLCAnc3NwbXMtdXNpbmcnKTtcbnVzaW5nLmFkZERlcGVuZGVuY3koY3JlYXRpbmcpO1xuXG5jb25zdCBjbGVhbnVwID0gbmV3IGNkay5TdGFjayhhcHAsICdzc3Btcy1jbGVhbnVwJyk7XG5jbGVhbnVwLmFkZERlcGVuZGVuY3kodXNpbmcpO1xuXG5jb25zdCBpbnRlZ1Rlc3QgPSBuZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ1NTTVBhcmFtZXRlclN0b3JlVGVzdCcsIHtcbiAgYXNzZXJ0aW9uU3RhY2s6IGNsZWFudXAsXG4gIHRlc3RDYXNlczogW3VzaW5nXSxcbn0pO1xuXG5pbnRlZ1Rlc3QuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdTU00nLCAnZGVsZXRlUGFyYW1ldGVyJywge1xuICBOYW1lOiBTRUNVUkVfUEFSQU1fTkFNRSxcbn0pO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.js b/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.js deleted file mode 100644 index 2d7e7e1a8aae5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ssm/test/integ.parameter.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const ssm = require("aws-cdk-lib/aws-ssm"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'SSM-Parameter'); -const role = new iam.Role(stack, 'UserRole', { - assumedBy: new iam.AccountRootPrincipal(), -}); -const param = new ssm.StringParameter(stack, 'StringParameter', { - stringValue: 'Initial parameter value', -}); -param.grantRead(role); -const listParameter = new ssm.StringListParameter(stack, 'StringListParameter', { - stringListValue: ['Initial parameter value A', 'Initial parameter value B'], -}); -new cdk.CfnOutput(stack, 'StringListOutput', { - value: cdk.Fn.join('+', listParameter.stringListValue), -}); -new cdk.CfnOutput(stack, 'ParamArn', { - value: param.parameterArn, -}); -new integ_tests_alpha_1.IntegTest(app, 'cdk-integ-ssm-parameter', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGFyYW1ldGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGFyYW1ldGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLG1DQUFtQztBQUNuQyxrRUFBdUQ7QUFDdkQsMkNBQTJDO0FBRTNDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQU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dFBhcmFtZXRlci5zdHJpbmdMaXN0VmFsdWUpLFxufSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnUGFyYW1Bcm4nLCB7XG4gIHZhbHVlOiBwYXJhbS5wYXJhbWV0ZXJBcm4sXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdjZGstaW50ZWctc3NtLXBhcmFtZXRlcicsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.js deleted file mode 100644 index c32676cfb9977..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const apigateway = require("aws-cdk-lib/aws-apigateway"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * - * * aws stepfunctions describe-execution --execution-arn --query 'status': should return status as SUCCEEDED - * * aws stepfunctions describe-execution --execution-arn --query 'output': should return the string \"hello, world!\" - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'CallRestApiInteg'); -const restApi = new apigateway.RestApi(stack, 'MyRestApi', { cloudWatchRole: true }); -const hello = new apigateway.LambdaIntegration(new lambda.Function(stack, 'Hello', { - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.handler', - code: new lambda.InlineCode('exports.handler = async function(event, context) { return { statusCode: 200, body: "hello, world!" }; };'), -})); -restApi.root.addMethod('ANY', hello); -const callEndpointJob = new aws_stepfunctions_tasks_1.CallApiGatewayRestApiEndpoint(stack, 'Call APIGW', { - api: restApi, - stageName: 'prod', - method: aws_stepfunctions_tasks_1.HttpMethod.GET, - authType: aws_stepfunctions_tasks_1.AuthType.IAM_ROLE, - outputPath: sfn.JsonPath.stringAt('$.ResponseBody'), -}); -const chain = sfn.Chain.start(callEndpointJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new integ_tests_alpha_1.IntegTest(app, 'call-rest-api', { - testCases: [stack], -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FsbC1yZXN0LWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNhbGwtcmVzdC1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5REFBeUQ7QUFDekQsaURBQWlEO0FBQ2pELHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELGlGQUEwRztBQUUxRzs7Ozs7O0dBTUc7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcs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AwLCBib2R5OiBcImhlbGxvLCB3b3JsZCFcIiB9OyB9OycpLFxufSkpO1xucmVzdEFwaS5yb290LmFkZE1ldGhvZCgnQU5ZJywgaGVsbG8pO1xuXG5jb25zdCBjYWxsRW5kcG9pbnRKb2IgPSBuZXcgQ2FsbEFwaUdhdGV3YXlSZXN0QXBpRW5kcG9pbnQoc3RhY2ssICdDYWxsIEFQSUdXJywge1xuICBhcGk6IHJlc3RBcGksXG4gIHN0YWdlTmFtZTogJ3Byb2QnLFxuICBtZXRob2Q6IEh0dHBNZXRob2QuR0VULFxuICBhdXRoVHlwZTogQXV0aFR5cGUuSUFNX1JPTEUsXG4gIG91dHB1dFBhdGg6IHNmbi5Kc29uUGF0aC5zdHJpbmdBdCgnJC5SZXNwb25zZUJvZHknKSxcbn0pO1xuXG5jb25zdCBjaGFpbiA9IHNmbi5DaGFpbi5zdGFydChjYWxsRW5kcG9pbnRKb2IpO1xuXG5jb25zdCBzbSA9IG5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxufSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnc3RhdGVNYWNoaW5lQXJuJywge1xuICB2YWx1ZTogc20uc3RhdGVNYWNoaW5lQXJuLFxufSk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnY2FsbC1yZXN0LWFwaScsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.js deleted file mode 100644 index bb96796167da8..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-execution.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id - * * aws athena get-query-execution --query-execution-id : should return QueryExecution - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-get-query-execution-integ'); -const startQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaStartQueryExecution(stack, 'Start Athena Query', { - queryString: sfn.JsonPath.stringAt('$.queryString'), - queryExecutionContext: { - databaseName: 'mydatabase', - }, - resultConfiguration: { - encryptionConfiguration: { - encryptionOption: aws_stepfunctions_tasks_1.EncryptionOption.S3_MANAGED, - }, - }, -}); -const getQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaGetQueryExecution(stack, 'Get Query Execution', { - queryExecutionId: sfn.JsonPath.stringAt('$.QueryExecutionId'), -}); -const chain = sfn.Chain.start(startQueryExecutionJob).next(getQueryExecutionJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,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XJ5RXhlY3V0aW9uSWQnKSxcbn0pO1xuXG5jb25zdCBjaGFpbiA9IHNmbi5DaGFpbi5zdGFydChzdGFydFF1ZXJ5RXhlY3V0aW9uSm9iKS5uZXh0KGdldFF1ZXJ5RXhlY3V0aW9uSm9iKTtcblxuY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbjogY2hhaW4sXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.js deleted file mode 100644 index fa7508a0ce248..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.get-query-results.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id - * * aws athena get-query-results --query-execution-id : should return query results - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-get-query-results-integ'); -const query = sfn.JsonPath.stringAt('$.queryString'); -const startQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaStartQueryExecution(stack, 'Start Athena Query', { - queryString: query, - queryExecutionContext: { - databaseName: 'mydatabase', - }, - resultConfiguration: { - encryptionConfiguration: { - encryptionOption: aws_stepfunctions_tasks_1.EncryptionOption.S3_MANAGED, - }, - }, -}); -const wait = new sfn.Wait(stack, 'Wait', { - time: sfn.WaitTime.duration(cdk.Duration.seconds(10)), -}); -const getQueryResultsJob = new aws_stepfunctions_tasks_1.AthenaGetQueryResults(stack, 'Get Query Results', { - queryExecutionId: sfn.JsonPath.stringAt('$.QueryExecutionId'), -}); -const chain = sfn.Chain - .start(startQueryExecutionJob) - .next(wait) - .next(getQueryResultsJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2V0LXF1ZXJ5LXJlc3VsdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5nZXQtcXVlcnktcmVzdWx0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsaUZBQXlIO0FBRXpIOzs7OztHQUtHO0FBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQU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gPSBuZXcgQXRoZW5hR2V0UXVlcnlSZXN1bHRzKHN0YWNrLCAnR2V0IFF1ZXJ5IFJlc3VsdHMnLCB7XG4gIHF1ZXJ5RXhlY3V0aW9uSWQ6IHNmbi5Kc29uUGF0aC5zdHJpbmdBdCgnJC5RdWVyeUV4ZWN1dGlvbklkJyksXG59KTtcblxuY29uc3QgY2hhaW4gPSBzZm4uQ2hhaW5cbiAgLnN0YXJ0KHN0YXJ0UXVlcnlFeGVjdXRpb25Kb2IpXG4gIC5uZXh0KHdhaXQpXG4gIC5uZXh0KGdldFF1ZXJ5UmVzdWx0c0pvYik7XG5cbmNvbnN0IHNtID0gbmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IGNoYWluLFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdzdGF0ZU1hY2hpbmVBcm4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.js deleted file mode 100644 index 0989d2cfe8e0e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.start-query-execution.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id - * * aws athena get-query-execution --query-execution-id : should return QueryExecution - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-start-query-execution-integ'); -const startQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaStartQueryExecution(stack, 'Start Athena Query', { - queryString: sfn.JsonPath.stringAt('$.queryString'), - queryExecutionContext: { - databaseName: 'mydatabase', - }, - resultConfiguration: { - encryptionConfiguration: { - encryptionOption: aws_stepfunctions_tasks_1.EncryptionOption.S3_MANAGED, - }, - outputLocation: { - bucketName: 'query-results-bucket', - objectKey: 'folder', - }, - }, -}); -const chain = sfn.Chain.start(startQueryExecutionJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtcXVlcnktZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3RhcnQtcXVlcnktZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyxpRkFBa0c7QUFFbEc7Ozs7O0dBS0c7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ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IgPSBuZXcgQXRoZW5hU3RhcnRRdWVyeUV4ZWN1dGlvbihzdGFjaywgJ1N0YXJ0IEF0aGVuYSBRdWVyeScsIHtcbiAgcXVlcnlTdHJpbmc6IHNmbi5Kc29uUGF0aC5zdHJpbmdBdCgnJC5xdWVyeVN0cmluZycpLFxuICBxdWVyeUV4ZWN1dGlvbkNvbnRleHQ6IHtcbiAgICBkYXRhYmFzZU5hbWU6ICdteWRhdGFiYXNlJyxcbiAgfSxcbiAgcmVzdWx0Q29uZmlndXJhdGlvbjoge1xuICAgIGVuY3J5cHRpb25Db25maWd1cmF0aW9uOiB7XG4gICAgICBlbmNyeXB0aW9uT3B0aW9uOiBFbmNyeXB0aW9uT3B0aW9uLlMzX01BTkFHRUQsXG4gICAgfSxcbiAgICBvdXRwdXRMb2NhdGlvbjoge1xuICAgICAgYnVja2V0TmFtZTogJ3F1ZXJ5LXJlc3VsdHMtYnVja2V0JyxcbiAgICAgIG9iamVjdEtleTogJ2ZvbGRlcicsXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5cbmNvbnN0IGNoYWluID0gc2ZuLkNoYWluLnN0YXJ0KHN0YXJ0UXVlcnlFeGVjdXRpb25Kb2IpO1xuXG5jb25zdCBzbSA9IG5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxufSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnc3RhdGVNYWNoaW5lQXJuJywge1xuICB2YWx1ZTogc20uc3RhdGVNYWNoaW5lQXJuLFxufSk7XG5cblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.js deleted file mode 100644 index fabfb3132b236..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/athena/integ.stop-query-execution.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED and a query-execution-id - * * aws athena get-query-execution --query-execution-id : should return QueryExecution - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-athena-stop-query-execution-integ'); -const query = sfn.JsonPath.stringAt('$.queryString'); -const startQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaStartQueryExecution(stack, 'Start Athena Query', { - queryString: query, - queryExecutionContext: { - databaseName: 'mydatabase', - }, - resultConfiguration: { - encryptionConfiguration: { - encryptionOption: aws_stepfunctions_tasks_1.EncryptionOption.S3_MANAGED, - }, - }, -}); -const stopQueryExecutionJob = new aws_stepfunctions_tasks_1.AthenaStopQueryExecution(stack, 'Stop Query Execution', { - queryExecutionId: sfn.JsonPath.stringAt('$.QueryExecutionId'), -}); -const chain = sfn.Chain.start(startQueryExecutionJob).next(stopQueryExecutionJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout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blxuY29uc3Qgc3RvcFF1ZXJ5RXhlY3V0aW9uSm9iID0gbmV3IEF0aGVuYVN0b3BRdWVyeUV4ZWN1dGlvbihzdGFjaywgJ1N0b3AgUXVlcnkgRXhlY3V0aW9uJywge1xuICBxdWVyeUV4ZWN1dGlvbklkOiBzZm4uSnNvblBhdGguc3RyaW5nQXQoJyQuUXVlcnlFeGVjdXRpb25JZCcpLFxufSk7XG5cbmNvbnN0IGNoYWluID0gc2ZuLkNoYWluLnN0YXJ0KHN0YXJ0UXVlcnlFeGVjdXRpb25Kb2IpLm5leHQoc3RvcFF1ZXJ5RXhlY3V0aW9uSm9iKTtcblxuY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbjogY2hhaW4sXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.js deleted file mode 100644 index 444c1289bf131..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service-sfn.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-call-aws-service-sfn-integ'); -const task = new aws_stepfunctions_tasks_1.CallAwsService(stack, 'SendTaskSuccess', { - service: 'sfn', - action: 'sendTaskSuccess', - iamResources: ['*'], - parameters: { - Output: sfn.JsonPath.objectAt('$.output'), - TaskToken: sfn.JsonPath.stringAt('$.taskToken'), - }, -}); -const childStateMachine = new sfn.StateMachine(stack, 'ChildStateMachine', { - definition: task, -}); -const stateMachine = new sfn.StateMachine(stack, 'ParentStateMachine', { - definition: new aws_stepfunctions_tasks_1.StepFunctionsStartExecution(stack, 'StepFunctionsStartExecution', { - stateMachine: childStateMachine, - integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN, - input: sfn.TaskInput.fromObject({ - output: sfn.JsonPath.entirePayload, - taskToken: sfn.JsonPath.taskToken, - }), - }), -}); -// THEN -const integ = new integ_tests_alpha_1.IntegTest(app, 'IntegTest', { - testCases: [stack], -}); -const res = integ.assertions.awsApiCall('StepFunctions', 'startExecution', { - stateMachineArn: stateMachine.stateMachineArn, -}); -const executionArn = res.getAttString('executionArn'); -integ.assertions.awsApiCall('StepFunctions', 'describeExecution', { - executionArn, -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - status: 'SUCCEEDED', -})).waitForAssertions({ - totalTimeout: cdk.Duration.seconds(10), - interval: cdk.Duration.seconds(3), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,e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UNhbGwoJ1N0ZXBGdW5jdGlvbnMnLCAnZGVzY3JpYmVFeGVjdXRpb24nLCB7XG4gIGV4ZWN1dGlvbkFybixcbn0pLmV4cGVjdChFeHBlY3RlZFJlc3VsdC5vYmplY3RMaWtlKHtcbiAgc3RhdHVzOiAnU1VDQ0VFREVEJyxcbn0pKS53YWl0Rm9yQXNzZXJ0aW9ucyh7XG4gIHRvdGFsVGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMTApLFxuICBpbnRlcnZhbDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMyksXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.js deleted file mode 100644 index b4620915207eb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/aws-sdk/integ.call-aws-service.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const s3 = require("aws-cdk-lib/aws-s3"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const aws_stepfunctions_1 = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/** - * - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn --input {"body": "hello world!"} : should return execution arn - * * - * * aws stepfunctions describe-execution --execution-arn --query 'status': should return status as SUCCEEDED - * * aws stepfunctions describe-execution --execution-arn --query 'output': should return "hello world!" - */ -class TestStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const bucket = new s3.Bucket(this, 'Bucket'); - const commonParameters = { - Bucket: bucket.bucketName, - Key: 'test.txt', - }; - const iamResources = [bucket.arnForObjects('*')]; - const putObject = new tasks.CallAwsService(this, 'PutObject', { - service: 's3', - action: 'putObject', - parameters: { - Body: sfn.JsonPath.stringAt('$.body'), - ...commonParameters, - }, - iamResources, - }); - const getObject = new tasks.CallAwsService(this, 'GetObject', { - service: 's3', - action: 'getObject', - parameters: commonParameters, - iamResources, - }); - const deleteObject = new tasks.CallAwsService(this, 'DeleteObject', { - service: 's3', - action: 'deleteObject', - parameters: commonParameters, - iamResources, - resultPath: aws_stepfunctions_1.JsonPath.DISCARD, - }); - const stateMachine = new sfn.StateMachine(this, 'StateMachine', { - definition: putObject.next(getObject).next(deleteObject), - }); - new cdk.CfnOutput(this, 'StateMachineArn', { - value: stateMachine.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new TestStack(app, 'aws-stepfunctions-aws-sdk-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FsbC1hd3Mtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNhbGwtYXdzLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBeUM7QUFDekMscURBQXFEO0FBQ3JELHFFQUF5RDtBQUN6RCxtQ0FBbUM7QUFDbkMsNkRBQTZEO0FBRTdEOzs7Ozs7O0dBT0c7QUFDSCxNQUFNLFNBQVUsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMvQixZQUFZLEtBQWMsRUFBRSxFQUFVLEV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RlT2JqZWN0KSxcbiAgICB9KTtcblxuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdTdGF0ZU1hY2hpbmVBcm4nLCB7XG4gICAgICB2YWx1ZTogc3RhdGVNYWNoaW5lLnN0YXRlTWFjaGluZUFybixcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFRlc3RTdGFjayhhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy1hd3Mtc2RrLWludGVnJyk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.js deleted file mode 100644 index 546cdac77137a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/codebuild/integ.start-build.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws codebuild list-builds-for-project --project-name : should return a list of projects with size greater than 0 - * * - * * aws codebuild batch-get-builds --ids --query 'builds[0].buildStatus': wait until the status is 'SUCCEEDED' - * * aws stepfunctions describe-execution --execution-arn --query 'status': should return status as SUCCEEDED - */ -class StartBuildStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - let project = new codebuild.Project(this, 'Project', { - projectName: 'MyTestProject', - buildSpec: codebuild.BuildSpec.fromObject({ - version: '0.2', - phases: { - build: { - commands: [ - 'echo "Hello, CodeBuild!"', - ], - }, - }, - }), - environmentVariables: { - zone: { - type: codebuild.BuildEnvironmentVariableType.PLAINTEXT, - value: 'defaultZone', - }, - }, - }); - let startBuild = new tasks.CodeBuildStartBuild(this, 'build-task', { - project: project, - environmentVariablesOverride: { - ZONE: { - type: codebuild.BuildEnvironmentVariableType.PLAINTEXT, - value: sfn.JsonPath.stringAt('$.envVariables.zone'), - }, - }, - }); - const definition = new sfn.Pass(this, 'Start', { - result: sfn.Result.fromObject({ bar: 'SomeValue' }), - }).next(startBuild); - const stateMachine = new sfn.StateMachine(this, 'StateMachine', { - definition, - }); - new cdk.CfnOutput(this, 'ProjectName', { - value: project.projectName, - }); - new cdk.CfnOutput(this, 'StateMachineArn', { - value: stateMachine.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new StartBuildStack(app, 'aws-stepfunctions-tasks-codebuild-start-build-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5zdGFydC1idWlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVEQUF1RDtBQUN2RCxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLDZEQUE2RDtBQUU3RDs7Ozs7OztHQU9HO0FBRUgsTUFBTSxlQUFnQixTQUFRLEdBQUcsQ0FBQyxLQUFLO0lBQ3JDLFlBQVksS0FBYyxFQUFFLEVBQVUsRUFBRSxRQUF3QixFQUFFO1FBQ2hFLEtBQ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YXI6ICdTb21lVmFsdWUnIH0pLFxuICAgIH0pLm5leHQoc3RhcnRCdWlsZCk7XG5cbiAgICBjb25zdCBzdGF0ZU1hY2hpbmUgPSBuZXcgc2ZuLlN0YXRlTWFjaGluZSh0aGlzLCAnU3RhdGVNYWNoaW5lJywge1xuICAgICAgZGVmaW5pdGlvbixcbiAgICB9KTtcblxuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdQcm9qZWN0TmFtZScsIHtcbiAgICAgIHZhbHVlOiBwcm9qZWN0LnByb2plY3ROYW1lLFxuICAgIH0pO1xuICAgIG5ldyBjZGsuQ2ZuT3V0cHV0KHRoaXMsICdTdGF0ZU1hY2hpbmVBcm4nLCB7XG4gICAgICB2YWx1ZTogc3RhdGVNYWNoaW5lLnN0YXRlTWFjaGluZUFybixcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IFN0YXJ0QnVpbGRTdGFjayhhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy10YXNrcy1jb2RlYnVpbGQtc3RhcnQtYnVpbGQtaW50ZWcnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.js deleted file mode 100644 index e9a1ac73a0193..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/databrew/integ.start-job-run.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const databrew = require("aws-cdk-lib/aws-databrew"); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED - */ -class GlueDataBrewJobStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const region = this.region; - const outputBucket = new s3.Bucket(this, 'JobOutputBucket', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const role = new iam.Role(this, 'DataBrew Role', { - managedPolicies: [{ - managedPolicyArn: 'arn:aws:iam::aws:policy/service-role/AWSGlueDataBrewServiceRole', - }], - path: '/', - assumedBy: new iam.ServicePrincipal('databrew.amazonaws.com'), - inlinePolicies: { - DataBrewPolicy: iam.PolicyDocument.fromJson({ - Statement: [{ - Effect: 'Allow', - Action: [ - 's3:GetObject', - 's3:PutObject', - 's3:DeleteObject', - 's3:ListBucket', - ], - Resource: [ - `arn:aws:s3:::databrew-public-datasets-${region}/*`, - `arn:aws:s3:::databrew-public-datasets-${region}`, - `${outputBucket.bucketArn}/*`, - `${outputBucket.bucketArn}`, - ], - }], - }), - }, - }); - const recipe = new databrew.CfnRecipe(this, 'DataBrew Recipe', { - name: 'recipe-1', - steps: [ - { - action: { - operation: 'UPPER_CASE', - parameters: { - sourceColumn: 'description', - }, - }, - }, - { - action: { - operation: 'DELETE', - parameters: { - sourceColumn: 'doc_id', - }, - }, - }, - ], - }); - const dataset = new databrew.CfnDataset(this, 'DataBrew Dataset', { - input: { - s3InputDefinition: { - bucket: `databrew-public-datasets-${region}`, - key: 'votes.csv', - }, - }, - name: 'dataset-1', - }); - const project = new databrew.CfnProject(this, 'DataBrew Project', { - name: 'project-1', - roleArn: role.roleArn, - datasetName: dataset.name, - recipeName: recipe.name, - }); - project.addDependency(dataset); - project.addDependency(recipe); - const job = new databrew.CfnJob(this, 'DataBrew Job', { - name: 'job-1', - type: 'RECIPE', - projectName: project.name, - roleArn: role.roleArn, - outputs: [{ - location: { - bucket: outputBucket.bucketName, - }, - }], - }); - job.addDependency(project); - const startGlueDataBrewJob = new aws_stepfunctions_tasks_1.GlueDataBrewStartJobRun(this, 'Start DataBrew Job run', { - name: job.name, - }); - const chain = sfn.Chain.start(startGlueDataBrewJob); - const sm = new sfn.StateMachine(this, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), - }); - new cdk.CfnOutput(this, 'stateMachineArn', { - value: sm.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new GlueDataBrewJobStack(app, 'aws-stepfunctions-tasks-databrew-start-job-run-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtam9iLXJ1bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnN0YXJ0LWpvYi1ydW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBcUQ7QUFDckQsMkNBQTJDO0FBQzNDLHlDQUF5QztBQUN6QyxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLGlGQUE4RTtBQUU5RTs7OztHQUlHO0FBRUgsTUFBTSxvQkFBcUIsU0FBUSxHQUFHLENBQUMsS0FBSztJQUMxQyxZQUFZLEtBQWMsRUFBRSxFQUFVLEVBQUUsUUFBd0IsRUFBRTtRQUNoRSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsT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XB1YmxpYy1kYXRhc2V0cy0ke3JlZ2lvbn0vKmAsXG4gICAgICAgICAgICAgIGBhcm46YXdzOnMzOjo6ZGF0YWJyZXctcHVibGljLWRhdGFzZXRzLSR7cmVnaW9ufWAsXG4gICAgICAgICAgICAgIGAke291dHB1dEJ1Y2tldC5idWNrZXRBcm59LypgLFxuICAgICAgICAgICAgICBgJHtvdXRwdXRCdWNrZXQuYnVja2V0QXJufWAsXG4gICAgICAgICAgICBdLFxuICAgICAgICAgIH1dLFxuICAgICAgICB9KSxcbiAgICAgIH0sXG4gICAgfSk7XG5cbiAgICBjb25zdCByZWNpcGUgPSBuZXcgZGF0YWJyZXcuQ2ZuUmVjaXBlKHRoaXMsICdEYXRhQnJldyBSZWNpcGUnLCB7XG4gICAgICBuYW1lOiAncmVjaXBlLTEnLFxuICAgICAgc3RlcHM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGFjdGlvbjoge1xuICAgICAgICAgICAgb3BlcmF0aW9uOiAnVVBQRVJfQ0FTRScsXG4gICAgICAgICAgICBwYXJhbWV0ZXJzOiB7XG4gICAgICAgICAgICAgIHNvdXJjZUNvbHVtbjogJ2Rlc2NyaXB0aW9uJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIGFjdGlvbjoge1xuICAgICAgICAgICAgb3BlcmF0aW9uOiAnREVMRVRFJyxcbiAgICAgICAgICAgIHBhcmFtZXRlcnM6IHtcbiAgICAgICAgICAgICAgc291cmNlQ29sdW1uOiAnZG9jX2lkJyxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSk7XG5cbiAgICBjb25zdCBkYXRhc2V0ID0gbmV3IGRhdGFicmV3LkNmbkRhdGFzZXQodGhpcywgJ0RhdGFCcmV3IERhdGFzZXQnLCB7XG4gICAgICBpbnB1dDoge1xuICAgICAgICBzM0lucHV0RGVmaW5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Sm9iIHJ1bicsIHtcbiAgICAgIG5hbWU6IGpvYi5uYW1lLFxuICAgIH0pO1xuXG4gICAgY29uc3QgY2hhaW4gPSBzZm4uQ2hhaW4uc3RhcnQoc3RhcnRHbHVlRGF0YUJyZXdKb2IpO1xuXG4gICAgY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZSh0aGlzLCAnU3RhdGVNYWNoaW5lJywge1xuICAgICAgZGVmaW5pdGlvbjogY2hhaW4sXG4gICAgICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG4gICAgfSk7XG5cbiAgICBuZXcgY2RrLkNmbk91dHB1dCh0aGlzLCAnc3RhdGVNYWNoaW5lQXJuJywge1xuICAgICAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IEdsdWVEYXRhQnJld0pvYlN0YWNrKGFwcCwgJ2F3cy1zdGVwZnVuY3Rpb25zLXRhc2tzLWRhdGFicmV3LXN0YXJ0LWpvYi1ydW4taW50ZWcnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.js deleted file mode 100644 index d21061c2cab54..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.call-dynamodb.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ddb = require("aws-cdk-lib/aws-dynamodb"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/** - * - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * - * * aws stepfunctions describe-execution --execution-arn --query 'status': should return status as SUCCEEDED - * * aws stepfunctions describe-execution --execution-arn --query 'output': should return the number 42 - */ -class CallDynamoDBStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const TABLE_NAME = 'Messages'; - const MESSAGE_ID = '1234'; - const firstNumber = 18; - const secondNumber = 24; - const table = new ddb.Table(this, 'Messages', { - tableName: TABLE_NAME, - partitionKey: { - name: 'MessageId', - type: ddb.AttributeType.STRING, - }, - readCapacity: 10, - writeCapacity: 5, - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const putItemTask = new tasks.DynamoPutItem(this, 'PutItem', { - item: { - MessageId: tasks.DynamoAttributeValue.fromString(MESSAGE_ID), - Text: tasks.DynamoAttributeValue.fromString(sfn.JsonPath.stringAt('$.bar')), - TotalCount: tasks.DynamoAttributeValue.fromNumber(firstNumber), - Activated: tasks.DynamoAttributeValue.booleanFromJsonPath(sfn.JsonPath.stringAt('$.foo')), - List: tasks.DynamoAttributeValue.listFromJsonPath(sfn.JsonPath.stringAt('$.list')), - }, - table, - }); - const getItemTaskAfterPut = new tasks.DynamoGetItem(this, 'GetItemAfterPut', { - key: { MessageId: tasks.DynamoAttributeValue.fromString(MESSAGE_ID) }, - table, - }); - const updateItemTask = new tasks.DynamoUpdateItem(this, 'UpdateItem', { - key: { MessageId: tasks.DynamoAttributeValue.fromString(MESSAGE_ID) }, - table, - expressionAttributeValues: { - ':val': tasks.DynamoAttributeValue.numberFromString(sfn.JsonPath.stringAt('$.Item.TotalCount.N')), - ':rand': tasks.DynamoAttributeValue.fromNumber(secondNumber), - }, - updateExpression: 'SET TotalCount = :val + :rand', - }); - const getItemTaskAfterUpdate = new tasks.DynamoGetItem(this, 'GetItemAfterUpdate', { - key: { MessageId: tasks.DynamoAttributeValue.fromString(MESSAGE_ID) }, - table, - outputPath: sfn.JsonPath.stringAt('$.Item.TotalCount.N'), - }); - const deleteItemTask = new tasks.DynamoDeleteItem(this, 'DeleteItem', { - key: { MessageId: tasks.DynamoAttributeValue.fromString(MESSAGE_ID) }, - table, - resultPath: sfn.JsonPath.DISCARD, - }); - const definition = new sfn.Pass(this, 'Start', { - result: sfn.Result.fromObject({ bar: 'SomeValue' }), - }) - .next(putItemTask) - .next(getItemTaskAfterPut) - .next(updateItemTask) - .next(getItemTaskAfterUpdate) - .next(deleteItemTask); - const stateMachine = new sfn.StateMachine(this, 'StateMachine', { - definition, - }); - new cdk.CfnOutput(this, 'StateMachineArn', { - value: stateMachine.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new CallDynamoDBStack(app, 'aws-stepfunctions-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FsbC1keW5hbW9kYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNhbGwtZHluYW1vZGIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnREFBZ0Q7QUFDaEQscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyw2REFBNkQ7QUFFN0Q7Ozs7Ozs7R0FPRztBQUNILE1BQU0saUJBQWtCLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDdkMsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLFFBQXdCLEVBQUU7UUFDaEUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFD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gfSlcbiAgICAgIC5uZXh0KHB1dEl0ZW1UYXNrKVxuICAgICAgLm5leHQoZ2V0SXRlbVRhc2tBZnRlclB1dClcbiAgICAgIC5uZXh0KHVwZGF0ZUl0ZW1UYXNrKVxuICAgICAgLm5leHQoZ2V0SXRlbVRhc2tBZnRlclVwZGF0ZSlcbiAgICAgIC5uZXh0KGRlbGV0ZUl0ZW1UYXNrKTtcblxuICAgIGNvbnN0IHN0YXRlTWFjaGluZSA9IG5ldyBzZm4uU3RhdGVNYWNoaW5lKHRoaXMsICdTdGF0ZU1hY2hpbmUnLCB7XG4gICAgICBkZWZpbml0aW9uLFxuICAgIH0pO1xuXG4gICAgbmV3IGNkay5DZm5PdXRwdXQodGhpcywgJ1N0YXRlTWFjaGluZUFybicsIHtcbiAgICAgIHZhbHVlOiBzdGF0ZU1hY2hpbmUuc3RhdGVNYWNoaW5lQXJuLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBjZGsuQXBwKCk7XG5uZXcgQ2FsbER5bmFtb0RCU3RhY2soYXBwLCAnYXdzLXN0ZXBmdW5jdGlvbnMtaW50ZWcnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.js deleted file mode 100644 index 47444fe860dfd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/dynamodb/integ.stringset-after-parallel.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ddb = require("aws-cdk-lib/aws-dynamodb"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'stringset-after-parallel'); -const table = new ddb.Table(stack, 'Table', { - partitionKey: { name: 'pk', type: ddb.AttributeType.STRING }, - removalPolicy: cdk.RemovalPolicy.DESTROY, -}); -const passPK = new sfn.Pass(stack, 'passPK', { - parameters: { 'pk.$': '$.pk' }, -}); -const passStringSet = new sfn.Pass(stack, 'PassStringSet', { - parameters: { 'stringset.$': '$.stringset' }, -}); -const parallel = new sfn.Parallel(stack, 'Parallel', { - resultPath: '$', -}); -parallel.branch(passPK) - .branch(passStringSet); -const putItem = new tasks.DynamoPutItem(stack, 'PutItem', { - table: table, - item: { - pk: tasks.DynamoAttributeValue.fromString('$[0].pk'), - stringset: tasks.DynamoAttributeValue.fromStringSet(sfn.JsonPath.listAt('$[1].stringset')), - }, -}); -const definition = sfn.Chain.start(parallel).next(putItem); -new sfn.StateMachine(stack, 'StateMachine', { - definition: definition, -}); -new integ.IntegTest(app, 'StringSetAfterParallel', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RyaW5nc2V0LWFmdGVyLXBhcmFsbGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3RyaW5nc2V0LWFmdGVyLXBhcmFsbGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsZ0RBQWdEO0FBQ2hELHFEQUFxRDt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ZS5mcm9tU3RyaW5nKCckWzBdLnBrJyksXG4gICAgc3RyaW5nc2V0OiB0YXNrcy5EeW5hbW9BdHRyaWJ1dGVWYWx1ZS5mcm9tU3RyaW5nU2V0KHNmbi5Kc29uUGF0aC5saXN0QXQoJyRbMV0uc3RyaW5nc2V0JykpLFxuICB9LFxufSk7XG5cbmNvbnN0IGRlZmluaXRpb24gPSBzZm4uQ2hhaW4uc3RhcnQocGFyYWxsZWwpLm5leHQocHV0SXRlbSk7XG5cbm5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBkZWZpbml0aW9uLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnU3RyaW5nU2V0QWZ0ZXJQYXJhbGxlbCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.js deleted file mode 100644 index f23983f659c63..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-run-task.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * * Creates a state machine with a task state to run a job with ECS on EC2 - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-sfn-tasks-ecs-ec2-integ'); -const cluster = new ecs.Cluster(stack, 'Ec2Cluster'); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, -}); -// Build task definition -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -const containerDefinition = taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - memoryLimitMiB: 256, - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// Build state machine -const definition = new sfn.Pass(stack, 'Start', { - result: sfn.Result.fromObject({ SomeKey: 'SomeValue' }), -}).next(new tasks.EcsRunTask(stack, 'Run', { - integrationPattern: sfn.IntegrationPattern.RUN_JOB, - cluster, - taskDefinition, - containerOverrides: [ - { - containerDefinition, - environment: [ - { - name: 'SOME_KEY', - value: sfn.JsonPath.stringAt('$.SomeKey'), - }, - ], - }, - ], - launchTarget: new tasks.EcsEc2LaunchTarget(), -})); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition, -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZWMyLXJ1bi10YXNrLmpzIiwic291cm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GFydCcsIHtcbiAgcmVzdWx0OiBzZm4uUmVzdWx0LmZyb21PYmplY3QoeyBTb21lS2V5OiAnU29tZVZhbHVlJyB9KSxcbn0pLm5leHQoXG4gIG5ldyB0YXNrcy5FY3NSdW5UYXNrKHN0YWNrLCAnUnVuJywge1xuICAgIGludGVncmF0aW9uUGF0dGVybjogc2ZuLkludGVncmF0aW9uUGF0dGVybi5SVU5fSk9CLFxuICAgIGNsdXN0ZXIsXG4gICAgdGFza0RlZmluaXRpb24sXG4gICAgY29udGFpbmVyT3ZlcnJpZGVzOiBbXG4gICAgICB7XG4gICAgICAgIGNvbnRhaW5lckRlZmluaXRpb24sXG4gICAgICAgIGVudmlyb25tZW50OiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgbmFtZTogJ1NPTUVfS0VZJyxcbiAgICAgICAgICAgIHZhbHVlOiBzZm4uSnNvblBhdGguc3RyaW5nQXQoJyQuU29tZUtleScpLFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIF0sXG4gICAgbGF1bmNoVGFyZ2V0OiBuZXcgdGFza3MuRWNzRWMyTGF1bmNoVGFyZ2V0KCksXG4gIH0pLFxuKTtcblxuY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbixcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.js deleted file mode 100644 index 7c9a4688621cb..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.ec2-task.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ2'); -const cluster = new ecs.Cluster(stack, 'FargateCluster'); -cluster.addCapacity('DefaultAutoScalingGroup', { - instanceType: new ec2.InstanceType('t2.micro'), - vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC }, -}); -// Build task definition -const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); -const containerDefinition = taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - memoryLimitMiB: 256, - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// Build state machine -const definition = new sfn.Pass(stack, 'Start', { - result: sfn.Result.fromObject({ SomeKey: 'SomeValue' }), -}).next(new sfn.Task(stack, 'Run', { - task: new tasks.RunEcsEc2Task({ - integrationPattern: sfn.ServiceIntegrationPattern.SYNC, - cluster, - taskDefinition, - containerOverrides: [ - { - containerDefinition, - environment: [ - { - name: 'SOME_KEY', - value: sfn.JsonPath.stringAt('$.SomeKey'), - }, - ], - }, - ], - }), -})); -new sfn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newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js deleted file mode 100644 index 5852d265cdd13..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-run-task.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to run a job with ECS on Fargate - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-sfn-tasks-ecs-fargate-integ'); -const cluster = new ecs.Cluster(stack, 'FargateCluster'); -// Build task definition -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 512, - cpu: 256, -}); -const containerDefinition = taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - memoryLimitMiB: 256, - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// Build state machine -const definition = new sfn.Pass(stack, 'Start', { - result: sfn.Result.fromObject({ SomeKey: 'SomeValue', Timeout: 900 }), -}).next(new tasks.EcsRunTask(stack, 'FargateTask', { - integrationPattern: sfn.IntegrationPattern.RUN_JOB, - cluster, - taskDefinition, - assignPublicIp: true, - containerOverrides: [ - { - containerDefinition, - environment: [ - { - name: 'SOME_KEY', - value: sfn.JsonPath.stringAt('$.SomeKey'), - }, - ], - }, - ], - launchTarget: new tasks.EcsFargateLaunchTarget({ - platformVersion: ecs.FargatePlatformVersion.VERSION1_4, - }), - taskTimeout: sfn.Timeout.at('$.Timeout'), -})).next(new tasks.EcsRunTask(stack, 'FargeateTaskSetRevisionNumber', { - cluster, - taskDefinition, - revisionNumber: 1, - launchTarget: new tasks.EcsFargateLaunchTarget({ - platformVersion: ecs.FargatePlatformVersion.VERSION1_4, - }), -})).next(new tasks.EcsRunTask(stack, 'FargeateTaskWithPropagatedTag', { - cluster, - taskDefinition, - launchTarget: new tasks.EcsFargateLaunchTarget({ - platformVersion: ecs.FargatePlatformVersion.VERSION1_4, - }), - propagatedTagSource: ecs.PropagatedTagSource.TASK_DEFINITION, -})); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition, -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmFyZ2F0ZS1ydW4tdGFzay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmZhcmdhdGUtcnVuLXRhc2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsMkNBQTJDO0FBQzNDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsNkRBQTZEO0FBRTdEOzs7Ozs7Ozs7R0FTRztBQUNILE1BQU0sR0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/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.js deleted file mode 100644 index 388f65e8cb659..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/ecs/integ.fargate-task.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const ecs = require("aws-cdk-lib/aws-ecs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-ecs-integ2'); -const cluster = new ecs.Cluster(stack, 'FargateCluster'); -// Build task definition -const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef', { - memoryLimitMiB: 512, - cpu: 256, -}); -const containerDefinition = taskDefinition.addContainer('TheContainer', { - image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), - memoryLimitMiB: 256, - logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), -}); -// Build state machine -const definition = new sfn.Pass(stack, 'Start', { - result: sfn.Result.fromObject({ SomeKey: 'SomeValue' }), -}).next(new sfn.Task(stack, 'FargateTask', { - task: new tasks.RunEcsFargateTask({ - integrationPattern: sfn.ServiceIntegrationPattern.SYNC, - cluster, - taskDefinition, - assignPublicIp: true, - containerOverrides: [ - { - containerDefinition, - environment: [ - { - name: 'SOME_KEY', - value: sfn.JsonPath.stringAt('$.SomeKey'), - }, - ], - }, - ], - }), -})); -new sfn.StateMachine(stack, 'StateMachine', { - definition, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZmFyZ2F0ZS10YXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZmFyZ2F0ZS10YXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLDZEQUE2RDtBQUU3RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGdCQUFnQixDQUFDLENBQUM7QUFFbkQsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSxnQkFBZ0IsQ0FBQyxDQUFDO0FBRXpELHdCQUF3QjtBQUN4QixNQUFNLGNBQWMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxxQkFBcUIsQ0FBQyxLQUFLLEVBQUUsU0FBUyxFQUFFO0lBQ3JFLGNBQWMsRUFBRSxHQUFHO0lBQ25CLEdBQUcsRUFBRSxHQUFHO0NBQ1QsQ0FBQyxDQUFDO0FBQ0gsTUFBTSxtQkFBbUIsR0FBRyxjQUFjLENBQUMsWUFBWSxDQUFDLGNBQWMsRUFBRTtJQUN0RSxLQUFLLEVBQUUsR0FBRyxDQUFDLGNBQWMsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUUsb0JBQW9CLENBQUMsQ0FBQztJQUNsRixjQUFjLEVBQUUs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cgc2ZuLlBhc3Moc3RhY2ssICdTdGFydCcsIHtcbiAgcmVzdWx0OiBzZm4uUmVzdWx0LmZyb21PYmplY3QoeyBTb21lS2V5OiAnU29tZVZhbHVlJyB9KSxcbn0pLm5leHQoXG4gIG5ldyBzZm4uVGFzayhzdGFjaywgJ0ZhcmdhdGVUYXNrJywge1xuICAgIHRhc2s6IG5ldyB0YXNrcy5SdW5FY3NGYXJnYXRlVGFzayh7XG4gICAgICBpbnRlZ3JhdGlvblBhdHRlcm46IHNmbi5TZXJ2aWNlSW50ZWdyYXRpb25QYXR0ZXJuLlNZTkMsXG4gICAgICBjbHVzdGVyLFxuICAgICAgdGFza0RlZmluaXRpb24sXG4gICAgICBhc3NpZ25QdWJsaWNJcDogdHJ1ZSxcbiAgICAgIGNvbnRhaW5lck92ZXJyaWRlczogW1xuICAgICAgICB7XG4gICAgICAgICAgY29udGFpbmVyRGVmaW5pdGlvbixcbiAgICAgICAgICBlbnZpcm9ubWVudDogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBuYW1lOiAnU09NRV9LRVknLFxuICAgICAgICAgICAgICB2YWx1ZTogc2ZuLkpzb25QYXRoLnN0cmluZ0F0KCckLlNvbWVLZXknKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfSksXG4gIH0pLFxuKTtcblxubmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb24sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.js deleted file mode 100644 index 9fef9807dfe47..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eks/integ.call.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const eks = require("aws-cdk-lib/aws-eks"); -const iam = require("aws-cdk-lib/aws-iam"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Create a state machine with a task state to use the Kubernetes API to read Kubernetes resource objects - * via a Kubernetes API endpoint. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-eks-call-integ-test'); -const cluster = new eks.Cluster(stack, 'EksCluster', { - version: eks.KubernetesVersion.V1_21, - clusterName: 'eksCluster', -}); -const executionRole = new iam.Role(stack, 'Role', { - roleName: 'stateMachineExecutionRole', - assumedBy: new iam.ServicePrincipal('states.amazonaws.com'), -}); -cluster.awsAuth.addMastersRole(executionRole); -const callJob = new aws_stepfunctions_tasks_1.EksCall(stack, 'Call a EKS Endpoint', { - cluster: cluster, - httpMethod: aws_stepfunctions_tasks_1.HttpMethods.GET, - httpPath: '/api/v1/namespaces/default/pods', -}); -const chain = sfn.Chain.start(callJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - role: executionRole, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new integ.IntegTest(app, 'aws-stepfunctions-tasks-eks-call-integ', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELGlGQUEyRTtBQUUzRTs7Ozs7Ozs7OztHQVVHO0FBRUgsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2Q0FBNkMsQ0FBQyxDQUFDO0FBRWhGLE1BQU0sT0FBTyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsWUFBWSxFQUFFO0lBQ25ELE9BQU8sRUFBRSxHQUFHLENBQUMsaUJBQWlCLENBQUMsS0FBSztJQUNwQyxXQUFXLEVBQUUsWUFBWTtDQUMxQixDQUFDLENBQUM7QUFFSCxNQUFNLGFBQWEsR0FBRyxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRTtJQUNoRCxRQUFRLEVBQUUsMkJBQTJCO0lBQ3JDLFNBQVMsRUFBRSxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxzQkFBc0IsQ0FBQztDQUM1RCxDQUFDLENBQUM7QUFFSCxPQUFPLENBQUMsT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Uoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IGNoYWluLFxuICByb2xlOiBleGVjdXRpb25Sb2xlLFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdzdGF0ZU1hY2hpbmVBcm4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy10YXNrcy1la3MtY2FsbC1pbnRlZycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBjZGtDb21tYW5kT3B0aW9uczoge1xuICAgIGRlcGxveToge1xuICAgICAgYXJnczoge1xuICAgICAgICByb2xsYmFjazogdHJ1ZSxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.js deleted file mode 100644 index 972d60cd31364..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v1-policy.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-emr-create-cluster'); -new aws_stepfunctions_tasks_1.EmrCreateCluster(stack, 'EmrCreateCluster', { - instances: {}, - name: 'Cluster', - integrationPattern: sfn.IntegrationPattern.RUN_JOB, -}); -new integ_tests_alpha_1.IntegTest(app, 'EmrCreateClusterTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZW1yLWNyZWF0ZS1jbHVzdGVyLXdpdGgtdjEtcG9saWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZW1yLWNyZWF0ZS1jbHVzdGVyLXdpdGgtdjEtcG9saWN5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscURBQXFEO0FBQ3JELDZDQUF5QztBQUN6QyxrRUFBdUQ7QUFDdkQsaUZBQXVFO0FBRXZFLE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBRXRCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsNEJBQTRCLENBQUMsQ0FBQztBQUUzRCxJQUFJLDBDQUFnQixDQUFDLEtBQUssRUFBRSxrQkFBa0IsRUFBRTtJQUM5QyxTQUFTLEVBQUUsRUFBRTtJQUNiLElBQUksRUFBRSxTQUFTO0lBQ2Ysa0JBQWtCLEVBQUUsR0FBRyxDQUFDLGtCQUFrQixDQUFDLE9BQU87Q0FDbkQsQ0FBQyxDQUFDO0FBRUgsSUFBSSw2QkFBUyxDQUFDLEdBQUcsRUFBRSxzQkFBc0IsRUFBRTtJQUN6QyxTQUFTLEVBQUUsQ0FBQyxLQUFLLENBQUM7Q0FDbkIsQ0FBQyxDQUFDO0FBRUgsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgc2ZuIGZyb20gJ2F3cy1jZGstbGliL2F3cy1zdGVwZnVuY3Rpb25zJztcbmltcG9ydCB7IEFwcCwgU3RhY2sgfSBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgeyBJbnRlZ1Rlc3QgfSBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBFbXJDcmVhdGVDbHVzdGVyIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLXN0ZXBmdW5jdGlvbnMtdGFza3MnO1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2F3cy1jZGstZW1yLWNyZWF0ZS1jbHVzdGVyJyk7XG5cbm5ldyBFbXJDcmVhdGVDbHVzdGVyKHN0YWNrLCAnRW1yQ3JlYXRlQ2x1c3RlcicsIHtcbiAgaW5zdGFuY2VzOiB7fSxcbiAgbmFtZTogJ0NsdXN0ZXInLFxuICBpbnRlZ3JhdGlvblBhdHRlcm46IHNmbi5JbnRlZ3JhdGlvblBhdHRlcm4uUlVOX0pPQixcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0VtckNyZWF0ZUNsdXN0ZXJUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.js deleted file mode 100644 index 4f99d9679d1d1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-with-v2-policy.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -// eslint-disable-next-line import/no-extraneous-dependencies -const cx_api_1 = require("aws-cdk-lib/cx-api"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const enableEmrServicePolicyV2 = { [cx_api_1.ENABLE_EMR_SERVICE_POLICY_V2]: true }; -const app = new aws_cdk_lib_1.App({ - context: enableEmrServicePolicyV2, -}); -const stack = new aws_cdk_lib_1.Stack(app, 'aws-cdk-emr-create-cluster'); -new aws_stepfunctions_tasks_1.EmrCreateCluster(stack, 'EmrCreateCluster', { - instances: {}, - name: 'Cluster', - integrationPattern: sfn.IntegrationPattern.RUN_JOB, -}); -new integ_tests_alpha_1.IntegTest(app, 'EmrCreateClusterTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZW1yLWNyZWF0ZS1jbHVzdGVyLX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50LWRpc2FibGUtbmV4dC1saW5lIGltcG9ydC9uby1leHRyYW5lb3VzLWRlcGVuZGVuY2llc1xuaW1wb3J0IHsgRU5BQkxFX0VNUl9TRVJWSUNFX1BPTElDWV9WMiB9IGZyb20gJ2F3cy1jZGstbGliL2N4LWFwaSc7XG5pbXBvcnQgeyBJbnRlZ1Rlc3QgfSBmcm9tICdAYXdzLWNkay9pbnRlZy10ZXN0cy1hbHBoYSc7XG5pbXBvcnQgeyBFbXJDcmVhdGVDbHVzdGVyIH0gZnJvbSAnYXdzLWNkay1saWIvYXdzLXN0ZXBmdW5jdGlvbnMtdGFza3MnO1xuXG5jb25zdCBlbmFibGVFbXJTZXJ2aWNlUG9saWN5VjIgPSB7IFtFTkFCTEVfRU1SX1NFUlZJQ0VfUE9MSUNZX1YyXTogdHJ1ZSB9O1xuXG5jb25zdCBhcHAgPSBuZXcgQXBwKHtcbiAgY29udGV4dDogZW5hYmxlRW1yU2VydmljZVBvbGljeVYyLFxufSk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKGFwcCwgJ2F3cy1jZGstZW1yLWNyZWF0ZS1jbHVzdGVyJyk7XG5cbm5ldyBFbXJDcmVhdGVDbHVzdGVyKHN0YWNrLCAnRW1yQ3JlYXRlQ2x1c3RlcicsIHtcbiAgaW5zdGFuY2VzOiB7fSxcbiAgbmFtZTogJ0NsdXN0ZXInLFxuICBpbnRlZ3JhdGlvblBhdHRlcm46IHNmbi5JbnRlZ3JhdGlvblBhdHRlcm4uUlVOX0pPQixcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ0VtckNyZWF0ZUNsdXN0ZXJUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.js deleted file mode 100644 index 27afc525b6584..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.job-submission-workflow.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const eks = require("aws-cdk-lib/aws-eks"); -const iam = require("aws-cdk-lib/aws-iam"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/** - * Stack verification steps: - * Everything in the links below must be setup for the EKS Cluster and Execution Role before running the state machine. - * @see https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-cluster-access.html - * @see https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-enable-IAM.html - * @see https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-trust-policy.html - * - * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-emr-containers-all-services-test'); -const eksCluster = new eks.Cluster(stack, 'integration-test-eks-cluster', { - version: eks.KubernetesVersion.V1_21, - defaultCapacity: 3, - defaultCapacityInstance: ec2.InstanceType.of(ec2.InstanceClass.M5, ec2.InstanceSize.XLARGE), -}); -const jobExecutionRole = new iam.Role(stack, 'JobExecutionRole', { - assumedBy: new iam.CompositePrincipal(new iam.ServicePrincipal('emr-containers.amazonaws.com'), new iam.ServicePrincipal('states.amazonaws.com')), -}); -const createVirtualCluster = new aws_stepfunctions_tasks_1.EmrContainersCreateVirtualCluster(stack, 'Create a virtual Cluster', { - virtualClusterName: 'Virtual-Cluster-Name', - eksCluster: aws_stepfunctions_tasks_1.EksClusterInput.fromCluster(eksCluster), - resultPath: '$.cluster', -}); -const startJobRun = new aws_stepfunctions_tasks_1.EmrContainersStartJobRun(stack, 'Start a Job Run', { - virtualCluster: aws_stepfunctions_tasks_1.VirtualClusterInput.fromTaskInput(sfn.TaskInput.fromJsonPathAt('$.cluster.Id')), - releaseLabel: aws_stepfunctions_tasks_1.ReleaseLabel.EMR_6_2_0, - jobName: 'EMR-Containers-Job', - executionRole: iam.Role.fromRoleArn(stack, 'Job-Execution-Role', jobExecutionRole.roleArn), - jobDriver: { - sparkSubmitJobDriver: { - entryPoint: sfn.TaskInput.fromText('local:///usr/lib/spark/examples/src/main/python/pi.py'), - entryPointArguments: sfn.TaskInput.fromObject(['2']), - sparkSubmitParameters: '--conf spark.driver.memory=512M --conf spark.kubernetes.driver.request.cores=0.2 --conf spark.kubernetes.executor.request.cores=0.2 --conf spark.sql.shuffle.partitions=60 --conf spark.dynamicAllocation.enabled=false', - }, - }, - monitoring: { - logging: true, - persistentAppUI: true, - }, - applicationConfig: [{ - classification: aws_stepfunctions_tasks_1.Classification.SPARK_DEFAULTS, - properties: { - 'spark.executor.instances': '1', - 'spark.executor.memory': '512M', - }, - }], - resultPath: '$.job', -}); -const deleteVirtualCluster = new aws_stepfunctions_tasks_1.EmrContainersDeleteVirtualCluster(stack, 'Delete a Virtual Cluster', { - virtualClusterId: sfn.TaskInput.fromJsonPathAt('$.job.VirtualClusterId'), -}); -const chain = sfn.Chain - .start(createVirtualCluster) - .next(startJobRun) - .next(deleteVirtualCluster); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.minutes(20), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new integ.IntegTest(app, 'aws-stepfunctions-tasks-emr-containers-all-services', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuam9iLXN1Ym1pc3Npb24td29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5qb2Itc3VibWlzc2lvbi13b3JrZmxvdy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsb0RBQW9EO0FBQ3BELGlGQUc2QztBQUU3Qzs7Ozs7Ozs7O0dBU0c7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDBEQUEwRCxDQUFDLENBQUM7QUFFN0YsTUFBTSxVQUFVLEdBQUcsSUFBSSxHQUFHLENBQUMsT0FBTyxDQUFDLEtBQUssRUFBRSw4QkFBOEIsRUFBRTtJQUN4RSxPQUFPLEVBQUUsR0FBRyxDQUFDLGlCQUFpQixDQUFDLEtBQUs7SUFDcEMsZUFBZSxFQUFFLENBQUM7SUFDbEIsdUJBQXVCLEVBQUUsR0FBRyxDQUFDLFlBQVksQ0FBQyxFQUFFLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxFQUFFLEVBQUUsR0F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YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2F3cy1zdGVwZnVuY3Rpb25zLXRhc2tzLWVtci1jb250YWluZXJzLWFsbC1zZXJ2aWNlcycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxuICBjZGtDb21tYW5kT3B0aW9uczoge1xuICAgIGRlcGxveToge1xuICAgICAgYXJnczoge1xuICAgICAgICByb2xsYmFjazogdHJ1ZSxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.js deleted file mode 100644 index ca6f3d1b95bba..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emrcontainers/integ.start-job-run.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const eks = require("aws-cdk-lib/aws-eks"); -const iam = require("aws-cdk-lib/aws-iam"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/** - * Stack verification steps: - * Everything in the link below must be setup before running the state machine. - * @see https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/setting-up-enable-IAM.html - * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-emr-containers-start-job-run-test'); -const eksCluster = new eks.Cluster(stack, 'integration-test-eks-cluster', { - version: eks.KubernetesVersion.V1_21, - defaultCapacity: 3, - defaultCapacityInstance: ec2.InstanceType.of(ec2.InstanceClass.M5, ec2.InstanceSize.XLARGE), -}); -const virtualCluster = new cdk.CfnResource(stack, 'Virtual Cluster', { - type: 'AWS::EMRContainers::VirtualCluster', - properties: { - ContainerProvider: { - Id: eksCluster.clusterName, - Info: { - EksInfo: { - Namespace: 'default', - }, - }, - Type: 'EKS', - }, - Name: 'Virtual-Cluster-Name', - }, -}); -const emrRole = eksCluster.addManifest('emrRole', { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: { name: 'emr-containers', namespace: 'default' }, - rules: [ - { apiGroups: [''], resources: ['namespaces'], verbs: ['get'] }, - { apiGroups: [''], resources: ['serviceaccounts', 'services', 'configmaps', 'events', 'pods', 'pods/log'], verbs: ['get', 'list', 'watch', 'describe', 'create', 'edit', 'delete', 'deletecollection', 'annotate', 'patch', 'label'] }, - { apiGroups: [''], resources: ['secrets'], verbs: ['create', 'patch', 'delete', 'watch'] }, - { apiGroups: ['apps'], resources: ['statefulsets', 'deployments'], verbs: ['get', 'list', 'watch', 'describe', 'create', 'edit', 'delete', 'annotate', 'patch', 'label'] }, - { apiGroups: ['batch'], resources: ['jobs'], verbs: ['get', 'list', 'watch', 'describe', 'create', 'edit', 'delete', 'annotate', 'patch', 'label'] }, - { apiGroups: ['extensions'], resources: ['ingresses'], verbs: ['get', 'list', 'watch', 'describe', 'create', 'edit', 'delete', 'annotate', 'patch', 'label'] }, - { apiGroups: ['rbac.authorization.k8s.io'], resources: ['roles', 'rolebindings'], verbs: ['get', 'list', 'watch', 'describe', 'create', 'edit', 'delete', 'deletecollection', 'annotate', 'patch', 'label'] }, - ], -}); -const emrRoleBind = eksCluster.addManifest('emrRoleBind', { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: { name: 'emr-containers', namespace: 'default' }, - subjects: [{ kind: 'User', name: 'emr-containers', apiGroup: 'rbac.authorization.k8s.io' }], - roleRef: { kind: 'Role', name: 'emr-containers', apiGroup: 'rbac.authorization.k8s.io' }, -}); -emrRoleBind.node.addDependency(emrRole); -const emrServiceRole = iam.Role.fromRoleArn(stack, 'emrServiceRole', 'arn:aws:iam::' + aws_cdk_lib_1.Aws.ACCOUNT_ID + ':role/AWSServiceRoleForAmazonEMRContainers'); -const authMapping = { groups: [], username: 'emr-containers' }; -eksCluster.awsAuth.addRoleMapping(emrServiceRole, authMapping); -virtualCluster.node.addDependency(emrRoleBind); -virtualCluster.node.addDependency(eksCluster.awsAuth); -const startJobRunJob = new aws_stepfunctions_tasks_1.EmrContainersStartJobRun(stack, 'Start a Job Run', { - virtualCluster: aws_stepfunctions_tasks_1.VirtualClusterInput.fromVirtualClusterId(virtualCluster.getAtt('Id').toString()), - releaseLabel: aws_stepfunctions_tasks_1.ReleaseLabel.EMR_6_2_0, - jobName: 'EMR-Containers-Job', - jobDriver: { - sparkSubmitJobDriver: { - entryPoint: sfn.TaskInput.fromText('local:///usr/lib/spark/examples/src/main/python/pi.py'), - entryPointArguments: sfn.TaskInput.fromObject(['2']), - sparkSubmitParameters: '--conf spark.driver.memory=512M --conf spark.kubernetes.driver.request.cores=0.2 --conf spark.kubernetes.executor.request.cores=0.2 --conf spark.sql.shuffle.partitions=60 --conf spark.dynamicAllocation.enabled=false', - }, - }, -}); -const chain = sfn.Chain.start(startJobRunJob); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(1000), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new integ.IntegTest(app, 'aws-stepfunctions-tasks-emr-containers-start-job-run', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtam9iLXJ1bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnN0YXJ0LWpvYi1ydW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBRTNDLDJDQUEyQztBQUMzQyxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLDZDQUFrQztBQUNsQyxvREFBb0Q7QUFDcEQsaUZBQWtIO0FBRWxIOzs7Ozs7R0FNRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkRBQTJELENBQUMsQ0FBQztBQUU5RixNQUFNLFVBQVUsR0FBRyxJQUFJLEdBQUcsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLDhCQUE4QixFQUFFO0lBQ3hFLE9BQU8sRUFBRSxHQUFHLENBQUMsaUJBQWlCLENBQUMsS0FBSztJQUNwQyxlQUFlLEVBQUUsQ0FBQztJQUNsQix1QkFBdUIsRUFBRSxHQUFHLENBQUMsWUFBWSxDQUFDLEVBQUUsQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDLEVBQUUsRUFBRSxHQUFHLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQztDQ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VzdC5jb3Jlcz0wLjIgLS1jb25mIHNwYXJrLmt1YmVybmV0ZXMuZXhlY3V0b3IucmVxdWVzdC5jb3Jlcz0wLjIgLS1jb25mIHNwYXJrLnNxbC5zaHVmZmxlLnBhcnRpdGlvbnM9NjAgLS1jb25mIHNwYXJrLmR5bmFtaWNBbGxvY2F0aW9uLmVuYWJsZWQ9ZmFsc2UnLFxuICAgIH0sXG4gIH0sXG59KTtcblxuY29uc3QgY2hhaW4gPSBzZm4uQ2hhaW4uc3RhcnQoc3RhcnRKb2JSdW5Kb2IpO1xuXG5jb25zdCBzbSA9IG5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMTAwMCksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdzdGF0ZU1hY2hpbmVBcm4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy10YXNrcy1lbXItY29udGFpbmVycy1zdGFydC1qb2ItcnVuJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGNka0NvbW1hbmRPcHRpb25zOiB7XG4gICAgZGVwbG95OiB7XG4gICAgICBhcmdzOiB7XG4gICAgICAgIHJvbGxiYWNrOiB0cnVlLFxuICAgICAgfSxcbiAgICB9LFxuICB9LFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.js deleted file mode 100644 index 608dbcefce865..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const events = require("aws-cdk-lib/aws-events"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps : - * * aws stepfunctions start-execution --state-machine-arn : should return execution arn - * * aws stepfunctions describe-execution --execution-arn : should return status as SUCCEEDED - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-eventbridge-put-events-integ'); -const eventBus = new events.EventBus(stack, 'EventBus', { - eventBusName: 'MyEventBus1', -}); -const putEventsTask = new aws_stepfunctions_tasks_1.EventBridgePutEvents(stack, 'Put Custom Events', { - entries: [{ - // Entry with no event bus specified - detail: sfn.TaskInput.fromObject({ - Message: 'Hello from Step Functions!', - }), - detailType: 'MessageFromStepFunctions', - source: 'step.functions', - }, { - // Entry with EventBus provided as object - detail: sfn.TaskInput.fromObject({ - Message: 'Hello from Step Functions!', - }), - eventBus, - detailType: 'MessageFromStepFunctions', - source: 'step.functions', - }], -}); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: putEventsTask, - timeout: cdk.Duration.seconds(30), -}); -const testCase = new integ_tests_alpha_1.IntegTest(app, 'PutEvents', { - testCases: [stack], -}); -// Start an execution -const start = testCase.assertions.awsApiCall('StepFunctions', 'startExecution', { - stateMachineArn: sm.stateMachineArn, -}); -// describe the results of the execution -const describe = testCase.assertions.awsApiCall('StepFunctions', 'describeExecution', { - executionArn: start.getAttString('executionArn'), -}); -// assert the results -describe.expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - status: 'SUCCEEDED', -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHV0LWV2ZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnB1dC1ldmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBaUQ7QUFDakQscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyxrRUFBdUU7QUFDdkUsaUZBQTJFO0FBRTNFOzs7O0dBSUc7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHNEQUFzRCxDQUFDLENBQUM7QUFFekYsTUFBTSxRQUFRLEdBQUcsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLEtBQUssRUFBRSxVQUFVLEVBQUU7SUFDdEQsWUFBWSxFQUFFLGFBQWE7Q0FDNUIsQ0FBQyxDQUFDO0FBRUgsTUFBTSxhQUFhLEdBQUcsSUFBSSw4Q0FBb0IsQ0FBQyxLQUFLLEVBQUUsbUJBQW1CLEVBQUU7SUFDekUsT0FBTyxFQUFFLENBQUM7WUFDUixvQ0FBb0M7WUFDcEMsTUFBTSxFQUFFLEdBQUcsQ0FBQyxTQUFTLENBQUMsVUFBVSxDQUFDO2dCQUMvQixPQUFPLEVBQUUsNEJBQTRCO2FBQ3RDLENBQUM7WUFDRixVQUFVLEVBQUUsMEJBQTBCO1lBQ3RDLE1BQU0sRUFBRSxnQkFBZ0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gdGVzdENhc2UgPSBuZXcgSW50ZWdUZXN0KGFwcCwgJ1B1dEV2ZW50cycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbi8vIFN0YXJ0IGFuIGV4ZWN1dGlvblxuY29uc3Qgc3RhcnQgPSB0ZXN0Q2FzZS5hc3NlcnRpb25zLmF3c0FwaUNhbGwoJ1N0ZXBGdW5jdGlvbnMnLCAnc3RhcnRFeGVjdXRpb24nLCB7XG4gIHN0YXRlTWFjaGluZUFybjogc20uc3RhdGVNYWNoaW5lQXJuLFxufSk7XG5cbi8vIGRlc2NyaWJlIHRoZSByZXN1bHRzIG9mIHRoZSBleGVjdXRpb25cbmNvbnN0IGRlc2NyaWJlID0gdGVzdENhc2UuYXNzZXJ0aW9ucy5hd3NBcGlDYWxsKCdTdGVwRnVuY3Rpb25zJywgJ2Rlc2NyaWJlRXhlY3V0aW9uJywge1xuICBleGVjdXRpb25Bcm46IHN0YXJ0LmdldEF0dFN0cmluZygnZXhlY3V0aW9uQXJuJyksXG59KTtcblxuLy8gYXNzZXJ0IHRoZSByZXN1bHRzXG5kZXNjcmliZS5leHBlY3QoRXhwZWN0ZWRSZXN1bHQub2JqZWN0TGlrZSh7XG4gIHN0YXR1czogJ1NVQ0NFRURFRCcsXG59KSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.js deleted file mode 100644 index ce41f4d8b3c60..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.glue-task.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const glue = require("aws-cdk-lib/aws-glue"); -const iam = require("aws-cdk-lib/aws-iam"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn - * * aws stepfunctions describe-execution --execution-arn - * The "describe-execution" call should eventually return status "SUCCEEDED". - * NOTE: It will take up to 15 minutes for the step function to completem due to the cold start time - * for AWS Glue, which as of 02/2020, is around 10-15 minutes. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); -const codeAsset = new assets.Asset(stack, 'Glue Job Script', { - path: path.join(__dirname, 'my-glue-script/job.py'), -}); -const jobRole = new iam.Role(stack, 'Glue Job Role', { - assumedBy: new iam.ServicePrincipal('glue'), - managedPolicies: [ - iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWSGlueServiceRole'), - ], -}); -codeAsset.grantRead(jobRole); -const job = new glue.CfnJob(stack, 'Glue Job', { - name: 'My Glue Job', - glueVersion: '1.0', - command: { - name: 'glueetl', - pythonVersion: '3', - scriptLocation: `s3://${codeAsset.s3BucketName}/${codeAsset.s3ObjectKey}`, - }, - role: jobRole.roleArn, -}); -const jobTask = new sfn.Task(stack, 'Glue Job Task', { - task: new tasks.RunGlueJobTask(job.name, { - integrationPattern: sfn.ServiceIntegrationPattern.SYNC, - arguments: { - '--enable-metrics': 'true', - }, - }), -}); -const startTask = new sfn.Pass(stack, 'Start Task'); -const endTask = new sfn.Pass(stack, 'End Task'); -const stateMachine = new sfn.StateMachine(stack, 'State Machine', { - definition: sfn.Chain.start(startTask).next(jobTask).next(endTask), -}); -new cdk.CfnOutput(stack, 'State Machine ARN Output', { - value: stateMachine.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZ2x1ZS10YXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuZ2x1ZS10YXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLDZDQUE2QztBQUM3QywyQ0FBMkM7QUFDM0Msb0RBQW9EO0FBQ3BELHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsNkRBQTZEO0FBRTdEOzs7Ozs7O0dBT0c7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLHlCQUF5QixDQUFDLENBQUM7QUFFNUQsTUFBTSxTQUFTLEdBQUcsSUFBSSxNQUFNLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxpQkFBaUIsRUFBRTtJQUMzRCxJQUFJLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsdUJBQXVCLENBQUM7Q0FDcEQsQ0FBQyxDQUFDO0FBRUgsTUFBTSxPQUFPLEdBQUcsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxlQUFlLEVBQUU7SUFDbkQsU0FBUyxFQUFFLElBQUksR0FBRyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQztJQUMzQyxlQUFlLEVBQUU7UUFDZixHQUFHLENBQUMsYUFBYSxDQUFDLHdCQUF3QixDQUFDLGlDQUFpQyxDQUFDO0tBQzlFO0NBQ0YsQ0FBQyxDQU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ZU1hY2hpbmVBcm4sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.js deleted file mode 100644 index ff50fd8997413..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue/integ.start-job-run.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const glue = require("aws-cdk-lib/aws-glue"); -const iam = require("aws-cdk-lib/aws-iam"); -const assets = require("aws-cdk-lib/aws-s3-assets"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --state-machine-arn - * * aws stepfunctions describe-execution --execution-arn - * The "describe-execution" call should eventually return status "SUCCEEDED". - * NOTE: It will take up to 15 minutes for the step function to complete due to the cold start time - * for AWS Glue, which as of 02/2020, is around 10-15 minutes. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); -const codeAsset = new assets.Asset(stack, 'Glue Job Script', { - path: path.join(__dirname, 'my-glue-script/job.py'), -}); -const jobRole = new iam.Role(stack, 'Glue Job Role', { - assumedBy: new iam.ServicePrincipal('glue'), - managedPolicies: [ - iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWSGlueServiceRole'), - ], -}); -codeAsset.grantRead(jobRole); -const job = new glue.CfnJob(stack, 'Glue Job', { - name: 'My Glue Job', - glueVersion: '1.0', - command: { - name: 'glueetl', - pythonVersion: '3', - scriptLocation: `s3://${codeAsset.s3BucketName}/${codeAsset.s3ObjectKey}`, - }, - role: jobRole.roleArn, -}); -const jobTask = new aws_stepfunctions_tasks_1.GlueStartJobRun(stack, 'Glue Job Task', { - glueJobName: job.name, - integrationPattern: sfn.IntegrationPattern.RUN_JOB, - arguments: sfn.TaskInput.fromObject({ - '--enable-metrics': 'true', - }), -}); -const startTask = new sfn.Pass(stack, 'Start Task'); -const endTask = new sfn.Pass(stack, 'End Task'); -const stateMachine = new sfn.StateMachine(stack, 'State Machine', { - definition: sfn.Chain.start(startTask).next(jobTask).next(endTask), -}); -new cdk.CfnOutput(stack, 'State Machine ARN Output', { - value: stateMachine.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtam9iLXJ1bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnN0YXJ0LWpvYi1ydW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBNkI7QUFDN0IsNkNBQTZDO0FBQzdDLDJDQUEyQztBQUMzQyxvREFBb0Q7QUFDcEQscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyxpRkFBc0U7QUFFdEU7Ozs7Ozs7R0FPRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUseUJBQXlCLENBQUMsQ0FBQztBQUU1RCxNQUFNLFNBQVMsR0FBRyxJQUFJLE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aywgJ1N0YXJ0IFRhc2snKTtcbmNvbnN0IGVuZFRhc2sgPSBuZXcgc2ZuLlBhc3Moc3RhY2ssICdFbmQgVGFzaycpO1xuXG5jb25zdCBzdGF0ZU1hY2hpbmUgPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlIE1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IHNmbi5DaGFpbi5zdGFydChzdGFydFRhc2spLm5leHQoam9iVGFzaykubmV4dChlbmRUYXNrKSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ1N0YXRlIE1hY2hpbmUgQVJOIE91dHB1dCcsIHtcbiAgdmFsdWU6IHN0YXRlTWFjaGluZS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.js deleted file mode 100644 index 573a0d2727f04..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.evaluate-expression.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --input '{"a": 3, "b": 4}' --state-machine-arn - * * aws stepfunctions describe-execution --execution-arn - * * The output here should contain `status: "SUCCEEDED"` and `output: "{ a: 3, b: 4, c: 7, d: 14, now: }" - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); -const sum = new tasks.EvaluateExpression(stack, 'Sum', { - expression: '$.a + $.b', - resultPath: '$.c', -}); -const multiply = new tasks.EvaluateExpression(stack, 'Multiply', { - expression: '$.c * 2', - resultPath: '$.d', -}); -const now = new tasks.EvaluateExpression(stack, 'Now', { - expression: '(new Date()).toUTCString()', - resultPath: '$.now', -}); -const statemachine = new sfn.StateMachine(stack, 'StateMachine', { - definition: sum - .next(multiply) - .next(new sfn.Wait(stack, 'Wait', { - time: sfn.WaitTime.secondsPath('$.d'), - })) - .next(now), -}); -new cdk.CfnOutput(stack, 'StateMachineARN', { - value: statemachine.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuZXZhbHVhdGUtZXhwcmVzc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmV2YWx1YXRlLWV4cHJlc3Npb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLDZEQUE2RDtBQUU3RDs7Ozs7R0FLRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUseUJBQXlCLENBQUMsQ0FBQztBQUU1RCxNQUFNLEdBQUcsR0FBRyxJQUFJLEtBQUssQ0FBQyxrQkFBa0IsQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFO0lBQ3JELFVBQVUsRUFBRSxXQUFXO0lBQ3Z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ZUV4cHJlc3Npb24oc3RhY2ssICdOb3cnLCB7XG4gIGV4cHJlc3Npb246ICcobmV3IERhdGUoKSkudG9VVENTdHJpbmcoKScsXG4gIHJlc3VsdFBhdGg6ICckLm5vdycsXG59KTtcblxuY29uc3Qgc3RhdGVtYWNoaW5lID0gbmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IHN1bVxuICAgIC5uZXh0KG11bHRpcGx5KVxuICAgIC5uZXh0KFxuICAgICAgbmV3IHNmbi5XYWl0KHN0YWNrLCAnV2FpdCcsIHtcbiAgICAgICAgdGltZTogc2ZuLldhaXRUaW1lLnNlY29uZHNQYXRoKCckLmQnKSxcbiAgICAgIH0pLFxuICAgIClcbiAgICAubmV4dChub3cpLFxufSk7XG5cbm5ldyBjZGsuQ2ZuT3V0cHV0KHN0YWNrLCAnU3RhdGVNYWNoaW5lQVJOJywge1xuICB2YWx1ZTogc3RhdGVtYWNoaW5lLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.js deleted file mode 100644 index 070971f230a1c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.job-poller.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -class JobPollerStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const submitJobActivity = new sfn.Activity(this, 'SubmitJob'); - const checkJobActivity = new sfn.Activity(this, 'CheckJob'); - const submitJob = new sfn.Task(this, 'Submit Job', { - task: new tasks.InvokeActivity(submitJobActivity), - resultPath: '$.guid', - }); - const waitX = new sfn.Wait(this, 'Wait X Seconds', { time: sfn.WaitTime.secondsPath('$.wait_time') }); - const getStatus = new sfn.Task(this, 'Get Job Status', { - task: new tasks.InvokeActivity(checkJobActivity), - inputPath: '$.guid', - resultPath: '$.status', - }); - const isComplete = new sfn.Choice(this, 'Job Complete?'); - const jobFailed = new sfn.Fail(this, 'Job Failed', { - cause: 'AWS Batch Job Failed', - error: 'DescribeJob returned FAILED', - }); - const finalStatus = new sfn.Task(this, 'Get Final Job Status', { - task: new tasks.InvokeActivity(checkJobActivity), - inputPath: '$.guid', - }); - const chain = sfn.Chain - .start(submitJob) - .next(waitX) - .next(getStatus) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus) - .otherwise(waitX)); - new sfn.StateMachine(this, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), - }); - } -} -const app = new cdk.App(); -new JobPollerStack(app, 'aws-stepfunctions-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuam9iLXBvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmpvYi1wb2xsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLDZEQUE2RD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RmFpbGVkKVxuICAgICAgICAud2hlbihzZm4uQ29uZGl0aW9uLnN0cmluZ0VxdWFscygnJC5zdGF0dXMnLCAnU1VDQ0VFREVEJyksIGZpbmFsU3RhdHVzKVxuICAgICAgICAub3RoZXJ3aXNlKHdhaXRYKSk7XG5cbiAgICBuZXcgc2ZuLlN0YXRlTWFjaGluZSh0aGlzLCAnU3RhdGVNYWNoaW5lJywge1xuICAgICAgZGVmaW5pdGlvbjogY2hhaW4sXG4gICAgICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IGNkay5BcHAoKTtcbm5ldyBKb2JQb2xsZXJTdGFjayhhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy1pbnRlZycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.js deleted file mode 100644 index 5ec2809985155..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/integ.start-execution.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --input '{"hello": "world"}' --state-machine-arn - * * aws stepfunctions describe-execution --execution-arn - * * The output here should contain `status: "SUCCEEDED"` and `output:"{...\"Output\":\"{\\\"hello\\\":\\\"world\\\"}\"...}"` - */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const child = new sfn.StateMachine(this, 'Child', { - definition: new sfn.Pass(this, 'Pass'), - }); - const parent = new sfn.StateMachine(this, 'Parent', { - definition: new sfn.Task(this, 'Task', { - task: new tasks.StartExecution(child, { - input: { - hello: sfn.JsonPath.stringAt('$.hello'), - }, - integrationPattern: sfn.ServiceIntegrationPattern.SYNC, - }), - }), - }); - new aws_cdk_lib_1.CfnOutput(this, 'StateMachineARN', { - value: parent.stateMachineArn, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'integ-sfn-start-execution'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3RhcnQtZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscURBQXFEO0FBQ3JELDZDQUFvRDtBQUVwRCw2REFBNkQ7QUFFN0Q7Ozs7O0dBS0c7QUFFSCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLFlBQVksQ0FBQyxJQUFJLEVBQUUsT0FBTyxFQUFFO1lBQ2hELFVBQVUsRUFBRSxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQztTQUN2QyxDQUFDLENBQUM7UUFFSCxNQUF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zdHJpbmdBdCgnJC5oZWxsbycpLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgaW50ZWdyYXRpb25QYXR0ZXJuOiBzZm4uU2VydmljZUludGVncmF0aW9uUGF0dGVybi5TWU5DLFxuICAgICAgICB9KSxcbiAgICAgIH0pLFxuICAgIH0pO1xuXG4gICAgbmV3IENmbk91dHB1dCh0aGlzLCAnU3RhdGVNYWNoaW5lQVJOJywge1xuICAgICAgdmFsdWU6IHBhcmVudC5zdGF0ZU1hY2hpbmVBcm4sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5uZXcgVGVzdFN0YWNrKGFwcCwgJ2ludGVnLXNmbi1zdGFydC1leGVjdXRpb24nKTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.js deleted file mode 100644 index 9fd15889e6eb2..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke-function.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); -const handler = new aws_lambda_1.Function(stack, 'Handler', { - code: aws_lambda_1.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')), - handler: 'index.main', - runtime: aws_lambda_1.Runtime.PYTHON_3_9, -}); -const submitJob = new sfn.Task(stack, 'Invoke Handler', { - task: new tasks.InvokeFunction(handler), -}); -const callbackHandler = new aws_lambda_1.Function(stack, 'CallbackHandler', { - code: aws_lambda_1.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')), - handler: 'index.main', - runtime: aws_lambda_1.Runtime.PYTHON_3_9, -}); -const taskTokenHandler = new sfn.Task(stack, 'Invoke Handler with task token', { - task: new tasks.RunLambdaTask(callbackHandler, { - integrationPattern: sfn.ServiceIntegrationPattern.WAIT_FOR_TASK_TOKEN, - payload: sfn.TaskInput.fromObject({ - token: sfn.JsonPath.taskToken, - }), - }), - inputPath: '$.guid', - resultPath: '$.status', -}); -const isComplete = new sfn.Choice(stack, 'Job Complete?'); -const jobFailed = new sfn.Fail(stack, 'Job Failed', { - cause: 'AWS Batch Job Failed', - error: 'DescribeJob returned FAILED', -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain - .start(submitJob) - .next(taskTokenHandler) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus)); -new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW52b2tlLWZ1bmN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW52b2tlLWZ1bmN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCL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ZBSUxFRCcsXG59KTtcbmNvbnN0IGZpbmFsU3RhdHVzID0gbmV3IHNmbi5QYXNzKHN0YWNrLCAnRmluYWwgc3RlcCcpO1xuXG5jb25zdCBjaGFpbiA9IHNmbi5DaGFpblxuICAuc3RhcnQoc3VibWl0Sm9iKVxuICAubmV4dCh0YXNrVG9rZW5IYW5kbGVyKVxuICAubmV4dChpc0NvbXBsZXRlXG4gICAgLndoZW4oc2ZuLkNvbmRpdGlvbi5zdHJpbmdFcXVhbHMoJyQuc3RhdHVzJywgJ0ZBSUxFRCcpLCBqb2JGYWlsZWQpXG4gICAgLndoZW4oc2ZuLkNvbmRpdGlvbi5zdHJpbmdFcXVhbHMoJyQuc3RhdHVzJywgJ1NVQ0NFRURFRCcpLCBmaW5hbFN0YXR1cyksXG4gICk7XG5cbm5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.js deleted file mode 100644 index 1782416dc6aa5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to invoke a Lambda function - * The state machine creates a couple of Lambdas that pass results forward - * and into a Choice state that validates the output. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-lambda-invoke-integ'); -const submitJobLambda = new aws_lambda_1.Function(stack, 'submitJobLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async () => { - return { - statusCode: '200', - body: 'hello, world!' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const submitJob = new aws_stepfunctions_tasks_1.LambdaInvoke(stack, 'Invoke Handler', { - lambdaFunction: submitJobLambda, - outputPath: '$.Payload', -}); -const checkJobStateLambda = new aws_lambda_1.Function(stack, 'checkJobStateLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async function(event, context) { - return { - status: event.statusCode === '200' ? 'SUCCEEDED' : 'FAILED' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const checkJobState = new aws_stepfunctions_tasks_1.LambdaInvoke(stack, 'Check the job state', { - lambdaFunction: checkJobStateLambda, - resultSelector: { - status: sfn.JsonPath.stringAt('$.Payload.status'), - }, -}); -const isComplete = new sfn.Choice(stack, 'Job Complete?'); -const jobFailed = new sfn.Fail(stack, 'Job Failed', { - cause: 'Job Failed', - error: 'Received a status that was not 200', -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(submitJob) - .next(checkJobState) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus)); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW52b2tlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW52b2tlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsdURBQWlFO0FBQ2pFLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsaUZBQW1FO0FBRW5FOzs7Ozs7Ozs7OztHQVdHO0FBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSw2Q0FBNkMsQ0FBQyxDQUFDO0FBRWhGLE1BQU0sZUFBZSxHQUFHLElBQUkscUJBQVEsQ0FBQyxLQUFLLEVBQUUsaUJBQWlCLEVBQUU7SUFDN0QsSUFBSSxFQUFFLGlCQUFJLENBQUMsVUFBVSxDQUFDOzs7OztTQUtmLENBQUM7SUFDUixPQUFPLEVBQUUsb0JBQU8sQ0FBQyxXQUFXO0lBQzVCLE9BQU8sRUFBRSxlQUFlO0NBQ3pCLENBQUMsQ0FBQztBQUVILE1BQU0sU0FBUyxHQUFHLElBQUksc0NBQVksQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7SUFDMUQsY0FBYyxFQUFFLGVBQWU7SUFDL0IsVUFBVSxFQUFFLFdBQVc7Q0FDeEIsQ0FBQyxDQUF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CAnSm9iIENvbXBsZXRlPycpO1xuY29uc3Qgam9iRmFpbGVkID0gbmV3IHNmbi5GYWlsKHN0YWNrLCAnSm9iIEZhaWxlZCcsIHtcbiAgY2F1c2U6ICdKb2IgRmFpbGVkJyxcbiAgZXJyb3I6ICdSZWNlaXZlZCBhIHN0YXR1cyB0aGF0IHdhcyBub3QgMjAwJyxcbn0pO1xuY29uc3QgZmluYWxTdGF0dXMgPSBuZXcgc2ZuLlBhc3Moc3RhY2ssICdGaW5hbCBzdGVwJyk7XG5cbmNvbnN0IGNoYWluID0gc2ZuLkNoYWluLnN0YXJ0KHN1Ym1pdEpvYilcbiAgLm5leHQoY2hlY2tKb2JTdGF0ZSlcbiAgLm5leHQoXG4gICAgaXNDb21wbGV0ZVxuICAgICAgLndoZW4oc2ZuLkNvbmRpdGlvbi5zdHJpbmdFcXVhbHMoJyQuc3RhdHVzJywgJ0ZBSUxFRCcpLCBqb2JGYWlsZWQpXG4gICAgICAud2hlbihzZm4uQ29uZGl0aW9uLnN0cmluZ0VxdWFscygnJC5zdGF0dXMnLCAnU1VDQ0VFREVEJyksIGZpbmFsU3RhdHVzKSxcbiAgKTtcblxuY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbjogY2hhaW4sXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.js deleted file mode 100644 index 63f78644755f4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.invoke.payload.only.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to invoke a Lambda function - * The state machine creates a couple of Lambdas that pass results forward - * and into a Choice state that validates the output. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-lambda-invoke-integ'); -const submitJobLambda = new aws_lambda_1.Function(stack, 'submitJobLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async () => { - return { - statusCode: '200', - body: 'hello, world!' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const submitJob = new aws_stepfunctions_tasks_1.LambdaInvoke(stack, 'Invoke Handler', { - lambdaFunction: submitJobLambda, - payloadResponseOnly: true, -}); -const checkJobStateLambda = new aws_lambda_1.Function(stack, 'checkJobStateLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async function(event, context) { - return { - status: event.statusCode === '200' ? 'SUCCEEDED' : 'FAILED' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const checkJobState = new aws_stepfunctions_tasks_1.LambdaInvoke(stack, 'Check the job state', { - lambdaFunction: checkJobStateLambda, - payloadResponseOnly: true, -}); -const isComplete = new sfn.Choice(stack, 'Job Complete?'); -const jobFailed = new sfn.Fail(stack, 'Job Failed', { - cause: 'Job Failed', - error: 'Received a status that was not 200', -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(submitJob) - .next(checkJobState) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus)); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW52b2tlLnBheWxvYWQub25seS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmludm9rZS5wYXlsb2FkLm9ubHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBaUU7QUFDakUscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyxpRkFBbUU7QUFFbkU7Ozs7Ozs7Ozs7O0dBV0c7QUFDSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLDZDQUE2QyxDQUFDLENBQUM7QUFFaEYsTUFBTSxlQUFlLEdBQUcsSUFBSSxxQkFBUSxDQUFDLE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ZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.js deleted file mode 100644 index bc589394fce44..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/lambda/integ.run-lambda.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_lambda_1 = require("aws-cdk-lib/aws-lambda"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-run-lambda-integ'); -const submitJobLambda = new aws_lambda_1.Function(stack, 'submitJobLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async () => { - return { - statusCode: '200', - body: 'hello, world!' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const submitJob = new sfn.Task(stack, 'Invoke Handler', { - task: new tasks.RunLambdaTask(submitJobLambda), - outputPath: '$.Payload', -}); -const checkJobStateLambda = new aws_lambda_1.Function(stack, 'checkJobStateLambda', { - code: aws_lambda_1.Code.fromInline(`exports.handler = async function(event, context) { - return { - status: event.statusCode === '200' ? 'SUCCEEDED' : 'FAILED' - }; - };`), - runtime: aws_lambda_1.Runtime.NODEJS_14_X, - handler: 'index.handler', -}); -const checkJobState = new sfn.Task(stack, 'Check the job state', { - task: new tasks.RunLambdaTask(checkJobStateLambda), - outputPath: '$.Payload', -}); -const isComplete = new sfn.Choice(stack, 'Job Complete?'); -const jobFailed = new sfn.Fail(stack, 'Job Failed', { - cause: 'Job Failed', - error: 'Received a status that was not 200', -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(submitJob) - .next(checkJobState) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus)); -new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucnVuLWxhbWJkYS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnJ1bi1sYW1iZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1REFBaUU7QUFDakUscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyw2REFBNkQ7QUFFN0Q7Ozs7Ozs7R0FPRztBQUNILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMENBQTBDLENBQUMsQ0FBQztBQUU3RSxNQUFNLGVBQWUsR0FBRy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YiBGYWlsZWQnLCB7XG4gIGNhdXNlOiAnSm9iIEZhaWxlZCcsXG4gIGVycm9yOiAnUmVjZWl2ZWQgYSBzdGF0dXMgdGhhdCB3YXMgbm90IDIwMCcsXG59KTtcbmNvbnN0IGZpbmFsU3RhdHVzID0gbmV3IHNmbi5QYXNzKHN0YWNrLCAnRmluYWwgc3RlcCcpO1xuXG5jb25zdCBjaGFpbiA9IHNmbi5DaGFpbi5zdGFydChzdWJtaXRKb2IpXG4gIC5uZXh0KGNoZWNrSm9iU3RhdGUpXG4gIC5uZXh0KFxuICAgIGlzQ29tcGxldGVcbiAgICAgIC53aGVuKHNmbi5Db25kaXRpb24uc3RyaW5nRXF1YWxzKCckLnN0YXR1cycsICdGQUlMRUQnKSwgam9iRmFpbGVkKVxuICAgICAgLndoZW4oc2ZuLkNvbmRpdGlvbi5zdHJpbmdFcXVhbHMoJyQuc3RhdHVzJywgJ1NVQ0NFRURFRCcpLCBmaW5hbFN0YXR1cyksXG4gICk7XG5cbm5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.js deleted file mode 100644 index 7fe21b1d5368b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.call-sagemaker.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const kms = require("aws-cdk-lib/aws-kms"); -const s3 = require("aws-cdk-lib/aws-s3"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task states needed to deploy the SageMaker Endpoint - * - * SageMaker jobs need training algorithms. These can be found in the AWS marketplace - * or created. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -class CallSageMakerStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const encryptionKey = new kms.Key(this, 'EncryptionKey', { - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const trainingData = new s3.Bucket(this, 'TrainingData', { - encryption: s3.BucketEncryption.KMS, - encryptionKey, - removalPolicy: cdk.RemovalPolicy.DESTROY, - }); - const trainingJob = new tasks.SageMakerCreateTrainingJob(this, 'Train Task', { - algorithmSpecification: { - algorithmName: 'arn:aws:sagemaker:us-east-1:865070037744:algorithm/scikit-decision-trees-15423055-57b73412d2e93e9239e4e16f83298b8f', - }, - inputDataConfig: [{ - channelName: 'InputData', - dataSource: { - s3DataSource: { - s3Location: tasks.S3Location.fromBucket(trainingData, 'data/'), - }, - }, - }], - outputDataConfig: { s3OutputLocation: tasks.S3Location.fromBucket(trainingData, 'result/') }, - trainingJobName: 'mytrainingjob', - resultPath: '$.TrainingJob', - }); - const createModelTask = new tasks.SageMakerCreateModel(this, 'Create Model', { - modelName: sfn.JsonPath.stringAt('$.Endpoint.Model'), - primaryContainer: new tasks.ContainerDefinition({ - image: tasks.DockerImage.fromJsonExpression(sfn.JsonPath.stringAt('$.Endpoint.Image')), - mode: tasks.Mode.SINGLE_MODEL, - modelS3Location: tasks.S3Location.fromJsonExpression('$.TrainingJob.ModelArtifacts.S3ModelArtifacts'), - }), - resultPath: '$.Model', - }); - const createEndpointConfigTask = new tasks.SageMakerCreateEndpointConfig(this, 'Create enpoint config', { - endpointConfigName: sfn.JsonPath.stringAt('$.Endpoint.Config'), - productionVariants: [{ - initialInstanceCount: 1, - instanceType: ec2.InstanceType.of(ec2.InstanceClass.M5, ec2.InstanceSize.XLARGE), - variantName: 'awesome-variant', - modelName: sfn.JsonPath.stringAt('$.Endpoint.Model'), - }], - resultPath: '$.EndpointConfig', - }); - const createEndpointTask = new tasks.SageMakerCreateEndpoint(this, 'Create endpoint', { - endpointConfigName: sfn.JsonPath.stringAt('$.Endpoint.Config'), - endpointName: sfn.JsonPath.stringAt('$.Endpoint.Name'), - tags: sfn.TaskInput.fromObject([{ - Key: 'Endpoint', - Value: 'New', - }]), - resultPath: '$.EndpointDeployed', - }); - const updateEndpointTask = new tasks.SageMakerUpdateEndpoint(this, 'Update endpoint', { - endpointConfigName: sfn.JsonPath.stringAt('$.Endpoint.Config'), - endpointName: sfn.JsonPath.stringAt('$.Endpoint.Name'), - }); - createEndpointTask.addCatch(updateEndpointTask, { - errors: ['States.TaskFailed'], - resultPath: '$.EndpointDeployed', - }); - const definition = new sfn.Pass(this, 'Start', { - result: sfn.Result.fromObject({ - Endpoint: { - // Change to real parameters for the actual run & put the testing data in the training bucket - Image: 'ImageArn', - Config: 'MyEndpointConfig', - Name: 'MyEndpointName', - Model: 'MyEndpointModelName', - }, - }), - }) - .next(trainingJob) - .next(createModelTask) - .next(createEndpointConfigTask) - .next(createEndpointTask); - const stateMachine = new sfn.StateMachine(this, 'StateMachine', { - definition, - }); - new cdk.CfnOutput(this, 'StateMachineArn', { - value: stateMachine.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new CallSageMakerStack(app, 'aws-stepfunctions-integ-sagemaker'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2FsbC1zYWdlbWFrZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jYWxsLXNhZ2VtYWtlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MseUNBQXlDO0FBQ3pDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsNkRBQTZEO0FBRzdEOzs7Ozs7Ozs7Ozs7R0FZRztBQUdILE1BQU0sa0JBQW1CLFNBQVEsR0FBRyxDQUFDLEtBQUs7SUFDeEMsWUFBWSxLQUFjLEVBQUUsRUFBVSxFQUFFLFFBQXdCLEVBQUU7UUFDaEUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFeEIsTUFBTSxhQUFhLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxlQUFlLEVBQUU7WUFDdkQsYUFBYSxFQUFFLEdBQUcsQ0FBQyxhQUFhLENBQUMsT0FBTztTQUN6QyxDQUFDLENBQUM7UUFDSCxNQUFNLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLGNBQWMsRUFBRTtZQUN2RCxVQUFVLEVBQUUsRUFBRSxDQUFDLGdCQUFnQixDQUFDLEdBQUc7WUFDbkMsYUFBYTtZQUNiLGFBQWEsRUFBRSxHQUFHLENBQUMsYUFBYSxDQUFDLE9BQU87U0FDekMsQ0FBQyxDQUFDO1FBRUgsTUFBTSxXQUFXLEdBQUcsSUFBSSxLQUFLLENBQUMsMEJBQTB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ubmV3IENhbGxTYWdlTWFrZXJTdGFjayhhcHAsICdhd3Mtc3RlcGZ1bmN0aW9ucy1pbnRlZy1zYWdlbWFrZXInKTtcbmFwcC5zeW50aCgpO1xuXG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.js deleted file mode 100644 index 464f5bfac5aab..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sagemaker/integ.create-training-job.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_kms_1 = require("aws-cdk-lib/aws-kms"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const aws_stepfunctions_1 = require("aws-cdk-lib/aws-stepfunctions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to create a training job in AWS SageMaker - * SageMaker jobs need training algorithms. These can be found in the AWS marketplace - * or created. - * - * Subscribe to demo Algorithm vended by Amazon (free): - * https://aws.amazon.com/marketplace/ai/procurement?productId=cc5186a0-b8d6-4750-a9bb-1dcdf10e787a - * FIXME - create Input data pertinent for the training model and insert into S3 location specified in inputDataConfig. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - */ -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'integ-stepfunctions-sagemaker'); -const encryptionKey = new aws_kms_1.Key(stack, 'EncryptionKey', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const trainingData = new aws_s3_1.Bucket(stack, 'TrainingData', { - encryption: aws_s3_1.BucketEncryption.KMS, - encryptionKey, - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, -}); -const sm = new aws_stepfunctions_1.StateMachine(stack, 'StateMachine', { - definition: new aws_stepfunctions_tasks_1.SageMakerCreateTrainingJob(stack, 'TrainTask', { - algorithmSpecification: { - algorithmName: 'arn:aws:sagemaker:us-east-1:865070037744:algorithm/scikit-decision-trees-15423055-57b73412d2e93e9239e4e16f83298b8f', - }, - inputDataConfig: [{ - channelName: 'InputData', - dataSource: { - s3DataSource: { - s3Location: aws_stepfunctions_tasks_1.S3Location.fromBucket(trainingData, 'data/'), - }, - }, - }], - outputDataConfig: { s3OutputLocation: aws_stepfunctions_tasks_1.S3Location.fromBucket(trainingData, 'result/') }, - trainingJobName: 'mytrainingjob', - }), -}); -new aws_cdk_lib_1.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3JlYXRlLXRyYWluaW5nLWpvYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmNyZWF0ZS10cmFpbmluZy1qb2IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBMEM7QUFDMUMsK0NBQThEO0FBQzlELHFFQUE2RDtBQUM3RCw2Q0FBbUU7QUFDbkUsaUZBQTZGO0FBRTdGOzs7Ozs7Ozs7Ozs7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dXRwdXQoc3RhY2ssICdzdGF0ZU1hY2hpbmVBcm4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.js deleted file mode 100644 index a898823a7075c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sns/integ.publish.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sns = require("aws-cdk-lib/aws-sns"); -const subs = require("aws-cdk-lib/aws-sns-subscriptions"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to publish to an SNS topic. - * The SNS topic has an SQS queue added as a subscriber. - * When the state machine is executed, it will publish a message to our - * topic, which can subsequently be consumed from the SQS queue. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - * -- aws sqs receive-message --queue-url has a message of 'sending message over' - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sns-publish-integ'); -const topic = new sns.Topic(stack, 'cool-topic'); -const queue = new sqs.Queue(stack, 'show-me-the-messages'); -topic.addSubscription(new subs.SqsSubscription(queue)); -const publishTask = new aws_stepfunctions_tasks_1.SnsPublish(stack, 'publish to SNS', { - topic, - message: sfn.TaskInput.fromText('sending message over'), -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(publishTask) - .next(finalStatus); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new cdk.CfnOutput(stack, 'queueUrl', { - value: queue.queueUrl, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHVibGlzaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnB1Ymxpc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsMERBQTBEO0FBQzFELDJDQUEyQztBQUMzQyxxREFBcUQ7QUFDckQsbUNBQW1DO0FBQ25DLGlGQUFpRTtBQUVqRTs7Ozs7Ozs7Ozs7OztHQWFHO0FBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSwyQ0FBMkMsQ0FBQyxDQUFDO0FBRTlFLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxLQUFLLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFDakQsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxzQkFBc0IsQ0FBQyxDQUFD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BzdGVwJyk7XG5cbmNvbnN0IGNoYWluID0gc2ZuLkNoYWluLnN0YXJ0KHB1Ymxpc2hUYXNrKVxuICAubmV4dChmaW5hbFN0YXR1cyk7XG5cbmNvbnN0IHNtID0gbmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IGNoYWluLFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdzdGF0ZU1hY2hpbmVBcm4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdxdWV1ZVVybCcsIHtcbiAgdmFsdWU6IHF1ZXVlLnF1ZXVlVXJsLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.js deleted file mode 100644 index 5d5843386197b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message-encrypted.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sqs = require("aws-cdk-lib/aws-sqs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to send a message to an SQS - * queue. - * - * When the state machine is executed, it will send a message to our - * queue, which can subsequently be consumed. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - * -- aws sqs receive-message --queue-url has a message of 'sending message over' - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sqs-send-message-integ'); -const queue = new sqs.Queue(stack, 'show-me-the-messages', { - encryption: sqs.QueueEncryption.KMS, -}); -const sendMessageTask = new aws_stepfunctions_tasks_1.SqsSendMessage(stack, 'send message to sqs', { - queue, - messageBody: sfn.TaskInput.fromText('sending message over'), -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(sendMessageTask) - .next(finalStatus); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new cdk.CfnOutput(stack, 'queueUrl', { - value: queue.queueUrl, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VuZC1tZXNzYWdlLWVuY3J5cHRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnNlbmQtbWVzc2FnZS1lbmNyeXB0ZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MscURBQXFEO0FBQ3JELG1DQUFtQztBQUNuQyxpRkFBcUU7QUFFckU7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUF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GFydChzZW5kTWVzc2FnZVRhc2spXG4gIC5uZXh0KGZpbmFsU3RhdHVzKTtcblxuY29uc3Qgc20gPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbjogY2hhaW4sXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3F1ZXVlVXJsJywge1xuICB2YWx1ZTogcXVldWUucXVldWVVcmwsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.js deleted file mode 100644 index 828f7ab7d1df9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/sqs/integ.send-message.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sqs = require("aws-cdk-lib/aws-sqs"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a task state to send a message to an SQS - * queue. - * - * When the state machine is executed, it will send a message to our - * queue, which can subsequently be consumed. - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Succeeded`. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Succeeded` - * -- aws sqs receive-message --queue-url has a message of 'sending message over' - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-tasks-sqs-send-message-integ'); -const queue = new sqs.Queue(stack, 'show-me-the-messages'); -const sendMessageTask = new aws_stepfunctions_tasks_1.SqsSendMessage(stack, 'send message to sqs', { - queue, - messageBody: sfn.TaskInput.fromText('sending message over'), -}); -const finalStatus = new sfn.Pass(stack, 'Final step'); -const chain = sfn.Chain.start(sendMessageTask) - .next(finalStatus); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'stateMachineArn', { - value: sm.stateMachineArn, -}); -new cdk.CfnOutput(stack, 'queueUrl', { - value: queue.queueUrl, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc2VuZC1tZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc2VuZC1tZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTJDO0FBQzNDLHFEQUFxRDtBQUNyRCxtQ0FBbUM7QUFDbkMsaUZBQXFFO0FBRXJFOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdB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ZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3N0YXRlTWFjaGluZUFybicsIHtcbiAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbn0pO1xuXG5uZXcgY2RrLkNmbk91dHB1dChzdGFjaywgJ3F1ZXVlVXJsJywge1xuICB2YWx1ZTogcXVldWUucXVldWVVcmwsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.js deleted file mode 100644 index 9c509d96027c9..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.invoke-activity.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const cdk = require("aws-cdk-lib"); -const tasks = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Creates a state machine with a job poller sample project - * https://docs.aws.amazon.com/step-functions/latest/dg/sample-project-job-poller.html - * - * Stack verification steps: - * The generated State Machine can be executed from the CLI (or Step Functions console) - * and runs with an execution status of `Running`. - * - * An external process can call the state machine to send a heartbeat or response before it times out. - * - * -- aws stepfunctions start-execution --state-machine-arn provides execution arn - * -- aws stepfunctions describe-execution --execution-arn returns a status of `Running` - * - * CHANGEME: extend this test to create the external resources to report heartbeats - */ -class InvokeActivityStack extends cdk.Stack { - constructor(scope, id, props = {}) { - super(scope, id, props); - const submitJobActivity = new sfn.Activity(this, 'SubmitJob'); - const checkJobActivity = new sfn.Activity(this, 'CheckJob'); - const submitJob = new tasks.StepFunctionsInvokeActivity(this, 'Submit Job', { - activity: submitJobActivity, - resultPath: '$.guid', - }); - const waitX = new sfn.Wait(this, 'Wait X Seconds', { time: sfn.WaitTime.secondsPath('$.wait_time') }); - const getStatus = new tasks.StepFunctionsInvokeActivity(this, 'Get Job Status', { - activity: checkJobActivity, - inputPath: '$.guid', - resultPath: '$.status', - }); - const isComplete = new sfn.Choice(this, 'Job Complete?'); - const jobFailed = new sfn.Fail(this, 'Job Failed', { - cause: 'AWS Batch Job Failed', - error: 'DescribeJob returned FAILED', - }); - const finalStatus = new tasks.StepFunctionsInvokeActivity(this, 'Get Final Job Status', { - activity: checkJobActivity, - inputPath: '$.guid', - parameters: { - 'input.$': '$', - 'stringArgument': 'inital-task', - 'numberArgument': 123, - 'booleanArgument': true, - 'arrayArgument': ['a', 'b', 'c'], - 'jsonPath': sfn.JsonPath.stringAt('$.status'), - }, - }); - const chain = sfn.Chain - .start(submitJob) - .next(waitX) - .next(getStatus) - .next(isComplete - .when(sfn.Condition.stringEquals('$.status', 'FAILED'), jobFailed) - .when(sfn.Condition.stringEquals('$.status', 'SUCCEEDED'), finalStatus) - .otherwise(waitX)); - const sm = new sfn.StateMachine(this, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(300), - }); - new cdk.CfnOutput(this, 'stateMachineArn', { - value: sm.stateMachineArn, - }); - } -} -const app = new cdk.App(); -new InvokeActivityStack(app, 'aws-stepfunctions-integ'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW52b2tlLWFjdGl2aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuaW52b2tl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ICdTdGF0ZU1hY2hpbmUnLCB7XG4gICAgICBkZWZpbml0aW9uOiBjaGFpbixcbiAgICAgIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwMCksXG4gICAgfSk7XG5cbiAgICBuZXcgY2RrLkNmbk91dHB1dCh0aGlzLCAnc3RhdGVNYWNoaW5lQXJuJywge1xuICAgICAgdmFsdWU6IHNtLnN0YXRlTWFjaGluZUFybixcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xubmV3IEludm9rZUFjdGl2aXR5U3RhY2soYXBwLCAnYXdzLXN0ZXBmdW5jdGlvbnMtaW50ZWcnKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.js deleted file mode 100644 index 42584407f984c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/stepfunctions/integ.start-execution.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const aws_stepfunctions_tasks_1 = require("aws-cdk-lib/aws-stepfunctions-tasks"); -/* - * Stack verification steps: - * * aws stepfunctions start-execution --input '{"hello": "world"}' --state-machine-arn - * * aws stepfunctions describe-execution --execution-arn - * * The output here should contain `status: "SUCCEEDED"` and `output`: '"Output": { "hello": "world"},' - */ -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const child = new sfn.StateMachine(this, 'Child', { - definition: new sfn.Pass(this, 'Pass'), - }); - const parent = new sfn.StateMachine(this, 'Parent', { - definition: new aws_stepfunctions_tasks_1.StepFunctionsStartExecution(this, 'Task', { - stateMachine: child, - input: sfn.TaskInput.fromObject({ - hello: sfn.JsonPath.stringAt('$.hello'), - }), - integrationPattern: sfn.IntegrationPattern.RUN_JOB, - }), - }); - new aws_cdk_lib_1.CfnOutput(this, 'StateMachineARN', { - value: parent.stateMachineArn, - }); - } -} -const app = new aws_cdk_lib_1.App(); -new TestStack(app, 'integ-sfn-start-execution'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhcnQtZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuc3RhcnQtZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscURBQXFEO0FBQ3JELDZDQUFvRDtBQUVwRCxpRkFBa0Y7QUFFbEY7Ozs7O0dBS0c7QUFFSCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLFlBQVksQ0FBQyxJQUFJLEVBQUUsT0FBTyxFQUFFO1lBQ2hELFVBQVUsRUFBRSxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQztTQUN2QyxDQUFDLENBQUM7UUFFSCxNQUFNLE1BQ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uUGF0aC5zdHJpbmdBdCgnJC5oZWxsbycpLFxuICAgICAgICB9KSxcbiAgICAgICAgaW50ZWdyYXRpb25QYXR0ZXJuOiBzZm4uSW50ZWdyYXRpb25QYXR0ZXJuLlJVTl9KT0IsXG4gICAgICB9KSxcbiAgICB9KTtcblxuICAgIG5ldyBDZm5PdXRwdXQodGhpcywgJ1N0YXRlTWFjaGluZUFSTicsIHtcbiAgICAgIHZhbHVlOiBwYXJlbnQuc3RhdGVNYWNoaW5lQXJuLFxuICAgIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcblxubmV3IFRlc3RTdGFjayhhcHAsICdpbnRlZy1zZm4tc3RhcnQtZXhlY3V0aW9uJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.d.ts deleted file mode 100644 index 9e1209fa54a37..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as iam from 'aws-cdk-lib/aws-iam'; -import * as constructs from 'constructs'; -import * as sfn from 'aws-cdk-lib/aws-stepfunctions'; -export interface FakeTaskProps extends sfn.TaskStateBaseProps { - parameters?: { - [key: string]: string; - }; -} -/** - * Task extending sfn.TaskStateBase to facilitate integ testing setting credentials - */ -export declare class FakeTask extends sfn.TaskStateBase { - protected readonly taskMetrics?: sfn.TaskMetricsConfig; - protected readonly taskPolicies?: iam.PolicyStatement[]; - protected readonly parameters?: { - [key: string]: string; - }; - constructor(scope: constructs.Construct, id: string, props?: FakeTaskProps); - protected _renderTask(): any; -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.js deleted file mode 100644 index 5d39a30086007..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/fake-task.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FakeTask = void 0; -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -/** - * Task extending sfn.TaskStateBase to facilitate integ testing setting credentials - */ -class FakeTask extends sfn.TaskStateBase { - constructor(scope, id, props = {}) { - super(scope, id, props); - this.parameters = props.parameters; - } - _renderTask() { - return { - Type: 'Task', - Resource: 'arn:aws:states:::dynamodb:putItem', - Parameters: { - TableName: 'my-cool-table', - Item: { - id: { - S: 'my-entry', - }, - }, - ...this.parameters, - }, - }; - } -} -exports.FakeTask = FakeTask; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFrZS10YXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZmFrZS10YXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHFEQUFxRDtBQU1yRDs7R0FFRztBQUNILE1BQWEsUUFBUyxTQUFRLEdBQUcsQ0FBQyxhQUFhO0lBSzdDLFlBQVksS0FBMkIsRUFBRSxFQUFVLEVBQUUsUUFBdUIsRUFBRTtRQUM1RSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUN4QixJQUFJLENBQUMsVUFBVSxHQUFHLEtBQUssQ0FBQyxVQUFVLENBQUM7SUFDckMsQ0FBQztJQUVTLFdBQVc7UUFDbkIsT0FBTztZQUNMLElBQUksRUFBRSxNQUFNO1lBQ1osUUFBUSxFQUFFLG1DQUFtQztZQUM3QyxVQUFVLEVBQUU7Z0JBQ1YsU0FBUyxFQUFFLGVBQWU7Z0JBQzFCLElBQUksRUFBRTtvQkFDSixFQUFFLEVBQUU7d0JBQ0YsQ0FBQyxFQUFFLFVBQVU7cUJBQ2Q7aUJBQ0Y7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aXMucGFyYW1ldGVycyA9IHByb3BzLnBhcmFtZXRlcnM7XG4gIH1cblxuICBwcm90ZWN0ZWQgX3JlbmRlclRhc2soKTogYW55IHtcbiAgICByZXR1cm4ge1xuICAgICAgVHlwZTogJ1Rhc2snLFxuICAgICAgUmVzb3VyY2U6ICdhcm46YXdzOnN0YXRlczo6OmR5bmFtb2RiOnB1dEl0ZW0nLFxuICAgICAgUGFyYW1ldGVyczoge1xuICAgICAgICBUYWJsZU5hbWU6ICdteS1jb29sLXRhYmxlJyxcbiAgICAgICAgSXRlbToge1xuICAgICAgICAgIGlkOiB7XG4gICAgICAgICAgICBTOiAnbXktZW50cnknLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICAgIC4uLnRoaXMucGFyYW1ldGVycyxcbiAgICAgIH0sXG4gICAgfTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.js deleted file mode 100644 index 8b271fe66fa9c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.custom-state.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -/* - * Stack verification steps: - * - * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-custom-state-integ'); -const finalStatus = new sfn.Pass(stack, 'final step'); -const stateJson = { - Type: 'Task', - Resource: 'arn:aws:states:::dynamodb:putItem', - Parameters: { - TableName: 'my-cool-table', - Item: { - id: { - S: 'my-entry', - }, - }, - }, - ResultPath: null, -}; -const custom = new sfn.CustomState(stack, 'my custom task', { - stateJson, -}); -const chain = sfn.Chain.start(custom).next(finalStatus); -const sm = new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new cdk.CfnOutput(stack, 'StateMachineARN', { - value: sm.stateMachineArn, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY3VzdG9tLXN0YXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuY3VzdG9tLXN0YXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLHFEQUFxRDtBQUVyRDs7OztHQUlHO0FBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxzQ0FBc0MsQ0FBQyxDQUFDO0FBRXpFLE1BQU0sV0FBVyxHQUFHLElBQUksR0FBRyxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFFdEQsTUFBTSxTQUFTLEdBQUc7SUFDaEIsSUFBSSxFQUFFLE1BQU07SUFDWixRQUFRLEVBQUUsbUNBQW1DO0lBQzdDLFVBQVUsRUFBRTtRQUNWLFNBQVMsRUFBRSxlQUFlO1FBQzFCLElBQUksRUFBRTtZQUNKLEVBQUUsRUFBRTtnQkFDRixDQUFDLEVBQUUsVUFBVTthQUNkO1NBQ0Y7S0FDRjtJQUNELFVBQ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dCBzdGFjayA9IG5ldyBjZGsuU3RhY2soYXBwLCAnYXdzLXN0ZXBmdW5jdGlvbnMtY3VzdG9tLXN0YXRlLWludGVnJyk7XG5cbmNvbnN0IGZpbmFsU3RhdHVzID0gbmV3IHNmbi5QYXNzKHN0YWNrLCAnZmluYWwgc3RlcCcpO1xuXG5jb25zdCBzdGF0ZUpzb24gPSB7XG4gIFR5cGU6ICdUYXNrJyxcbiAgUmVzb3VyY2U6ICdhcm46YXdzOnN0YXRlczo6OmR5bmFtb2RiOnB1dEl0ZW0nLFxuICBQYXJhbWV0ZXJzOiB7XG4gICAgVGFibGVOYW1lOiAnbXktY29vbC10YWJsZScsXG4gICAgSXRlbToge1xuICAgICAgaWQ6IHtcbiAgICAgICAgUzogJ215LWVudHJ5JyxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSxcbiAgUmVzdWx0UGF0aDogbnVsbCxcbn07XG5cbmNvbnN0IGN1c3RvbSA9IG5ldyBzZm4uQ3VzdG9tU3RhdGUoc3RhY2ssICdteSBjdXN0b20gdGFzaycsIHtcbiAgc3RhdGVKc29uLFxufSk7XG5cbmNvbnN0IGNoYWluID0gc2ZuLkNoYWluLnN0YXJ0KGN1c3RvbSkubmV4dChmaW5hbFN0YXR1cyk7XG5cbmNvbnN0IHNtID0gbmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IGNoYWluLFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxubmV3IGNkay5DZm5PdXRwdXQoc3RhY2ssICdTdGF0ZU1hY2hpbmVBUk4nLCB7XG4gIHZhbHVlOiBzbS5zdGF0ZU1hY2hpbmVBcm4sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.js deleted file mode 100644 index ca764eb18f46e..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.intrinsics.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const aws_stepfunctions_1 = require("aws-cdk-lib/aws-stepfunctions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-intrinsics-integ'); -const pass = new aws_stepfunctions_1.Pass(stack, 'pass', { - parameters: { - array1: aws_stepfunctions_1.JsonPath.array('asdf', aws_stepfunctions_1.JsonPath.stringAt('$.Id')), - arrayPartition1: aws_stepfunctions_1.JsonPath.arrayPartition(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), 4), - arrayPartition2: aws_stepfunctions_1.JsonPath.arrayPartition(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), aws_stepfunctions_1.JsonPath.numberAt('$.chunkSize')), - arrayContains1: aws_stepfunctions_1.JsonPath.arrayContains(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), 5), - arrayContains2: aws_stepfunctions_1.JsonPath.arrayContains(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), 'a'), - arrayContains3: aws_stepfunctions_1.JsonPath.arrayContains(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), aws_stepfunctions_1.JsonPath.numberAt('$.lookingFor')), - arrayRange1: aws_stepfunctions_1.JsonPath.arrayRange(1, 9, 2), - arrayRange2: aws_stepfunctions_1.JsonPath.arrayRange(aws_stepfunctions_1.JsonPath.numberAt('$.start'), aws_stepfunctions_1.JsonPath.numberAt('$.end'), aws_stepfunctions_1.JsonPath.numberAt('$.step')), - arrayGetItem1: aws_stepfunctions_1.JsonPath.arrayGetItem(aws_stepfunctions_1.JsonPath.listAt('$.inputArray'), 5), - arrayGetItem2: aws_stepfunctions_1.JsonPath.arrayGetItem(aws_stepfunctions_1.JsonPath.numberAt('$.inputArray'), aws_stepfunctions_1.JsonPath.numberAt('$.index')), - arrayLength1: aws_stepfunctions_1.JsonPath.arrayLength(aws_stepfunctions_1.JsonPath.listAt('$.inputArray')), - arrayUnique1: aws_stepfunctions_1.JsonPath.arrayUnique(aws_stepfunctions_1.JsonPath.listAt('$.inputArray')), - base64Encode1: aws_stepfunctions_1.JsonPath.base64Encode('Data to encode'), - base64Encode2: aws_stepfunctions_1.JsonPath.base64Encode(aws_stepfunctions_1.JsonPath.stringAt('$.input')), - base64Decode1: aws_stepfunctions_1.JsonPath.base64Decode('RGF0YSB0byBlbmNvZGU='), - base64Decode2: aws_stepfunctions_1.JsonPath.base64Decode(aws_stepfunctions_1.JsonPath.stringAt('$.base64')), - hash1: aws_stepfunctions_1.JsonPath.hash('Input data', 'SHA-1'), - hash2: aws_stepfunctions_1.JsonPath.hash(aws_stepfunctions_1.JsonPath.objectAt('$.Data'), aws_stepfunctions_1.JsonPath.stringAt('$.Algorithm')), - jsonMerge1: aws_stepfunctions_1.JsonPath.jsonMerge(aws_stepfunctions_1.JsonPath.objectAt('$.Obj1'), aws_stepfunctions_1.JsonPath.objectAt('$.Obj2')), - mathRandom1: aws_stepfunctions_1.JsonPath.mathRandom(1, 999), - mathRandom2: aws_stepfunctions_1.JsonPath.mathRandom(aws_stepfunctions_1.JsonPath.numberAt('$.start'), aws_stepfunctions_1.JsonPath.numberAt('$.end')), - mathAdd1: aws_stepfunctions_1.JsonPath.mathAdd(1, 999), - mathAdd2: aws_stepfunctions_1.JsonPath.mathAdd(aws_stepfunctions_1.JsonPath.numberAt('$.value1'), aws_stepfunctions_1.JsonPath.numberAt('$.step')), - stringSplit1: aws_stepfunctions_1.JsonPath.stringSplit('1,2,3,4,5', ','), - stringSplit2: aws_stepfunctions_1.JsonPath.stringSplit(aws_stepfunctions_1.JsonPath.stringAt('$.inputString'), aws_stepfunctions_1.JsonPath.stringAt('$.splitter')), - uuid: aws_stepfunctions_1.JsonPath.uuid(), - format1: aws_stepfunctions_1.JsonPath.format('Hi my name is {}.', aws_stepfunctions_1.JsonPath.stringAt('$.Name')), - format2: aws_stepfunctions_1.JsonPath.format(aws_stepfunctions_1.JsonPath.stringAt('$.Format'), aws_stepfunctions_1.JsonPath.stringAt('$.Name')), - stringToJson1: aws_stepfunctions_1.JsonPath.stringToJson(aws_stepfunctions_1.JsonPath.stringAt('$.Str')), - jsonToString1: aws_stepfunctions_1.JsonPath.jsonToString(aws_stepfunctions_1.JsonPath.objectAt('$.Obj')), - }, -}); -const stateMachine = new aws_stepfunctions_1.StateMachine(stack, 'StateMachine', { - definition: pass, -}); -const integ = new integ_tests_alpha_1.IntegTest(app, 'StateMachineIntrinsicsTest', { - testCases: [stack], -}); -integ.assertions.awsApiCall('StepFunctions', 'describeStateMachine', { - stateMachineArn: stateMachine.stateMachineArn, -}).expect(integ_tests_alpha_1.ExpectedResult.objectLike({ - status: 'ACTIVE', -})); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuaW50cmluc2ljcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmludHJpbnNpY3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBbUM7QUFDbkMsa0VBQXVFO0FBQ3ZFLHFFQUE2RTtBQUU3RSxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQix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b3JtYXQoSnNvblBhdGguc3RyaW5nQXQoJyQuRm9ybWF0JyksIEpzb25QYXRoLnN0cmluZ0F0KCckLk5hbWUnKSksXG4gICAgc3RyaW5nVG9Kc29uMTogSnNvblBhdGguc3RyaW5nVG9Kc29uKEpzb25QYXRoLnN0cmluZ0F0KCckLlN0cicpKSxcbiAgICBqc29uVG9TdHJpbmcxOiBKc29uUGF0aC5qc29uVG9TdHJpbmcoSnNvblBhdGgub2JqZWN0QXQoJyQuT2JqJykpLFxuICB9LFxufSk7XG5cbmNvbnN0IHN0YXRlTWFjaGluZSA9IG5ldyBTdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmUnLCB7XG4gIGRlZmluaXRpb246IHBhc3MsXG59KTtcblxuY29uc3QgaW50ZWcgPSBuZXcgSW50ZWdUZXN0KGFwcCwgJ1N0YXRlTWFjaGluZUludHJpbnNpY3NUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcbmludGVnLmFzc2VydGlvbnMuYXdzQXBpQ2FsbCgnU3RlcEZ1bmN0aW9ucycsICdkZXNjcmliZVN0YXRlTWFjaGluZScsIHtcbiAgc3RhdGVNYWNoaW5lQXJuOiBzdGF0ZU1hY2hpbmUuc3RhdGVNYWNoaW5lQXJuLFxufSkuZXhwZWN0KEV4cGVjdGVkUmVzdWx0Lm9iamVjdExpa2Uoe1xuICBzdGF0dXM6ICdBQ1RJVkUnLFxufSkpO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.js deleted file mode 100644 index 2e4a1f856f908..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.listAt-after-parallel.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'listAt-after-parallel'); -const passStringList = new sfn.Pass(stack, 'PSL', { - parameters: { 'newStringList.$': '$.stringList' }, -}); -const passSingleString = new sfn.Pass(stack, 'PSS', { - parameters: { 'newSingleString.$': '$.singleString' }, -}); -const parallel = new sfn.Parallel(stack, 'PRL', { - resultPath: '$', -}); -parallel.branch(passStringList).branch(passSingleString); -const joinPass = new sfn.Pass(stack, 'JP', { - parameters: { - 'resultStringList.$': sfn.JsonPath.listAt('$[0].newStringList'), - 'newSingleString.$': '$[1].newSingleString', - }, -}); -const chain = sfn.Chain.start(parallel).next(joinPass); -new sfn.StateMachine(stack, 'StateMachine', { - definition: chain, - timeout: cdk.Duration.seconds(30), -}); -new integ.IntegTest(app, 'ListAtAfterParallel', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGlzdEF0LWFmdGVyLXBhcmFsbGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGlzdEF0LWFmdGVyLXBhcmFsbGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxxREFBcUQ7QUFFckQsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENB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zZm4uUGFyYWxsZWwoc3RhY2ssICdQUkwnLCB7XG4gIHJlc3VsdFBhdGg6ICckJyxcbn0pO1xucGFyYWxsZWwuYnJhbmNoKHBhc3NTdHJpbmdMaXN0KS5icmFuY2gocGFzc1NpbmdsZVN0cmluZyk7XG5cbmNvbnN0IGpvaW5QYXNzID0gbmV3IHNmbi5QYXNzKHN0YWNrLCAnSlAnLCB7XG4gIHBhcmFtZXRlcnM6IHtcbiAgICAncmVzdWx0U3RyaW5nTGlzdC4kJzogc2ZuLkpzb25QYXRoLmxpc3RBdCgnJFswXS5uZXdTdHJpbmdMaXN0JyksXG4gICAgJ25ld1NpbmdsZVN0cmluZy4kJzogJyRbMV0ubmV3U2luZ2xlU3RyaW5nJyxcbiAgfSxcbn0pO1xuXG5jb25zdCBjaGFpbiA9IHNmbi5DaGFpbi5zdGFydChwYXJhbGxlbCkubmV4dChqb2luUGFzcyk7XG5cbm5ldyBzZm4uU3RhdGVNYWNoaW5lKHN0YWNrLCAnU3RhdGVNYWNoaW5lJywge1xuICBkZWZpbml0aW9uOiBjaGFpbixcbiAgdGltZW91dDogY2RrLkR1cmF0aW9uLnNlY29uZHMoMzApLFxufSk7XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnTGlzdEF0QWZ0ZXJQYXJhbGxlbCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.js deleted file mode 100644 index f17cc21783d07..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine-credentials.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const fake_task_1 = require("./fake-task"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -/* - * Stack verification steps: - * - * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-state-machine-credentials-integ'); -const role = new iam.Role(stack, 'Role', { - assumedBy: new iam.AccountPrincipal(stack.account), -}); -new sfn.StateMachine(stack, 'StateMachineWithLiteralCredentials', { - definition: new fake_task_1.FakeTask(stack, 'FakeTaskWithLiteralCredentials', { credentials: { role: sfn.TaskRole.fromRole(role) } }), - timeout: cdk.Duration.seconds(30), -}); -const crossAccountRole = iam.Role.fromRoleArn(stack, 'CrossAccountRole', 'arn:aws:iam::123456789012:role/CrossAccountRole'); -new sfn.StateMachine(stack, 'StateMachineWithCrossAccountLiteralCredentials', { - definition: new fake_task_1.FakeTask(stack, 'FakeTaskWithCrossAccountLiteralCredentials', { credentials: { role: sfn.TaskRole.fromRole(crossAccountRole) } }), - timeout: cdk.Duration.seconds(30), -}); -new sfn.StateMachine(stack, 'StateMachineWithJsonPathCredentials', { - definition: new fake_task_1.FakeTask(stack, 'FakeTaskWithJsonPathCredentials', { credentials: { role: sfn.TaskRole.fromRoleArnJsonPath('$.RoleArn') } }), - timeout: cdk.Duration.seconds(30), -}); -new integ_tests_alpha_1.IntegTest(app, 'StateMachineCredentials', { testCases: [stack] }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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9sZUFybihzdGFjaywgJ0Nyb3NzQWNjb3VudFJvbGUnLCAnYXJuOmF3czppYW06OjEyMzQ1Njc4OTAxMjpyb2xlL0Nyb3NzQWNjb3VudFJvbGUnKTtcblxubmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmVXaXRoQ3Jvc3NBY2NvdW50TGl0ZXJhbENyZWRlbnRpYWxzJywge1xuICBkZWZpbml0aW9uOiBuZXcgRmFrZVRhc2soc3RhY2ssICdGYWtlVGFza1dpdGhDcm9zc0FjY291bnRMaXRlcmFsQ3JlZGVudGlhbHMnLCB7IGNyZWRlbnRpYWxzOiB7IHJvbGU6IHNmbi5UYXNrUm9sZS5mcm9tUm9sZShjcm9zc0FjY291bnRSb2xlKSB9IH0pLFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG59KTtcblxubmV3IHNmbi5TdGF0ZU1hY2hpbmUoc3RhY2ssICdTdGF0ZU1hY2hpbmVXaXRoSnNvblBhdGhDcmVkZW50aWFscycsIHtcbiAgZGVmaW5pdGlvbjogbmV3IEZha2VUYXNrKHN0YWNrLCAnRmFrZVRhc2tXaXRoSnNvblBhdGhDcmVkZW50aWFscycsIHsgY3JlZGVudGlhbHM6IHsgcm9sZTogc2ZuLlRhc2tSb2xlLmZyb21Sb2xlQXJuSnNvblBhdGgoJyQuUm9sZUFybicpIH0gfSksXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5zZWNvbmRzKDMwKSxcbn0pO1xuXG5uZXcgSW50ZWdUZXN0KGFwcCwgJ1N0YXRlTWFjaGluZUNyZWRlbnRpYWxzJywgeyB0ZXN0Q2FzZXM6IFtzdGFja10gfSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.js b/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.js deleted file mode 100644 index 9745223cac9d4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions/test/integ.state-machine.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const cdk = require("aws-cdk-lib"); -const sfn = require("aws-cdk-lib/aws-stepfunctions"); -/* - * Stack verification steps: - * - * -- aws stepfunctions describe-state-machine --state-machine-arn has a status of `ACTIVE` - * -- aws iam get-role-policy --role-name --policy-name has all actions mapped to respective resources. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-stepfunctions-integ'); -const wait = new sfn.Wait(stack, 'wait time', { - time: sfn.WaitTime.secondsPath('$.waitSeconds'), -}); -const role = new iam.Role(stack, 'Role', { - assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'), -}); -const stateMachine = new sfn.StateMachine(stack, 'StateMachine', { - definition: wait, -}); -stateMachine.grantRead(role); -stateMachine.grant(role, 'states:SendTaskSuccess'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuc3RhdGUtbWFjaGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnN0YXRlLW1hY2hpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLHFEQUFxRDtBQUNyRDs7Ozs7R0FLRztBQUNILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRU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VwZnVuY3Rpb25zIGRlc2NyaWJlLXN0YXRlLW1hY2hpbmUgLS1zdGF0ZS1tYWNoaW5lLWFybiA8c3RhY2stb3V0cHV0PiBoYXMgYSBzdGF0dXMgb2YgYEFDVElWRWBcbiAqIC0tIGF3cyBpYW0gZ2V0LXJvbGUtcG9saWN5IC0tcm9sZS1uYW1lIDxyb2xlLW5hbWU+IC0tcG9saWN5LW5hbWUgPHBvbGljeS1uYW1lPiBoYXMgYWxsIGFjdGlvbnMgbWFwcGVkIHRvIHJlc3BlY3RpdmUgcmVzb3VyY2VzLlxuICovXG5jb25zdCBhcHAgPSBuZXcgY2RrLkFwcCgpO1xuY29uc3Qgc3RhY2sgPSBuZXcgY2RrLlN0YWNrKGFwcCwgJ2F3cy1zdGVwZnVuY3Rpb25zLWludGVnJyk7XG5cbmNvbnN0IHdhaXQgPSBuZXcgc2ZuLldhaXQoc3RhY2ssICd3YWl0IHRpbWUnLCB7XG4gIHRpbWU6IHNmbi5XYWl0VGltZS5zZWNvbmRzUGF0aCgnJC53YWl0U2Vjb25kcycpLFxufSk7XG5cbmNvbnN0IHJvbGUgPSBuZXcgaWFtLlJvbGUoc3RhY2ssICdSb2xlJywge1xuICBhc3N1bWVkQnk6IG5ldyBpYW0uU2VydmljZVByaW5jaXBhbCgnbGFtYmRhLmFtYXpvbmF3cy5jb20nKSxcbn0pO1xuXG5jb25zdCBzdGF0ZU1hY2hpbmUgPSBuZXcgc2ZuLlN0YXRlTWFjaGluZShzdGFjaywgJ1N0YXRlTWFjaGluZScsIHtcbiAgZGVmaW5pdGlvbjogd2FpdCxcbn0pO1xuXG5zdGF0ZU1hY2hpbmUuZ3JhbnRSZWFkKHJvbGUpO1xuc3RhdGVNYWNoaW5lLmdyYW50KHJvbGUsICdzdGF0ZXM6U2VuZFRhc2tTdWNjZXNzJyk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.d.ts b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.js b/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.js deleted file mode 100644 index ae37a0714dc1c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/cloudformation-include/test/integ.nested-stacks.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core = require("aws-cdk-lib"); -const inc = require("aws-cdk-lib/cloudformation-include"); -const app = new core.App(); -const stack = new core.Stack(app, 'ParentStack'); -new inc.CfnInclude(stack, 'ParentStack', { - templateFile: 'test-templates/nested/parent-one-child.json', - loadNestedStacks: { - ChildStack: { - templateFile: 'test-templates/nested/grandchild-import-stack.json', - }, - }, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmVzdGVkLXN0YWNrcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5lc3RlZC1zdGFja3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBb0M7QUFDcEMsMERBQTBEO0FBRTFELE1BQU0sR0FBRyxHQUFHLElBQUksSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTNCLE1BQU0sS0FBSyxHQUFHLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFFakQsSUFBSSxHQUFHLENBQUMsVUFBVSxDQUFDLEtBQUssRUFBRSxhQUFhLEVBQUU7SUFDdkMsWUFBWSxFQUFFLDZDQUE2QztJQUMzRCxnQkFBZ0IsRUFBRTtRQUNoQixVQUFVLEVBQUU7WUFDVixZQUFZLEVBQUUsb0RBQW9EO1NBQ25FO0tBQ0Y7Q0FDRixDQUFDLENBQUM7QUFFSCxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBjb3JlIGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCAqIGFzIGluYyBmcm9tICdhd3MtY2RrLWxpYi9jbG91ZGZvcm1hdGlvbi1pbmNsdWRlJztcblxuY29uc3QgYXBwID0gbmV3IGNvcmUuQXBwKCk7XG5cbmNvbnN0IHN0YWNrID0gbmV3IGNvcmUuU3RhY2soYXBwLCAnUGFyZW50U3RhY2snKTtcblxubmV3IGluYy5DZm5JbmNsdWRlKHN0YWNrLCAnUGFyZW50U3RhY2snLCB7XG4gIHRlbXBsYXRlRmlsZTogJ3Rlc3QtdGVtcGxhdGVzL25lc3RlZC9wYXJlbnQtb25lLWNoaWxkLmpzb24nLFxuICBsb2FkTmVzdGVkU3RhY2tzOiB7XG4gICAgQ2hpbGRTdGFjazoge1xuICAgICAgdGVtcGxhdGVGaWxlOiAndGVzdC10ZW1wbGF0ZXMvbmVzdGVkL2dyYW5kY2hpbGQtaW1wb3J0LXN0YWNrLmpzb24nLFxuICAgIH0sXG4gIH0sXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js deleted file mode 100644 index 9ed90358732cc..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-athena.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const aws_iam_1 = require("aws-cdk-lib/aws-iam"); -const aws_s3_1 = require("aws-cdk-lib/aws-s3"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const custom_resources_1 = require("aws-cdk-lib/custom-resources"); -/* - * - * Stack verification steps: - * - * 1) Deploy app. - * $ yarn build && yarn integ --update-on-failed --no-clean - * 2) Change `notebookName` to perform an update. - * $ yarn build && yarn integ --update-on-failed --no-clean - * 3) Check if PhysicalResourceId is consistent. - * $ aws cloudformation describe-stack-events \ - * --stack-name aws-cdk-customresources-athena \ - * --query 'StackEvents[?starts_with(LogicalResourceId,`AthenaNotebook`)]' - * - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-customresources-athena'); -const athenaResultBucket = new aws_s3_1.Bucket(stack, 'AthenaResultBucket'); -const athenaExecutionRole = new aws_iam_1.Role(stack, 'AthenaExecRole', { - assumedBy: new aws_iam_1.ServicePrincipal('athena.amazonaws.com'), - managedPolicies: [ - aws_iam_1.ManagedPolicy.fromAwsManagedPolicyName('AmazonAthenaFullAccess'), - ], -}); -// To avoid the Lambda Function from failing due to delays -// in policy propagation, this role should be created explicitly. -const customResourceRole = new aws_iam_1.Role(stack, 'CustomResourceRole', { - assumedBy: new aws_iam_1.ServicePrincipal('lambda.amazonaws.com'), - managedPolicies: [ - aws_iam_1.ManagedPolicy.fromAwsManagedPolicyName('service-role/AWSLambdaBasicExecutionRole'), - ], - inlinePolicies: { - PassRolePolicy: new aws_iam_1.PolicyDocument({ - statements: [new aws_iam_1.PolicyStatement({ - actions: ['iam:PassRole'], - resources: [athenaExecutionRole.roleArn], - })], - }), - AthenaWorkGroupPolicy: new aws_iam_1.PolicyDocument({ - statements: [new aws_iam_1.PolicyStatement({ - actions: [ - 'athena:CreateWorkGroup', - 'athena:DeleteWorkGroup', - ], - resources: ['*'], - })], - }), - AthenaNotebookPolicy: new aws_iam_1.PolicyDocument({ - statements: [new aws_iam_1.PolicyStatement({ - actions: [ - 'athena:CreateNotebook', - 'athena:UpdateNotebookMetadata', - 'athena:DeleteNotebook', - ], - resources: ['*'], - })], - }), - }, -}); -const workgroupName = 'TestWG'; -const workgroup = new custom_resources_1.AwsCustomResource(stack, 'AthenaWorkGroup', { - role: customResourceRole, - resourceType: 'Custom::AthenaWorkGroup', - installLatestAwsSdk: true, - onCreate: { - service: 'Athena', - action: 'createWorkGroup', - physicalResourceId: custom_resources_1.PhysicalResourceId.of(workgroupName), - parameters: { - Name: workgroupName, - Configuration: { - ExecutionRole: athenaExecutionRole.roleArn, - ResultConfiguration: { - OutputLocation: athenaResultBucket.s3UrlForObject(), - }, - EngineVersion: { - SelectedEngineVersion: 'PySpark engine version 3', - }, - }, - }, - }, - onDelete: { - service: 'Athena', - action: 'deleteWorkGroup', - parameters: { - WorkGroup: workgroupName, - }, - }, - timeout: cdk.Duration.minutes(3), -}); -// Athena.updateNotebook responses with empty body. -// This test case expects physicalResourceId to remain unchanged -// even if the user is unable to explicitly specify it because of empty response. -// https://docs.aws.amazon.com/athena/latest/APIReference/API_UpdateNotebook.html -const notebookName = 'MyNotebook1'; // Update name for test -const notebook = new custom_resources_1.AwsCustomResource(stack, 'AthenaNotebook', { - role: customResourceRole, - resourceType: 'Custom::AthenaNotebook', - installLatestAwsSdk: true, - onCreate: { - service: 'Athena', - action: 'createNotebook', - physicalResourceId: custom_resources_1.PhysicalResourceId.fromResponse('NotebookId'), - parameters: { - WorkGroup: workgroupName, - Name: notebookName, - }, - }, - onUpdate: { - service: 'Athena', - action: 'updateNotebookMetadata', - parameters: { - Name: notebookName, - NotebookId: new custom_resources_1.PhysicalResourceIdReference(), - }, - }, - onDelete: { - service: 'Athena', - action: 'deleteNotebook', - parameters: { - NotebookId: new custom_resources_1.PhysicalResourceIdReference(), - }, - }, - timeout: cdk.Duration.minutes(3), -}); -notebook.node.addDependency(workgroup); -new integ_tests_alpha_1.IntegTest(app, 'CustomResourceAthena', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzLWN1c3RvbS1yZXNvdXJjZS1hdGhlbmEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hd3MtY3VzdG9tLXJlc291cmNlLWF0aGVuYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUE2RztBQUM3RywrQ0FBNEM7QUFDNUMsbUNBQW1DO0FBQ25DLGtFQUF1RDtBQUN2RCxtRUFBa0g7QUFFbEg7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsZ0NBQWdDLENBQUMsQ0FBQztBQUVuRSxNQUFNLGtCQUFrQixHQUFHLElBQUksZUFBTSxDQUFDLEtBQUssRUFBRSxvQkFBb0IsQ0FBQyxDQUFDO0FBQ25FLE1BQU0sbUJBQW1CLEdBQUcsSUFBSSxjQUFJLENBQUMsS0FBSyxFQUFFLGdCQUFnQixFQUFFO0lBQzVELFNBQVMsRUFBRSxJQUFJLDBCQUFnQixDQUFDLHNCQUFzQixDQUFDO0lBQ3ZELGVBQWUsRUFBRTtRQUNmLHVCQUFhLENBQUMsd0JBQXdCLENBQUMsd0JBQXdCLENBQUM7S0FDakU7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uICAgIH0sXG4gIH0sXG4gIG9uVXBkYXRlOiB7XG4gICAgc2VydmljZTogJ0F0aGVuYScsXG4gICAgYWN0aW9uOiAndXBkYXRlTm90ZWJvb2tNZXRhZGF0YScsXG4gICAgcGFyYW1ldGVyczoge1xuICAgICAgTmFtZTogbm90ZWJvb2tOYW1lLFxuICAgICAgTm90ZWJvb2tJZDogbmV3IFBoeXNpY2FsUmVzb3VyY2VJZFJlZmVyZW5jZSgpLFxuICAgIH0sXG4gIH0sXG4gIG9uRGVsZXRlOiB7XG4gICAgc2VydmljZTogJ0F0aGVuYScsXG4gICAgYWN0aW9uOiAnZGVsZXRlTm90ZWJvb2snLFxuICAgIHBhcmFtZXRlcnM6IHtcbiAgICAgIE5vdGVib29rSWQ6IG5ldyBQaHlzaWNhbFJlc291cmNlSWRSZWZlcmVuY2UoKSxcbiAgICB9LFxuICB9LFxuICB0aW1lb3V0OiBjZGsuRHVyYXRpb24ubWludXRlcygzKSxcbn0pO1xubm90ZWJvb2subm9kZS5hZGREZXBlbmRlbmN5KHdvcmtncm91cCk7XG5cbm5ldyBJbnRlZ1Rlc3QoYXBwLCAnQ3VzdG9tUmVzb3VyY2VBdGhlbmEnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js deleted file mode 100644 index d651c78c80b98..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource-vpc.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const cdk = require("aws-cdk-lib"); -const integ_tests_alpha_1 = require("@aws-cdk/integ-tests-alpha"); -const custom_resources_1 = require("aws-cdk-lib/custom-resources"); -/* - * - * Stack verification steps: - * - * aws lambda get-function-configuration --function-name : should include a VPC config - * - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-customresources-vpc'); -const vpc = new ec2.Vpc(stack, 'Vpc'); -new custom_resources_1.AwsCustomResource(stack, 'DescribeVpcAttribute', { - onUpdate: { - service: 'EC2', - action: 'describeVpcAttribute', - parameters: { - VpcId: vpc.vpcId, - Attribute: 'enableDnsHostnames', - }, - physicalResourceId: custom_resources_1.PhysicalResourceId.of(vpc.vpcId), - }, - policy: custom_resources_1.AwsCustomResourcePolicy.fromSdkCalls({ resources: custom_resources_1.AwsCustomResourcePolicy.ANY_RESOURCE }), - timeout: cdk.Duration.minutes(3), - vpc: vpc, - vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, -}); -new integ_tests_alpha_1.IntegTest(app, 'CustomResourceVpc', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzLWN1c3RvbS1yZXNvdXJjZS12cGMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5hd3MtY3VzdG9tLXJlc291cmNlLXZwYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyxtQ0FBbUM7QUFDbkMsa0VBQXVEO0FBQ3ZELG1F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xlRG5zSG9zdG5hbWVzJyxcbiAgICB9LFxuICAgIHBoeXNpY2FsUmVzb3VyY2VJZDogUGh5c2ljYWxSZXNvdXJjZUlkLm9mKHZwYy52cGNJZCksXG4gIH0sXG4gIHBvbGljeTogQXdzQ3VzdG9tUmVzb3VyY2VQb2xpY3kuZnJvbVNka0NhbGxzKHsgcmVzb3VyY2VzOiBBd3NDdXN0b21SZXNvdXJjZVBvbGljeS5BTllfUkVTT1VSQ0UgfSksXG4gIHRpbWVvdXQ6IGNkay5EdXJhdGlvbi5taW51dGVzKDMpLFxuICB2cGM6IHZwYyxcbiAgdnBjU3VibmV0czogeyBzdWJuZXRUeXBlOiBlYzIuU3VibmV0VHlwZS5QUklWQVRFX1dJVEhfRUdSRVNTIH0sXG59KTtcblxubmV3IEludGVnVGVzdChhcHAsICdDdXN0b21SZXNvdXJjZVZwYycsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.d.ts deleted file mode 100644 index b7988016daa5b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js deleted file mode 100644 index 55b68867f9904..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/aws-custom-resource/integ.aws-custom-resource.js +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env node -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const iam = require("aws-cdk-lib/aws-iam"); -const sns = require("aws-cdk-lib/aws-sns"); -const ssm = require("aws-cdk-lib/aws-ssm"); -const cdk = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const custom_resources_1 = require("aws-cdk-lib/custom-resources"); -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'aws-cdk-sdk-js'); -const topic = new sns.Topic(stack, 'Topic'); -const snsPublish = new custom_resources_1.AwsCustomResource(stack, 'Publish', { - resourceType: 'Custom::SNSPublisher', - onUpdate: { - service: 'SNS', - action: 'publish', - parameters: { - Message: 'hello', - TopicArn: topic.topicArn, - }, - physicalResourceId: custom_resources_1.PhysicalResourceId.of(topic.topicArn), - }, - policy: custom_resources_1.AwsCustomResourcePolicy.fromSdkCalls({ resources: custom_resources_1.AwsCustomResourcePolicy.ANY_RESOURCE }), -}); -const listTopics = new custom_resources_1.AwsCustomResource(stack, 'ListTopics', { - onUpdate: { - service: 'SNS', - action: 'listTopics', - physicalResourceId: custom_resources_1.PhysicalResourceId.fromResponse('Topics.0.TopicArn'), - }, - policy: custom_resources_1.AwsCustomResourcePolicy.fromSdkCalls({ resources: custom_resources_1.AwsCustomResourcePolicy.ANY_RESOURCE }), -}); -listTopics.node.addDependency(topic); -const ssmParameter = new ssm.StringParameter(stack, 'Utf8Parameter', { - stringValue: 'ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ!"#¤%&/()=?`´^*+~_-.,:;<>|', -}); -const getParameter = new custom_resources_1.AwsCustomResource(stack, 'GetParameter', { - resourceType: 'Custom::SSMParameter', - onUpdate: { - service: 'SSM', - action: 'getParameter', - parameters: { - Name: ssmParameter.parameterName, - WithDecryption: true, - }, - physicalResourceId: custom_resources_1.PhysicalResourceId.fromResponse('Parameter.ARN'), - }, - policy: custom_resources_1.AwsCustomResourcePolicy.fromSdkCalls({ resources: custom_resources_1.AwsCustomResourcePolicy.ANY_RESOURCE }), -}); -const customRole = new iam.Role(stack, 'CustomRole', { - assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'), -}); -customRole.addToPolicy(new iam.PolicyStatement({ - effect: iam.Effect.ALLOW, - resources: ['*'], - actions: [ - 'ssm:*', - ], -})); -const getParameterNoPolicy = new custom_resources_1.AwsCustomResource(stack, 'GetParameterNoPolicy', { - resourceType: 'Custom::SSMParameter', - onUpdate: { - service: 'SSM', - action: 'getParameter', - parameters: { - Name: ssmParameter.parameterName, - WithDecryption: true, - }, - physicalResourceId: custom_resources_1.PhysicalResourceId.fromResponse('Parameter.ARN'), - }, - role: customRole, -}); -new cdk.CfnOutput(stack, 'MessageId', { value: snsPublish.getResponseField('MessageId') }); -new cdk.CfnOutput(stack, 'TopicArn', { value: listTopics.getResponseField('Topics.0.TopicArn') }); -new cdk.CfnOutput(stack, 'ParameterValue', { value: getParameter.getResponseField('Parameter.Value') }); -new cdk.CfnOutput(stack, 'ParameterValueNoPolicy', { value: getParameterNoPolicy.getResponseField('Parameter.Value') }); -new integ.IntegTest(app, 'AwsCustomResourceTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzLWN1c3RvbS1yZXNvdXJjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLmF3cy1jdXN0b20tcmVzb3VyY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQTJDO0FBQzNDLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0MsbUNBQW1DO0FBQ25DLG9EQUFvRDtBQUNwRCxtRUFBOEc7QUFFOUcsTUFBTSxHQUFHLEdBQUcsSUFBSSxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFFMUIsTUFBTSxLQUFLLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFDO0FBRW5ELE1BQ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line at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.js deleted file mode 100644 index 0c2b16e7df710..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integ.provider.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ * -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const constructs_1 = require("constructs"); -const s3_assert_1 = require("./integration-test-fixtures/s3-assert"); -const s3_file_1 = require("./integration-test-fixtures/s3-file"); -class TestStack extends aws_cdk_lib_1.Stack { - constructor(scope, id) { - super(scope, id); - const file2Contents = 'this file has a generated physical id'; - const bucket = new s3.Bucket(this, 'MyBucket'); - const file1 = new s3_file_1.S3File(this, 'file1', { - bucket, - objectKey: 'second.txt', - contents: 'Hello, world, 1980!', - }); - const file2 = new s3_file_1.S3File(this, 'file2', { - bucket, - contents: file2Contents, - }); - const file3 = new s3_file_1.S3File(this, 'file3Utf8', { - bucket, - objectKey: 'ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ!"#¤%&/()=?`´^*+~_-.,:;<>|', - contents: 'ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ!"#¤%&/()=?`´^*+~_-.,:;<>|', - }); - new s3_assert_1.S3Assert(this, 'assert-file', { - bucket, - objectKey: file2.objectKey, - expectedContent: file2Contents, - }); - // delay file2 updates so we can test async assertions - constructs_1.Node.of(file2).addDependency(file1); - new aws_cdk_lib_1.CfnOutput(this, 'file1-url', { value: file1.url }); - new aws_cdk_lib_1.CfnOutput(this, 'file2-url', { value: file2.url }); - new aws_cdk_lib_1.CfnOutput(this, 'file3-url', { value: file3.url }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new TestStack(app, 'integ-provider-framework'); -new integ.IntegTest(app, 'IntegProviderFrameworkTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGdCQUFnQjtBQUNoQix5Q0FBeUM7QUFDekMsNkNBQW9EO0FBQ3BELG9EQUFvRDtBQUNwRCwyQ0FBNkM7QUFDN0MscUVBQWlFO0FBQ2pFLGlFQUE2RDtBQUU3RCxNQUFNLFNBQVUsU0FBUSxtQkFBSztJQUMzQixZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sYUFBYSxHQUFHLHVDQUF1QyxDQUFDO1FBQzlELE1BQU0sTUFBTSxHQUFHLElBQUksRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFL0MsTUFBTSxLQUFLLEdBQUcsSUFBSSxnQkFBTSxDQUFDLElBQUksRUFBRSxPQUFPLEVBQUU7WUFDdEMsTUFBTTtZQUNOLFNBQVMsRUFBRSxZQUFZO1lBQ3ZCLFFBQVEsRUFBRSxxQkFBcUI7U0FDaEMsQ0FBQyxDQUFDO1FBRUgsTUFBTSxLQUFLLEdBQUcsSUFBSSxnQkFBTSxDQUFDLEl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JywgeyB2YWx1ZTogZmlsZTMudXJsIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoKTtcbmNvbnN0IHN0YWNrID0gbmV3IFRlc3RTdGFjayhhcHAsICdpbnRlZy1wcm92aWRlci1mcmFtZXdvcmsnKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdJbnRlZ1Byb3ZpZGVyRnJhbWV3b3JrVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.d.ts deleted file mode 100644 index 62214a50845db..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Construct } from 'constructs'; -export interface S3AssertProps { - /** - * The s3 bucket to query. - */ - readonly bucket: s3.IBucket; - /** - * The object key. - */ - readonly objectKey: string; - /** - * The expected contents. - */ - readonly expectedContent: string; -} -/** - * A custom resource that asserts that a file on s3 has the specified contents. - * This resource will wait 10 minutes before, allowing for eventual consistency - * to stabilize (and also exercises the idea of asynchronous custom resources). - * - * Code is written in Python because why not. - */ -export declare class S3Assert extends Construct { - constructor(scope: Construct, id: string, props: S3AssertProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.js deleted file mode 100644 index 2efdfd66ce140..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-assert.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.S3Assert = void 0; -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const constructs_1 = require("constructs"); -const cr = require("aws-cdk-lib/custom-resources"); -/** - * A custom resource that asserts that a file on s3 has the specified contents. - * This resource will wait 10 minutes before, allowing for eventual consistency - * to stabilize (and also exercises the idea of asynchronous custom resources). - * - * Code is written in Python because why not. - */ -class S3Assert extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - new aws_cdk_lib_1.CustomResource(this, 'Resource', { - serviceToken: S3AssertProvider.getOrCreate(this), - resourceType: 'Custom::S3Assert', - properties: { - BucketName: props.bucket.bucketName, - ObjectKey: props.objectKey, - ExpectedContent: props.expectedContent, - }, - }); - } -} -exports.S3Assert = S3Assert; -class S3AssertProvider extends constructs_1.Construct { - /** - * Returns the singleton provider. - */ - static getOrCreate(scope) { - const providerId = 'com.amazonaws.cdk.custom-resources.s3assert-provider'; - const stack = aws_cdk_lib_1.Stack.of(scope); - const group = constructs_1.Node.of(stack).tryFindChild(providerId) || new S3AssertProvider(stack, providerId); - return group.provider.serviceToken; - } - constructor(scope, id) { - super(scope, id); - const onEvent = new lambda.Function(this, 's3assert-on-event', { - code: lambda.Code.fromAsset(path.join(__dirname, 's3-assert-handler')), - runtime: lambda.Runtime.PYTHON_3_7, - handler: 'index.on_event', - }); - const isComplete = new lambda.Function(this, 's3assert-is-complete', { - code: lambda.Code.fromAsset(path.join(__dirname, 's3-assert-handler')), - runtime: lambda.Runtime.PYTHON_3_7, - handler: 'index.is_complete', - initialPolicy: [ - new iam.PolicyStatement({ - resources: ['*'], - actions: [ - 's3:GetObject*', - 's3:GetBucket*', - 's3:List*', - ], - }), - ], - }); - this.provider = new cr.Provider(this, 's3assert-provider', { - onEventHandler: onEvent, - isCompleteHandler: isComplete, - totalTimeout: aws_cdk_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ldmVudCcsXG4gICAgfSk7XG5cbiAgICBjb25zdCBpc0NvbXBsZXRlID0gbmV3IGxhbWJkYS5GdW5jdGlvbih0aGlzLCAnczNhc3NlcnQtaXMtY29tcGxldGUnLCB7XG4gICAgICBjb2RlOiBsYW1iZGEuQ29kZS5mcm9tQXNzZXQocGF0aC5qb2luKF9fZGlybmFtZSwgJ3MzLWFzc2VydC1oYW5kbGVyJykpLFxuICAgICAgcnVudGltZTogbGFtYmRhLlJ1bnRpbWUuUFlUSE9OXzNfNyxcbiAgICAgIGhhbmRsZXI6ICdpbmRleC5pc19jb21wbGV0ZScsXG4gICAgICBpbml0aWFsUG9saWN5OiBbXG4gICAgICAgIG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgICAgICAgICByZXNvdXJjZXM6IFsnKiddLFxuICAgICAgICAgIGFjdGlvbnM6IFtcbiAgICAgICAgICAgICdzMzpHZXRPYmplY3QqJyxcbiAgICAgICAgICAgICdzMzpHZXRCdWNrZXQqJyxcbiAgICAgICAgICAgICdzMzpMaXN0KicsXG4gICAgICAgICAgXSxcbiAgICAgICAgfSksXG4gICAgICBdLFxuICAgIH0pO1xuXG4gICAgdGhpcy5wcm92aWRlciA9IG5ldyBjci5Qcm92aWRlcih0aGlzLCAnczNhc3NlcnQtcHJvdmlkZXInLCB7XG4gICAgICBvbkV2ZW50SGFuZGxlcjogb25FdmVudCxcbiAgICAgIGlzQ29tcGxldGVIYW5kbGVyOiBpc0NvbXBsZXRlLFxuICAgICAgdG90YWxUaW1lb3V0OiBEdXJhdGlvbi5taW51dGVzKDUpLFxuICAgIH0pO1xuICB9XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.d.ts deleted file mode 100644 index 9a560ded1cf9c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const PROP_BUCKET_NAME = "BucketName"; -export declare const PROP_OBJECT_KEY = "ObjectKey"; -export declare const PROP_CONTENTS = "Contents"; -export declare const PROP_PUBLIC = "PublicRead"; -export declare const ATTR_ETAG = "ETag"; -export declare const ATTR_URL = "URL"; -export declare const ATTR_OBJECT_KEY = "ObjectKey"; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.js deleted file mode 100644 index 508f0228906ca..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/api.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ATTR_OBJECT_KEY = exports.ATTR_URL = exports.ATTR_ETAG = exports.PROP_PUBLIC = exports.PROP_CONTENTS = exports.PROP_OBJECT_KEY = exports.PROP_BUCKET_NAME = void 0; -exports.PROP_BUCKET_NAME = 'BucketName'; -exports.PROP_OBJECT_KEY = 'ObjectKey'; -exports.PROP_CONTENTS = 'Contents'; -exports.PROP_PUBLIC = 'PublicRead'; -exports.ATTR_ETAG = 'ETag'; -exports.ATTR_URL = 'URL'; -exports.ATTR_OBJECT_KEY = 'ObjectKey'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsZ0JBQWdCLEdBQUcsWUFBWSxDQUFDO0FBQ2hDLFFBQUEsZUFBZSxHQUFHLFdBQVcsQ0FBQztBQUM5QixRQUFBLGFBQWEsR0FBRyxVQUFVLENBQUM7QUFDM0IsUUFBQSxXQUFXLEdBQUcsWUFBWSxDQUFDO0FBRTNCLFFBQUEsU0FBUyxHQUFHLE1BQU0sQ0FBQztBQUNuQixRQUFBLFFBQVEsR0FBRyxLQUFLLENBQUM7QUFDakIsUUFBQSxlQUFlLEdBQUcsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFBST1BfQlVDS0VUX05BTUUgPSAnQnVja2V0TmFtZSc7XG5leHBvcnQgY29uc3QgUFJPUF9PQkpFQ1RfS0VZID0gJ09iamVjdEtleSc7XG5leHBvcnQgY29uc3QgUFJPUF9DT05URU5UUyA9ICdDb250ZW50cyc7XG5leHBvcnQgY29uc3QgUFJPUF9QVUJMSUMgPSAnUHVibGljUmVhZCc7XG5cbmV4cG9ydCBjb25zdCBBVFRSX0VUQUcgPSAnRVRhZyc7XG5leHBvcnQgY29uc3QgQVRUUl9VUkwgPSAnVVJMJztcbmV4cG9ydCBjb25zdCBBVFRSX09CSkVDVF9LRVkgPSAnT2JqZWN0S2V5JztcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.d.ts deleted file mode 100644 index 833e8cf000b4b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -export declare function onEvent(event: AWSCDKAsyncCustomResource.OnEventRequest): Promise; -export declare function putObject(event: AWSCDKAsyncCustomResource.OnEventRequest): Promise; -export declare function deleteObject(event: AWSCDKAsyncCustomResource.OnEventRequest): Promise; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.js deleted file mode 100644 index 78cab75936301..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.deleteObject = exports.putObject = exports.onEvent = void 0; -/// -/* eslint-disable no-console */ -const AWS = require("aws-sdk"); -const api = require("./api"); -const s3 = new AWS.S3(); -async function onEvent(event) { - switch (event.RequestType) { - case 'Create': - case 'Update': - return putObject(event); - case 'Delete': - return deleteObject(event); - } -} -exports.onEvent = onEvent; -async function putObject(event) { - const bucketName = event.ResourceProperties[api.PROP_BUCKET_NAME]; - if (!bucketName) { - throw new Error('"BucketName" is required'); - } - const contents = event.ResourceProperties[api.PROP_CONTENTS]; - if (!contents) { - throw new Error('"Contents" is required'); - } - // determine the object key which is the physical ID of the resource. - // if it was not provided by the user, we generated it using the request ID. - let objectKey = event.ResourceProperties[api.PROP_OBJECT_KEY] || event.LogicalResourceId + '-' + event.RequestId.replace(/-/g, '') + '.txt'; - // trim trailing `/` - if (objectKey.startsWith('/')) { - objectKey = objectKey.slice(1); - } - const publicRead = event.ResourceProperties[api.PROP_PUBLIC] || false; - console.log(`writing s3://${bucketName}/${objectKey}`); - const resp = await s3.putObject({ - Bucket: bucketName, - Key: objectKey, - Body: contents, - ACL: publicRead ? 'public-read' : undefined, - }).promise(); - // NOTE: updates to the object key will be handled automatically: a new object will be put and then we return - // the new name. this will tell cloudformation that the resource has been replaced and it will issue a DELETE - // for the old object. - return { - PhysicalResourceId: objectKey, - Data: { - [api.ATTR_OBJECT_KEY]: objectKey, - [api.ATTR_ETAG]: resp.ETag, - [api.ATTR_URL]: `https://${bucketName}.s3.amazonaws.com/${objectKey}`, - }, - }; -} -exports.putObject = putObject; -async function deleteObject(event) { - const bucketName = event.ResourceProperties.BucketName; - if (!bucketName) { - throw new Error('"BucketName" is required'); - } - const objectKey = event.PhysicalResourceId; - if (!objectKey) { - throw new Error('PhysicalResourceId expected for DELETE events'); - } - await s3.deleteObject({ - Bucket: bucketName, - Key: objectKey, - }).promise(); -} -exports.deleteObject = deleteObject; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrSEFBK0g7QUFDL0gsK0JBQStCO0FBQy9CLCtCQUErQjtBQUMvQiw2QkFBNkI7QUFFN0IsTUFBTSxFQUFFLEdBQUcsSUFBSSxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUM7QUFFakIsS0FBSyxVQUFVLE9BQU8sQ0FBQyxLQUErQztJQUMzRSxRQUFRLEtBQUssQ0FBQyxXQUFXLEVBQUU7UUFDekIsS0FBSyxRQUFRLENBQUM7UUFDZCxLQUFLLFFBQVE7WUFDWCxPQUFPLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUUxQixLQUFLLFFBQVE7WUFDWCxPQUFPLFlBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQztLQUM5QjtBQUNILENBQUM7QUFURCwwQkFTQztBQUVNLEtBQUssVUFBVSxTQUFTLENBQUMsS0FBK0M7SUFDN0UsTUFBTSxVQUFVLEdBQUcsS0FBSyxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBQ2xFLElBQUksQ0FBQyxVQUFVLEVBQUU7UUFBRSxNQUFNLElBQUksS0FBSyxDQUFDLDBCQUEwQixDQUFDLENBQUM7S0FBRTtJQUVqRSxNQUFNLFFBQVEsR0FBRyxLQUFLLENBQUMsa0JBQWtCLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQzdELElBQUksQ0FBQyxRQUFRL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ing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.d.ts b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.d.ts deleted file mode 100644 index 5c02666461fe1..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Construct } from 'constructs'; -interface S3FileProps { - /** - * The bucket in which the file will be created. - */ - readonly bucket: s3.IBucket; - /** - * The object key. - * - * @default - automatically-generated - */ - readonly objectKey?: string; - /** - * The contents of the file. - */ - readonly contents: string; - /** - * Indicates if this file should have public-read permissions. - * - * @default false - */ - readonly public?: boolean; -} -export declare class S3File extends Construct { - readonly objectKey: string; - readonly url: string; - readonly etag: string; - constructor(scope: Construct, id: string, props: S3FileProps); -} -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.js b/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.js deleted file mode 100644 index 1268a39e51010..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/custom-resources/test/provider-framework/integration-test-fixtures/s3-file.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.S3File = void 0; -const path = require("path"); -const iam = require("aws-cdk-lib/aws-iam"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const constructs_1 = require("constructs"); -const api = require("./s3-file-handler/api"); -const cr = require("aws-cdk-lib/custom-resources"); -class S3File extends constructs_1.Construct { - constructor(scope, id, props) { - super(scope, id); - const resource = new aws_cdk_lib_1.CustomResource(this, 'Resource', { - serviceToken: S3FileProvider.getOrCreate(this), - resourceType: 'Custom::S3File', - properties: { - [api.PROP_BUCKET_NAME]: props.bucket.bucketName, - [api.PROP_CONTENTS]: props.contents, - [api.PROP_OBJECT_KEY]: props.objectKey, - [api.PROP_PUBLIC]: props.public, - }, - }); - this.objectKey = resource.getAttString(api.ATTR_OBJECT_KEY); - this.url = resource.getAttString(api.ATTR_URL); - this.etag = resource.getAttString(api.ATTR_ETAG); - } -} -exports.S3File = S3File; -class S3FileProvider extends constructs_1.Construct { - /** - * Returns the singleton provider. - */ - static getOrCreate(scope) { - const stack = aws_cdk_lib_1.Stack.of(scope); - const id = 'com.amazonaws.cdk.custom-resources.s3file-provider'; - const x = constructs_1.Node.of(stack).tryFindChild(id) || new S3FileProvider(stack, id); - return x.provider.serviceToken; - } - constructor(scope, id) { - super(scope, id); - this.provider = new cr.Provider(this, 's3file-provider', { - onEventHandler: new lambda.Function(this, 's3file-on-event', { - code: lambda.Code.fromAsset(path.join(__dirname, 's3-file-handler')), - runtime: lambda.Runtime.NODEJS_14_X, - handler: 'index.onEvent', - initialPolicy: [ - new iam.PolicyStatement({ - resources: ['*'], - actions: [ - 's3:GetObject*', - 's3:GetBucket*', - 's3:List*', - 's3:DeleteObject*', - 's3:PutObject*', - 's3:Abort*', - ], - }), - ], - }), - }); - } -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiczMtZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInMzLWZpbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFFakQsNkNBQW9EO0FBQ3BELDJDQUE2QztBQUM3Qyw2Q0FBNkM7QUFDN0MsbURBQW1EO0FBNEJuRCxNQUFhLE1BQU8sU0FBUSxzQkFBUztJQUtuQyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQWtCO1FBQzFELEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFak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ICdpbmRleC5vbkV2ZW50JyxcbiAgICAgICAgaW5pdGlhbFBvbGljeTogW1xuICAgICAgICAgIG5ldyBpYW0uUG9saWN5U3RhdGVtZW50KHtcbiAgICAgICAgICAgIHJlc291cmNlczogWycqJ10sXG4gICAgICAgICAgICBhY3Rpb25zOiBbXG4gICAgICAgICAgICAgICdzMzpHZXRPYmplY3QqJyxcbiAgICAgICAgICAgICAgJ3MzOkdldEJ1Y2tldConLFxuICAgICAgICAgICAgICAnczM6TGlzdConLFxuICAgICAgICAgICAgICAnczM6RGVsZXRlT2JqZWN0KicsXG4gICAgICAgICAgICAgICdzMzpQdXRPYmplY3QqJyxcbiAgICAgICAgICAgICAgJ3MzOkFib3J0KicsXG4gICAgICAgICAgICBdLFxuICAgICAgICAgIH0pLFxuICAgICAgICBdLFxuICAgICAgfSksXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.js b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.js deleted file mode 100644 index 121fc7924f76a..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-awscli/test/integ.awscli-layer.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const lambda_layer_awscli_1 = require("aws-cdk-lib/lambda-layer-awscli"); -/** - * Test verifies that AWS CLI is invoked successfully inside Lambda runtime. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-layer-awscli-integ-stack'); -const layer = new lambda_layer_awscli_1.AwsCliLayer(stack, 'AwsCliLayer'); -const runtimes = [ - lambda.Runtime.PYTHON_3_7, - lambda.Runtime.PYTHON_3_9, -]; -for (const runtime of runtimes) { - const provider = new cr.Provider(stack, `Provider${runtime.name}`, { - onEventHandler: new lambda.Function(stack, `Lambda$${runtime.name}`, { - code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')), - handler: 'index.handler', - runtime: runtime, - layers: [layer], - memorySize: 512, - timeout: cdk.Duration.seconds(30), - }), - }); - new cdk.CustomResource(stack, `CustomResource${runtime.name}`, { - serviceToken: provider.serviceToken, - }); -} -new integ.IntegTest(app, 'lambda-layer-awscli-integ-test', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYXdzY2xpLWxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcuYXdzY2xpLWxheWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBQzdCLGlEQUFpRDtBQUNqRCxtQ0FBbUM7QUFDbkMsbURBQW1EO0FBQ25ELG9EQUFvRDtBQUVwRCx5RUFBOEQ7QUFFOUQ7O0dBRUc7QUFFSCxNQUFNLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUMxQixNQUFNLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLGlDQUFpQyxDQUFDLENBQUM7QUFDcEUsTUFBTSxLQUFLLEdBQUcsSUFBSSxpQ0F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b3ZpZGVyID0gbmV3IGNyLlByb3ZpZGVyKHN0YWNrLCBgUHJvdmlkZXIke3J1bnRpbWUubmFtZX1gLCB7XG4gICAgb25FdmVudEhhbmRsZXI6IG5ldyBsYW1iZGEuRnVuY3Rpb24oc3RhY2ssIGBMYW1iZGEkJHtydW50aW1lLm5hbWV9YCwge1xuICAgICAgY29kZTogbGFtYmRhLkNvZGUuZnJvbUFzc2V0KHBhdGguam9pbihfX2Rpcm5hbWUsICdsYW1iZGEtaGFuZGxlcicpKSxcbiAgICAgIGhhbmRsZXI6ICdpbmRleC5oYW5kbGVyJyxcbiAgICAgIHJ1bnRpbWU6IHJ1bnRpbWUsXG4gICAgICBsYXllcnM6IFtsYXllcl0sXG4gICAgICBtZW1vcnlTaXplOiA1MTIsXG4gICAgICB0aW1lb3V0OiBjZGsuRHVyYXRpb24uc2Vjb25kcygzMCksXG4gICAgfSksXG4gIH0pO1xuXG4gIG5ldyBjZGsuQ3VzdG9tUmVzb3VyY2Uoc3RhY2ssIGBDdXN0b21SZXNvdXJjZSR7cnVudGltZS5uYW1lfWAsIHtcbiAgICBzZXJ2aWNlVG9rZW46IHByb3ZpZGVyLnNlcnZpY2VUb2tlbixcbiAgfSk7XG59XG5cbm5ldyBpbnRlZy5JbnRlZ1Rlc3QoYXBwLCAnbGFtYmRhLWxheWVyLWF3c2NsaS1pbnRlZy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGNka0NvbW1hbmRPcHRpb25zOiB7XG4gICAgZGVwbG95OiB7XG4gICAgICBhcmdzOiB7XG4gICAgICAgIHJvbGxiYWNrOiB0cnVlLFxuICAgICAgfSxcbiAgICB9LFxuICB9LFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.d.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.js b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.js deleted file mode 100644 index 4b8ce5573358b..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-kubectl/test/integ.kubectl-layer.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const lambda_layer_kubectl_1 = require("aws-cdk-lib/lambda-layer-kubectl"); -/** - * Test verifies that kubectl and helm are invoked successfully inside Lambda runtime. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-layer-kubectl-integ-stack'); -const layer = new lambda_layer_kubectl_1.KubectlLayer(stack, 'KubectlLayer'); -const runtimes = [ - lambda.Runtime.PYTHON_3_7, - lambda.Runtime.PYTHON_3_9, -]; -for (const runtime of runtimes) { - const provider = new cr.Provider(stack, `Provider${runtime.name}`, { - onEventHandler: new lambda.Function(stack, `Lambda$${runtime.name}`, { - code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')), - handler: 'index.handler', - runtime: runtime, - layers: [layer], - memorySize: 512, - timeout: cdk.Duration.seconds(30), - }), - }); - new cdk.CustomResource(stack, `CustomResource${runtime.name}`, { - serviceToken: provider.serviceToken, - }); -} -new integ.IntegTest(app, 'lambda-layer-kubectl-integ-test', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWc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uICAgIHNlcnZpY2VUb2tlbjogcHJvdmlkZXIuc2VydmljZVRva2VuLFxuICB9KTtcbn1cblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdsYW1iZGEtbGF5ZXIta3ViZWN0bC1pbnRlZy10ZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGNka0NvbW1hbmRPcHRpb25zOiB7XG4gICAgZGVwbG95OiB7XG4gICAgICBhcmdzOiB7XG4gICAgICAgIHJvbGxiYWNrOiB0cnVlLFxuICAgICAgfSxcbiAgICB9LFxuICB9LFxufSk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.d.ts b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.js b/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.js deleted file mode 100644 index dde0cc9ab96d5..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/lambda-layer-node-proxy-agent/test/integ.node-proxy-agent.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const cdk = require("aws-cdk-lib"); -const cr = require("aws-cdk-lib/custom-resources"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const lambda_layer_node_proxy_agent_1 = require("aws-cdk-lib/lambda-layer-node-proxy-agent"); -/** - * Test verifies that node-proxy-agent is invoked successfully inside Lambda runtime. - */ -const app = new cdk.App(); -const stack = new cdk.Stack(app, 'lambda-layer-node-proxy-agent-integ-stack'); -const layer = new lambda_layer_node_proxy_agent_1.NodeProxyAgentLayer(stack, 'NodeProxyAgentLayer'); -const provider = new cr.Provider(stack, 'ProviderNode14', { - onEventHandler: new lambda.Function(stack, 'Lambda$Node14', { - code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')), - handler: 'index.handler', - runtime: lambda.Runtime.NODEJS_14_X, - layers: [layer], - memorySize: 512, - timeout: cdk.Duration.seconds(30), - }), -}); -new cdk.CustomResource(stack, 'CustomResourceNode14', { - serviceToken: provider.serviceToken, -}); -new integ.IntegTest(app, 'lambda-layer-node-proxy-agent-integ-test', { - testCases: [stack], - cdkCommandOptions: { - deploy: { - args: { - rollback: true, - }, - }, - }, -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubm9kZS1wcm94eS1hZ2VudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLm5vZGUtcHJveHktYWdlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSw2QkFBNkI7QUFDN0IsaURBQWlEO0FBQ2pELG1DQUFtQztBQUNuQyxtREFBbUQ7QUFDbkQsb0RBQW9EO0FBRXBELDZGQUFnRjtBQUVoRjs7R0FFRztBQUVILE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQzFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsMkNBQTJDLENBQUMsQ0FBQztBQUM5RSxNQUFNLEtBQUssR0FBRyxJQUFJLG1EQUFtQixDQUFDLEtBQUssRUFBRSxxQkFBcUIsQ0FBQyxDQUFDO0FBRXBFLE1BQU0sUUFBUSxHQUFHLElBQUksRUFBRSxDQUFDLFFBQVEsQ0FBQyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUU7S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zKDMwKSxcbiAgfSksXG59KTtcblxubmV3IGNkay5DdXN0b21SZXNvdXJjZShzdGFjaywgJ0N1c3RvbVJlc291cmNlTm9kZTE0Jywge1xuICBzZXJ2aWNlVG9rZW46IHByb3ZpZGVyLnNlcnZpY2VUb2tlbixcbn0pO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ2xhbWJkYS1sYXllci1ub2RlLXByb3h5LWFnZW50LWludGVnLXRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbiAgY2RrQ29tbWFuZE9wdGlvbnM6IHtcbiAgICBkZXBsb3k6IHtcbiAgICAgIGFyZ3M6IHtcbiAgICAgICAgcm9sbGJhY2s6IHRydWUsXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG59KTsiXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.js deleted file mode 100644 index bc17bb1e7c715..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-cross-account-keys.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const pipelines = require("aws-cdk-lib/pipelines"); -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - crossAccountKeys: true, - enableKeyRotation: true, - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.gitHub('tkglaser/cdk-pipelines-demo', 'main'), - commands: [ - 'npm ci', - 'npm run build', - 'npx cdk synth', - ], - }), - }); - pipeline.addStage(new AppStage(this, 'Beta')); - const group = pipeline.addWave('Wave1'); - group.addStage(new AppStage(this, 'Prod1')); - group.addStage(new AppStage(this, 'Prod2')); - const group2 = pipeline.addWave('Wave2'); - group2.addStage(new AppStage(this, 'Prod3')); - group2.addStage(new AppStage(this, 'Prod4')); - group2.addStage(new AppStage(this, 'Prod5')); - group2.addStage(new AppStage(this, 'Prod6')); - } -} -class AppStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack1 = new aws_cdk_lib_1.Stack(this, 'Stack1'); - const queue1 = new sqs.Queue(stack1, 'Queue'); - const stack2 = new aws_cdk_lib_1.Stack(this, 'Stack2'); - new sqs.Queue(stack2, 'OtherQueue', { - deadLetterQueue: { - queue: queue1, - maxReceiveCount: 5, - }, - }); - } -} -const app = new aws_cdk_lib_1.App(); -const stack = new PipelineStack(app, 'PipelineStack'); -new integ.IntegTest(app, 'LambdaTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmV3cGlwZWxpbmUtd2l0aC1jcm9zcy1hY2NvdW50LWtleXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXdwaXBlbGluZS13aXRoLWNyb3NzLWFjY291bnQta2V5cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEyQztBQUMzQyw2Q0FBd0U7QUFDeEUsb0RBQW9EO0FBR3BELG1EQUFtRDtBQUVuRCxNQUFNLGFBQWMsU0FBUSxtQkFBSztJQUMv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ZXVlMSA9IG5ldyBzcXMuUXVldWUoc3RhY2sxLCAnUXVldWUnKTtcblxuICAgIGNvbnN0IHN0YWNrMiA9IG5ldyBTdGFjayh0aGlzLCAnU3RhY2syJyk7XG4gICAgbmV3IHNxcy5RdWV1ZShzdGFjazIsICdPdGhlclF1ZXVlJywge1xuICAgICAgZGVhZExldHRlclF1ZXVlOiB7XG4gICAgICAgIHF1ZXVlOiBxdWV1ZTEsXG4gICAgICAgIG1heFJlY2VpdmVDb3VudDogNSxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCgpO1xuXG5jb25zdCBzdGFjayA9IG5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ1BpcGVsaW5lU3RhY2snKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdMYW1iZGFUZXN0Jywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG59KTtcblxuYXBwLnN5bnRoKCk7Il19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.js deleted file mode 100644 index 953ad45e5bee3..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-vpc.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// eslint-disable-next-line import/no-extraneous-dependencies -/// !cdk-integ PipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const path = require("path"); -const ec2 = require("aws-cdk-lib/aws-ec2"); -const s3_assets = require("aws-cdk-lib/aws-s3-assets"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const pipelines = require("aws-cdk-lib/pipelines"); -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const vpc = new ec2.Vpc(this, 'Vpc'); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - codeBuildDefaults: { vpc }, - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.gitHub('aws/aws-cdk', 'v2-main'), - commands: [ - 'npm ci', - 'npm run build', - 'npx cdk synth', - ], - }), - }); - pipeline.addStage(new AppStage(this, 'Beta')); - } -} -class AppStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack1'); - new s3_assets.Asset(stack, 'Asset', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset.txt'), - }); - new s3_assets.Asset(stack, 'Asset2', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset-two.txt'), - }); - new sqs.Queue(stack, 'OtherQueue'); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': '1', - }, -}); -new PipelineStack(app, 'PipelineStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmV3cGlwZWxpbmUtd2l0aC12cGMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXdwaXBlbGluZS13aXRoLXZwYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZEQUE2RDtBQUM3RCx5RkFBeUY7QUFDekYsNkJBQTZCO0FBQzdCLDJDQUEyQztBQUMzQyx1REFBdUQ7QUFDdkQsMkNBQTJDO0FBQzNDLDZD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NzIEFwcFN0YWdlIGV4dGVuZHMgU3RhZ2Uge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWdlUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IHN0YWNrID0gbmV3IFN0YWNrKHRoaXMsICdTdGFjazEnKTtcbiAgICBuZXcgczNfYXNzZXRzLkFzc2V0KHN0YWNrLCAnQXNzZXQnLCB7XG4gICAgICBwYXRoOiBwYXRoLmpvaW4oX19kaXJuYW1lLCAndGVzdGhlbHBlcnMvYXNzZXRzL3Rlc3QtZmlsZS1hc3NldC50eHQnKSxcbiAgICB9KTtcbiAgICBuZXcgczNfYXNzZXRzLkFzc2V0KHN0YWNrLCAnQXNzZXQyJywge1xuICAgICAgcGF0aDogcGF0aC5qb2luKF9fZGlybmFtZSwgJ3Rlc3RoZWxwZXJzL2Fzc2V0cy90ZXN0LWZpbGUtYXNzZXQtdHdvLnR4dCcpLFxuICAgIH0pO1xuXG4gICAgbmV3IHNxcy5RdWV1ZShzdGFjaywgJ090aGVyUXVldWUnKTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKHtcbiAgY29udGV4dDoge1xuICAgICdAYXdzLWNkay9jb3JlOm5ld1N0eWxlU3RhY2tTeW50aGVzaXMnOiAnMScsXG4gIH0sXG59KTtcbm5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ1BpcGVsaW5lU3RhY2snKTtcbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.js deleted file mode 100644 index 180c7e35176e4..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// eslint-disable-next-line import/no-extraneous-dependencies -/// !cdk-integ PipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const pipelines = require("aws-cdk-lib/pipelines"); -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.gitHub('rix0rrr/cdk-pipelines-demo', 'main'), - commands: [ - 'npm ci', - 'npm run build', - 'npx cdk synth', - ], - }), - }); - pipeline.addStage(new AppStage(this, 'Beta')); - const group = pipeline.addWave('Wave1'); - group.addStage(new AppStage(this, 'Prod1')); - group.addStage(new AppStage(this, 'Prod2')); - const group2 = pipeline.addWave('Wave2'); - group2.addStage(new AppStage(this, 'Prod3')); - group2.addStage(new AppStage(this, 'Prod4')); - group2.addStage(new AppStage(this, 'Prod5')); - group2.addStage(new AppStage(this, 'Prod6')); - } -} -class AppStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack1 = new aws_cdk_lib_1.Stack(this, 'Stack1'); - const queue1 = new sqs.Queue(stack1, 'Queue'); - const stack2 = new aws_cdk_lib_1.Stack(this, 'Stack2'); - new sqs.Queue(stack2, 'OtherQueue', { - deadLetterQueue: { - queue: queue1, - maxReceiveCount: 5, - }, - }); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': '1', - }, -}); -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wcFN0YWdlIGV4dGVuZHMgU3RhZ2Uge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wcz86IFN0YWdlUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHByb3BzKTtcblxuICAgIGNvbnN0IHN0YWNrMSA9IG5ldyBTdGFjayh0aGlzLCAnU3RhY2sxJyk7XG4gICAgY29uc3QgcXVldWUxID0gbmV3IHNxcy5RdWV1ZShzdGFjazEsICdRdWV1ZScpO1xuXG4gICAgY29uc3Qgc3RhY2syID0gbmV3IFN0YWNrKHRoaXMsICdTdGFjazInKTtcbiAgICBuZXcgc3FzLlF1ZXVlKHN0YWNrMiwgJ090aGVyUXVldWUnLCB7XG4gICAgICBkZWFkTGV0dGVyUXVldWU6IHtcbiAgICAgICAgcXVldWU6IHF1ZXVlMSxcbiAgICAgICAgbWF4UmVjZWl2ZUNvdW50OiA1LFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKHtcbiAgY29udGV4dDoge1xuICAgICdAYXdzLWNkay9jb3JlOm5ld1N0eWxlU3RhY2tTeW50aGVzaXMnOiAnMScsXG4gIH0sXG59KTtcbm5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ1BpcGVsaW5lU3RhY2snKTtcbmFwcC5zeW50aCgpOyJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.d.ts deleted file mode 100644 index 18966d9bb5331..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Stack, StackProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -export declare class TestCdkStack extends Stack { - constructor(scope: Construct, id: string, props?: StackProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.js deleted file mode 100644 index 914c962d8863c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-security.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestCdkStack = void 0; -/// !cdk-integ PipelineSecurityStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -const iam = require("aws-cdk-lib/aws-iam"); -const s3 = require("aws-cdk-lib/aws-s3"); -const sns = require("aws-cdk-lib/aws-sns"); -const subscriptions = require("aws-cdk-lib/aws-sns-subscriptions"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const cdkp = require("aws-cdk-lib/pipelines"); -class MyStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'MyStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - const topic = new sns.Topic(stack, 'Topic'); - topic.grantPublish(new iam.AccountPrincipal(stack.account)); - } -} -class MySafeStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'MySafeStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - new sns.Topic(stack, 'MySafeTopic'); - } -} -class TestCdkStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - // The code that defines your stack goes here - const sourceArtifact = new codepipeline.Artifact(); - const cloudAssemblyArtifact = new codepipeline.Artifact('CloudAsm'); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new cdkp.CdkPipeline(this, 'TestPipeline', { - selfMutating: false, - pipelineName: 'TestPipeline', - cloudAssemblyArtifact, - sourceAction: new codepipeline_actions.S3SourceAction({ - bucket: sourceBucket, - output: sourceArtifact, - bucketKey: 'key', - actionName: 'S3', - }), - synthAction: cdkp.SimpleSynthAction.standardYarnSynth({ - sourceArtifact, - cloudAssemblyArtifact, - buildCommand: 'yarn build', - }), - }); - const pipelineStage = pipeline.codePipeline.addStage({ - stageName: 'UnattachedStage', - }); - const unattachedStage = new cdkp.CdkStage(this, 'UnattachedStage', { - stageName: 'UnattachedStage', - pipelineStage, - cloudAssemblyArtifact, - host: { - publishAsset: () => undefined, - stackOutputArtifact: () => undefined, - }, - }); - const topic = new sns.Topic(this, 'SecurityChangesTopic'); - topic.addSubscription(new subscriptions.EmailSubscription('test@email.com')); - unattachedStage.addApplication(new MyStage(this, 'SingleStage', {}), { confirmBroadeningPermissions: true, securityNotificationTopic: topic }); - const stage1 = pipeline.addApplicationStage(new MyStage(this, 'PreProduction', {}), { confirmBroadeningPermissions: true, securityNotificationTopic: topic }); - stage1.addApplication(new MySafeStage(this, 'SafeProduction', {})); - stage1.addApplication(new MySafeStage(this, 'DisableSecurityCheck', {}), { confirmBroadeningPermissions: false }); - const stage2 = pipeline.addApplicationStage(new MyStage(this, 'NoSecurityCheck', {})); - stage2.addApplication(new MyStage(this, 'EnableSecurityCheck', {}), { confirmBroadeningPermissions: true }); - } -} -exports.TestCdkStack = TestCdkStack; -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': 'true', - }, -}); -const stack = new TestCdkStack(app, 'PipelineSecurityStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), -}); -new integ.IntegTest(app, 'PipelineSecurityTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtc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lc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.js deleted file mode 100644 index cb95ab84741cf..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets-single-upload.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ PipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const path = require("path"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -const s3 = require("aws-cdk-lib/aws-s3"); -const s3_assets = require("aws-cdk-lib/aws-s3-assets"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cdkp = require("aws-cdk-lib/pipelines"); -class MyStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack', { - ...props, - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - new s3_assets.Asset(stack, 'Asset', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset.txt'), - }); - new s3_assets.Asset(stack, 'Asset2', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset-two.txt'), - }); - new aws_cdk_lib_1.CfnResource(stack, 'Resource', { - type: 'AWS::Test::SomeResource', - }); - } -} -/** - * The stack that defines the application pipeline - */ -class CdkpipelinesDemoPipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const sourceArtifact = new codepipeline.Artifact(); - const cloudAssemblyArtifact = new codepipeline.Artifact('CloudAsm'); - const integTestArtifact = new codepipeline.Artifact('IntegTests'); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new cdkp.CdkPipeline(this, 'Pipeline', { - cloudAssemblyArtifact, - singlePublisherPerType: true, - // Where the source can be found - sourceAction: new codepipeline_actions.S3SourceAction({ - bucket: sourceBucket, - output: sourceArtifact, - bucketKey: 'key', - actionName: 'S3', - }), - // How it will be built - synthAction: cdkp.SimpleSynthAction.standardNpmSynth({ - sourceArtifact, - cloudAssemblyArtifact, - projectName: 'MyServicePipeline-synth', - additionalArtifacts: [ - { - directory: 'test', - artifact: integTestArtifact, - }, - ], - }), - }); - // This is where we add the application stages - // ... - const stage = pipeline.addApplicationStage(new MyStage(this, 'PreProd')); - stage.addActions(new cdkp.ShellScriptAction({ - actionName: 'UseSource', - commands: [ - // Comes from source - 'cat README.md', - ], - additionalArtifacts: [sourceArtifact], - })); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': 'true', - }, -}); -new CdkpipelinesDemoPipelineStack(app, 'PipelineStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aC1hc3NldHMtc2luZ2xlLXVwbG9hZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImludGVnLnBpcGVsaW5lLXdpdGgtYXNzZXRzLXNpbmdsZS11cGxvYWQudHMiXSwibmFtZXMi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HJlUHJvZCcpKTtcbiAgICBzdGFnZS5hZGRBY3Rpb25zKFxuICAgICAgbmV3IGNka3AuU2hlbGxTY3JpcHRBY3Rpb24oe1xuICAgICAgICBhY3Rpb25OYW1lOiAnVXNlU291cmNlJyxcbiAgICAgICAgY29tbWFuZHM6IFtcbiAgICAgICAgICAvLyBDb21lcyBmcm9tIHNvdXJjZVxuICAgICAgICAgICdjYXQgUkVBRE1FLm1kJyxcbiAgICAgICAgXSxcbiAgICAgICAgYWRkaXRpb25hbEFydGlmYWN0czogW3NvdXJjZUFydGlmYWN0XSxcbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCh7XG4gIGNvbnRleHQ6IHtcbiAgICAnQGF3cy1jZGsvY29yZTpuZXdTdHlsZVN0YWNrU3ludGhlc2lzJzogJ3RydWUnLFxuICB9LFxufSk7XG5uZXcgQ2RrcGlwZWxpbmVzRGVtb1BpcGVsaW5lU3RhY2soYXBwLCAnUGlwZWxpbmVTdGFjaycsIHtcbiAgc3ludGhlc2l6ZXI6IG5ldyBEZWZhdWx0U3RhY2tTeW50aGVzaXplcigpLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.js deleted file mode 100644 index d8a445e256374..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-assets.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ PipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const path = require("path"); -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -const s3 = require("aws-cdk-lib/aws-s3"); -const s3_assets = require("aws-cdk-lib/aws-s3-assets"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cdkp = require("aws-cdk-lib/pipelines"); -class MyStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack', { - ...props, - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - new s3_assets.Asset(stack, 'Asset', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset.txt'), - }); - new s3_assets.Asset(stack, 'Asset2', { - path: path.join(__dirname, 'testhelpers/assets/test-file-asset-two.txt'), - }); - new aws_cdk_lib_1.CfnResource(stack, 'Resource', { - type: 'AWS::Test::SomeResource', - }); - } -} -/** - * The stack that defines the application pipeline - */ -class CdkpipelinesDemoPipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const sourceArtifact = new codepipeline.Artifact(); - const cloudAssemblyArtifact = new codepipeline.Artifact('CloudAsm'); - const integTestArtifact = new codepipeline.Artifact('IntegTests'); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new cdkp.CdkPipeline(this, 'Pipeline', { - cloudAssemblyArtifact, - // Where the source can be found - sourceAction: new codepipeline_actions.S3SourceAction({ - bucket: sourceBucket, - output: sourceArtifact, - bucketKey: 'key', - actionName: 'S3', - }), - // How it will be built - synthAction: cdkp.SimpleSynthAction.standardNpmSynth({ - sourceArtifact, - cloudAssemblyArtifact, - projectName: 'MyServicePipeline-synth', - additionalArtifacts: [ - { - directory: 'test', - artifact: integTestArtifact, - }, - ], - }), - }); - // This is where we add the application stages - // ... - const stage = pipeline.addApplicationStage(new MyStage(this, 'PreProd')); - stage.addActions(new cdkp.ShellScriptAction({ - actionName: 'UseSource', - commands: [ - // Comes from source - 'cat README.md', - ], - additionalArtifacts: [sourceArtifact], - })); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': 'true', - }, -}); -new CdkpipelinesDemoPipelineStack(app, 'PipelineStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aC1hc3NldHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS13aXRoLWFzc2V0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlGQUF5RjtBQUN6Riw2QkFBNkI7QUFDN0IsNkRBQTZEO0FBQzdELDZFQUE2RTtBQUM3RSx5Q0FBeUM7QUFDekMsdURBQXVEO0FBQ3ZELDZDQUE2SDtBQUU3SCw4Q0FBOEM7QUFFOUMsTUFBTSxPQUFRLFNBQVEsbUJBQUs7SUFDekIsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFrQjtRQUMxRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUV4QixNQUFNLEtBQUssR0FBRyxJQUFJLG1CQUFLLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRTtZQUNyQyxHQUFHLEtBQUs7WUFDUixXQUFXLEVBQUUsSUFBSSxxQ0FBdUIsRUFBRTtTQUMzQyxDQUFDLENBQUM7UUFFSCxJQUFJLFNBQVMsQ0FBQyxLQUFLLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTtZQUNs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No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.js deleted file mode 100644 index 82d8868623cd6..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-stack-outputs-in-custom-step.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const cpactions = require("aws-cdk-lib/aws-codepipeline-actions"); -const ecr = require("aws-cdk-lib/aws-ecr"); -const lambda = require("aws-cdk-lib/aws-lambda"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const pipelines = require("aws-cdk-lib/pipelines"); -const pipelines_1 = require("aws-cdk-lib/pipelines"); -class CustomStep extends pipelines_1.Step { - constructor(stackOutput) { - super('CustomStep'); - this.stackOutput = stackOutput; - } - produceAction(stage, options) { - const [outputRef] = this.consumedStackOutputs; - const handler = new lambda.Function(options.scope, 'CustomFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - code: lambda.Code.fromInline(` - exports.handler = async (event) => { - console.log('Hello world.') - }; - `), - handler: 'index.handler', - }); - stage.addAction(new cpactions.LambdaInvokeAction({ - actionName: options.actionName, - runOrder: options.runOrder, - userParameters: { stackOutput: options.stackOutputsMap.toCodePipeline(outputRef) }, - lambda: handler, - })); - return { runOrdersConsumed: 1 }; - } - get consumedStackOutputs() { - return [pipelines.StackOutputReference.fromCfnOutput(this.stackOutput)]; - } -} -class AppStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack'); - this.output = new aws_cdk_lib_1.CfnOutput(stack, 'OutputVariable', { value: 'Hello' }); - } -} -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const repository = new ecr.Repository(this, 'Source', { removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.ecr(repository), - commands: ['mkdir cdk.out', 'touch cdk.out/dummy'], - }), - selfMutation: false, - }); - const stage = new AppStage(this, 'AppStage'); - const postStep = new CustomStep(stage.output); - // WHEN - pipeline.addStage(stage, { post: [postStep] }); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': '1', - }, -}); -const stack = new PipelineStack(app, 'StackOutputPipelineStack'); -new integ.IntegTest(app, 'PipelineWithCustomStepStackOutputTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aC1zdGFjay1vdXRwdXRzLWluLWN1c3RvbS1zdGVwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcucGlwZWxpbmUtd2l0aC1zdGFjay1vdXRwdXRzLWluLWN1c3RvbS1zdGVwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsa0VBQWtFO0FBQ2xFLDJDQUEyQztBQUMzQyxpREFBaUQ7QUFDakQsNkNBQWtHO0FBQ2xHLG9EQUFvRDtBQUVwRCxtREFBbUQ7QUFDbkQscURBQXlFO0FBR3pFLE1BQU0sVUFBVyxTQUFRLGdCQUFJO0l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b3N0U3RlcCA9IG5ldyBDdXN0b21TdGVwKHN0YWdlLm91dHB1dCk7XG5cbiAgICAvLyBXSEVOXG5cbiAgICBwaXBlbGluZS5hZGRTdGFnZShzdGFnZSwgeyBwb3N0OiBbcG9zdFN0ZXBdIH0pO1xuICB9XG59XG5cbmNvbnN0IGFwcCA9IG5ldyBBcHAoe1xuICBjb250ZXh0OiB7XG4gICAgJ0Bhd3MtY2RrL2NvcmU6bmV3U3R5bGVTdGFja1N5bnRoZXNpcyc6ICcxJyxcbiAgfSxcbn0pO1xuXG5jb25zdCBzdGFjayA9IG5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ1N0YWNrT3V0cHV0UGlwZWxpbmVTdGFjaycpO1xuXG5uZXcgaW50ZWcuSW50ZWdUZXN0KGFwcCwgJ1BpcGVsaW5lV2l0aEN1c3RvbVN0ZXBTdGFja091dHB1dFRlc3QnLCB7XG4gIHRlc3RDYXNlczogW3N0YWNrXSxcbn0pO1xuXG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.js deleted file mode 100644 index 4ed4e442aae3f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-with-variables.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -// eslint-disable-next-line import/no-extraneous-dependencies -/// !cdk-integ VariablePipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const codebuild = require("aws-cdk-lib/aws-codebuild"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const pipelines = require("aws-cdk-lib/pipelines"); -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.s3(sourceBucket, 'key'), - // input: pipelines.CodePipelineSource.gitHub('cdklabs/construct-hub-probe', 'main', { - // trigger: GitHubTrigger.POLL, - // }), - commands: ['mkdir cdk.out', 'touch cdk.out/dummy'], - }), - selfMutation: false, - }); - const cacheBucket = new s3.Bucket(this, 'TestCacheBucket'); - const producer = new pipelines.CodeBuildStep('Produce', { - commands: ['export MY_VAR=hello'], - cache: codebuild.Cache.bucket(cacheBucket), - }); - const consumer = new pipelines.CodeBuildStep('Consume', { - env: { - THE_VAR: producer.exportedVariable('MY_VAR'), - }, - commands: [ - 'echo "The variable was: $THE_VAR"', - ], - cache: codebuild.Cache.bucket(cacheBucket), - }); - // WHEN - pipeline.addWave('MyWave', { - post: [consumer, producer], - }); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': '1', - }, -}); -new PipelineStack(app, 'VariablePipelineStack'); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aC12YXJpYWJsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS13aXRoLXZhcmlhYmxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZEQUE2RDtBQUM3RCxpR0F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gbmV3IEFwcCh7XG4gIGNvbnRleHQ6IHtcbiAgICAnQGF3cy1jZGsvY29yZTpuZXdTdHlsZVN0YWNrU3ludGhlc2lzJzogJzEnLFxuICB9LFxufSk7XG5cbm5ldyBQaXBlbGluZVN0YWNrKGFwcCwgJ1ZhcmlhYmxlUGlwZWxpbmVTdGFjaycpO1xuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.d.ts deleted file mode 100644 index 53899645bd953..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as s3 from 'aws-cdk-lib/aws-s3'; -import { Stack, StackProps, Stage, StageProps } from 'aws-cdk-lib'; -import { Construct } from 'constructs'; -/** - * A test stack - * - * It contains a single Bucket. Such robust. Much uptime. - */ -export declare class BucketStack extends Stack { - readonly bucket: s3.IBucket; - constructor(scope: Construct, id: string, props?: StackProps); -} -export declare class PlainStackApp extends Stage { - constructor(scope: Construct, id: string, props?: StageProps); -} diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.js deleted file mode 100644 index 13c4759369c53..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline-without-prepare.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PlainStackApp = exports.BucketStack = void 0; -// eslint-disable-next-line import/no-extraneous-dependencies -/// !cdk-integ VarablePipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const pipelines = require("aws-cdk-lib/pipelines"); -/** - * A test stack - * - * It contains a single Bucket. Such robust. Much uptime. - */ -class BucketStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - this.bucket = new s3.Bucket(this, 'Bucket'); - } -} -exports.BucketStack = BucketStack; -class PlainStackApp extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - new BucketStack(this, 'Stack'); - } -} -exports.PlainStackApp = PlainStackApp; -class MyStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack', { - ...props, - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - new PlainStackApp(stack, 'MyApp'); - } -} -class PipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new pipelines.CodePipeline(this, 'Pipeline', { - synth: new pipelines.ShellStep('Synth', { - input: pipelines.CodePipelineSource.s3(sourceBucket, 'key'), - // input: pipelines.CodePipelineSource.gitHub('cdklabs/construct-hub-probe', 'main', { - // trigger: GitHubTrigger.POLL, - // }), - commands: ['mkdir cdk.out', 'touch cdk.out/dummy'], - }), - selfMutation: false, - useChangeSets: false, - }); - pipeline.addStage(new MyStage(this, 'MyStage', {})); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': '1', - }, -}); -const stack = new PipelineStack(app, 'PreparelessPipelineStack'); -new integ.IntegTest(app, 'PreparelessPipelineTest', { - testCases: [stack], -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUtd2l0aG91dC1wcmVwYXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJ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uXG5jb25zdCBhcHAgPSBuZXcgQXBwKHtcbiAgY29udGV4dDoge1xuICAgICdAYXdzLWNkay9jb3JlOm5ld1N0eWxlU3RhY2tTeW50aGVzaXMnOiAnMScsXG4gIH0sXG59KTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgUGlwZWxpbmVTdGFjayhhcHAsICdQcmVwYXJlbGVzc1BpcGVsaW5lU3RhY2snKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdQcmVwYXJlbGVzc1BpcGVsaW5lVGVzdCcsIHtcbiAgdGVzdENhc2VzOiBbc3RhY2tdLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.d.ts b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.js deleted file mode 100644 index 331212635b282..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.pipeline.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/// !cdk-integ PipelineStack pragma:set-context:@aws-cdk/core:newStyleStackSynthesis=true -const codepipeline = require("aws-cdk-lib/aws-codepipeline"); -const codepipeline_actions = require("aws-cdk-lib/aws-codepipeline-actions"); -const s3 = require("aws-cdk-lib/aws-s3"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const cdkp = require("aws-cdk-lib/pipelines"); -class MyStage extends aws_cdk_lib_1.Stage { - constructor(scope, id, props) { - super(scope, id, props); - const stack = new aws_cdk_lib_1.Stack(this, 'Stack', { - ...props, - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), - }); - new aws_cdk_lib_1.CfnResource(stack, 'Resource', { - type: 'AWS::Test::SomeResource', - }); - } -} -/** - * The stack that defines the application pipeline - */ -class CdkpipelinesDemoPipelineStack extends aws_cdk_lib_1.Stack { - constructor(scope, id, props) { - super(scope, id, props); - const sourceArtifact = new codepipeline.Artifact(); - const cloudAssemblyArtifact = new codepipeline.Artifact('CloudAsm'); - const integTestArtifact = new codepipeline.Artifact('IntegTests'); - const sourceBucket = new s3.Bucket(this, 'SourceBucket', { - removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY, - autoDeleteObjects: true, - }); - const pipeline = new cdkp.CdkPipeline(this, 'Pipeline', { - cloudAssemblyArtifact, - // Where the source can be found - sourceAction: new codepipeline_actions.S3SourceAction({ - bucket: sourceBucket, - output: sourceArtifact, - bucketKey: 'key', - actionName: 'S3', - }), - // How it will be built - synthAction: cdkp.SimpleSynthAction.standardNpmSynth({ - sourceArtifact, - cloudAssemblyArtifact, - projectName: 'MyServicePipeline-synth', - additionalArtifacts: [ - { - directory: 'test', - artifact: integTestArtifact, - }, - ], - }), - }); - // This is where we add the application stages - // ... - const stage = pipeline.addApplicationStage(new MyStage(this, 'PreProd')); - stage.addActions(new cdkp.ShellScriptAction({ - actionName: 'UseSource', - commands: [ - // Comes from source - 'cat README.md', - ], - additionalArtifacts: [sourceArtifact], - })); - } -} -const app = new aws_cdk_lib_1.App({ - context: { - '@aws-cdk/core:newStyleStackSynthesis': 'true', - }, -}); -new CdkpipelinesDemoPipelineStack(app, 'PipelineStack', { - synthesizer: new aws_cdk_lib_1.DefaultStackSynthesizer(), -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcucGlwZWxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5waXBlbGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQ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Y2F0aW9uIHN0YWdlc1xuICAgIC8vIC4uLlxuICAgIGNvbnN0IHN0YWdlID0gcGlwZWxpbmUuYWRkQXBwbGljYXRpb25TdGFnZShuZXcgTXlTdGFnZSh0aGlzLCAnUHJlUHJvZCcpKTtcbiAgICBzdGFnZS5hZGRBY3Rpb25zKFxuICAgICAgbmV3IGNka3AuU2hlbGxTY3JpcHRBY3Rpb24oe1xuICAgICAgICBhY3Rpb25OYW1lOiAnVXNlU291cmNlJyxcbiAgICAgICAgY29tbWFuZHM6IFtcbiAgICAgICAgICAvLyBDb21lcyBmcm9tIHNvdXJjZVxuICAgICAgICAgICdjYXQgUkVBRE1FLm1kJyxcbiAgICAgICAgXSxcbiAgICAgICAgYWRkaXRpb25hbEFydGlmYWN0czogW3NvdXJjZUFydGlmYWN0XSxcbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cblxuY29uc3QgYXBwID0gbmV3IEFwcCh7XG4gIGNvbnRleHQ6IHtcbiAgICAnQGF3cy1jZGsvY29yZTpuZXdTdHlsZVN0YWNrU3ludGhlc2lzJzogJ3RydWUnLFxuICB9LFxufSk7XG5uZXcgQ2RrcGlwZWxpbmVzRGVtb1BpcGVsaW5lU3RhY2soYXBwLCAnUGlwZWxpbmVTdGFjaycsIHtcbiAgc3ludGhlc2l6ZXI6IG5ldyBEZWZhdWx0U3RhY2tTeW50aGVzaXplcigpLFxufSk7XG5hcHAuc3ludGgoKTtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.d.ts b/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.d.ts deleted file mode 100644 index cb0ff5c3b541f..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.js b/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.js deleted file mode 100644 index f5b546cacecea..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/triggers/test/integ.triggers.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const lambda = require("aws-cdk-lib/aws-lambda"); -const sns = require("aws-cdk-lib/aws-sns"); -const sqs = require("aws-cdk-lib/aws-sqs"); -const aws_cdk_lib_1 = require("aws-cdk-lib"); -const integ = require("@aws-cdk/integ-tests-alpha"); -const triggers = require("aws-cdk-lib/triggers"); -const app = new aws_cdk_lib_1.App(); -const stack = new aws_cdk_lib_1.Stack(app, 'MyStack'); -const topic1 = new sns.Topic(stack, 'Topic1'); -const topic2 = new sns.Topic(stack, 'Topic2'); -const triggerFunction = new triggers.TriggerFunction(stack, 'MyTriggerFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.handler', - code: lambda.Code.fromInline('exports.handler = function() { console.log("hi"); };'), - executeBefore: [topic1], -}); -const assertionQueue = new sqs.Queue(stack, 'TestQueue', { - queueName: 'trigger-assertion-queue', -}); -const func = new lambda.Function(stack, 'MyLambdaFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.handler', - timeout: aws_cdk_lib_1.Duration.minutes(15), - code: lambda.Code.fromInline('exports.handler = async function() { await setTimeout(() => {console.log("hi")}, 3*60*1000); };'), -}); -const trigger = new triggers.Trigger(stack, 'MyTrigger', { - handler: func, - invocationType: triggers.InvocationType.EVENT, - timeout: aws_cdk_lib_1.Duration.minutes(1), - executeAfter: [topic1], -}); -const funcWithAssertion = new lambda.Function(stack, 'MyAssertionLambdaFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.handler', - timeout: aws_cdk_lib_1.Duration.minutes(15), - code: lambda.Code.fromAsset('lib'), - environment: { - QUEUE_URL: assertionQueue.queueUrl, - }, -}); -assertionQueue.grantSendMessages(funcWithAssertion); -new triggers.Trigger(stack, 'MyAssertionTrigger', { - handler: funcWithAssertion, - invocationType: triggers.InvocationType.REQUEST_RESPONSE, - timeout: aws_cdk_lib_1.Duration.minutes(1), - executeAfter: [assertionQueue], -}); -triggerFunction.executeAfter(topic2); -trigger.executeAfter(topic2); -new triggers.TriggerFunction(stack, 'MySecondFunction', { - runtime: lambda.Runtime.NODEJS_16_X, - handler: 'index.handler', - code: lambda.Code.fromInline('exports.handler = function() { console.log("hello"); };'), -}); -new triggers.Trigger(stack, 'MyDefaultPropTrigger', { - handler: func, -}); -const testCase = new integ.IntegTest(app, 'TriggerTest', { - testCases: [stack], -}); -testCase.assertions.awsApiCall('SQS', 'receiveMessage', { - QueueUrl: assertionQueue.queueUrl, - WaitTimeSeconds: 20, -}).assertAtPath('Messages.0.Body', integ.ExpectedResult.stringLikeRegexp('^hello world!$')).waitForAssertions({ - totalTimeout: aws_cdk_lib_1.Duration.minutes(5), - interval: aws_cdk_lib_1.Duration.seconds(15), - backoffRate: 3, -}); -app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcudHJpZ2dlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy50cmlnZ2Vycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFpRDtBQUNqRCwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLDZDQUFtRDtBQUNuRCxvREFBb0Q7QUFDcEQsaURBQWlEO0FBRWpELE1BQU0sR0FBRyxHQUFHLElBQUksaUJBQUcsRUFBRSxDQUFDO0FBQ3RCLE1BQU0sS0FBSyxHQUFHLElBQUksbUJBQUssQ0FBQyxHQUFHLEVBQUUsU0FBUyxDQUFDLENBQUM7QUFFeEMsTUFBTSxNQUFNLEdBQUcsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQztBQUM5QyxNQUFNLE1BQU0sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUF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UXVldWUucXVldWVVcmwsXG4gIFdhaXRUaW1lU2Vjb25kczogMjAsXG59KS5hc3NlcnRBdFBhdGgoJ01lc3NhZ2VzLjAuQm9keScsIGludGVnLkV4cGVjdGVkUmVzdWx0LnN0cmluZ0xpa2VSZWdleHAoJ15oZWxsbyB3b3JsZCEkJykpLndhaXRGb3JBc3NlcnRpb25zKHtcbiAgdG90YWxUaW1lb3V0OiBEdXJhdGlvbi5taW51dGVzKDUpLFxuICBpbnRlcnZhbDogRHVyYXRpb24uc2Vjb25kcygxNSksXG4gIGJhY2tvZmZSYXRlOiAzLFxufSk7XG5cbmFwcC5zeW50aCgpO1xuIl19 \ No newline at end of file From 617110139f7b13023b4dff8d7bbe1d6ae1c4e4ff Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Fri, 7 Apr 2023 13:40:12 +0200 Subject: [PATCH 3/4] chore: raise memory limit for bump in pipeline build (#24982) Pipeline builds start with a version bump; this version bump ends up building the entire repository, which runs out of memory. Raise the memory for now. Refactoring this behavior is upcoming. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- buildspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yaml b/buildspec.yaml index 806c516e3e3ce..806a272451627 100644 --- a/buildspec.yaml +++ b/buildspec.yaml @@ -28,7 +28,7 @@ phases: build: commands: - codebuild-breakpoint - - 'if ${BUMP_CANDIDATE:-false}; then /bin/bash ./scripts/bump-candidate.sh; fi' + - 'if ${BUMP_CANDIDATE:-false}; then env NODE_OPTIONS="--max-old-space-size=8196 ${NODE_OPTIONS:-}" /bin/bash ./scripts/bump-candidate.sh; fi' - /bin/bash ./scripts/align-version.sh - /bin/bash ./build.sh post_build: From adc1a131c306eb3633a55b62cc301e276727a7da Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Fri, 7 Apr 2023 14:35:21 +0200 Subject: [PATCH 4/4] fix(cloudwatch): `p100` statistic is no longer recognized (#24981) Since #23095 (which was released in 2.66.0), the `p100` statistic is no longer rendered into Alarms. Fixes #24976. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-cdk-lib/aws-cloudwatch/lib/alarm.ts | 11 +- .../aws-cloudwatch/lib/private/statistic.ts | 137 +++++++----------- .../aws-cloudwatch/test/alarm.test.ts | 25 +++- .../aws-cloudwatch/test/metrics.test.ts | 5 +- 4 files changed, 86 insertions(+), 92 deletions(-) diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts index edbc0248d6a28..5dba63ebcec0c 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts @@ -422,10 +422,19 @@ function renderIfExtendedStatistic(statistic?: string): string | undefined { if (statistic === undefined) { return undefined; } const parsed = parseStatistic(statistic); + if (parsed.type === 'simple') { + // This statistic will have been rendered by renderIfSimpleStatistic + return undefined; + } + if (parsed.type === 'single' || parsed.type === 'pair') { return normalizeStatistic(parsed); } - return undefined; + + // We can't not render anything here. Just put whatever we got as input into + // the ExtendedStatistic and hope it's correct. Either that, or we throw + // an error. + return parsed.statistic; } function mathExprHasSubmetrics(expr: MetricExpressionConfig) { diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts index db3bc69e45ffa..395f347e97ebf 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts @@ -60,30 +60,34 @@ function parseSingleStatistic(statistic: string, prefix: string): Omit 100) { + return undefined; + } + return { + type: 'single', + rawStatistic: statistic, + statPrefix: prefixLower, + value, + }; } +/** + * Parse a statistic that looks like `tm( LOWER : UPPER )`. + */ function parsePairStatistic(statistic: string, prefix: string): Omit | undefined { - const prefixUpper = prefix.toUpperCase(); - - // Allow `tm(10%:90%)` lowercase - statistic = statistic.toUpperCase(); - - if (!statistic.startsWith(prefixUpper)) { + const r = new RegExp(`^${prefix}\\(([^)]+)\\)$`, 'i').exec(statistic); + if (!r) { return undefined; } @@ -91,87 +95,44 @@ function parsePairStatistic(statistic: string, prefix: string): Omit { + x = x.trim(); + if (!x) { + return [undefined, false]; + } + const value = parseFloat(x.replace(/%$/, '')); + const percent = x.endsWith('%'); + if (isNaN(value) || value < 0 || (percent && value > 100)) { + return ['fail', false]; + } + return [value, percent]; + }; - // TM(:99.999%) - // /TM\(:(\d{1,2}(?:\.\d+)?)%\)/ - // Note: this can be represented as a single stat! TM(:90%) = tm90 - r = new RegExp(`^${prefixUpper}\\(\\:(\\d{1,2}(?:\\.\\d+)?)%\\)$`).exec(statistic); - if (r) { - return { - ...common, - canBeSingleStat: true, - asSingleStatStr: `${prefix.toLowerCase()}${r[1]}`, - lower: undefined, - upper: parseFloat(r[1]), - isPercent: true, - }; + const [lower, lhsPercent] = parseNumberAndPercent(lhs); + const [upper, rhsPercent] = parseNumberAndPercent(rhs); + if (lower === 'fail' || upper === 'fail' || (lower === undefined && upper === undefined)) { + return undefined; } - // TM(99.999:99.999) - // /TM\((\d{1,2}(?:\.\d+)?):(\d{1,2}(?:\.\d+)?)\)/ - r = new RegExp(`^${prefixUpper}\\((\\d+(?:\\.\\d+)?)\\:(\\d+(?:\\.\\d+)?)\\)$`).exec(statistic); - if (r) { - return { - ...common, - lower: parseFloat(r[1]), - upper: parseFloat(r[2]), - isPercent: false, - }; + if (lower !== undefined && upper !== undefined && lhsPercent !== rhsPercent) { + // If one value is a percentage, the other one must be too + return undefined; } - // TM(99.999%:99.999%) - // /TM\((\d{1,2}(?:\.\d+)?)%:(\d{1,2}(?:\.\d+)?)%\)/ - r = new RegExp(`^${prefixUpper}\\((\\d{1,2}(?:\\.\\d+)?)%\\:(\\d{1,2}(?:\\.\\d+)?)%\\)$`).exec(statistic); - if (r) { - return { - ...common, - lower: parseFloat(r[1]), - upper: parseFloat(r[2]), - isPercent: true, - }; - } + const isPercent = lhsPercent || rhsPercent; + const canBeSingleStat = lower === undefined && isPercent; + const asSingleStatStr = canBeSingleStat ? `${prefix.toLowerCase()}${upper}` : undefined; - return undefined; + return { ...common, lower, upper, isPercent, canBeSingleStat, asSingleStatStr }; } export function singleStatisticToString(parsed: SingleStatistic): string { diff --git a/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts b/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts index ca88d9fbf398b..20abf413488c0 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts @@ -1,6 +1,6 @@ +import { Construct } from 'constructs'; import { Match, Template, Annotations } from '../../assertions'; import { Duration, Stack } from '../../core'; -import { Construct } from 'constructs'; import { Alarm, IAlarm, IAlarmAction, Metric, MathExpression, IMetric, Stats } from '../lib'; const testMetric = new Metric({ @@ -359,6 +359,29 @@ describe('Alarm', () => { const template = Annotations.fromStack(stack); template.hasWarning('/MyStack/MyAlarm', Match.stringLikeRegexp("Math expression 'oops' references unknown identifiers")); }); + + test('check alarm for p100 statistic', () => { + const stack = new Stack(undefined, 'MyStack'); + new Alarm(stack, 'MyAlarm', { + metric: new Metric({ + dimensionsMap: { + Boop: 'boop', + }, + metricName: 'MyMetric', + namespace: 'MyNamespace', + period: Duration.minutes(1), + statistic: Stats.p(100), + }), + evaluationPeriods: 1, + threshold: 1, + }); + + // THEN + const template = Template.fromStack(stack); + template.hasResourceProperties('AWS::CloudWatch::Alarm', { + ExtendedStatistic: 'p100', + }); + }); }); class TestAlarmAction implements IAlarmAction { diff --git a/packages/aws-cdk-lib/aws-cloudwatch/test/metrics.test.ts b/packages/aws-cdk-lib/aws-cloudwatch/test/metrics.test.ts index 17e07609043bb..374364f3727a0 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/test/metrics.test.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/test/metrics.test.ts @@ -288,6 +288,7 @@ describe('Metrics', () => { checkParsingSingle('p99', 'p', 'percentile', 99); checkParsingSingle('P99', 'p', 'percentile', 99); checkParsingSingle('p99.99', 'p', 'percentile', 99.99); + checkParsingSingle('p100', 'p', 'percentile', 100); checkParsingSingle('tm99', 'tm', 'trimmedMean', 99); checkParsingSingle('wm99', 'wm', 'winsorizedMean', 99); checkParsingSingle('tc99', 'tc', 'trimmedCount', 99); @@ -337,8 +338,8 @@ describe('Metrics', () => { expect(parseStatistic('TM(10%:1500)').type).toEqual('generic'); expect(parseStatistic('TM(10)').type).toEqual('generic'); expect(parseStatistic('TM()').type).toEqual('generic'); - expect(parseStatistic('TM(0.:)').type).toEqual('generic'); - expect(parseStatistic('TM(:0.)').type).toEqual('generic'); + expect(parseStatistic('TM(0.:)').type).toEqual('pair'); + expect(parseStatistic('TM(:0.)').type).toEqual('pair'); expect(parseStatistic('()').type).toEqual('generic'); expect(parseStatistic('(:)').type).toEqual('generic'); expect(parseStatistic('TM(:)').type).toEqual('generic');