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
With these files above terraform init -backend=true still initializes to local state:
$ ./terraform init -backend=true /PATH_TO_PROJECT/s3
Initializing configuration from: "/PATH_TO_PROJECT/s3"...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your environment. If you forget, other
commands will detect it and remind you to do so if necessary.
If we remove terraform required_version from main.tf, then we get the project backend properly configured to s3.
./terraform init -backend=true /PATH_TO_PROJECT/s3
Initializing configuration from: "PATH_TO_PROJECT/s3"...
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your environment. If you forget, other
commands will detect it and remind you to do so if necessary.
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 15, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
we have the following files in the folder:
The content for the backend.tf:
The content for the main.tf (can be anything - important is the terraform required_version):
With these files above
terraform init -backend=true
still initializes to local state:If we remove
terraform required_version
from main.tf, then we get the project backend properly configured to s3.main.tf content (no terraform required_version):
Execution output:
The text was updated successfully, but these errors were encountered: