We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0254889 commit 68fd8acCopy full SHA for 68fd8ac
options/bedrockkb/template.yaml
@@ -422,6 +422,21 @@ Resources:
422
Action:
423
- iam:PassRole
424
Resource: !Sub "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/*"
425
+ - !If
426
+ - IsCustomerManagedKey
427
+ - PolicyName: KMSAccess
428
+ PolicyDocument:
429
+ Version: '2012-10-17'
430
+ Statement:
431
+ - Effect: Allow
432
+ Action:
433
+ - kms:Encrypt
434
+ - kms:Decrypt
435
+ - kms:ReEncrypt*
436
+ - kms:GenerateDataKey*
437
+ - kms:DescribeKey
438
+ Resource: !Ref pCustomerManagedEncryptionKeyArn
439
+ - !Ref "AWS::NoValue"
440
441
S3VectorManagerFunction:
442
Type: AWS::Serverless::Function
0 commit comments