hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.52k stars 4.6k forks source link

Support for making `cdn_frontdoor_origin_ids` in `azurerm_cdn_frontdoor_route` optional #25605

Open dschniepp opened 5 months ago

dschniepp commented 5 months ago

Is there an existing issue for this?

Community Note

Description

I read https://github.com/hashicorp/terraform-provider-azurerm/issues/19449 and I am aware of the dependency. Though would we require the cdn_frontdoor_origin_ids to be optional eq empty list []. Our origins are not created over terraform but dynamically over the Azure Service Operator (ASO) in different Kubernetes clusters or other terraform modules.

I think this should be possible as we can provide a proper documentation and a Note: up like we have for others. I am also happy to provide a patch.

New or Affected Resource(s)/Data Source(s)

azurerm_cdn_frontdoor_route

Potential Terraform Configuration

cdn_frontdoor_origin_ids - (Optional) Zero or more Front Door Origin resource IDs that this Front Door Route will link to.

References

https://learn.microsoft.com/en-us/azure/frontdoor/how-to-configure-endpoints

dschniepp commented 5 months ago

Sorry, to ping you @WodansSon but the issue was closed. I saw your comment https://github.com/hashicorp/terraform-provider-azurerm/issues/19449#issuecomment-1330035114. Would have depends_on, solved the problem?