Passing data between states with variables - AWS Step Functions
With state output and variables, you can pass information across the lifecycle of your workflow.