From fb8e740eeb8e47ad83947b41b61d2e819837d471 Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Wed, 27 Oct 2021 18:35:46 +0530 Subject: [PATCH 1/7] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e767ad1 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# terraformsingleinstance From f0fe697f0cd622c87b1ab8b2e0aedba019bfa82b Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Wed, 27 Oct 2021 18:47:44 +0530 Subject: [PATCH 2/7] Deleted Readme.md Deleted Read me file --- README.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index e767ad1..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# terraformsingleinstance From 66d4a54e0ffd687dfcbd91c5764b1931a82f34cc Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Thu, 25 Nov 2021 02:07:40 +0530 Subject: [PATCH 3/7] Update main.tf changed terraform version to 0.11 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 914ec51..6722dac 100644 --- a/main.tf +++ b/main.tf @@ -6,7 +6,7 @@ provider "aws" { } terraform { - required_version = "<= 0.14" #Forcing which version of Terraform needs to be used + required_version = "<= 0.11" #Forcing which version of Terraform needs to be used required_providers { aws = { version = "<= 3.0.0" #Forcing which version of plugin needs to be used. From 9c087e667bc7c247ff865fd3985745811bc1ac31 Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Thu, 25 Nov 2021 02:09:17 +0530 Subject: [PATCH 4/7] Update main.tf changed to 1.0.11 terrafrom version --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 6722dac..6cae4f5 100644 --- a/main.tf +++ b/main.tf @@ -6,7 +6,7 @@ provider "aws" { } terraform { - required_version = "<= 0.11" #Forcing which version of Terraform needs to be used + required_version = "<= 1.0.11" #Forcing which version of Terraform needs to be used required_providers { aws = { version = "<= 3.0.0" #Forcing which version of plugin needs to be used. From 632e48ec483bb5687522e4945efc8d878f07bfbe Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Thu, 25 Nov 2021 02:19:53 +0530 Subject: [PATCH 5/7] Update variables.tf disabled --- variables.tf | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/variables.tf b/variables.tf index ca449ef..97f55c4 100644 --- a/variables.tf +++ b/variables.tf @@ -1,38 +1,38 @@ -variable "aws_access_key" {} -variable "aws_secret_key" {} -variable "aws_region" {} -variable "amis" { - description = "AMIs by region" - default = { - us-east-1 = "ami-97785bed" # ubuntu 14.04 LTS - us-east-2 = "ami-f63b1193" # ubuntu 14.04 LTS - us-west-1 = "ami-824c4ee2" # ubuntu 14.04 LTS - us-west-2 = "ami-f2d3638a" # ubuntu 14.04 LTS - } -} -variable "vpc_cidr" {} -variable "vpc_name" {} -variable "IGW_name" {} -variable "key_name" {} -variable "public_subnet1_cidr" {} -variable "public_subnet2_cidr" {} -variable "public_subnet3_cidr" {} -variable "private_subnet_cidr" {} -variable "public_subnet1_name" {} -variable "public_subnet2_name" {} -variable "public_subnet3_name" {} -variable "private_subnet_name" {} -variable Main_Routing_Table {} -variable "azs" { - description = "Run the EC2 Instances in these Availability Zones" - default = ["us-east-1a", "us-east-1b", "us-east-1c"] -} -variable "environment" { default = "dev" } -variable "instance_type" { - default = { - dev = "t2.nano" - test = "t2.micro" - prod = "t2.medium" - } -} +#variable "aws_access_key" {} +#variable "aws_secret_key" {} +#variable "aws_region" {} +#variable "amis" { + # description = "AMIs by region" + # default = { + # us-east-1 = "ami-97785bed" # ubuntu 14.04 LTS +# us-east-2 = "ami-f63b1193" # ubuntu 14.04 LTS +# us-west-1 = "ami-824c4ee2" # ubuntu 14.04 LTS +# us-west-2 = "ami-f2d3638a" # ubuntu 14.04 LTS + # } +#} +#variable "vpc_cidr" {} +#variable "vpc_name" {} +#variable "IGW_name" {} +#variable "key_name" {} +#variable "public_subnet1_cidr" {} +#variable "public_subnet2_cidr" {} +#variable "public_subnet3_cidr" {} +#variable "private_subnet_cidr" {} +#variable "public_subnet1_name" {} +#variable "public_subnet2_name" {} +#variable "public_subnet3_name" {} +#variable "private_subnet_name" {} +#variable Main_Routing_Table {} +#variable "azs" { + # description = "Run the EC2 Instances in these Availability Zones" + #default = ["us-east-1a", "us-east-1b", "us-east-1c"] +#} +#variable "environment" { default = "dev" } +#variable "instance_type" { + # default = { + # dev = "t2.nano" + # test = "t2.micro" + #prod = "t2.medium" + #} +#} From a375bb96c24ad0f3f3f07d1741953757c239e9dc Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Thu, 25 Nov 2021 02:23:53 +0530 Subject: [PATCH 6/7] Update main.tf added secert key --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 6cae4f5..b4f58e3 100644 --- a/main.tf +++ b/main.tf @@ -1,8 +1,8 @@ #This Terraform Code Deploys Basic VPC Infra. provider "aws" { - access_key = "${var.aws_access_key}" - secret_key = "${var.aws_secret_key}" - region = "${var.aws_region}" + access_key = "${var.AKIAWIFHVUDYZLVKPR42}" + secret_key = "${var.6IvrZWDBfEXmWX/Du4lR5eJ+WHmgr94+xNdDJI2m}" + region = "${var.ca-central-1a}" } terraform { From efbe864d4c373e1811bcae098bc2c322f9ffe97c Mon Sep 17 00:00:00 2001 From: Mahesh0826 <92821600+Mahesh0826@users.noreply.github.com> Date: Thu, 25 Nov 2021 02:26:21 +0530 Subject: [PATCH 7/7] Update main.tf --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b4f58e3..0380aba 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,7 @@ #This Terraform Code Deploys Basic VPC Infra. provider "aws" { access_key = "${var.AKIAWIFHVUDYZLVKPR42}" - secret_key = "${var.6IvrZWDBfEXmWX/Du4lR5eJ+WHmgr94+xNdDJI2m}" + secret_key = "$${var.6IvrZWDBfEXmWX/Du4lR5eJ+WHmgr94+xNdDJI2m}" region = "${var.ca-central-1a}" }