Skip to content

osgioia/step-functions-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step Functions Example

This is an example of creating, deploying and invoking AWS Step Functions created with the Serverless Framework. This time we will also add an AWS API Gateway.

Prerequisites

  • You have made you AWS access and secret key available through a provided method, like storing them in the ~/.aws/credentials file or export them into environment variables
  • You need to install Node.js with a minimum version of 6.5.0 
  • Then you need to install the serverless CLI with sudo npm install -g serverless
  • npm install

Deploy

  • serverless deploy -v

Test

  • Now you could invoke the Step Function with serverless invoke stepf -n hellostepfunc1� if everything went fine. We should see the output: ciao world!
  • This time we also have an API Gateway which calls the Step Function, so we could curl the API Gateway endpoint to see if everything went fine. You can find the respective URL in the output of serverless deploy -v. In difference to using to serverless invoke command you will not see the ciao world! but only an info the Step Functions ARN and the execution date, which indicates it was executed.

Undeploy

  • serverless remove

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%