Terraform CH 2 Starting With Terraform Part 1
Terraform CH 2 Starting With Terraform Part 1
A U T O M A T I O N O N A W S
CHAPTER #2
Managing First Server
history
Terraform was first released in July 2014 by a company
named HashiCorp. It is the same company that brought
us tool, such as Vagrant, Packer, and Vault. Being the
fifth tool in the HashiCorp stack, it focused on
providing way to describe the complete infrastructure
as code.
Lets Rock !!
download terraform
install terraform
install aws cli
configure aws cli
configure aws cli
When properly configured. You will get these two files
under your home directory. Cross check first, before
proceeding.
check aws cli
Now you should be able to get information from your
AWS account using AWS CLI
setting aws provider
Before using Terraform to create an instance, we need
to configure AWS provider
https://www.terraform.io/docs/providers/aws/r/instance.html
creating ec2 instance
Here we are creating a RHEL7 instance.
creating ec2 instance
Applying our first Terraform template, might result in
error, as provider scripts are not yet downloaded.
creating ec2 instance
Use the "terraform init" command to download and
install respective provider scripts.
creating ec2 instance
Lets apply the template now.
creating ec2 instance
creating ec2 instance
We can confirm the creation of EC2 instance using AWS
dashboard.
QUESTIONS