This repo relates to the medium blog article here
As per terraform, make sure you cd in to a directory then run
terraform init
terraform apply
The examples provided will not work out of the box as they use fake account and email addresses and chicken and egg issues of requiring infra to use infra. Details below.
This is where we store our terraform backend (bucket plus dynamodb for locking). To get it to work:
- Change the bucket name in the backend.tf and in the main.tf
- Make sure this change also is reflected in your org folder
- Comment out the backend, file, apply it, then uncomment it and reapply it, letting terraform copy state over as it should notice
This is where reusable code goes
This is where the primary setup is for the org. You probably want to follow the blog article, and comment out most of the code and uncomment as you go as some resources are dependent on things like accounts being setup. Make sure you've setup your backend first.