vals icon indicating copy to clipboard operation
vals copied to clipboard

Feature request: read tfstate from gitlab

Open rubentest opened this issue 11 months ago • 2 comments

I have my tfstate saved in gitlab and I try to read with vals but I can't.

for example with tfstate lookup I can read the tf state: ./tfstate-lookup -state https://username:[email protected]/api/v4/projects/xx/terraform/state/Xxx/

But not with vals.

I tried with ref+tfstateremote and token as env var failed to read tfstate from remote://gitlab.xxx: resource not found I think only we need to add auth with

TFE_USER TFE_TOKEN

rubentest avatar Mar 21 '25 20:03 rubentest

@rubentest any logs?

yxxhero avatar Mar 21 '25 23:03 yxxhero

@yxxhero I don't know what logs can I have.

tfstate-lookup is supporting URL format HTTP(S) https://github.com/fujiwara/tfstate-lookup?tab=readme-ov-file#supported-tfstate-url-format And vals I think is not supporting URL format HTTP(S), at least as i Can read in docs.

I tried with ref+tfstateremote but I think is totally different than URL HTTP(s)

rubentest avatar Mar 23 '25 11:03 rubentest