Posted On: May 28, 2020

Amazon SAM now supports Amazon Step Functions, making it easier to integrate workflow orchestration into your serverless applications. 

Amazon Step Functions allows you to build resilient serverless workflows using Amazon Web Services services such as Amazon Lambda, Amazon SNS, and Amazon DynamoDB. The Amazon Serverless Application Model (SAM) is an open-source framework for building serverless applications. Together you can accelerate your serverless application development by combining orchestration and application code into a single deployment configuration.  

You can get started in minutes using a SAM template that showcases common Step Functions development patterns. State machines can be defined inline in a SAM template or in a separate file which can be stored locally or packaged and stored in S3. You can easily trigger state machine executions with API Gateway, EventBridge events, or on a schedule within your SAM template. Creation of the state machine execution role is made easy through SAM policy templates, inline policies, or managed policies which can be directly define within your state machine resource. 

To get started, you can install the SAM CLI and then run the ‘sam init’ command to get started with a state machine template. 

This feature is available in all regions where Amazon Step Functions is available, including Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. View the Amazon Web Services China Regions table to learn more. To learn more about Step Functions in SAM read the documentation