aztfmod / rover

The rover is a docker container in charge of the deployment of the Terraform platform engineering for Azure
MIT License
171 stars 142 forks source link

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

Open dimitrifc opened 2 years ago

dimitrifc commented 2 years ago

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_foldername] -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: _tfaction : 'state'

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

gesnaud commented 1 year ago

Hi @dimitrifc ! This have been fixed here.

chianw commented 11 months ago

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 ?