-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvpc.tf
25 lines (23 loc) · 773 Bytes
/
vpc.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
Module Name :- Amazon VPC
Description :- General Purpose VPC. for more information and how to use this module refer readme file for this.
**/
resource "aws_vpc" "main" {
cidr_block = var.vpc_cidr_block
instance_tenancy = var.vpc_instance_tenancy
assign_generated_ipv6_cidr_block = var.assign_ipv6_cidr_block
tags = merge(
var.common_tags,
var.tag_for_vpc,
{
Name = "vpc-${var.region_id}-${var.environment}-${var.cost_centre}-${var.vpc_seq_id}"
RegionId = var.region_id
Environment = var.environment
CostCentre = var.cost_centre
VPCSeqId = var.vpc_seq_id
VersionId = var.version_id
BuildDate = var.build_date
AppRole = "network"
}
)
}