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

terraform show does not work when remote state is in use #1810

Closed
bitglue opened this issue May 5, 2015 · 3 comments · Fixed by #2371
Closed

terraform show does not work when remote state is in use #1810

bitglue opened this issue May 5, 2015 · 3 comments · Fixed by #2371

Comments

@bitglue
Copy link

bitglue commented May 5, 2015

To reproduce:

  • Start with some configuration. Any configuration.
  • Configure remote state. For example, terraform remote config -backend=s3 -backend-config="bucket=some_bucket" -backend-config="key=some_key"
  • Apply the configuration.
  • Run terraform show.

Observed: Terraform exits with the message "No state." and status 0.

Expected: The same behavior that terraform show would normally have, which is to output all the resources and outputs that exist in the state file.

@hobbeswalsh
Copy link

👍 I just ran into the same bug; I'm using the S3 backend.

@hobbeswalsh
Copy link

However, I did notice that terraform remote pull puts the state in the .terraform/ directory, which is good enough for all intents and purposes.

@ghost
Copy link

ghost commented May 2, 2020

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 ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants