Skip to content

Commit

Permalink
fix: add a policy to allow services to access global SSM parameters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarvey authored Aug 19, 2024
1 parent 5241adf commit 6fb9795
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dbt_platform_helper/templates/svc/overrides/cfn.patches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@
path: /Resources/TaskDefinition/Properties/Volumes
value:
- Name: temporary-fs

- op: add
path: /Resources/ExecutionRole/Properties/Policies/0/PolicyDocument/Statement/4
value:
Effect: 'Allow'
Action:
- 'ssm:GetParameters'
Resource:
- !Sub 'arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter/*'
Condition:
StringEquals:
'ssm:ResourceTag/copilot-application': '__all__'
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@
path: /Resources/TaskDefinition/Properties/Volumes
value:
- Name: temporary-fs

- op: add
path: /Resources/ExecutionRole/Properties/Policies/0/PolicyDocument/Statement/4
value:
Effect: 'Allow'
Action:
- 'ssm:GetParameters'
Resource:
- !Sub 'arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter/*'
Condition:
StringEquals:
'ssm:ResourceTag/copilot-application': '__all__'

0 comments on commit 6fb9795

Please sign in to comment.