-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
39 lines (32 loc) · 1.14 KB
/
outputs.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
output "dns_hostnames_enabled" {
description = "Indicates if instances launched in this VPC will have public DNS hostnames"
value = data.aws_vpc.this.enable_dns_hostnames
}
output "dns_support_enabled" {
description = "Indicates if DNS support is enabled for this VPC"
value = data.aws_vpc.this.enable_dns_support
}
output "private_subnets" {
description = "List of private subnets in this VPC"
value = sort([for subnet in data.aws_subnet.this : subnet.id if !subnet.map_public_ip_on_launch])
}
output "public_subnets" {
description = "List of public subnets in this VPC"
value = sort([for subnet in data.aws_subnet.this : subnet.id if subnet.map_public_ip_on_launch])
}
output "vpc_arn" {
description = "Arn of this VPC"
value = data.aws_vpc.this.arn
}
output "vpc_cidr_block" {
description = "CIDR range for this VPC"
value = data.aws_vpc.this.cidr_block
}
output "vpc_cidr_blocks" {
description = "All CIDR ranges for this VPC"
value = data.aws_vpc.this.cidr_block_associations[*].cidr_block
}
output "vpc_id" {
description = "The ID of the VPC"
value = data.aws_vpc.this.id
}