Process Flow - Sensitive variable handling
Define variable with sensitive=true
Terraform hides value in output
Use variable in resource config
Terraform applies config securely
Sensitive value not shown in logs or plan
Output or state file stores encrypted or masked value
Terraform marks variables as sensitive to hide their values in outputs and logs, ensuring secrets are not exposed during deployment.