-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
59 lines (48 loc) · 1.45 KB
/
Copy pathoutputs.tf
File metadata and controls
59 lines (48 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
56
57
58
59
output "alb_dns_name" {
description = "ALB DNS name for the application"
value = aws_lb.app.dns_name
}
output "alb_zone_id" {
description = "ALB Route 53 zone ID"
value = aws_lb.app.zone_id
}
output "asg_name" {
description = "Auto Scaling Group name"
value = aws_autoscaling_group.app.name
}
output "vpc_id" {
description = "VPC ID"
value = aws_vpc.lab.id
}
output "public_subnet_ids" {
description = "Public subnet IDs"
value = aws_subnet.public[*].id
}
output "private_subnet_ids" {
description = "Private subnet IDs"
value = aws_subnet.private[*].id
}
output "app_security_group_id" {
description = "App instance security group ID"
value = aws_security_group.app.id
}
output "https_listener_arn" {
description = "HTTPS listener ARN (null if not configured)"
value = try(aws_lb_listener.https[0].arn, null)
}
output "state_bucket" {
description = "S3 bucket for Terraform remote state"
value = aws_s3_bucket.terraform_state.id
}
output "dynamodb_lock_table" {
description = "DynamoDB table for Terraform state locking"
value = aws_dynamodb_table.terraform_locks.name
}
output "flow_log_group" {
description = "CloudWatch Log Group for VPC Flow Logs"
value = aws_cloudwatch_log_group.flow_logs.name
}
output "cw_alarm_healthy_hosts" {
description = "CloudWatch alarm for ASG healthy host count"
value = aws_cloudwatch_metric_alarm.asg_healthy_hosts.arn
}