microsoft / terraform-provider-azuredevops

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

Support `allow_access` for `azuredevops_serviceendpoint_azurerm` and `azuredevops_environment` #992

Open juicybaba opened 8 months ago

juicybaba commented 8 months ago

Community Note

Description

Allow azuredevops_serviceendpoint_azurerm and azuredevops_environment created with open access. image

image

variable_group support this. https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/variable_group#allow_access

New or Affected Resource(s)

Potential Terraform Configuration

resource "azuredevops_serviceendpoint_azurerm" "example" {
 ...
allow_access = true
 ...
}

resource "azuredevops_environment" "example" {
 ...
allow_access = true
 ...
}

References

xuzhang3 commented 8 months ago

@juicybaba access permission can be managed by https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/pipeline_authorization

juicybaba commented 8 months ago

@juicybaba access permission can be managed by https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs/resources/pipeline_authorization

@xuzhang3 thanks, I can give that a shot, i am wandering if it is possible to add a flag instead of using another resource. :)

xuzhang3 commented 8 months ago

@juicybaba It's possible to add an flag for this feature within the specific resource, but pipelien_auth can mange the access for all pipeline and specific pipeline

juicybaba commented 8 months ago

@juicybaba It's possible to add an flag for this feature within the specific resource, but pipelien_auth can mange the access for all pipeline and specific pipeline

sounds good, no worries, i can do that, consider this is a nice to have feature