You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When no .terraformignore file is present, executing a plan or apply on a Remote Backend CLI-drive run will ignore any .git and .terraform folders, excluding .terraform/modules, while building the slug to upload.
Actual Behavior
On Windows, .terraform and .git folders are included in the uploaded slug.
Steps to Reproduce
On a Windows machine with latest Terraform installed:
Create a new Terraform Cloud workspace
Create a Terraform configuration with a remote backend pointing at that workspace
terraform init
Copy a large file (100+ MB) into the .terraform folder
terraform plan
Watch your upload statistics and note how long it takes to upload
Create a .terraformignore file with the following contents:
I believe this is happening because the default .terraformignore uses forward slashes, but backslashes are required on Windows. If you create a .terraformignore file using forward slashes, you see the same behavior as if not using a .terraformignore at all. If you change it to backslashes, it works correctly.
References
n/a
The text was updated successfully, but these errors were encountered:
@Jaecen Thanks for filing this report! This is definitely an oversight, and I appreciate you posting the current workaround (.terraformignore with the default rules) for any users looking for it. I'll get to work on fixing this.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 28, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
n/a
Debug Output
n/a
Crash Output
n/a
Expected Behavior
When no
.terraformignore
file is present, executing aplan
orapply
on a Remote Backend CLI-drive run will ignore any.git
and.terraform
folders, excluding.terraform/modules
, while building the slug to upload.Actual Behavior
On Windows,
.terraform
and.git
folders are included in the uploaded slug.Steps to Reproduce
On a Windows machine with latest Terraform installed:
terraform init
.terraform
folderterraform plan
.terraformignore
file with the following contents:terraform plan
Additional Context
I believe this is happening because the default
.terraformignore
uses forward slashes, but backslashes are required on Windows. If you create a.terraformignore
file using forward slashes, you see the same behavior as if not using a.terraformignore
at all. If you change it to backslashes, it works correctly.References
n/a
The text was updated successfully, but these errors were encountered: