Skip to content

Commit

Permalink
Fix decdk snapshot test.
Browse files Browse the repository at this point in the history
  • Loading branch information
skinny85 committed Apr 11, 2019
1 parent 8082e7f commit b69e4e1
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions packages/decdk/test/__snapshots__/synth.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,22 @@ Object {
},
],
},
Object {
"Action": Array [
"kms:Decrypt",
"kms:DescribeKey",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
],
"Effect": "Allow",
"Resource": Object {
"Fn::GetAtt": Array [
"PipelineArtifactsBucketEncryptionKey01D58D69",
"Arn",
],
},
},
],
"Version": "2012-10-17",
},
Expand Down Expand Up @@ -1877,15 +1893,126 @@ Object {
},
"PipelineArtifactsBucket22248F97": Object {
"DeletionPolicy": "Retain",
"Properties": Object {
"BucketEncryption": Object {
"ServerSideEncryptionConfiguration": Array [
Object {
"ServerSideEncryptionByDefault": Object {
"KMSMasterKeyID": Object {
"Fn::GetAtt": Array [
"PipelineArtifactsBucketEncryptionKey01D58D69",
"Arn",
],
},
"SSEAlgorithm": "aws:kms",
},
},
],
},
},
"Type": "AWS::S3::Bucket",
},
"PipelineArtifactsBucketEncryptionKey01D58D69": Object {
"DeletionPolicy": "Retain",
"Properties": Object {
"KeyPolicy": Object {
"Statement": Array [
Object {
"Action": Array [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion",
],
"Effect": "Allow",
"Principal": Object {
"AWS": Object {
"Fn::Join": Array [
"",
Array [
"arn:",
Object {
"Ref": "AWS::Partition",
},
":iam::",
Object {
"Ref": "AWS::AccountId",
},
":root",
],
],
},
},
"Resource": "*",
},
Object {
"Action": Array [
"kms:Decrypt",
"kms:DescribeKey",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
],
"Effect": "Allow",
"Principal": Object {
"AWS": Object {
"Fn::GetAtt": Array [
"PipelineRoleD68726F7",
"Arn",
],
},
},
"Resource": "*",
},
Object {
"Action": Array [
"kms:Decrypt",
"kms:DescribeKey",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
],
"Effect": "Allow",
"Principal": Object {
"AWS": Object {
"Fn::GetAtt": Array [
"BuildProjectRoleAA92C755",
"Arn",
],
},
},
"Resource": "*",
},
],
"Version": "2012-10-17",
},
},
"Type": "AWS::KMS::Key",
},
"PipelineC660917D": Object {
"DependsOn": Array [
"PipelineRoleDefaultPolicyC7A05455",
"PipelineRoleD68726F7",
],
"Properties": Object {
"ArtifactStore": Object {
"EncryptionKey": Object {
"Id": Object {
"Fn::GetAtt": Array [
"PipelineArtifactsBucketEncryptionKey01D58D69",
"Arn",
],
},
"Type": "KMS",
},
"Location": Object {
"Ref": "PipelineArtifactsBucket22248F97",
},
Expand Down Expand Up @@ -2097,6 +2224,22 @@ Object {
},
],
},
Object {
"Action": Array [
"kms:Decrypt",
"kms:DescribeKey",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
],
"Effect": "Allow",
"Resource": Object {
"Fn::GetAtt": Array [
"PipelineArtifactsBucketEncryptionKey01D58D69",
"Arn",
],
},
},
Object {
"Action": Array [
"codecommit:GetBranch",
Expand Down

0 comments on commit b69e4e1

Please sign in to comment.