This git repo contains sample code for three separate terraform projects. These have been used for a presentation called Introduction to Terraform.
Ensure these are set in your terminal session before you start
- Configure your AWS account via the
~/.aws/credentials
files and set theAWS_PROFILE
accordingly. - Set the
TF_VAR_vpc_id
env var to the VPC Id for where you wish to deploy these resources - check the config for TODO for some values you might want to update for your personal context.
A terraform project that deploys a single S3 bucket and SQS to AWS.
A terraform project that deploys multiple S3 buckets and SQS to AWS using lists of strings and objects. A good demo for the for-each command.
A terraform project that uses modules for creating some resources.