Skip to content

Instantly share code, notes, and snippets.

@dcortesnet
Created March 29, 2023 15:50
Show Gist options
  • Save dcortesnet/8896c3df965982e77f4a1d5bea8de362 to your computer and use it in GitHub Desktop.
Save dcortesnet/8896c3df965982e77f4a1d5bea8de362 to your computer and use it in GitHub Desktop.
AWS SAM template - lambda S3 yml
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