Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit .tfvars files #638

Open
jamesgeddes opened this issue Apr 11, 2024 · 0 comments
Open

Commit .tfvars files #638

jamesgeddes opened this issue Apr 11, 2024 · 0 comments

Comments

@jamesgeddes
Copy link

jamesgeddes commented Apr 11, 2024

The Terraform template1, 2 is currently set to ignore all .tfvars files.

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

Examples provided by Terraform Best Practices show that it is recommended to,

  • use a committed terraform.tfvars file to provide non-sensitive configuration values for an environment.
  • store secrets in a secrets manager, keeping them away from git altogether.

This ensures modularity and scalability.

Allow terraform.tfvars files to be included in a repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant