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

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

Open
JoDexsph opened this issue Jun 20, 2024 · 0 comments
Open

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

JoDexsph opened this issue Jun 20, 2024 · 0 comments

Comments

@JoDexsph
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant