rover icon indicating copy to clipboard operation
rover copied to clipboard

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

Open dimitrifc opened this issue 3 years ago • 2 comments

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.

dimitrifc avatar Apr 05 '22 14:04 dimitrifc

Hi @dimitrifc ! This have been fixed here.

gesnaud avatar Nov 24 '22 12:11 gesnaud

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 ?

chianw avatar Aug 04 '23 10:08 chianw