👉
TL;DR: Use a secrets manager and variables”, never hardcode secrets. Mark outputs sensitive and store state remotely with encryption and strict access. Traditional data sources can leak to state; use Terraform 1.10 ephemeral resources to fetch/generate secrets at apply time without persisting them.
Terraform Secrets
First seen on securityboulevard.com
Jump to article: securityboulevard.com/2025/10/terraform-secrets-management-best-practices-secret-managers-and-ephemeral-resources/
![]()

