-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
app_service
- fix cors
, ip_restriction
and scm_ip_restriction
processing and minor bugfixes to flatten functions.
#20987
Conversation
Update Cors processing after service default changed from empty block to nil block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM though there are some tests failing around this but I can't tell if it's because of these changes or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor comments but otherwise 👍
This functionality has been released in v3.49.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Hey everyone -- I'm finding that this change broke some of our modules and I want to be certain of the cause. The As of 3.49 this syntax apparently no longer works. Dynamic block syntax is now required. Was that expected? locals {
ip_restrictions = {
"range_1" = {
name = "Range 1"
ip_address = "..."
},
"range_2" = {
name = "Range 2"
ip_address = "..."
},
...
}
}
# in app service configuration:
ip_restriction = [
for k, v in local.ip_restrictions : merge({
name = null
ip_address = null
action = "Allow"
priority = 20
headers = null
service_tag = null
virtual_network_subnet_id = null
subnet_id = null
}, v)
] |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
**Breaking Changes - App Service
site_config
**ip_restriction
blocks are no longer computed - Changes to IP restrictions outside of Terraform will now present a diffscm_ip_restriction
blocks are no longer computed - Changes to SCM IP restrictions outside of Terraform will now present a diffcors
blocks no longer requireallowed_origins
, however, if the property is supplied it must contain at least one item. Omitting this property will set the array empty.BUG FIXES
azurerm_linux_function_app
- fixed processing ofcors
blockazurerm_linux_function_app_slot
- fixed processing ofcors
blockazurerm_linux_function_app
- theip_restriction
block can is now successfully removed by removing from configazurerm_linux_function_app_slot
- theip_restriction
block can is now successfully removed by removing from configazurerm_linux_function_app
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_linux_function_app_slot
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_linux_web_app
- fixed processing ofcors
blockazurerm_linux_web_app_slot
-fixed processing ofcors
blockazurerm_linux_web_app
- theip_restriction
block can is now successfully removed by removing from configazurerm_linux_web_app_slot
- theip_restriction
block can is now successfully removed by removing from configazurerm_linux_web_app
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_linux_web_app_slot
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_windows_function_app
- fixed processing ofcors
blockazurerm_windows_function_app_slot
- fixed processing ofcors
blockazurerm_windows_function_app
- theip_restriction
block can is now successfully removed by removing from configazurerm_windows_function_app_slot
- theip_restriction
block can is now successfully removed by removing from configazurerm_windows_function_app
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_windows_function_app_slot
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_windows_web_app
- fixed processing ofcors
blockazurerm_windows_web_app_slot
-fixed processing ofcors
blockazurerm_windows_web_app
- theip_restriction
block can is now successfully removed by removing from configazurerm_windows_web_app_slot
- theip_restriction
block can is now successfully removed by removing from configazurerm_windows_web_app
- thescm_ip_restriction
block can is now successfully removed by removing from configazurerm_windows_web_app_slot
- thescm_ip_restriction
block can is now successfully removed by removing from configfixes #17173
fixes #18664
fixes #18793
fixes #19323
fixes #20148
fixes #20193
fixes #20331
Supersedes #20251
Supersedes #20327