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

Make linuxbox_docker_container envs dynamic #30

Open
zimbatm opened this issue Apr 1, 2022 · 0 comments
Open

Make linuxbox_docker_container envs dynamic #30

zimbatm opened this issue Apr 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@zimbatm
Copy link
Member

zimbatm commented Apr 1, 2022

Is your feature request related to a problem? Please describe.

Whenever a single env var is being changed, the diff is too large:

# module.consent.linuxbox_docker_container.foo will be updated in-place
  ~ resource "linuxbox_docker_container" "foo" {
      ~ env          = {
          - "AUTH_URL"                 = "http://auth-url/"
          - "DATABASE_URL_API"         = "postgres://user@database_host/db_name"
          - "ENV"                      = "dev"
          - "GCP_BUCKET_ROOT"          = "foo-bar-baz"
          - "RACK_ENV"                 = "production"
          - "RUBYOPT"                  = "-W:deprecated"
          - "SENTRY_URL"               = "https://..."
        } -> (known after apply)
        id           = "74eaa26d18fc146ffd1863bc88f89737094c98cc22b1e9179666cd1b93549664"
      ~ image_id     = "eu.gcr.io/foobar/baz:2283e019" -> "eu.gcr.io/foobar/baz:7bad2e0a"
        name         = "foo"
        # (12 unchanged attributes hidden)
    }

Describe the solution you'd like

Ideally, it would only show the envs that have changed.

And also if the env contains a secret value, not display it.

Describe alternatives you've considered

Additional context

@zimbatm zimbatm added the enhancement New feature or request label Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant