Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(provisioner/terraform): allow passing custom environment variable to Terraform binary #14452

Labels
need-backendIssues that need backend work
@johnstcn

Description

@johnstcn

In order to support some use-cases around caching Terraform modules and provisioners, we need to allow setting some environment variablesspecifically for certain Terraform invocations.

One such example would be settingHTTP_PROXY /HTTPS_PROXY to a caching proxy duringterraform init, so that cached versions of providers and modules can be retrieved from the proxy instead of upstream.

ExposeCODER_PROVISIONER_TERRAFORM_{INIT,PLAN,APPLY}_ENV on bothcoderd andprovisionerd that will allow passing an array of environment variables intoterraform.provisionEnv.

For the above example, an administrator could setCODER_PROVISIONER_TERRAFORM_INIT_ENV_0=HTTP_PROXY=http://proxy.corp.int:8080.

NOTE: It shouldnot allow overriding any environment variable starting with the prefixCODER_.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-backendIssues that need backend work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp