├── README.md
├── ec2
│ ├── main.tf
│ ├── outputs.tf
│ ├── test-ssh-key
│ │ ├── id_rsa
│ │ └── id_rsa.pub
│ ├── user-init-data.tpl
│ └── variables.tf
├── main.tf
├── networking
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
├── outputs.tf
├── terraform.tfvars
└── variables.tf
git clone https://github.com/n-g-s/terraform-test.git
export AWS_ACCESS_KEY_ID="############"
export AWS_SECRET_ACCESS_KEY="############"
vim terraform.tfvars
brew install terraform
terraform init
terraform validate
terraform plan -out=tfplan
terraform apply "tfplan"
for example
Outputs:
Server_IP = 54.211.121.205
Verify_assesment = Please open Server IP in your browser
curl 54.211.121.205
Hei der!!
terraform destroy -auto-approve