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
the terraform init command has an optional second positional argument for the path where the module should be placed, defaulting to the current working directory.
When that argument is provided, the module config is copied into the given directory as expected, but the .terraform/terraform.tfstate file (created if you simultaneously configure remote state) is always written to the current working directory, and not to the target path.
This is bothersome since running terraform commands in the new directory then uses local state rather than remote state, which causes confusion at best and duplicated resources at worst.
The text was updated successfully, but these errors were encountered:
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
Apr 28, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the
terraform init
command has an optional second positional argument for the path where the module should be placed, defaulting to the current working directory.When that argument is provided, the module config is copied into the given directory as expected, but the
.terraform/terraform.tfstate
file (created if you simultaneously configure remote state) is always written to the current working directory, and not to the target path.This is bothersome since running terraform commands in the new directory then uses local state rather than remote state, which causes confusion at best and duplicated resources at worst.
The text was updated successfully, but these errors were encountered: