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

Rover 'state list' 'state rm' 'state show' commands do not work #249

Open
dimitrifc opened this issue Apr 5, 2022 · 2 comments
Open

Rover 'state list' 'state rm' 'state show' commands do not work #249

dimitrifc opened this issue Apr 5, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dimitrifc
Copy link

dimitrifc commented Apr 5, 2022

Whenever I try to use Rover to show or manipulate state I get the output:

launchpad already installed

You can deploy a landingzone with the rover by running:
rover -lz [landingzone_folder_name] -a [plan|apply|destroy|validate|refresh|graph|import|output|taint|untaint|'state list'|'state rm'|'state show']

and the tf_action displays state with the second command cut off:
tf_action : 'state'

I tried several combinations of single and double quotes but none of them work.

@gesnaud
Copy link

gesnaud commented Nov 24, 2022

Hi @dimitrifc !
This have been fixed here.

@chianw
Copy link
Contributor

chianw commented Aug 4, 2023

I'm using aztfmod/rover:1.4.6-2307.2804 and tried to do the following:
rover -lz /tf/caf/landingzones/caf_launchpad \ -launchpad \ -var-folder /tf/caf/landingzones/caf_launchpad/scenario/100 \ -tfstate caf_launchpad.tfstate \ -tfstate_subscription_id xxxxx \ -target_subscription xxxxx \ -p ${TF_DATA_DIR}/caf_launchpad.tfstate -parallelism 30 \ -env sandpit \ -a "state list"

but it came back with an error

`Terraform state list return code: 1
Terraform returned errors:
Error parsing command-line flags: flag provided but not defined: -var-file

Error 2003 on or near line 641: Error running terraform state list; exiting with status 2003

@calling clean_up_variables
cleanup variables`

I tried with single quotes as well around 'state list' but the same results. Is this fixed in aztfmod/rover:1.4.6-2307.2804 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

5 participants