terraform remove password from state code example
Example: making password sensitive/hide in terraform
#Making your Password Sensitive
locals {
db_password = {
admin = "mypassword"
}
}
output "db_password" {
value = local.db_password
sensitive = true
}