Skip to content

Latest commit

 

History

History

base

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Base

terraform aws-cli aws-kms aws-s3

Use this to initialize the basic resources to be used by Terraform. These are tracked separately from the main executions which use the remote backend and DB (for locking) created as part of this execution.

Ideally, you will not need to run this more than once. The generated terraform.tfstate file can subsequently be saved in s3 for future reference.

Prerequisites

As described in this readme, aws cli should be setup and ready for use for the accounts you want to work with.

How to use

Follow these steps after cloning the repository

cd base
terraform init
terraform plan
terraform apply

Optional

Not required, but recommended in case you lose your current installation path. Easy to retrieve from S3 and run subsequent terraform commands.

aws s3 cp terraform.tfstate s3://YOUR_BUCKET_NAME/base/terraform.tfstate --profile tools --region REGION