Loading...
Loading...
### Terraform Version ```shell v1.11.3 ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` resource "azurerm_web_application_firewall_policy" "waf_policy" { name = var.waf_policy_name location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name policy_settings { enabled = var.policy_settings.enabled mode = var.policy_settings.mode # Conditionally set optional attributes request_body_check = try(var.policy_settings.request_body_check, null) request_body_inspect_limit_in_kb = try(var.policy_settings.request_body_inspect_limit_in_kb, null) request_body_enforcement = try(var.policy_settings.request_body_enforcement, null) file_upload_enforcement = try(var.policy_settings.file_upload_enforcement, null) file_upload_limit_in_mb = try(var.policy_settings.file_upload_limit_in_mb, null) max_request_body_size_in_kb = try(var.policy_settings.max_request_body_size_in_kb, null) js_challenge_cookie_expiration_in_minutes = try(var.policy_settings.js_challenge_cookie_expiration_in_minutes, null) } ### Debug Output [```]( ╷ │ Error: Unsupported argument │ │ on .terraform/modules/waf_policy/main.tf line 46, in resource "azurerm_web_application_firewall_policy" "waf_policy": │ 46: file_upload_enforcement = try(var.policy_settings.file_upload_enforcement, null) │ │ An argument named "file_upload_enforcement" is not expected here. ╵ Cleaning up project directory and file based variables 00:01 ERROR: Job failed: command terminated with exit code 1 ) ...debug output, or link to a gist... ``` ### Expected Behavior I want to enable or disable Enforce maximum file upload limit in policy setting of WAF in azure ### Actual Behavior Is there any supported parameter or argument? ### Steps to Reproduce 1. terraform plan 2. terraform apply ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.