Skip to main content

Terraform using to Deploy AWS EC2 with Access-key/Secret Access Key.

 provider "aws" {

access_key = "AKIVCGFUS3ZRJT&YIPSZ4XELP6"

secret_key = "oR8Weobsop/YGTOKXHu6kDymyru"

region = "ap-south-1"

}


resource "aws_instance" "himcloud" {

ami = "ami-0a4a4775bdbc44e58"

instance_type = "t2.micro"

}

Comments

Popular posts from this blog

Terraform Commands

  Terraform Cheat Sheet terraform version $ terraform version Terraform v1.0.1 on darwin_amd64 terraform init $ terraform init Ask for input if necessary. If false, will error if input was required. $ terraform init -input=false You can also change the backend details using  -backend-config  option.,  reconfigure  will reconfigure the backend, ignoring any saved configuration . $ terraform init -backend-config=PATH/TO/CONFIGURATION_FILE -reconfigure