kwong / terraform-ec2-dev-lab

terraform config for deploying a simple ec2 lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-ec2-dev-lab

This repo contains Terraform config files for deploying a simple t2.micro instance on EC2 which I use mostly for testing random stuff.

How to use

$ git clone https://github.com/kwong/terraform-ec2-dev-lab.git
$ cd terraform-ec2-dev-lab
$ terraform init
$ terraform plan # optional
$ terraform apply --auto-approve

The public IP of the ec2 instance is generated as an output and can be used to SSH to the instance once the execution is completed.

$ ssh -i <path_to_private_key> ubuntu@<instance_ip>

To destroy the created infrastructure, simply run terraform destroy --auto-approve

About

terraform config for deploying a simple ec2 lab


Languages

Language:HCL 100.0%