This repository contains all the necessary code to create:
- AWS organization with three accounts:
- users
- staging
- production
- IAM groups and roles for developers,
- S3 bucket & DynamoDB table for Terraform backend.
- Substitute the dummy values in locals.tf.
- Optionally add users to users.tf, detailed instructions on that are in adding-a-user.md.
- Initialize the Terraform and apply plan:
$ terraform init $ terraform apply
- Commit the state in
terraform.tfstate
to your repository and you're done!
Follow the instructions on my blog post to get a full explanation on what is being created and how it is configured: https://tbekas.dev/posts/setting-up-an-aws-organization-from-scratch-with-terraform