aztfmod / rover

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

Bug: Rover log flag log-severity command not found #389

Open JoDexsph opened 3 months ago

JoDexsph commented 3 months ago

Running Rover in Azure DevOps with a Linux VM, adding the flag -log-severity to set the terraform log level to any value gives the error: ` -log-severity: command not found

[error]Bash exited with code '127'.

`

Rover Version

aztfmod/rover:1.6.6.-2401.0402

The following is the script we are executing from our pipeline:

  - script: | 
        export ROVER_RUNNER=true
        /tf/rover/rover.sh \
        -lz $(Build.SourcesDirectory)/Library/$(landingzone_version) \
        -var-folder $(Build.SourcesDirectory)/${{ parameters.repoName }}/variables \
        -a apply \
        -level $(level) \
        -env test \
        -log-severity $(tflog_level)
        -tfstate_subscription_id $(ARM_SUBSCRIPTION_ID) \
        -tfstate $(tfstate_name).tfstate \
        -target_subscription $(target_subscription) \
        -p plan.tfstate.tfplan/drop/plan.tfstate.tfplan

We tried setting the -log-severity to DEBUG or TRACE directly the pipeline failed with the same error. https://aztfmod.github.io/documentation/docs/rover/rover-commands/ https://developer.hashicorp.com/terraform/internals/debugging