-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
89 lines (69 loc) · 1.7 KB
/
output.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
79
80
81
82
83
84
85
86
87
88
89
##################
## Networking
##################
output "vpc_id" {
description = "The ID of the VPC"
value = module.networking.vpc_id
}
output "vpc_cidr_block" {
description = "The CIDR block of the VPC"
value = module.networking.vpc_cidr_block
}
output "vpc_name" {
description = "VPC Name"
#value = module.networking.vpc
value = module.networking.vpc.name
}
# output "vpc_all" {
# description = "VPC"
# value = module.networking.vpc
# }
output "vpc_subnets_private" {
description = "VPC Private Subnets IDs"
value = module.networking.vpc.private_subnets
}
output "vpc_subnets_public" {
description = "VPC Public Subnets IDs"
value = module.networking.vpc.public_subnets
}
output "vpc_subnets_database" {
description = "List of IDs of database subnets"
value = module.networking.vpc.database_subnets
}
output "sg_private_id" {
description = "SG Private ID"
value = module.networking.sg_private
}
output "sg_alb_id" {
description = "SG ALB ID"
value = module.networking.sg_alb
}
output "sg_public_id" {
description = "SG Public ID"
value = module.networking.sg_alb
}
output "sg_db_id" {
description = "SG DB ID"
value = module.networking.sg_db
}
output "rds_endpoint" {
description = "RDS endpoint"
value = module.rds.rds_endpoint
}
##############
## Compute
##############
# output "ec2_public_ip" {
# value = module.compute.public_ip
# }
# output "ec2_public_ami" {
# value = module.compute.ec2_public.ami
# }
output "alb_dns" {
description = "ALB DNS name"
value = module.compute.alb_dns
}
output "domain_name" {
description = "Final DNS name"
value = local.domain_name
}