Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed
- Terraform - Download & Install Terraform
- AWS CLI - Download & Install AWS-CLI After that clone the repo as:
git clone https://github.com/geekgodgagan/ec2-aws-terraform.git
Now, login to AWS CLI to make profiles as:
aws configure
Now, initialise the terraform repository as:
terraform init
change the path and name of your private key to ssh login to instance from the ec2.tf and software_configuration.tf files as:
key_name = "your Key name"
private_key = file("your key path")
Finally apply the terraform script to provision the OS on the top of AWS cloud as:
terraform apply