Skip to content

Instantly share code, notes, and snippets.

@owfm
Last active May 12, 2020 09:49
Show Gist options
  • Save owfm/247caffff9e95989a3af3eacac7a64a9 to your computer and use it in GitHub Desktop.
Save owfm/247caffff9e95989a3af3eacac7a64a9 to your computer and use it in GitHub Desktop.
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