forked from clouddrove/terraform-aws-subnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
60 lines (49 loc) · 1.65 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#Module : SUBNET
#Description : Terraform module to create public, private and public-private subnet with
# network acl, route table, Elastic IP, nat gateway, flow log.
output "public_subnet_id" {
value = aws_subnet.public.*.id
description = "The ID of the subnet."
}
output "public_subnet_cidrs" {
value = aws_subnet.public.*.cidr_block
description = "CIDR blocks of the created public subnets."
}
output "public_subnet_cidrs_ipv6" {
value = aws_subnet.public.*.ipv6_cidr_block
description = "CIDR blocks of the created public subnets."
}
output "private_subnet_id" {
value = aws_subnet.private.*.id
description = "The ID of the private subnet."
}
output "private_subnet_cidrs" {
value = aws_subnet.private.*.cidr_block
description = "CIDR blocks of the created private subnets."
}
output "private_subnet_cidrs_ipv6" {
value = aws_subnet.private.*.ipv6_cidr_block
description = "CIDR blocks of the created private subnets."
}
output "public_route_tables_id" {
value = aws_route_table.public.*.id
description = "The ID of the routing table."
}
output "private_route_tables_id" {
value = aws_route_table.private.*.id
description = "The ID of the routing table."
}
output "private_tags" {
value = module.private-labels.tags
description = "A mapping of private tags to assign to the resource."
}
output "public_tags" {
value = module.public-labels.tags
description = "A mapping of public tags to assign to the resource."
}
output "public_acl" {
value = join("", aws_network_acl.public.*.id)
}
output "private_acl" {
value = join("", aws_network_acl.private.*.id)
}