Open abhiramani-git opened 5 months ago
Hi, first of all what are you trying to accomplish? And is your state file called devtest.tfvars? please provide the steps of your pipeline.
br Manuel
@mericstam i am trying to list state file content and then i need to delete some resources from state file if list works successfully
yes its called devtest.tfvars. i have just kept that extension instead of .tfstate.
Do you use SAS token to access blob store? or how do you authenticate?
/Manuel
Hi i am running pipeline using service principal and it has contributor access to storage account. and other steps like terraform init/plan/apply all work fine. just state commands like list/rm not working
as far as I understand the option -state=path is ignored when using remote state.
https://developer.hashicorp.com/terraform/cli/commands/state/list So perhaps as a test you can change to default name?
br Manuel
Just terraform state list fails with not much info. my state is already successfully initialized in "terraform init state"
Any update?
Can you run the terraform state command locally?
Yes I can
this is the task i am running. i keep getting this error:State management commands require a state file. Run this commandto point the command to a specific state location.
steps: