/aws-organization-example

Provisioning code for setting up an AWS organization with Terraform.

Primary LanguageHCLMIT LicenseMIT

AWS Organization Example

About

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.

Quickstart

  1. Substitute the dummy values in locals.tf.
  2. Optionally add users to users.tf, detailed insttruction on that are in adding-a-user.md.
  3. Initialize the Terraform and apply plan:
    $ terraform init
    $ terraform apply
    
  4. Commit the state in terraform.tfstate to your repository and you're done!

Step by step

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