-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathinterface.tf
45 lines (36 loc) · 910 Bytes
/
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
variable "name" {
type = string
description = "The name of the VPC."
}
variable "cidr" {
type = string
description = "The CIDR of the VPC."
}
variable "public_subnet" {
type = string
description = "The public subnet to create."
}
variable "enable_dns_hostnames" {
description = "Should be true if you want to use private DNS within the VPC"
default = true
type = bool
}
variable "enable_dns_support" {
description = "Should be true if you want to use private DNS within the VPC"
default = true
type = bool
}
variable "map_public_ip_on_launch" {
description = "Should be false if you do not want to auto-assign public IP on launch"
default = true
type = bool
}
output "public_subnet_id" {
value = aws_subnet.public.id
}
output "vpc_id" {
value = aws_vpc.tfb.id
}
output "cidr" {
value = aws_vpc.tfb.cidr_block
}