-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
39 lines (32 loc) · 1.1 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 "id" {
description = "The ID of the VPC."
value = try(aws_vpc.main.id, null)
}
output "public_subnets" {
description = "List of IDs of the public subnets."
value = try(aws_subnet.public[*].id, [])
}
output "private_subnets" {
description = "List of IDs of the private subnets."
value = try(aws_subnet.private[*].id, [])
}
output "private_route_tables" {
description = "List of IDs of the private route tables."
value = try(aws_route_table.private[*].id, [])
}
output "internet_gw" {
description = "The ID of the Internet Gateway."
value = try(aws_internet_gateway.main.id, null)
}
output "nat_gws" {
description = "List of IDs of the NAT Gateways."
value = try(aws_nat_gateway.main[*].id, [])
}
output "log_group_name" {
description = "The name of the CloudWatch log group created for the VPC flow logs."
value = try(aws_cloudwatch_log_group.main[0].name, null)
}
output "log_group_arn" {
description = "The ARN of the CloudWatch log group created for the VPC flow logs."
value = try(aws_cloudwatch_log_group.main[0].arn, null)
}