Last active
April 2, 2020 16:41
-
-
Save kevinchisholm/65d6566a4d01d3971b0a367c0b899538 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: my-service | |
plugins: | |
- serverless-plugin-ifelse | |
provider: | |
name: aws | |
runtime: nodejs12.x | |
stage: ${opt:stage, "dev"} | |
environment: | |
staticMessage: "this is a static message" | |
custom: | |
serverlessIfElse: | |
- If: '"${self:provider.stage}" === "prod"' | |
Set: | |
provider.environment.dynamicMessage: "this is a dynamic PROD message" | |
ElseSet: | |
provider.environment.dynamicMessage: "this is a dynamic DEV/TEST message" | |
functions: | |
fooFunction: | |
handler: foo-function.handler | |
events: | |
- http: | |
path: foo | |
method: get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment