Created
August 14, 2019 17:26
-
-
Save Blind-Striker/ce976ef4375230fb325a86ac3eb82e4f to your computer and use it in GitHub Desktop.
Sample for LocalStack article
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
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