subhub/terraform
Stewart Henderson ad11084027 Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
..
global Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
.gitignore Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
.terraform-version Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
README.md Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
backend.hcl Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
dynamodb.tf Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
main.tf Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
outputs.tf Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
terraform.tfvars Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
variables.tf Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
versions.tf Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00

README.md

Terraform

Up and Running

  1. Bootstrap dependencies
  2. Initialize Terraform
  3. Inspect the Terraform plan
  4. Apply the changes

Bootstrapping

Initialize Terraform

First, boostrap the dependencies according to:

  1. global/s3
  2. global/dynamodb

Next initialize Terraform with the following command

terraform init -backend-config=backend.hcl

Inspect the Terraform Plan

terraform plan

Apply the Changes

terraform apply -var="USER_TABLE=USER_TABLE_NAME_GOES_HERE" -var="DELETED_USER_TABLE=DELETED_USER_TABLE_NAME_GOES_HERE" -var="EVENT_TABLE=EVENT_TABLE_NAME_GOES_HERE"

Author(s)

Stewart Henderson