This is basic example of how to use Serverless Framework deploy AWS step functions and AWS Lambda written in Go/Golang.
- Wait few seconds
- Then uses Lambda to process something
- Run Golang code to execute step function
npm install -g serverless@2.72.3
npm install -g serverless-hooks-plugin
npm install -g serverless-step-functions
Run Serverless deploy:
sls deploy
After deploy completely, open AWS Console and check result
Then copy Step functions ARN.
Open file main.go and replace stateMachineArn
variable value with your Step functions ARN.
Run execution:
go run main.go
After that, open AWS Console then go to your step functions to check history execution.
This example is released under the Apache License, Version 2.0.