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 / show #322

Open
gevraud opened this issue Jun 25, 2023 · 1 comment
Open

Rover state list / show #322

gevraud opened this issue Jun 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@gevraud
Copy link

gevraud commented Jun 25, 2023

Hello,

I am using rover version 1.4.6 and the execution of 'state list', 'state show' doesn't work anymore.

Here is the command I execute

rover -lz /tf/caf/landingzones/caf_solution -env xxx -level level3 -tfstate_subscription_id zzzz -tfstate snapshots.tfstate -target_subscription aaaa -var-folder /tf/caf/configuration/xxx/level3/elk/snapshots -a "state list"

It just doesn't do anything.

@calling_get_logged_user_object_id
 - AZURE_ENVIRONMENT: AzureCloud
 - ARM_ENVIRONMENT: public
Initalizing az cloud variables
 - logged in user objectId: xxxx (gevraud@xxx)
Initializing state with user: gevraudxxxx

launchpad: 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']

@calling clean_up_variables
cleanup variables
clean_up backend_files

I feel it was working well in version 1.3.1.

Do I miss something / did the syntax change ?

Regards

@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
None yet
Development

No branches or pull requests

4 participants