Created
May 15, 2020 19:14
-
-
Save owfm/ddf9a154ef607820201d255f78b3ef1b 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
# serverless.yml | |
service: step-functions | |
plugins: | |
- serverless-step-functions | |
- serverless-bundle | |
provider: | |
profile: medium | |
name: aws | |
runtime: nodejs12.x | |
region: eu-west-1 | |
functions: | |
proposePromotion: | |
handler: proposePromotion.call | |
stepFunctions: | |
stateMachines: | |
promotionFlow: | |
name: myCompanyPromotionFlowStateMachine-${opt:stage} | |
definition: | |
Comment: "Handles the manual approval of promotions." | |
StartAt: ProposePromotion | |
States: | |
ProposePromotion: | |
Type: Task | |
Resource: !GetAtt [proposePromotion, Arn] | |
ResultPath: "$.employeeDetails" | |
End: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment