-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
56 lines (53 loc) · 1.67 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
output "alb_dns_name" {
value = module.alb.dns_name
description = "DNS name of the ALB"
}
output "services_urls" {
value = {
backoffice = local.backoffice.url
frontend = local.frontend.url
engine = local.engine.url
}
description = "URLs of the running services"
}
output "vpc_config" {
value = {
vpc_id = local.vpc_id
vpc_cidr_block = local.vpc_cidr_block
public_subnets = local.public_subnet_ids
private_subnets = local.private_subnet_ids
}
description = "VPC configuration contaning VPC ID, CIDR block and subnets"
}
output "managed_services" {
value = {
elasticache = {
endpoint = try(module.elasticache.endpoint, "")
ssm_credentials = {
password = try(module.elasticache_ssm_password.names[0], "")
}
}
rabbitmq = {
endpoint = try(module.rabbit_mq.primary_console_url, "")
ssm_credentials = {
username = try("/${local.rabbitmq_ssm}/master_username", "")
password = try("/${local.rabbitmq_ssm}/master_password", "")
}
}
opensearch = {
ssm_credentials = {
endpoint = try(module.elasticsearch.domain_endpoint, "")
username = try(module.elasticsearch_ssm_username.names[0], "")
pasword = try(module.elasticsearch_ssm_password.names[0], "")
}
}
document_db = {
endpoint = try(module.documentdb_cluster.endpoint, "")
ssm_credentials = {
username = try(module.document_db_ssm_username.names[0], "")
password = try(module.document_db_ssm_password.names[0], "")
}
}
}
description = "Managed services configuration containing endpoints and name of SSM parameters with credentials"
}