diff --git a/main.tf b/main.tf index 914ec51..0380aba 100644 --- a/main.tf +++ b/main.tf @@ -1,12 +1,12 @@ #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 { - required_version = "<= 0.14" #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. 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" + #} +#}