You have a team-based collaboration project. Where should you store sensitive credentials like AWS secret keys so they are not hardcoded in your Terraform files?
Trap 1: In a .tfvars file
tfvars files are plain text and insecure for secrets.
Trap 2: In a version-controlled .env file
Version control is insecure for secrets.
Trap 3: In the state file
State files contain secrets in plain text and are not a secure storage mechanism.
- A
In environment variables marked as 'sensitive'
Sensitive workspace variables are encrypted at rest and masked in logs.
- B
In a .tfvars file
Why it fails: tfvars files are plain text and insecure for secrets.
- C
In a version-controlled .env file
Why it fails: Version control is insecure for secrets.
- D
In the state file
Why it fails: State files contain secrets in plain text and are not a secure storage mechanism.