Skip to content

Commit 89a6963

Browse files
authored
integrate kms decrypt to access policy for QS
1 parent 6cb9545 commit 89a6963

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

data-collection/deploy/deploy-data-collection.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,14 @@ Resources:
14161416
- s3:GetObjectVersion
14171417
Resource:
14181418
- !Sub ${S3Bucket.Arn}/*
1419+
- !If
1420+
- NeedDataBucketsKms
1421+
- Sid: AllowKmsDecrypt
1422+
Effect: "Allow"
1423+
Action:
1424+
- "kms:Decrypt"
1425+
Resource: !Split [ ',', !Ref DataBucketsKmsKeysArns ]
1426+
- !Ref AWS::NoValue
14191427

14201428
Outputs:
14211429
Bucket:
@@ -1430,8 +1438,3 @@ Outputs:
14301438
Description: "Access Policy for CID Data Collection"
14311439
Value: !Ref DataCollectionReadAccess
14321440
Export: { Name: "cid-DataCollection-ReadAccessPolicyARN" }
1433-
KMSPolicyARN:
1434-
Condition: NeedDataBucketsKms
1435-
Description: "KMS Policy for CID Data Collection. Attach it to QuickSight role if needed."
1436-
Value: !Ref KmsPolicyForStepFunctionRole
1437-
Export: { Name: "cid-DataCollection-KMSPolicy" }

0 commit comments

Comments
 (0)