This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
forked from turnbullpress/tf_vpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.tf
69 lines (54 loc) · 1.54 KB
/
interface.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
variable "environment" {
description = "The name of our environment, i.e. development."
}
variable "vpc_cidr" {
description = "The CIDR of the VPC."
}
variable "public_subnets" {
default = []
description = "The list of public subnets to populate."
}
variable "private_subnets" {
default = []
description = "The list of private subnets to populate."
}
variable "enable_dns_hostnames" {
description = "Should be true if you want to use private DNS within the VPC"
default = true
}
variable "enable_dns_support" {
description = "Should be true if you want to use private DNS within the VPC"
default = true
}
variable "enable_nat_gateway" {
description = "should be true if you want to provision NAT Gateways for each of your private networks"
default = false
}
variable "map_public_ip_on_launch" {
description = "Should be false if you do not want to auto-assign public IP on launch"
default = true
}
output "vpc_id" {
value = "${aws_vpc.environment.id}"
}
output "vpc_cidr" {
value = "${aws_vpc.environment.cidr_block}"
}
output "public_subnet_ids" {
value = ["${aws_subnet.public.*.id}"]
}
output "private_subnet_ids" {
value = ["${aws_subnet.private.*.id}"]
}
output "public_route_table_id" {
value = ["${aws_route_table.public.*.id}"]
}
output "private_route_table_id" {
value = ["${aws_route_table.private.*.id}"]
}
output "default_security_group_id" {
value = "${aws_vpc.environment.default_security_group_id}"
}
output "core_security_group_id" {
value = "${aws_security_group.core.id}"
}