generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 14
/
outputs.tf
103 lines (86 loc) · 2.47 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# General output
output "region" {
description = "AWS Region where the cluster is provisioned"
value = module.vpc.region
}
# Kubernetes cluster
output "cluster_name" {
description = "Kubernetes cluster name"
value = local.cluster_name
}
output "vpc_private_subnets" {
description = "VPC private subnets"
value = module.vpc.vpc_private_subnets
}
output "vpc_public_subnets" {
description = "VPC public subnets"
value = module.vpc.vpc_public_subnets
}
# Container Registry ECR output
output "container_registry_url" {
description = "Elatic Container Registry URL"
value = module.container_registry.container_registry_hostname
}
output "container_registry_name" {
description = "Elatic Container Registry name"
value = module.container_registry.container_registry_name
}
output "container_irsa_role_arn" {
description = "Elatic Container Registry IAM Role ARN"
value = module.container_registry.container_irsa_role_arn
}
# Database output
output "database_server_address" {
description = "RDS database address"
value = {
for key, value in module.databases : key => value.database_server_address
}
}
output "database_name" {
description = "RDS database name"
value = {
for key, value in module.databases : key => value.database_name
}
}
output "database_username" {
description = "RDS database username"
value = {
for key, value in module.databases : key => value.database_username
}
}
output "database_password" {
description = "RDS database password"
sensitive = true
value = {
for key, value in module.databases : key => value.database_password
}
}
# Filestorage ouput
output "filestorage_endpoint" {
description = "S3 endpoint"
value = module.file_storage.filestorage_endpoint
}
output "filestorage_regional_endpoint" {
description = "S3 regional endpoint"
value = module.file_storage.filestorage_regional_endpoint
}
# VPC output
output "cluster_vpc_id" {
description = "VPC ID"
value = module.vpc.vpc_id
}
# Grafana output
output "grafana_admin_password" {
description = "Grafana admin password"
sensitive = true
value = module.monitoring.grafana_admin_password
}
# Route53 output
output "aws_route53_zone" {
description = "Route 53 hosted zone ID"
value = aws_route53_zone.cluster_dns.id
}
output "aws_route53_zone_name_servers" {
description = "Route 53 hosted zone nameservers"
value = aws_route53_zone.cluster_dns.name_servers
}