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

enforce_private_link_endpoint_network_policies Deprecation warning when using azurerm v3.24.0 #69

Closed
ghost opened this issue Sep 26, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2022

When using azurerm v3.24.0 we get the following deprecation warning when running a plan with this module:

│ Warning: Argument is deprecated

│ with module.firewall.module.network.azurerm_subnet.subnet,
│ on .terraform\modules\firewall.network\main.tf line 22, in resource "azurerm_subnet" "subnet":
│ 22: enforce_private_link_endpoint_network_policies = lookup(var.subnet_enforce_private_link_endpoint_network_policies, var.subnet_names[count.index], false)

enforce_private_link_endpoint_network_policies will be removed in favour of the property
private_endpoint_network_policies_enabled in version 4.0 of the AzureRM Provider

@holms
Copy link

holms commented Oct 6, 2022

Got the same warning, I hope with 4.0 version I won't have problem using this module in production?

@lonegunmanb
Copy link
Member

It will be a breaking change since the private_endpoint_network_policies_enabled will only be available in 4.0, we might need to limit this module's azurerm provider's version to < 4.0 to avoid potential breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants