Skip to content

AxelMonroyX/terraform-structure

Repository files navigation

Terraform Ansible Setup

Prerequisites

Docker On .aws/credentials create a new profile

[default]
aws_access_key_id=YOUR_ACCESS_KEY_ID
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY

Installing

make build
make setup
make init environment=develop

Deployment

make plan environment=develop

How to apply changes

make apply environment=develop

Custom terraform changes

make container
terraform plan -target=module.nat

How to SSH into instances

ssh -i "./environments/develop/files/ssh_keys/develop" -A [email protected]
ssh [email protected]

Result

Result

Destroy

make destroy environment=develop

Reuse project

git clone https://github.com/AxelMonroyX/terraform-structure.git
cd terraform-structure
rm -rf .git
git init
git config user.name "Your Name"
git config user.email "[email protected]"
git add .
git commit -m "Initialize project"
git remote add origin yourOrigin/terraform-structure.git

Built With

Authors