DEV Community


Posted on • Updated on

.gitignore & .terraformignore for terraform files


# Local .terraform directories

# .tfstate files

# Crash log 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.

# Ignore override files as they are usually used to override resources locally and so
# are not checked in

# Include override files you do wish to add to version control using negated pattern
# !

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files


Enter fullscreen mode Exit fullscreen mode


# controls what directories get uploaded to TFC for remote runs
# deny by default
# explicitly list included directories
Enter fullscreen mode Exit fullscreen mode

Top comments (0)