Skip to content

Example in Go(Golang) for deploy AWS Step Functions with Serverless Framework

License

Notifications You must be signed in to change notification settings

vuduongtp/sfn-golang-serverless-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfn-golang-serverless-example

This is basic example of how to use Serverless Framework deploy AWS step functions and AWS Lambda written in Go/Golang.

Overview

  • Wait few seconds
  • Then uses Lambda to process something
  • Run Golang code to execute step function

Install Serverless Framework and relative plugins

npm install -g serverless@2.72.3
npm install -g serverless-hooks-plugin
npm install -g serverless-step-functions

Deployment

Run Serverless deploy:

sls deploy

After deploy completely, open AWS Console and check result 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.

License

This example is released under the Apache License, Version 2.0.

About

Example in Go(Golang) for deploy AWS Step Functions with Serverless Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages