Skip to content

Commit 45a6614

Browse files
authored
remove policy attachment as redundant
1 parent 74a1429 commit 45a6614

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,16 @@ Resources:
596596
- !Sub "arn:${AWS::Partition}:glue:${AWS::Region}:${AWS::AccountId}:catalog"
597597
- !Sub "arn:${AWS::Partition}:glue:${AWS::Region}:${AWS::AccountId}:database/${DatabaseName}"
598598
- !Sub "arn:${AWS::Partition}:glue:${AWS::Region}:${AWS::AccountId}:table/${DatabaseName}/*"
599-
- !If
600-
- NeedDataBucketsKms
599+
- !If
600+
- NeedDataBucketsKms
601+
- PolicyName: "KMS"
602+
PolicyDocument:
603+
Version: "2012-10-17"
604+
Statement:
601605
- Effect: "Allow"
602606
Action:
603607
- "kms:Decrypt"
604608
Resource: !Split [ ',', !Ref DataBucketsKmsKeysArns ]
605-
- !Ref AWS::NoValue
606609

607610
KmsPolicyForCidResources:
608611
Type: AWS::IAM::Policy
@@ -617,7 +620,6 @@ Resources:
617620
- 'kms:Decrypt'
618621
Resource: !Split [ ',', !Ref DataBucketsKmsKeysArns ]
619622
Roles:
620-
- !Ref LambdaInitRole
621623
- !Ref StepFunctionExecutionRole
622624
- !Ref LambdaManageGlueTableRole
623625
- !Ref GlueRole

0 commit comments

Comments
 (0)