Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active March 30, 2022 18:13
Show Gist options
  • Save percybolmer/bdba0a3b9da62132802e965b8b3a4990 to your computer and use it in GitHub Desktop.
Save percybolmer/bdba0a3b9da62132802e965b8b3a4990 to your computer and use it in GitHub Desktop.
A simple SAM template
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
demo
Sample SAM Template for demo
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 5
Resources:
HelloGopher: # Here we set a Resource Name, You can set anything you want.
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: ./ # This is the path to the Code, in our case we are bad and store it in root
Handler: hello-world
Runtime: go1.x
Architectures:
- x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment