Skip to content

Instantly share code, notes, and snippets.

@Blind-Striker
Created August 14, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blind-Striker/ce976ef4375230fb325a86ac3eb82e4f to your computer and use it in GitHub Desktop.
Save Blind-Striker/ce976ef4375230fb325a86ac3eb82e4f to your computer and use it in GitHub Desktop.
Sample for LocalStack article
service: profile
plugins:
- serverless-localstack
custom:
localstack:
host: http://${env:LOCAL_STACK_HOST}
stages:
- local
stages:
- local
- prod
provider:
name: aws
runtime: dotnetcore2.1
region: eu-central-1
stage: ${opt:stage, 'local'}
package:
individually: true
functions:
hello:
handler: CsharpHandlers::AwsDotnetCsharp.Handler::CreateProfileAsync
package:
artifact: artifact/profile-lambda-csharp.zip
events:
- http:
path: profile
method: POST
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment