- Install Terraform
- Modify the provider profile and region in main.tf
- Modify the terraform backend in main.tf
- If no s3 and dynamodb exist in the aws account for the shared state, comment out the
terraform
block - run
terraform init
in global/s3 - run
terraform apply
- if the s3 and dynamodb is newly created, uncomment the
terraform block
, then runterraform init
, thenterraform apply
- This folder contains infrastructure code for the s3 bucket that will be used to store the the state files of infrastructure made in the admin-dev aws account
- This also contains infrastrucure for the dynamoDB table that is used to perform state locking mechanism used by terrafrom in a shared state mode of deployment
- The infrastructure in this folder is run separately and at the beginning of establishing a global infrastructure for other projects that involves creating aws infrastructure in this aws account.
- To deploy the global infrastructure, issue
terraform apply
inside this folder
- Currently contains the Autoscaling Group made into a module