A simple project that integrates API Gateway directly to Step Functions and awaits for its response
- aws-cli (installed and configured)
- aws-sam-cli
First, you must create the packaged.yaml:
sam package --output-template-file packaged.yaml --template-file cloudformation.yaml --s3-bucket [S3_BUCKET]
And then deploy the stack:
sam deploy --template-file packaged.yaml --stack-name [STACK_NAME] --capabilities CAPABILITY_NAMED_IAM --capabilities CAPABILITY_IAM
Where:
STACK_NAME
is the name of the stackS3_BUCKET
refers to an existing S3 bucket where the OpenAPI definition is going to be upload