-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
50 lines (41 loc) · 1.25 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
output "public_dns_name" {
description = "Public DNS names of the load balancer for this project"
value = module.elb_http.this_elb_dns_name
}
output "azs" {
description = "AWS region"
value = data.aws_availability_zones.available.names
}
output "aws_region" {
description = "AWS region"
value = data.aws_region.current.name
}
output "lb_security_group_ids" {
description = "Security group IDs for load balancer"
value = [module.lb_security_group.this_security_group_id]
}
output "app_security_group_ids" {
description = "Security group IDs for application servers"
value = [module.app_security_group.this_security_group_id]
}
output "public_subnet_ids" {
description = "Public subnet IDs"
value = module.vpc.public_subnets
}
output "private_subnet_ids" {
description = "Private subnet IDs"
value = module.vpc.private_subnets
}
output "vpc_id" {
description = "ID of project VPC"
value = module.vpc.vpc_id
sensitive = true
}
output "lb_url" {
description = "URL of load balancer"
value = "http://${module.elb_http.this_elb_dns_name}/"
}
output "web_server_count" {
description = "Number of web servers provisioned"
value = length(module.ec2_instances.instance_ids)
}