-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
42 lines (35 loc) · 1.51 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
output "db_instance_name" {
value = google_sql_database_instance.this.name
description = "string ||| Name of the MySQL instance"
}
output "db_admin_secret_name" {
value = google_secret_manager_secret.admin_creds.secret_id
description = "string ||| The name of the secret in Google Secrets Manager containing the admin credentials { username, password }"
}
output "db_endpoint" {
value = "${google_sql_database_instance.this.private_ip_address}:${local.db_port}"
description = "string ||| The endpoint URL to access the MySQL instance."
}
output "db_admin_function_name" {
value = module.db_admin.function_name
description = "string ||| Google Cloud Function name for database admin utility"
}
output "db_admin_function_url" {
value = module.db_admin.function_url
description = "string ||| Google Cloud Function url for database admin utility"
}
output "db_admin_invoker" {
value = module.db_admin.invoker
description = "object({ email: string, private_key: string }) ||| A GCP service account with explicit privilege invoke db admin cloud function."
sensitive = true
}
/*
output "db_log_group" {
value = aws_cloudwatch_log_group.this.name
description = "string ||| The name of the Cloudwatch Log Group where postgresql logs are emitted for the DB Instance"
}
output "db_upgrade_log_group" {
value = aws_cloudwatch_log_group.upgrade.name
description = "string ||| The name of the Cloudwatch Log Group where upgrade logs are emitted for the DB Instance"
}
*/