mask sensitive data mask in terraform ec2 userdata 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
}