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

Update Terraform.gitignore to ignore .hcl file to be committed #4447

Conversation

githubofkrishnadhas
Copy link
Contributor

Reasons for making this change:

Making this change to ignore .terraform.lock.hcl which is an internal file generated by terraform and not needed in our remote repos as they are automatically generated on each terraform init runs
image

TODO

Links to documentation supporting these rule changes:
NA
TODO

If this is a new template:
existing template, just modified.

  • Link to application or project’s homepage: TODO
    NA

@@ -32,3 +32,6 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc

# Ignore hcl file
*.hcl
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we call out the .terraform.lock.hcl file specifically?

If not, could you provide more external references to justify the more broad rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we can call it as .terraform.lock.hcl instead of wildcard expresssion *.hcl.

shall i raise a new PR? please advice

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating this PR with the change is preferred in this situation. Thank you!

@githubofkrishnadhas
Copy link
Contributor Author

new pr raised here #4451

wirecat added a commit that referenced this pull request May 30, 2024
Update Terraform.gitignore to ignore .hcl files based on pr #4447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants