-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathvpc.tf
28 lines (24 loc) · 842 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
26
27
28
#------------------------------------------------------------------------------
# AWS Virtual Private Network (VPC)
#------------------------------------------------------------------------------
# VPC
resource "aws_vpc" "vpc" {
# IPv4
cidr_block = var.cidr_block
ipv4_ipam_pool_id = var.ipv4_ipam_pool_id
ipv4_netmask_length = var.ipv4_netmask_length
# Settings
instance_tenancy = var.instance_tenancy
enable_dns_support = var.enable_dns_support
enable_network_address_usage_metrics = var.enable_network_address_usage_metrics
enable_dns_hostnames = var.enable_dns_hostnames
# Tags
tags = merge(
var.additional_tags,
var.vpc_additional_tags,
)
}
# Internet Gateway
resource "aws_internet_gateway" "internet_gw" {
vpc_id = aws_vpc.vpc.id
}