-
Notifications
You must be signed in to change notification settings - Fork 16
/
outputs.tf
87 lines (85 loc) · 2.87 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
79
80
81
82
83
84
85
86
87
# VPC
# us-east-1
output "vpc_id_use1" {
description = "Id of VPC in us-east-1 region"
value = local.vpc_id_use1
}
output "public_subnets_use1" {
description = "Public subnet Ids associated with VPC in us-east-1 region"
value = local.public_subnets_use1
}
output "private_subnets_use1" {
description = "Private subnet Ids associated with VPC in us-east-1 region"
value = local.private_subnets_use1
}
output "azs_use1" {
description = "Availability zones used by VPC located in us-east-1 region"
value = local.vpc_azs_use1
}
output "s3_vpc_interface_endpoint_use1" {
description = "S3 service interface endpoint asscoiated with VPC in us-east-1 region"
value = local.s3_interface_endpoint_use1
}
# us-east-2
output "vpc_id_use2" {
description = "Id of VPC in us-east-2 region"
value = local.vpc_id_use2
}
output "public_subnets_use2" {
description = "Public subnet Ids associated with VPC in us-east-2 region"
value = local.public_subnets_use2
}
output "private_subnets_use2" {
description = "Private subnet Ids associated with VPC in us-east-2 region"
value = local.private_subnets_use2
}
output "azs_use2" {
description = "Availability zones used by VPC located in us-east-2 region"
value = local.vpc_azs_use2
}
output "s3_vpc_interface_endpoint_use2" {
description = "S3 service interface endpoint asscoiated with VPC in us-east-2 region"
value = local.s3_interface_endpoint_use2
}
# us-west-2
output "vpc_id_usw2" {
description = "Id of VPC in us-west-2 region"
value = local.vpc_id_usw2
}
output "public_subnets_usw2" {
description = "Public subnet Ids associated with VPC in us-west-2 region"
value = local.public_subnets_usw2
}
output "private_subnets_usw2" {
description = "Private subnet Ids associated with VPC in us-west-2 region"
value = local.private_subnets_usw2
}
output "azs_usw2" {
description = "Availability zones used by VPC located in us-west-2 region"
value = local.vpc_azs_usw2
}
output "s3_vpc_interface_endpoint_usw2" {
description = "S3 service interface endpoint asscoiated with VPC in us-west-2 region"
value = local.s3_interface_endpoint_usw2
}
# ECS
# us-east-1
output "ecs_cluster_id" {
description = "ECS cluster id"
value = module.ecs.ecs_cluster_id
}
output "ecs_cluster_name" {
description = "ECS cluster name"
value = module.ecs.ecs_cluster_name
}
# Route53
output "route53_endpoints" {
description = "Route53 endpoints generated by test controller services"
value = {
name_servers = try(module.route53_dns[0].name_servers, "")
bastion = module.bastion.bastion_enpoint
ui_endpoint = module.test_controller_service.ui_endpoint
agent_endpoint = module.test_controller_service.agent_endpoint
opensearch_endpoint = var.create_opensearch ? module.opensearch[0].opensearch_endpoint : ""
}
}