Created
March 29, 2023 15:50
-
-
Save dcortesnet/8896c3df965982e77f4a1d5bea8de362 to your computer and use it in GitHub Desktop.
AWS SAM template - lambda S3 yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: 'AWS::Serverless-2016-10-31' | |
Resources: | |
MyFunction: | |
Type: 'AWS::Serverless::Function' | |
Properties: | |
Handler: index.handler | |
Runtime: nodejs8.10 | |
CodeUri: 's3://my-bucket/function.zip' | |
Policies: | |
- Statement: | |
- Sid: SSMDescribeParametersPolicy | |
Effect: Allow | |
Action: | |
- ssm:DescribeParameters | |
Resource: '*' | |
- Sid: SSMGetParameterPolicy | |
Effect: Allow | |
Action: | |
- ssm:GetParameters | |
- ssm:GetParameter | |
Resource: '*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment