EC2 Instance Creation by using Terraform - Mithun Technologies - +91-9980923226
Mithun Technologies +91-9980923226 devopstrainingblr@gmail.com
http://mithuntechnologies.com/
http://mithuntechnologies.co.in/
provider "aws" {
region = "ap-south-1"
access_key = "AIA4UQE3BUQ6GQ3BAEO"
secret_key = "5LAzj2tYFxf1NNvmvz0Z1UASoEzDZHlc6R5wHF"
}
resource "aws_instance" "AWSServer" {
ami = "ami-0a74bfeb190bd404f"
instance_type = "t2.micro"
key_name = "mithuntechnologies"
security_groups = ["launch-wizard-1"]
tags = {
Name = "Terrafrom Server"
}
}
Thursday, February 20, 2020
Terraform Installation - Linux Server- Mithun Technologies - 9980923226
Mithun Technologies +91-9980923226 devopstrainingblr@gmail.com
http://mithuntechnologies.com/
http://mithuntechnologies.co.in/
Terraform Installation
#Login as a root user in ec2 instancesudo su -
#You will need to upgrade your system and packages
yum update -y
#Install wget and unzip packages
yum install wget unzip vim -y
#Download the terraform software.
#Use https://www.terraform.io/downloads.html to download the terraform software.
wget https://releases.hashicorp.com/terraform/1.3.3/terraform_1.3.3_linux_amd64.zip
#Extract the terraform software.
unzip terraform_1.3.3_linux_amd64.zip -d /usr/local/bin/
#Check the version
terraform -v (OR) terraform version
#Help
terraform -help
Comments
Post a Comment