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

Feature: Partial environment variables #295

Open
a-schot opened this issue Sep 9, 2024 · 4 comments
Open

Feature: Partial environment variables #295

a-schot opened this issue Sep 9, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@a-schot
Copy link

a-schot commented Sep 9, 2024

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

When provisioning environment variables through the resource dbtcloud_environment_variable, the environment already has to be deployed in order to give a value to the environment variable. When deploying dbt environments using separate state files this causes an issue where you can only really deploy the environment variables during the deployment of the last environment (eg. PROD)

Describe the solution you'd like

A dbtcloud_partial_environment_variable resource, akin to the dbtcloud_partial_license_map resource.

Describe alternatives you've considered

We are currently using count = var.environment == local.last_environment ? 1 : 0, but want a more flexible solution

Additional context

@a-schot a-schot added the enhancement New feature or request label Sep 9, 2024
@a-schot a-schot changed the title Partial environment variables Feature: Partial environment variables Sep 9, 2024
@b-per
Copy link
Collaborator

b-per commented Sep 9, 2024

Thanks for raising this.

I might try to have a look in the next few days/weeks but our APIs for env variables is not the best to interact with 😄

Copy link

github-actions bot commented Dec 9, 2024

This issue has been marked as Stale because it has been open for 90 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

@github-actions github-actions bot added the stale label Dec 9, 2024
@a-schot
Copy link
Author

a-schot commented Dec 9, 2024

Hi @b-per, have you had any chance to look at this yet?

@b-per b-per removed the stale label Dec 9, 2024
@b-per
Copy link
Collaborator

b-per commented Dec 9, 2024

Hi @a-schot . No, I haven't had the time. There are a few other new resources/datasources that we want to add as well and I don't know when we will have the time to tackle this one.

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

2 participants