-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoutputs.tf
78 lines (64 loc) · 2.02 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Build outputs
output "build_id" {
description = "Random ID generated for the build"
value = random_string.this.id
}
output "cats_az" {
description = "Availability zone displaying cat pictures"
value = random_shuffle.cats_az.result[0]
}
# Load balancer outputs
output "lb_name" {
description = "Name of the load balancer"
value = aws_lb.this.name
}
output "lb_arn" {
description = "ARN of the load balancer"
value = aws_lb.this.arn
}
output "lb_arn_suffix" {
description = "Suffix of the load balancer ARN, for use with CloudWatch Metrics"
value = aws_lb.this.arn_suffix
}
output "lb_dns_name" {
description = "DNS Name of the load balancer"
value = aws_lb.this.dns_name
}
output "lb_listener_arn" {
description = "ARN of the load balancer listener"
value = aws_lb_listener.this.arn
}
output "target_group_name" {
description = "Name of the target group"
value = aws_lb_target_group.this.name
}
output "target_group_arn" {
description = "ARN of the target group"
value = aws_lb_target_group.this.arn
}
output "target_group_arn_suffix" {
description = "Suffix of the target group ARN, for use with CloudWatch Metrics"
value = aws_lb_target_group.this.arn_suffix
}
# Security group outputs
output "lb_security_group_name" {
description = "Name of the load balancer security group"
value = aws_security_group.lb.name
}
output "lb_security_group_arn" {
description = "ARN of the load balancer security group"
value = aws_security_group.lb.arn
}
output "ec2_security_group_name" {
description = "Name of the ec2 security group"
value = aws_security_group.ec2.name
}
output "ec2_security_group_arn" {
description = "ARN of the ec2 security group"
value = aws_security_group.ec2.arn
}
# Watchmaker autoscaling module outputs
output "autoscaling_cfn_stack" {
description = "Object for the CloudFormation stack managing the autoscaling group"
value = module.autoscaling_group.watchmaker-lx-autoscale-stack
}