microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
372 stars 260 forks source link

New Resource `azuredevops_variable_group_variable` #1003

Open juicybaba opened 3 months ago

juicybaba commented 3 months ago

Community Note

Description

I am working on a use case where terraform generates a variable group with few pre-defined variables and allow users to add additional variables as needed to the same variable group. Sadly, manually created variables will be removed once terraform runs.

azuredevops_variable_group_variable can be helpful. Even if variable has to be created with at least one variable, create a dummy variable with ignore_change on variable block and manage pre-defined azuredevops_variable_group_variable on the side can do the trick.

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

seblatre commented 2 months ago

Hello, I have the pretty same use case for our data platform, we are providing Variable group to our internal customers for generic stuff and they can add their own variables for their specific use cases so here we are blocked by the current provider implementation.