Skip to content

Commit db798de

Browse files
committed
grant IAM access to secret
1 parent cbb5cfc commit db798de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cloudformation/iam.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ Resources:
4545
- ec2:UnassignPrivateIpAddresses
4646
Resource: '*'
4747
PolicyName: lambda
48+
- PolicyDocument:
49+
Version: 2012-10-17
50+
Statement:
51+
- Action:
52+
- secretsmanager:GetSecretValue
53+
Effect: Allow
54+
Resource:
55+
- !Sub arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-events-api-config*
56+
PolicyName: lambda-db-secrets
4857
Outputs:
4958
MainFunctionRoleArn:
5059
Description: Main API IAM role ARN

0 commit comments

Comments
 (0)