Last active
April 2, 2020 16:30
-
-
Save kevinchisholm/38ba7fe30ed2a0238f6d1e018b8a9a3e to your computer and use it in GitHub Desktop.
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: my-service | |
plugins: | |
- serverless-plugin-ifelse | |
provider: | |
name: aws | |
runtime: nodejs12.x | |
stage: ${opt:stage, "dev"} | |
custom: | |
serverlessIfElse: | |
- If: '"${self:provider.stage}" === "prod"' | |
Exclude: | |
- functions.fooFunction | |
ElseExclude: | |
- functions.barFunction | |
functions: | |
fooFunction: | |
handler: foo-function.handler | |
events: | |
- http: | |
path: foo | |
method: get | |
barFunction: | |
handler: bar-function.handler | |
events: | |
- http: | |
path: bar | |
method: get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment