Skip to content

Commit

Permalink
add permissions required for kms encrypting
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenika authored and cnfait committed Jan 24, 2024
1 parent e90d74b commit 203749f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdlf-cicd/template-cicd-sdlf-repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,19 @@ Resources:
- codecommit:DeleteRepository
- codecommit:TagResource
- codecommit:UntagResource
- codecommit:UpdateRepositoryEncryptionKey
- codecommit:PutRepositoryTriggers
Resource:
- !Sub arn:${AWS::Partition}:codecommit:${AWS::Region}:${AWS::AccountId}:sdlf-main-*
- Effect: Allow
Action:
- kms:Decrypt
- kms:DescribeKey
- kms:Encrypt
- kms:GenerateDataKey*
- kms:ReEncrypt*
Resource:
- !Ref pKMSKey
- Effect: Allow
Action:
- iam:PassRole
Expand Down

0 comments on commit 203749f

Please sign in to comment.