1 Answer
- Newest
- Most votes
- Most comments
0
While I still haven't found a way to create policies in the template, I did manage to find a way to deploy in one pass.
You can add policy rules to the role definition
role:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
...
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
- arn:aws:iam::aws:policy/service-role/AWSLambdaRole
- arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole
I found this in an example setting up lambda access to rds-mysql
answered 3 years ago
Relevant content
- Accepted Answerasked 5 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago