A basic example of an AWS Step Function using Lambdas with Terraform.
You will need a user with relevant privileges, its 'access key', 'secret key' and region for the profile. In this example I used London (eu-west-2)
$ aws configure --profile dev-01
In root folder, build the project with Maven:
$ mvn clean package install
Update 'terraform/vars.tf' otherwise my defaults will be used. Then, in the terraform/environment/dev-01 folder, initialise Terraform:
$ terraform init
$ terraform apply
$ terraform destroy
In the AWS console, look for Step Functions and test its execution using the following JSON:
{
"event": {
"Records": [
{
"s3": {
"bucket": {
"name": "spikything-demo01"
},
"object": {
"key": "test-files/test.json"
}
}
}
]
}
}