Search⌘ K

Retrieve Secrets

Understand how to implement a Lambda function that retrieves valid shapes from AWS Secrets Manager and integrates it into an AWS Step Functions state machine. Learn to handle invalid inputs by throwing errors that improve debugging and connect Lambda states to Parallel states for enhanced workflow quality control.

Let's start by adding the Lambda function and adding the Retrieve Secrets state to the state machine. We'll use the project below, with checkShape opened.

Project

Function implementation

We'll write a function that retrieves the list of valid shapes from AWS Secrets Manager and checks if the given shape is valid. If ...