Currently below AWS services & resources are supported:
- Lambda with:
- CloudWatch log group
- IAM roles and policies
- DynamoDB
- SQS queue
- SNS topic
- Install tools:
- Authenticate with IAM user credentials
- Initialize Terraform:
cd examples/basic
terraform init
- Prepare file with variables values:
cp example.tfvars terraform.tfvars
vi terraform.tfvars
- Apply code for infrastructure:
terraform apply
- Execute Lambda:
awscurl --service lambda --region us-east-1 --header 'Content-Type: application/json' --header 'Accept: application/json' --data '{"message": "example_post", "key": "118", "transport": "mail"}' "$(terraform output -raw lambda_url_producer)"