Overview: This is a sample terraform project to bring up and destroy an AWS instance and helps you to understand how to provision Infrastructure using Terraform.
Prerequisites/Requirements:
- AWS account. Instructions for setting this up are here : Setting up AWS EC2
Instructions on using the sample project
- Clone this project.
- Save your AWS credentials (Access Key ID and Secret Access Key) in
terraform.tfvars
file. you can go to this link to know how to get these. - Create a key pair for your AWS region using this link. Download your pem key and paste it in
aws-ssh-key.pem
. - In
terraform.tfvars
put your AWS region that you selected in the above step. - Select an instance type suitable for your need from this list and add it in
terraform.tfvars
. - Now to provision AWS instance you can enable this project on Shippable in
Infra
tab. Click onProvision
, this should provision an EC2 instance on your selected AWS region.
Documentation