Build AWS Step Functions Workflows with JSONata

Build AWS Step Functions Workflows with JSONata
Build AWS Step Functions Workflows with JSONata

CLOUD LABS



Build AWS Step Functions Workflows with JSONata

In this Cloud Lab, you’ll learn to process and transform data using JSONata in a state machine created using AWS Step Functions.

9 Tasks

beginner

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

A thorough understanding of transforming data using JSONata in AWS Step Functions
The ability to create variables and reference them later in a state machine
Practical experience creating workflows using AWS Step Functions

Technologies
Step Functions
SQS logoSQS
SNS logoSNS
DynamoDB logoDynamoDB
Cloud Lab Overview

AWS Step Functions is a powerful orchestration service that can be integrated with many other AWS services, such as Amazon SQS, SNS, and DynamoDB. You’ll learn how Step Functions supports JSONata, a powerful query and transformation language for JSON data, and how variables can efficiently handle data. JSONata enables advanced transformations, such as date formatting and mathematical operations, reducing the need for additional processing.

In this Cloud Lab, you’ll create an SQS queue, an SNS topic, and a DynamoDB table to store the inventory. Then, you will build a state machine in Step Functions to process orders received in the SQS queue. The state machine will extract order details from the message and insert them into the DynamoDB table. It will then check if the requested item weight is currently available in stock. A notification will be sent if the item is in stock; otherwise, it will be marked as pending. If more than two orders are pending, a notification will be sent to you requesting you to restock the item.

By the end of this Cloud Lab, you’ll understand how to create variables and transform data using JSONata in AWS Step Functions. The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Using JSONata in AWS Step Functions to transform and process messages
Using JSONata in AWS Step Functions to transform and process messages
Cloud Lab Tasks
1.Introduction
Getting Started
2.Provision the Required Resources
Create an SQS Queue and SNS Topic
Create DynamoDB Tables
3.Create a State Machine
Get Started with Step Functions
Create a State Machine
Process Messages in the Queue
Complete the State Machine
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like