-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
64 lines (52 loc) · 2 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 "private_subnets_cidr_blocks" {
description = "List of cidr_blocks of private subnets"
value = local.private_subnet_cidrs
}
output "public_subnets_cidr_blocks" {
description = "List of cidr_blocks of public subnets"
value = local.public_subnet_cidrs
}
output "private_subnets" {
description = "List of IDs of private subnets"
value = [for k, v in aws_subnet.private : v.id]
}
output "private_subnets_by_az" {
description = "Map of private subnets by availability zone"
value = aws_subnet.private
}
output "public_subnets" {
description = "List of IDs of public subnets"
value = [for k, v in aws_subnet.public : v.id]
}
output "public_subnets_by_az" {
description = "Map of public subnets by availability zone"
value = aws_subnet.public
}
output "inter_environment_security_group_id" {
description = "ID of the inter-environment security group"
value = module.inter_environment_traffic.security_group_id
}
output "private_ip_addresses_on_demand" {
description = "List of private IP addresses allocated to on-demand instances"
value = { for name, instance in module.on_demand_requests : name => instance.private_ip }
}
output "private_ip_addresses_spot" {
description = "List of private IP addresses allocated to spot instances"
value = { for name, instance in module.spot_requests : name => instance.private_ip }
}
output "instance_ids_on_demand" {
description = "List of instance IDs for on-demand instances"
value = { for name, instance in module.on_demand_requests : name => instance.instance_id }
}
output "instance_ids_spot" {
description = "List of instance IDs for spot instances"
value = { for name, instance in module.spot_requests : name => instance.instance_id }
}
output "reverse_dns_zone_name" {
description = "Reverse DNS zone name"
value = aws_route53_zone.reverse.name
}
output "reverse_dns_zone_id" {
description = "Reverse DNS zone ID"
value = aws_route53_zone.reverse.zone_id
}