-
Notifications
You must be signed in to change notification settings - Fork 1
/
vpc.tf
26 lines (21 loc) · 913 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
#-------------------------------------------------------------------------------
# Create the User Services VPC.
#-------------------------------------------------------------------------------
resource "aws_vpc" "userservices" {
provider = aws.userservicesprovisionaccount
# We can't perform this action until our policy is in place, so we
# need this dependency. Since the other resources in this file
# directly or indirectly depend on the VPC, making the VPC depend on
# this resource should make the other resources in this file depend
# on it as well.
depends_on = [
aws_iam_role_policy_attachment.provisionnetworking_policy_attachment
]
cidr_block = var.vpc_cidr_block
enable_dns_hostnames = true
}
# The internet gateway for the VPC
resource "aws_internet_gateway" "userservices" {
provider = aws.userservicesprovisionaccount
vpc_id = aws_vpc.userservices.id
}