This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
outputs.tf
64 lines (52 loc) · 1.81 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 "public_tier_subnet_cidr" {
description = "Public tier CIDR range"
value = local.public_tier_subnet
}
output "private_tier_subnet_cidr" {
description = "Private tier CIDR range"
value = local.private_tier_subnet
}
output "secure_tier_subnet_cidr" {
description = "Secure tier CIDR range"
value = local.secure_tier_subnet
}
output "vpc_id" {
description = "VPC ID"
value = aws_vpc.main.id
}
output "public_tier_subnet_ids" {
description = "List of subnet ids for the public tier"
value = aws_subnet.public.*.id
}
output "private_tier_subnet_ids" {
description = "List of subnet ids for the private tier"
value = aws_subnet.private.*.id
}
output "secure_tier_subnet_ids" {
description = "List of subnet ids for the secure tier"
value = aws_subnet.secure.*.id
}
output "public_tier_route_table_ids" {
description = "List of route table ids for the public tier"
value = aws_route_table.public[*].id
}
output "private_tier_route_table_ids" {
description = "List of route table ids for the private tier"
value = aws_route_table.private[*].id
}
output "secure_tier_route_table_ids" {
description = "List of route table ids for the secure tier"
value = aws_route_table.secure[*].id
}
output "db_subnet_group" {
description = "Name of db subnet group"
value = length(aws_db_subnet_group.secure) > 0 ? aws_db_subnet_group.secure[0].id : ""
}
output "redshift_subnet_group" {
description = "Name of redshift subnet group"
value = length(aws_redshift_subnet_group.secure) > 0 ? aws_redshift_subnet_group.secure[0].id : ""
}
output "elasticache_subnet_group" {
description = "Name of elasticache subnet group"
value = length(aws_elasticache_subnet_group.secure) > 0 ? aws_elasticache_subnet_group.secure[0].id : ""
}