Skip to content

Instantly share code, notes, and snippets.

@owfm
Created May 15, 2020 19:14
Show Gist options
  • Save owfm/ddf9a154ef607820201d255f78b3ef1b to your computer and use it in GitHub Desktop.
Save owfm/ddf9a154ef607820201d255f78b3ef1b to your computer and use it in GitHub Desktop.
# 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