Skip to content

Update all module to latest version #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "4.64.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Create VPC Terraform Module
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.78.0"
version = "4.0.1"
# version = "~> 2.78"

# VPC Basic Details
name = "vpc-dev"
cidr = "10.0.0.0/16"
azs = ["us-east-1a", "us-east-1b"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
name = "vpc-dev"
cidr = "10.0.0.0/16"
azs = ["us-east-1a", "us-east-1b"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]

# Database Subnets
create_database_subnet_group = true
create_database_subnet_route_table= true
database_subnets = ["10.0.151.0/24", "10.0.152.0/24"]
create_database_subnet_group = true
create_database_subnet_route_table = true
database_subnets = ["10.0.151.0/24", "10.0.152.0/24"]

#create_database_nat_gateway_route = true
#create_database_internet_gateway_route = true
Expand All @@ -25,7 +25,7 @@ module "vpc" {

# VPC DNS Parameters
enable_dns_hostnames = true
enable_dns_support = true
enable_dns_support = true

public_subnet_tags = {
Type = "public-subnets"
Expand All @@ -40,7 +40,7 @@ module "vpc" {
}

tags = {
Owner = "kalyan"
Owner = "kalyan"
Environment = "dev"
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "4.64.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Create VPC Terraform Module
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.78.0"
version = "4.0.1"
#version = "~> 2.78"

# VPC Basic Details
name = "${local.name}-${var.vpc_name}"
cidr = var.vpc_cidr_block
name = "${local.name}-${var.vpc_name}"
cidr = var.vpc_cidr_block
azs = var.vpc_availability_zones
public_subnets = var.vpc_public_subnets
private_subnets = var.vpc_private_subnets
private_subnets = var.vpc_private_subnets

# Database Subnets
database_subnets = var.vpc_database_subnets
create_database_subnet_group = var.vpc_create_database_subnet_group
database_subnets = var.vpc_database_subnets
create_database_subnet_group = var.vpc_create_database_subnet_group
create_database_subnet_route_table = var.vpc_create_database_subnet_route_table
# create_database_internet_gateway_route = true
# create_database_nat_gateway_route = true

# NAT Gateways - Outbound Communication
enable_nat_gateway = var.vpc_enable_nat_gateway
enable_nat_gateway = var.vpc_enable_nat_gateway
single_nat_gateway = var.vpc_single_nat_gateway

# VPC DNS Parameters
enable_dns_hostnames = true
enable_dns_support = true


tags = local.common_tags
tags = local.common_tags
vpc_tags = local.common_tags

# Additional Tags to Subnets
Expand All @@ -36,8 +36,8 @@ module "vpc" {
}
private_subnet_tags = {
Type = "Private Subnets"
}
}
database_subnet_tags = {
Type = "Private Database Subnets"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generic Variables
aws_region = "us-east-1"
environment = "stag"
aws_region = "us-east-1"
environment = "stag"
business_divsion = "HR"


Expand Down