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

azurerm not finding tfstate blob in subdirectories #42

Closed
Amos-85 opened this issue May 7, 2022 · 3 comments · Fixed by #43
Closed

azurerm not finding tfstate blob in subdirectories #42

Amos-85 opened this issue May 7, 2022 · 3 comments · Fixed by #43

Comments

@Amos-85
Copy link

Amos-85 commented May 7, 2022

I'm trying to look for the terragrunt.tfstate file which located in subdirectories.
Lets assume I want to look for terragrunt.tfstate file under this key: terraform-state/base/cloud-resources/terragrunt.tfstate

tfstate-lookup -s azurerm://rg-test/storage_account/terraform-state/base/cloud-resources/terragrunt.tfstate

tfstate-lookup ignore subdirectories after base folder and the exception below appear:

Code: BlobNotFound
GET https://storage_account.blob.core.windows.net/terraform-state/base?timeout=61
Authorization: REDACTED

@Amos-85
Copy link
Author

Amos-85 commented May 16, 2022

@fujiwara,
Is tfstate-lookup wasn't designed to work with subdirectories within azurerm?

fujiwara added a commit that referenced this issue May 27, 2022
@fujiwara
Copy link
Owner

@Amos-85 v0.4.4 released! https://github.com/fujiwara/tfstate-lookup/releases/tag/v0.4.4

@Amos-85
Copy link
Author

Amos-85 commented Jun 11, 2022

Thanks @fujiwara !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants