diff --git a/test/__snapshots__/integ.snapshot.test.ts.snap b/test/__snapshots__/integ.snapshot.test.ts.snap deleted file mode 100644 index acb5b65..0000000 --- a/test/__snapshots__/integ.snapshot.test.ts.snap +++ /dev/null @@ -1,1730 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`integ snapshot validation 1`] = ` -Object { - "Parameters": Object { - "BootstrapVersion": Object { - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store.", - "Type": "AWS::SSM::Parameter::Value", - }, - }, - "Resources": Object { - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70DC15ED41": Object { - "DependsOn": Array [ - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRoleDefaultPolicy57248D6C", - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRole2F2A10DB", - ], - "Properties": Object { - "Code": Object { - "S3Bucket": "cdk-hnb659fds-assets-123pipeline-us-pipeline", - "S3Key": "392e2627a26f124347194605f96c8ed33d4552afcc2339b700ce6d6ce351eac1.zip", - }, - "Handler": "main.handler", - "Role": Object { - "Fn::GetAtt": Array [ - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRole2F2A10DB", - "Arn", - ], - }, - "Runtime": "nodejs10.x", - "Timeout": 900, - }, - "Type": "AWS::Lambda::Function", - }, - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRole2F2A10DB": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "lambda.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - "ManagedPolicyArns": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - ], - ], - }, - ], - }, - "Type": "AWS::IAM::Role", - }, - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRoleDefaultPolicy57248D6C": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject*", - "s3:Abort*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRoleDefaultPolicy57248D6C", - "Roles": Array [ - Object { - "Ref": "AutoBucket7677dc81117d41c0b75bdb11cb84bb70ServiceRole2F2A10DB", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "CdkPipelineUpdatePipelineSelfMutation81360810": Object { - "Properties": Object { - "Artifacts": Object { - "Type": "CODEPIPELINE", - }, - "EncryptionKey": "alias/aws/s3", - "Environment": Object { - "ComputeType": "BUILD_GENERAL1_SMALL", - "Image": "aws/codebuild/standard:4.0", - "ImagePullCredentialsType": "CODEBUILD", - "PrivilegedMode": false, - "Type": "LINUX_CONTAINER", - }, - "ServiceRole": Object { - "Fn::GetAtt": Array [ - "CdkPipelineUpdatePipelineSelfMutationRole9B65198C", - "Arn", - ], - }, - "Source": Object { - "BuildSpec": "{ - \\"version\\": \\"0.2\\", - \\"phases\\": { - \\"install\\": { - \\"commands\\": \\"npm install -g aws-cdk\\" - }, - \\"build\\": { - \\"commands\\": [ - \\"cdk -a . deploy PipelineStack --require-approval=never --verbose\\" - ] - } - } -}", - "Type": "CODEPIPELINE", - }, - }, - "Type": "AWS::CodeBuild::Project", - }, - "CdkPipelineUpdatePipelineSelfMutationRole9B65198C": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "codebuild.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "CdkPipelineUpdatePipelineSelfMutationRoleDefaultPolicyAA8CCA2A": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "CdkPipelineUpdatePipelineSelfMutation81360810", - }, - ], - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "CdkPipelineUpdatePipelineSelfMutation81360810", - }, - ":*", - ], - ], - }, - ], - }, - Object { - "Action": Array [ - "codebuild:CreateReportGroup", - "codebuild:CreateReport", - "codebuild:UpdateReport", - "codebuild:BatchPutTestCases", - "codebuild:BatchPutCodeCoverages", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":codebuild:us-pipeline:123pipeline:report-group/", - Object { - "Ref": "CdkPipelineUpdatePipelineSelfMutation81360810", - }, - "-*", - ], - ], - }, - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Array [ - "arn:*:iam::*:role/*-deploy-role-*", - "arn:*:iam::*:role/*-publishing-role-*", - ], - }, - Object { - "Action": "cloudformation:DescribeStacks", - "Effect": "Allow", - "Resource": "*", - }, - Object { - "Action": "s3:ListBucket", - "Effect": "Allow", - "Resource": "*", - }, - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "CdkPipelineUpdatePipelineSelfMutationRoleDefaultPolicyAA8CCA2A", - "Roles": Array [ - Object { - "Ref": "CdkPipelineUpdatePipelineSelfMutationRole9B65198C", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipeBucket9BE9B45C": Object { - "DeletionPolicy": "Delete", - "Properties": Object { - "VersioningConfiguration": Object { - "Status": "Enabled", - }, - }, - "Type": "AWS::S3::Bucket", - "UpdateReplacePolicy": "Delete", - }, - "PipeBucketAutoBucket68614A3E": Object { - "DeletionPolicy": "Delete", - "Properties": Object { - "BucketName": Object { - "Ref": "PipeBucket9BE9B45C", - }, - "ServiceToken": Object { - "Fn::GetAtt": Array [ - "AutoBucket7677dc81117d41c0b75bdb11cb84bb70DC15ED41", - "Arn", - ], - }, - }, - "Type": "Custom::AutoDeleteBucket", - "UpdateReplacePolicy": "Delete", - }, - "PipelineBuildSynthCdkBuildProject1250E181": Object { - "Properties": Object { - "Artifacts": Object { - "Type": "CODEPIPELINE", - }, - "EncryptionKey": "alias/aws/s3", - "Environment": Object { - "ComputeType": "BUILD_GENERAL1_SMALL", - "Image": "aws/codebuild/standard:4.0", - "ImagePullCredentialsType": "CODEBUILD", - "PrivilegedMode": false, - "Type": "LINUX_CONTAINER", - }, - "ServiceRole": Object { - "Fn::GetAtt": Array [ - "PipelineBuildSynthCdkBuildProjectRole808C155A", - "Arn", - ], - }, - "Source": Object { - "BuildSpec": "{ - \\"version\\": \\"0.2\\", - \\"phases\\": { - \\"pre_build\\": { - \\"commands\\": [ - \\"yarn install && yarn global add aws-cdk\\" - ] - }, - \\"build\\": { - \\"commands\\": [ - \\"yarn synth\\" - ] - } - }, - \\"artifacts\\": { - \\"base-directory\\": \\"tmp/cdk.outw0cBDA\\", - \\"files\\": \\"**/*\\" - } -}", - "Type": "CODEPIPELINE", - }, - }, - "Type": "AWS::CodeBuild::Project", - }, - "PipelineBuildSynthCdkBuildProjectRole808C155A": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "codebuild.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelineBuildSynthCdkBuildProjectRoleDefaultPolicyE35C3CF9": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelineBuildSynthCdkBuildProject1250E181", - }, - ], - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelineBuildSynthCdkBuildProject1250E181", - }, - ":*", - ], - ], - }, - ], - }, - Object { - "Action": Array [ - "codebuild:CreateReportGroup", - "codebuild:CreateReport", - "codebuild:UpdateReport", - "codebuild:BatchPutTestCases", - "codebuild:BatchPutCodeCoverages", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":codebuild:us-pipeline:123pipeline:report-group/", - Object { - "Ref": "PipelineBuildSynthCdkBuildProject1250E181", - }, - "-*", - ], - ], - }, - }, - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject*", - "s3:Abort*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelineBuildSynthCdkBuildProjectRoleDefaultPolicyE35C3CF9", - "Roles": Array [ - Object { - "Ref": "PipelineBuildSynthCdkBuildProjectRole808C155A", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelineBuildSynthCodePipelineActionRoleA0A9CB64": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "AWS": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::123pipeline:root", - ], - ], - }, - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelineBuildSynthCodePipelineActionRoleDefaultPolicy883FAA33": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "codebuild:BatchGetBuilds", - "codebuild:StartBuild", - "codebuild:StopBuild", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelineBuildSynthCdkBuildProject1250E181", - "Arn", - ], - }, - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelineBuildSynthCodePipelineActionRoleDefaultPolicy883FAA33", - "Roles": Array [ - Object { - "Ref": "PipelineBuildSynthCodePipelineActionRoleA0A9CB64", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelineC660917D": Object { - "DependsOn": Array [ - "PipelineRoleDefaultPolicyC7A05455", - "PipelineRoleD68726F7", - ], - "Properties": Object { - "ArtifactStores": Array [ - Object { - "ArtifactStore": Object { - "EncryptionKey": Object { - "Id": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":kms:eu-central-1:123pipeline:alias/port-eu-tencryptionaliasa2f2b097cd95908c236c", - ], - ], - }, - "Type": "KMS", - }, - "Location": "pipelinestack-support-eu-eplicationbucketcb9be538e956735f6679", - "Type": "S3", - }, - "Region": "eu-central-1", - }, - Object { - "ArtifactStore": Object { - "Location": Object { - "Ref": "PipeBucket9BE9B45C", - }, - "Type": "S3", - }, - "Region": "us-pipeline", - }, - ], - "RestartExecutionOnUpdate": true, - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelineRoleD68726F7", - "Arn", - ], - }, - "Stages": Array [ - Object { - "Actions": Array [ - Object { - "ActionTypeId": Object { - "Category": "Source", - "Owner": "ThirdParty", - "Provider": "GitHub", - "Version": "1", - }, - "Configuration": Object { - "Branch": "master", - "OAuthToken": "repo-token", - "Owner": "mmuller88", - "PollForSourceChanges": false, - "Repo": "aws-cdk-staging-pipeline", - }, - "Name": "GithubSource", - "OutputArtifacts": Array [ - Object { - "Name": "Artifact_Source_GithubSource", - }, - ], - "RunOrder": 1, - }, - ], - "Name": "Source", - }, - Object { - "Actions": Array [ - Object { - "ActionTypeId": Object { - "Category": "Build", - "Owner": "AWS", - "Provider": "CodeBuild", - "Version": "1", - }, - "Configuration": Object { - "EnvironmentVariables": "[{\\"name\\":\\"_PROJECT_CONFIG_HASH\\",\\"type\\":\\"PLAINTEXT\\",\\"value\\":\\"865c11285ed089c2810307b09d00b3046411dd56fc76b43c5190c3fd30f5d065\\"}]", - "ProjectName": Object { - "Ref": "PipelineBuildSynthCdkBuildProject1250E181", - }, - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Source_GithubSource", - }, - ], - "Name": "Synth", - "OutputArtifacts": Array [ - Object { - "Name": "Artifact_Build_Synth", - }, - ], - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelineBuildSynthCodePipelineActionRoleA0A9CB64", - "Arn", - ], - }, - "RunOrder": 1, - }, - ], - "Name": "Build", - }, - Object { - "Actions": Array [ - Object { - "ActionTypeId": Object { - "Category": "Build", - "Owner": "AWS", - "Provider": "CodeBuild", - "Version": "1", - }, - "Configuration": Object { - "ProjectName": Object { - "Ref": "CdkPipelineUpdatePipelineSelfMutation81360810", - }, - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Build_Synth", - }, - ], - "Name": "SelfMutate", - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelineUpdatePipelineSelfMutateCodePipelineActionRole258195B5", - "Arn", - ], - }, - "RunOrder": 1, - }, - ], - "Name": "UpdatePipeline", - }, - Object { - "Actions": Array [ - Object { - "ActionTypeId": Object { - "Category": "Build", - "Owner": "AWS", - "Provider": "CodeBuild", - "Version": "1", - }, - "Configuration": Object { - "PrimarySource": "Artifact_Source_GithubSource", - "ProjectName": Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4", - }, - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Source_GithubSource", - }, - Object { - "Name": "Artifact_PipelineStackPipelineStackdevTestCustomStack90A38BA3_Outputs", - }, - ], - "Name": "RunTestCommands", - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleCD4A5CE2", - "Arn", - ], - }, - "RunOrder": 3, - }, - Object { - "ActionTypeId": Object { - "Category": "Deploy", - "Owner": "AWS", - "Provider": "CloudFormation", - "Version": "1", - }, - "Configuration": Object { - "ActionMode": "CHANGE_SET_REPLACE", - "Capabilities": "CAPABILITY_NAMED_IAM,CAPABILITY_AUTO_EXPAND", - "ChangeSetName": "PipelineChange", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-cfn-exec-role-1233334-eu-central-1", - ], - ], - }, - "StackName": "PipelineStack-dev-TestCustomStack", - "TemplatePath": "Artifact_Build_Synth::assembly-PipelineStack-PipelineStack-dev/PipelineStackPipelineStackdevTestCustomStack90A38BA3.template.json", - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Build_Synth", - }, - ], - "Name": "TestCustomStack.Prepare", - "Region": "eu-central-1", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-deploy-role-1233334-eu-central-1", - ], - ], - }, - "RunOrder": 1, - }, - Object { - "ActionTypeId": Object { - "Category": "Deploy", - "Owner": "AWS", - "Provider": "CloudFormation", - "Version": "1", - }, - "Configuration": Object { - "ActionMode": "CHANGE_SET_EXECUTE", - "ChangeSetName": "PipelineChange", - "OutputFileName": "outputs.json", - "StackName": "PipelineStack-dev-TestCustomStack", - }, - "Name": "TestCustomStack.Deploy", - "OutputArtifacts": Array [ - Object { - "Name": "Artifact_PipelineStackPipelineStackdevTestCustomStack90A38BA3_Outputs", - }, - ], - "Region": "eu-central-1", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-deploy-role-1233334-eu-central-1", - ], - ], - }, - "RunOrder": 2, - }, - ], - "Name": "PipelineStack-dev", - }, - Object { - "Actions": Array [ - Object { - "ActionTypeId": Object { - "Category": "Approval", - "Owner": "AWS", - "Provider": "Manual", - "Version": "1", - }, - "Name": "ManualApproval", - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodManualApprovalCodePipelineActionRoleF8189188", - "Arn", - ], - }, - "RunOrder": 2, - }, - Object { - "ActionTypeId": Object { - "Category": "Build", - "Owner": "AWS", - "Provider": "CodeBuild", - "Version": "1", - }, - "Configuration": Object { - "PrimarySource": "Artifact_Source_GithubSource", - "ProjectName": Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsProject3FC92782", - }, - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Source_GithubSource", - }, - Object { - "Name": "Artifact_PipelineStackPipelineStackprodTestCustomStack78675A32_Outputs", - }, - ], - "Name": "RunTestCommands", - "RoleArn": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDBAA1CDB", - "Arn", - ], - }, - "RunOrder": 4, - }, - Object { - "ActionTypeId": Object { - "Category": "Deploy", - "Owner": "AWS", - "Provider": "CloudFormation", - "Version": "1", - }, - "Configuration": Object { - "ActionMode": "CHANGE_SET_REPLACE", - "Capabilities": "CAPABILITY_NAMED_IAM,CAPABILITY_AUTO_EXPAND", - "ChangeSetName": "PipelineChange", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-cfn-exec-role-1233334-eu-central-1", - ], - ], - }, - "StackName": "PipelineStack-prod-TestCustomStack", - "TemplatePath": "Artifact_Build_Synth::assembly-PipelineStack-PipelineStack-prod/PipelineStackPipelineStackprodTestCustomStack78675A32.template.json", - }, - "InputArtifacts": Array [ - Object { - "Name": "Artifact_Build_Synth", - }, - ], - "Name": "TestCustomStack.Prepare", - "Region": "eu-central-1", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-deploy-role-1233334-eu-central-1", - ], - ], - }, - "RunOrder": 1, - }, - Object { - "ActionTypeId": Object { - "Category": "Deploy", - "Owner": "AWS", - "Provider": "CloudFormation", - "Version": "1", - }, - "Configuration": Object { - "ActionMode": "CHANGE_SET_EXECUTE", - "ChangeSetName": "PipelineChange", - "OutputFileName": "outputs.json", - "StackName": "PipelineStack-prod-TestCustomStack", - }, - "Name": "TestCustomStack.Deploy", - "OutputArtifacts": Array [ - Object { - "Name": "Artifact_PipelineStackPipelineStackprodTestCustomStack78675A32_Outputs", - }, - ], - "Region": "eu-central-1", - "RoleArn": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-deploy-role-1233334-eu-central-1", - ], - ], - }, - "RunOrder": 3, - }, - ], - "Name": "PipelineStack-prod", - }, - ], - }, - "Type": "AWS::CodePipeline::Pipeline", - }, - "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleCD4A5CE2": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "AWS": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::123pipeline:root", - ], - ], - }, - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleDefaultPolicyFF9F0516": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "codebuild:BatchGetBuilds", - "codebuild:StartBuild", - "codebuild:StopBuild", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4", - "Arn", - ], - }, - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleDefaultPolicyFF9F0516", - "Roles": Array [ - Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleCD4A5CE2", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4": Object { - "Properties": Object { - "Artifacts": Object { - "Type": "CODEPIPELINE", - }, - "EncryptionKey": "alias/aws/s3", - "Environment": Object { - "ComputeType": "BUILD_GENERAL1_SMALL", - "Image": "aws/codebuild/standard:4.0", - "ImagePullCredentialsType": "CODEBUILD", - "PrivilegedMode": false, - "Type": "LINUX_CONTAINER", - }, - "ServiceRole": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackdevRunTestCommandsProjectRoleB300F73F", - "Arn", - ], - }, - "Source": Object { - "BuildSpec": "{ - \\"version\\": \\"0.2\\", - \\"phases\\": { - \\"build\\": { - \\"commands\\": [ - \\"set -eu\\", - \\"export Blub=\\\\\\"$(node -pe 'require(process.env.CODEBUILD_SRC_DIR_Artifact_PipelineStackPipelineStackdevTestCustomStack90A38BA3_Outputs + \\\\\\"/outputs.json\\\\\\")[\\\\\\"OutputBlub\\\\\\"]')\\\\\\"\\", - \\"echo $Blub\\" - ] - } - } -}", - "Type": "CODEPIPELINE", - }, - }, - "Type": "AWS::CodeBuild::Project", - }, - "PipelinePipelineStackdevRunTestCommandsProjectRoleB300F73F": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "codebuild.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelinePipelineStackdevRunTestCommandsProjectRoleDefaultPolicyFAA5ED18": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4", - }, - ], - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4", - }, - ":*", - ], - ], - }, - ], - }, - Object { - "Action": Array [ - "codebuild:CreateReportGroup", - "codebuild:CreateReport", - "codebuild:UpdateReport", - "codebuild:BatchPutTestCases", - "codebuild:BatchPutCodeCoverages", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":codebuild:us-pipeline:123pipeline:report-group/", - Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsProjectB0F81DB4", - }, - "-*", - ], - ], - }, - }, - Object { - "Action": "*", - "Effect": "Allow", - "Resource": "*", - }, - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelinePipelineStackdevRunTestCommandsProjectRoleDefaultPolicyFAA5ED18", - "Roles": Array [ - Object { - "Ref": "PipelinePipelineStackdevRunTestCommandsProjectRoleB300F73F", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelinePipelineStackprodManualApprovalCodePipelineActionRoleF8189188": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "AWS": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::123pipeline:root", - ], - ], - }, - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDBAA1CDB": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "AWS": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::123pipeline:root", - ], - ], - }, - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDefaultPolicy049F5CA8": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "codebuild:BatchGetBuilds", - "codebuild:StartBuild", - "codebuild:StopBuild", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodRunTestCommandsProject3FC92782", - "Arn", - ], - }, - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDefaultPolicy049F5CA8", - "Roles": Array [ - Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDBAA1CDB", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelinePipelineStackprodRunTestCommandsProject3FC92782": Object { - "Properties": Object { - "Artifacts": Object { - "Type": "CODEPIPELINE", - }, - "EncryptionKey": "alias/aws/s3", - "Environment": Object { - "ComputeType": "BUILD_GENERAL1_SMALL", - "Image": "aws/codebuild/standard:4.0", - "ImagePullCredentialsType": "CODEBUILD", - "PrivilegedMode": false, - "Type": "LINUX_CONTAINER", - }, - "ServiceRole": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodRunTestCommandsProjectRoleD5A6CF47", - "Arn", - ], - }, - "Source": Object { - "BuildSpec": "{ - \\"version\\": \\"0.2\\", - \\"phases\\": { - \\"build\\": { - \\"commands\\": [ - \\"set -eu\\", - \\"export Blub=\\\\\\"$(node -pe 'require(process.env.CODEBUILD_SRC_DIR_Artifact_PipelineStackPipelineStackprodTestCustomStack78675A32_Outputs + \\\\\\"/outputs.json\\\\\\")[\\\\\\"OutputBlub\\\\\\"]')\\\\\\"\\", - \\"echo $Blub\\" - ] - } - } -}", - "Type": "CODEPIPELINE", - }, - }, - "Type": "AWS::CodeBuild::Project", - }, - "PipelinePipelineStackprodRunTestCommandsProjectRoleD5A6CF47": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "codebuild.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelinePipelineStackprodRunTestCommandsProjectRoleDefaultPolicyDF4939FC": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsProject3FC92782", - }, - ], - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":logs:us-pipeline:123pipeline:log-group:/aws/codebuild/", - Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsProject3FC92782", - }, - ":*", - ], - ], - }, - ], - }, - Object { - "Action": Array [ - "codebuild:CreateReportGroup", - "codebuild:CreateReport", - "codebuild:UpdateReport", - "codebuild:BatchPutTestCases", - "codebuild:BatchPutCodeCoverages", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":codebuild:us-pipeline:123pipeline:report-group/", - Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsProject3FC92782", - }, - "-*", - ], - ], - }, - }, - Object { - "Action": "*", - "Effect": "Allow", - "Resource": "*", - }, - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelinePipelineStackprodRunTestCommandsProjectRoleDefaultPolicyDF4939FC", - "Roles": Array [ - Object { - "Ref": "PipelinePipelineStackprodRunTestCommandsProjectRoleD5A6CF47", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelineRoleD68726F7": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "Service": "codepipeline.amazonaws.com", - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelineRoleDefaultPolicyC7A05455": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject*", - "s3:Abort*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - Object { - "Fn::GetAtt": Array [ - "PipeBucket9BE9B45C", - "Arn", - ], - }, - "/*", - ], - ], - }, - ], - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelineBuildSynthCodePipelineActionRoleA0A9CB64", - "Arn", - ], - }, - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelineUpdatePipelineSelfMutateCodePipelineActionRole258195B5", - "Arn", - ], - }, - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackdevRunTestCommandsCodePipelineActionRoleCD4A5CE2", - "Arn", - ], - }, - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodManualApprovalCodePipelineActionRoleF8189188", - "Arn", - ], - }, - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "PipelinePipelineStackprodRunTestCommandsCodePipelineActionRoleDBAA1CDB", - "Arn", - ], - }, - }, - Object { - "Action": Array [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject*", - "s3:Abort*", - ], - "Effect": "Allow", - "Resource": Array [ - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":s3:::pipelinestack-support-eu-eplicationbucketcb9be538e956735f6679", - ], - ], - }, - Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":s3:::pipelinestack-support-eu-eplicationbucketcb9be538e956735f6679/*", - ], - ], - }, - ], - }, - Object { - "Action": Array [ - "kms:Decrypt", - "kms:DescribeKey", - "kms:Encrypt", - "kms:ReEncrypt*", - "kms:GenerateDataKey*", - ], - "Effect": "Allow", - "Resource": "*", - }, - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Resource": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::1233334:role/cdk-hnb659fds-deploy-role-1233334-eu-central-1", - ], - ], - }, - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelineRoleDefaultPolicyC7A05455", - "Roles": Array [ - Object { - "Ref": "PipelineRoleD68726F7", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - "PipelineSourceGithubSourceWebhookResource05FA5D46": Object { - "Properties": Object { - "Authentication": "GITHUB_HMAC", - "AuthenticationConfiguration": Object { - "SecretToken": "repo-token", - }, - "Filters": Array [ - Object { - "JsonPath": "$.ref", - "MatchEquals": "refs/heads/{Branch}", - }, - ], - "RegisterWithThirdParty": true, - "TargetAction": "GithubSource", - "TargetPipeline": Object { - "Ref": "PipelineC660917D", - }, - "TargetPipelineVersion": 1, - }, - "Type": "AWS::CodePipeline::Webhook", - }, - "PipelineUpdatePipelineSelfMutateCodePipelineActionRole258195B5": Object { - "Properties": Object { - "AssumeRolePolicyDocument": Object { - "Statement": Array [ - Object { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": Object { - "AWS": Object { - "Fn::Join": Array [ - "", - Array [ - "arn:", - Object { - "Ref": "AWS::Partition", - }, - ":iam::123pipeline:root", - ], - ], - }, - }, - }, - ], - "Version": "2012-10-17", - }, - }, - "Type": "AWS::IAM::Role", - }, - "PipelineUpdatePipelineSelfMutateCodePipelineActionRoleDefaultPolicyE2077DE3": Object { - "Properties": Object { - "PolicyDocument": Object { - "Statement": Array [ - Object { - "Action": Array [ - "codebuild:BatchGetBuilds", - "codebuild:StartBuild", - "codebuild:StopBuild", - ], - "Effect": "Allow", - "Resource": Object { - "Fn::GetAtt": Array [ - "CdkPipelineUpdatePipelineSelfMutation81360810", - "Arn", - ], - }, - }, - ], - "Version": "2012-10-17", - }, - "PolicyName": "PipelineUpdatePipelineSelfMutateCodePipelineActionRoleDefaultPolicyE2077DE3", - "Roles": Array [ - Object { - "Ref": "PipelineUpdatePipelineSelfMutateCodePipelineActionRole258195B5", - }, - ], - }, - "Type": "AWS::IAM::Policy", - }, - }, - "Rules": Object { - "CheckBootstrapVersion": Object { - "Assertions": Array [ - Object { - "Assert": Object { - "Fn::Not": Array [ - Object { - "Fn::Contains": Array [ - Array [ - "1", - "2", - "3", - ], - Object { - "Ref": "BootstrapVersion", - }, - ], - }, - ], - }, - "AssertDescription": "CDK bootstrap stack version 4 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", - }, - ], - }, - }, -} -`;