Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
74 changes: 37 additions & 37 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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"
#}
#}