-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathoutputs.tf
67 lines (55 loc) · 2.01 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
61
62
63
64
65
66
67
#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)
description = "The ID of the network ACL."
}
output "private_acl" {
value = join("", aws_network_acl.private[*].id)
description = "The ID of the network ACL."
}
output "nat_gateway_private_ip" {
value = aws_nat_gateway.private[*].private_ip
description = "The private IPv4 address to assign to the NAT Gateway. If you don't provide an address, a private IPv4 address will be automatically assigned."
}