-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
64 lines (52 loc) · 1.7 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
output "vpc_id" {
value = local.vpc_id
description = "The ID of the VPC."
}
output "vpc_name" {
value = local.vpc_name
description = "The name of the VPC."
}
output "vpc_cidr" {
value = var.vpc_cidr
description = "The CIDR block of the VPC."
}
output "outside_subnet_ids" {
value = aws_subnet.outside.*.id
description = "The IDs of the outside subnets."
}
output "inside_subnet_ids" {
value = aws_subnet.inside.*.id
description = "The IDs of the inside subnets."
}
output "workload_subnet_ids" {
value = aws_subnet.workload.*.id
description = "The IDs of the workload subnets."
}
output "local_subnet_ids" {
value = aws_subnet.local.*.id
description = "The IDs of the local subnets."
}
output "outside_route_table_id" {
value = var.create_outside_route_table ? aws_route_table.outside[0].id : null
description = "The ID of the outside route table."
}
output "internet_gateway_id" {
value = var.create_internet_gateway ? aws_internet_gateway.this[0].id : null
description = "The ID of the internet gateway."
}
output "outside_security_group_id" {
value = module.aws_vpc_sg.outside_security_group_id
description = "The ID of the outside security group."
}
output "inside_security_group_id" {
value = module.aws_vpc_sg.inside_security_group_id
description = "The ID of the inside security group."
}
output "default_security_group_id" {
value = try(aws_default_security_group.default[0].id, null)
description = "The ID of the default security group."
}
output "az_names" {
value = local.az_names
description = "Availability zones."
}