Skip to content

Commit 6a15c26

Browse files
feat: Add sensitive flag for MySQL module outputs (#303)
running terraform plan on MySQL module was generating errors because the values in these outputs are considered sensitive. Co-authored-by: Artem Vovk <[email protected]> Co-authored-by: Bharath KKB <[email protected]>
1 parent 8d44131 commit 6a15c26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/mysql/outputs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,17 @@ output "private_ip_address" {
117117
output "primary" {
118118
value = google_sql_database_instance.default
119119
description = "The `google_sql_database_instance` resource representing the primary instance"
120+
sensitive = true
120121
}
121122

122123
output "replicas" {
123124
value = values(google_sql_database_instance.replicas)
124125
description = "A list of `google_sql_database_instance` resources representing the replicas"
126+
sensitive = true
125127
}
126128

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

0 commit comments

Comments
 (0)