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

An argument named "private_endpoint_network_policies_enabled" is not expected here #1162

Open
ifilipovskyy opened this issue Oct 18, 2024 · 1 comment

Comments

@ifilipovskyy
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Versions

terraform: 1.9.8 (latest)

azure provider: 4.5.0

module: 5.2.0

Description

│ Error: Unsupported argument

│ on .terraform/modules/enterprise_scale/resources.connectivity.tf line 58, in resource "azurerm_subnet" "connectivity":
│ 58: private_endpoint_network_policies_enabled = each.value.template.private_endpoint_network_policies_enabled

│ An argument named "private_endpoint_network_policies_enabled" is not
│ expected here.

Describe the bug

All the time when I run caf-enterprise-scale module with version higher than 1.x.x I got this error message even it's very basic configuration.

Steps to Reproduce

Run terraform with basic configuration like following:

module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "5.2.0"

providers = {
azurerm = azurerm
azurerm.management = azurerm
azurerm.connectivity = azurerm
}

Base module configuration settings.

root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = local.root_id
root_name = local.root_name
default_location = local.default_location

Screenshots

Image

Additional context

@matt-FFFFFF
Copy link
Member

Hi private_link_service_network_policies_enabled is the attribute name and it's correct in the latest version of the module. You either need to ping to an older provider version, or update the module.

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

No branches or pull requests

2 participants