Skip to content

Commit

Permalink
Merge branch 'main' into remove-jest-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hnishar committed Sep 16, 2021
2 parents e3dc664 + c4c20e4 commit 2d769b1
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 526 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,63 +206,6 @@ test('check the sns topic properties with existing KMS key', () => {
});

expect(stack).toHaveResource('AWS::KMS::Key', {
KeyPolicy: {
Statement: [
{
Action: [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion",
"kms:GenerateDataKey",
"kms:TagResource",
"kms:UntagResource"
],
Effect: "Allow",
Principal: {
AWS: {
"Fn::Join": [
"",
[
"arn:",
{
Ref: "AWS::Partition"
},
":iam::",
{
Ref: "AWS::AccountId"
},
":root"
]
]
}
},
Resource: "*"
},
{
Action: [
"kms:Decrypt",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*"
],
Effect: "Allow",
Principal: {
Service: "events.amazonaws.com"
},
Resource: "*"
}
],
Version: "2012-10-17"
},
Description: "my-key",
EnableKeyRotation: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,63 +94,6 @@ test('check the sqs queue properties with existing KMS key', () => {
});

expect(stack).toHaveResource('AWS::KMS::Key', {
KeyPolicy: {
Statement: [
{
Action: [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion",
"kms:GenerateDataKey",
"kms:TagResource",
"kms:UntagResource"
],
Effect: "Allow",
Principal: {
AWS: {
"Fn::Join": [
"",
[
"arn:",
{
Ref: "AWS::Partition"
},
":iam::",
{
Ref: "AWS::AccountId"
},
":root"
]
]
}
},
Resource: "*"
},
{
Action: [
"kms:Decrypt",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*"
],
Effect: "Allow",
Principal: {
Service: "events.amazonaws.com"
},
Resource: "*"
}
],
Version: "2012-10-17"
},
Description: "my-key",
EnableKeyRotation: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,63 +206,6 @@ test('check the sns topic properties with existing KMS key', () => {
});

expect(stack).toHaveResource('AWS::KMS::Key', {
KeyPolicy: {
Statement: [
{
Action: [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion",
"kms:GenerateDataKey",
"kms:TagResource",
"kms:UntagResource"
],
Effect: "Allow",
Principal: {
AWS: {
"Fn::Join": [
"",
[
"arn:",
{
Ref: "AWS::Partition"
},
":iam::",
{
Ref: "AWS::AccountId"
},
":root"
]
]
}
},
Resource: "*"
},
{
Action: [
"kms:Decrypt",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*"
],
Effect: "Allow",
Principal: {
Service: "events.amazonaws.com"
},
Resource: "*"
}
],
Version: "2012-10-17"
},
Description: "my-key",
EnableKeyRotation: true
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,63 +94,6 @@ test('check the sqs queue properties with existing KMS key', () => {
});

expect(stack).toHaveResource('AWS::KMS::Key', {
KeyPolicy: {
Statement: [
{
Action: [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion",
"kms:GenerateDataKey",
"kms:TagResource",
"kms:UntagResource"
],
Effect: "Allow",
Principal: {
AWS: {
"Fn::Join": [
"",
[
"arn:",
{
Ref: "AWS::Partition"
},
":iam::",
{
Ref: "AWS::AccountId"
},
":root"
]
]
}
},
Resource: "*"
},
{
Action: [
"kms:Decrypt",
"kms:Encrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*"
],
Effect: "Allow",
Principal: {
Service: "events.amazonaws.com"
},
Resource: "*"
}
],
Version: "2012-10-17"
},
Description: "my-key",
EnableKeyRotation: true
});
Expand Down
Loading

0 comments on commit 2d769b1

Please sign in to comment.