Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ouputs sensitive values with terraform v0.15.0 #33

Open
ichasco-heytrade opened this issue Apr 25, 2021 · 1 comment
Open

Error in ouputs sensitive values with terraform v0.15.0 #33

ichasco-heytrade opened this issue Apr 25, 2021 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@ichasco-heytrade
Copy link

Hi, with terraform v0.15.0 it give the next error:

Error: Output refers to sensitive values
│ 
│   on .terraform/modules/documentdb_cluster/outputs.tf line 1:
│    1: output "master_username" {
│ 
│ Expressions used in outputs can only refer to sensitive values if the sensitive attribute is true.

module version: 0.13.0

Thanks!

@ichasco-heytrade ichasco-heytrade added the bug 🐛 An issue with the system label Apr 25, 2021
@ichasco-heytrade
Copy link
Author

The workaround:

In file: .terraform/modules/documentdb_cluster/outputs.tf

add: sensitive = true

output "master_username" {
  value       = join("", aws_docdb_cluster.default.*.master_username)
  description = "Username for the master DB user"
  sensitive   = true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant