Skip to content

Commit b6c448d

Browse files
committed
Add missing KMS permission policy
1 parent 6139fc0 commit b6c448d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

templates/aws-stack.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,17 @@ Resources:
677677
- !Ref 'AWS::NoValue'
678678
- !Ref 'AWS::NoValue'
679679
Policies:
680+
- !If
681+
- UseCustomerManagedKeyForParameterStore
682+
- PolicyName: DecryptAgentToken
683+
PolicyDocument:
684+
Version: '2012-10-17'
685+
Statement:
686+
- Effect: Allow
687+
Action: kms:Decrypt
688+
Resource:
689+
!Sub arn:aws:kms:${AWS::Region}:${AWS::AccountId}:key/${BuildkiteAgentTokenParameterStoreKMSKey}
690+
- !Ref 'AWS:NoValue'
680691
- PolicyName: ReadAgentToken
681692
PolicyDocument:
682693
Version: '2012-10-17'

0 commit comments

Comments
 (0)