Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created March 31, 2022 19:29
Show Gist options
  • Save percybolmer/44149cb47c47361f2465c58c00905c60 to your computer and use it in GitHub Desktop.
Save percybolmer/44149cb47c47361f2465c58c00905c60 to your computer and use it in GitHub Desktop.
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-gopher
Runtime: go1.x
Environment:
Variables:
my-cool-variable: "maybe-not-so-cool"
Architectures:
- x86_64
Events:
HelloEndpoint:
Type: Api
Properties:
Path: '/api/hellogopher'
Method: post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment