Skip to content

Commit

Permalink
Remove CloudFormation access to S3 via ArtifactCopyPolicy and KMS acc…
Browse files Browse the repository at this point in the history
…ess (#792)

* Remove CloudFormation access to S3 via ArtifactCopyPolicy and KMS secret access since it is not used anymore
  • Loading branch information
omkhegde authored Jun 28, 2021
1 parent 63c6a65 commit b8b2c82
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/rpdk/core/data/managed-upload-infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ Resources:
PolicyDocument:
Version: "2012-10-17"
Statement:
- Sid: Allow CloudFormation to copy artifacts from the bucket
Effect: Allow
Principal:
Service: cloudformation.amazonaws.com
Action:
- s3:ListBucket
- s3:GetObject
Resource:
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}"
- !Sub "arn:${AWS::Partition}:s3:::${ArtifactBucket}/*"
- Sid: Require Secure Transport
Action: "s3:*"
Effect: Deny
Expand All @@ -84,17 +74,6 @@ Resources:
AWS: !Ref AWS::AccountId
Action: kms:*
Resource: "*"
- Sid: Enable access for cloudformation to copy encrypted objects
Effect: Allow
Principal:
Service: cloudformation.amazonaws.com
Action:
- "kms:Encrypt"
- "kms:Decrypt"
- "kms:ReEncrypt*"
- "kms:GenerateDataKey*"
- "kms:DescribeKey"
Resource: "*"

LogAndMetricsDeliveryRole:
Type: AWS::IAM::Role
Expand Down

0 comments on commit b8b2c82

Please sign in to comment.