Skip to content

Commit

Permalink
feat: Add sensitive flag for MySQL module outputs (#303)
Browse files Browse the repository at this point in the history
running terraform plan on MySQL module was generating errors
because the values in these outputs are considered sensitive.

Co-authored-by: Artem Vovk <avovk@recurly.com>
Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
  • Loading branch information
3 people committed Jun 1, 2022
1 parent 8d44131 commit 6a15c26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mysql/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,17 @@ output "private_ip_address" {
output "primary" {
value = google_sql_database_instance.default
description = "The `google_sql_database_instance` resource representing the primary instance"
sensitive = true
}

output "replicas" {
value = values(google_sql_database_instance.replicas)
description = "A list of `google_sql_database_instance` resources representing the replicas"
sensitive = true
}

output "instances" {
value = concat([google_sql_database_instance.default], values(google_sql_database_instance.replicas))
description = "A list of all `google_sql_database_instance` resources we've created"
sensitive = true
}

0 comments on commit 6a15c26

Please sign in to comment.