This is to demonstrate the usage of several AWS Lambda functions to create a workflow on AWS Step Function. Terraform configuration files are also provided to simplify the process of setting up the required AWS resources.
- power-of-number-lambda - To calculate the power of a number.
- random-number-generator-lambda - To generate a random number between MIN and MAX.
- To use terraform, go to here to install and learn Terraform by Hashicorp.
- For homebrew user:
brew install terraform
- For homebrew user:
- AWS user (programmatic access) with AdministratorAccess. Copy the
access key ID
andsecret access key
to setup theawscli
later. - Install
awscli
from official guide- For homebrew user:
brew install awscli
- For homebrew user:
- Using the
access key ID
andsecret access key
, follow this guide to step a new profile for yourawscli
.
- After
git clone
, change directory tocd ./terraform/
. - Then,
terraform init
to initializes various local settings and data that will be used by subsequent commands. - Update the variables in
variables.tf
for the Step Functions sample. - Then,
terraform apply
to provision the Lambda functions and Step Function state machine for this project. - Finally,
terraform destroy
to remove the Lambda functions and Step Function state machine.