-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
46 lines (37 loc) · 1.56 KB
/
Copy pathoutputs.tf
File metadata and controls
46 lines (37 loc) · 1.56 KB
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
# outputs.tf — module outputs.
output "nat_instance_asg_name" {
description = "Name of the Auto Scaling Group."
value = aws_autoscaling_group.nat.name
}
output "nat_instance_security_group_id" {
description = "Security Group ID attached to the NAT instance."
value = aws_security_group.nat.id
}
output "eip_public_ip" {
description = "The persistent public IP address."
value = local.eip_public_ip
}
output "eip_allocation_id" {
description = "Allocation ID of the EIP in use (module-created or BYO passthrough)."
value = local.eip_allocation_id
}
output "iam_role_arn" {
description = "ARN of the NAT instance's IAM role."
value = aws_iam_role.nat_instance.arn
}
output "failover_lambda_arn" {
description = "ARN of the proactive-failover Lambda function."
value = aws_lambda_function.failover.arn
}
output "eventbridge_rule_arn" {
description = "ARN of the Spot-interruption-warning EventBridge rule."
value = aws_cloudwatch_event_rule.spot_interruption.arn
}
output "spot_fallback_lambda_arn" {
description = "ARN of the Spot-exhaustion fallback Lambda (null when use_spot is false or spot_on_demand_fallback is false)."
value = length(aws_lambda_function.spot_fallback) > 0 ? aws_lambda_function.spot_fallback[0].arn : null
}
output "spot_fallback_alarm_arn" {
description = "ARN of the CloudWatch alarm that triggers Spot-exhaustion fallback (null when disabled)."
value = length(aws_cloudwatch_metric_alarm.spot_fallback) > 0 ? aws_cloudwatch_metric_alarm.spot_fallback[0].arn : null
}