You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some plugins for terraform require parallelism be reduced down from the default of 10 to 1. (Specifically jfrog/artifactory).
It is currently not possible to set the parallelism to a value other than 10 when using an automated pipeline (such as with gitlabs native terraform support)
The environment variables of the form TF_CLI_ARGS_name are designed to allow you to set any command line option using an environment variable, so I think what you want to achieve here is already possible with an invocation like this:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
Mar 17, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request
Terraform should support environment variables like
TF_parallelism
to supplement command line arguments.Current mechanism
terraform apply -parallelism=1
Purposed mechanism
Terraform currently supports a variety of parameters and environment variables.
Parameters
https://www.terraform.io/docs/cli/commands/apply.html
Environment Variables
https://www.terraform.io/docs/cli/config/environment-variables.html
https://github.com/hashicorp/terraform/blob/4d65cbdedf425b0a5a90737100b265e207002c85/website/docs/cli/config/environment-variables.html.md
Justification
Some plugins for terraform require parallelism be reduced down from the default of 10 to 1. (Specifically jfrog/artifactory).
It is currently not possible to set the parallelism to a value other than 10 when using an automated pipeline (such as with gitlabs native terraform support)
Possible workarounds
Resources
atlassian/terraform-provider-artifactory#75 (comment)
https://docs.gitlab.com/ee/user/infrastructure/terraform_state.html
https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
https://gitlab.com/gitlab-org/terraform-images/-/blob/master/Dockerfile
The text was updated successfully, but these errors were encountered: