-
Notifications
You must be signed in to change notification settings - Fork 11
chore: upgrade azurerm to 5.0.1 #3981
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| *.tfstate.* | ||
|
|
||
| # Crash log files | ||
| core | ||
| crash.log | ||
| crash.*.log | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,12 +48,13 @@ locals { | |
| } | ||
|
|
||
| resource "azurerm_key_vault" "main" { | ||
| name = local.key_vault_name | ||
| location = data.azurerm_resource_group.main.location | ||
| resource_group_name = data.azurerm_resource_group.main.name | ||
| sku_name = "standard" | ||
| tenant_id = data.azurerm_client_config.current.tenant_id | ||
| purge_protection_enabled = true | ||
| name = local.key_vault_name | ||
| location = data.azurerm_resource_group.main.location | ||
| resource_group_name = data.azurerm_resource_group.main.name | ||
| sku_name = "standard" | ||
| tenant_id = data.azurerm_client_config.current.tenant_id | ||
| purge_protection_enabled = true | ||
| rbac_authorization_enabled = false | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. newly required property |
||
|
|
||
| lifecycle { | ||
| prevent_destroy = true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ terraform { | |
| required_providers { | ||
| azurerm = { | ||
| source = "hashicorp/azurerm" | ||
| version = "~> 4.67" | ||
| version = "~> 5.0.1" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to configure @dependabot to watch this version?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. confirmed (via #3992) |
||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ resource "azurerm_container_app_environment" "main" { | |
| name = "CAE-CDT-PUB-VIP-CALITP-${var.env_letter}-001" | ||
| location = var.location | ||
| resource_group_name = var.resource_group_name | ||
| logs_destination = "log-analytics" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no longer computed |
||
| log_analytics_workspace_id = var.log_analytics_workspace_id | ||
| infrastructure_subnet_id = var.subnet_ca_id | ||
| internal_load_balancer_enabled = false | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,13 @@ resource "azurerm_subnet" "main" { | |
| virtual_network_name = azurerm_virtual_network.main.name | ||
| resource_group_name = data.azurerm_resource_group.main.name | ||
| address_prefixes = each.value.prefix | ||
| service_endpoints = each.value.service_endpoints | ||
|
|
||
| dynamic "service_endpoint" { | ||
| for_each = coalesce(each.value.service_endpoints, []) | ||
| content { | ||
| service = service_endpoint.value | ||
| } | ||
| } | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this bit wasn't nearly as explicit as everything else in the upgrade guide. what gemini suggested appears to be equivalent, but i have to admit my level of understanding of our networking is shaky at best.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah this looks right to me too. I wonder if possible to make the default Ref: https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| delegation { | ||
| name = "delegation-${lower(each.key)}" | ||
|
|
@@ -67,10 +73,9 @@ resource "azurerm_private_dns_zone" "db" { | |
| } | ||
|
|
||
| resource "azurerm_private_dns_zone_virtual_network_link" "db" { | ||
| name = "db-link-${lower(local.env_letter)}" | ||
| resource_group_name = data.azurerm_resource_group.main.name | ||
| private_dns_zone_name = azurerm_private_dns_zone.db.name | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deprecated (in favor of
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was it intentional to lose the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no! 🤦♂️
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i take that back. totally intentional. 😎
|
||
| virtual_network_id = azurerm_virtual_network.main.id | ||
| name = "db-link-${lower(local.env_letter)}" | ||
| private_dns_zone_id = azurerm_private_dns_zone.db.id | ||
| virtual_network_id = azurerm_virtual_network.main.id | ||
|
|
||
| lifecycle { | ||
| ignore_changes = [tags] | ||
|
|
||
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.
this is a binary file that can be generated when terraform encounters an uncaught exception.