hmcts / ia-shared-infrastructure

Immigration & Asylum shared infrastructure
0 stars 1 forks source link

Update dependency hashicorp/terraform to v1.9.1 #46

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Update Change
hashicorp/terraform minor 1.7.3 -> 1.9.1

Release Notes

hashicorp/terraform (hashicorp/terraform) ### [`v1.9.1`](https://togithub.com/hashicorp/terraform/releases/tag/v1.9.1) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.9.0...v1.9.1) ##### 1.9.1 (Unreleased) UPGRADE NOTES: - Library used by Terraform (hashicorp/go-getter) for installing/updating modules was upgraded from v1.7.5 to v1.7.6. This addresses [CVE-2024-6257](https://nvd.nist.gov/vuln/detail/CVE-2024-6257). This change may have a negative effect on performance of `terraform init` or `terraform get` in case of larger git repositories. Please do file an issue if you find the performance difference noticable. ([#​35376](https://togithub.com/hashicorp/terraform/pull/35376)) BUG FIXES: - `terraform test`: Removed additional erroneous error message when referencing attributes that don't exist. ([#​35408](https://togithub.com/hashicorp/terraform/pull/35408)) - `import` blocks: Fix crash that occurs when incorrectly referencing the `to` resource from the `id` attribute. ([#​35420](https://togithub.com/hashicorp/terraform/pull/35420)) ### [`v1.9.0`](https://togithub.com/hashicorp/terraform/compare/v1.8.5...v1.9.0) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.5...v1.9.0) ### [`v1.8.5`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.5) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.4...v1.8.5) #### 1.8.5 (June 5, 2024) BUG FIXES: - `terraform test`: Remove duplicate warning diagnostic when providing values for unknown variables in run blocks. ([#​35172](https://togithub.com/hashicorp/terraform/issues/35172)) ### [`v1.8.4`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.4) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.3...v1.8.4) #### 1.8.4 (May 22, 2024) BUG FIXES: - `core`: Fix exponential slowdown in some cases when modules are using `depends_on`. ([#​35157](https://togithub.com/hashicorp/terraform/issues/35157)) - `import` blocks: Fix bug where resources with nested, computed, and optional `id` attributes would fail to generate configuration. ([#​35220](https://togithub.com/hashicorp/terraform/issues/35220)) - Updated to new `golang.org/x/net` release, which addressed CVE-2023-45288 ([#​35165](https://togithub.com/hashicorp/terraform/issues/35165)) ### [`v1.8.3`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.3) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.2...v1.8.3) #### 1.8.3 (May 8, 2024) BUG FIXES: - `terraform test`: Providers configured within an overridden module could panic. ([#​35110](https://togithub.com/hashicorp/terraform/issues/35110)) - `core`: Fix crash when a provider incorrectly plans a nested object when the configuration is `null` ([#​35090](https://togithub.com/hashicorp/terraform/issues/35090)) ### [`v1.8.2`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.2) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.1...v1.8.2) #### 1.8.2 (April 24, 2024) BUG FIXES: - `terraform apply`: Prevent panic when a provider erroneously provides unknown values. ([#​35048](https://togithub.com/hashicorp/terraform/pull/35048)) - `terraform plan`: Replace panic with error message when self-referencing resources and data sources from the `count` and `for_each` meta attributes. ([#​35047](https://togithub.com/hashicorp/terraform/pull/35047)) - `terraform test`: Restore `TF_ENV_*` variables being made available to testing modules. ([#​35014](https://togithub.com/hashicorp/terraform/pull/35014)) - `terraform test`: Prevent crash when referencing local variables within overridden modules. ([#​35030](https://togithub.com/hashicorp/terraform/pull/35030)) ENHANCEMENTS: - Improved performance by removing unneeded additional computation for a disabled experimental feature. ([#​35066](https://togithub.com/hashicorp/terraform/pull/35066)) OTHER CHANGES: - Update all references to Terraform Cloud to refer to HCP Terraform, the service's new name. This only affects display text; the `cloud` block and environment variables like `TF_CLOUD_ORGANIZATION` remain unchanged. ([#​35050](https://togithub.com/hashicorp/terraform/pull/35050)) NOTE: Starting with this release, we are including a copy of our license file in all packaged versions of our releases, such as the release .zip files. If you are consuming these files directly and would prefer to extract the one terraform file instead of extracting everything, you need to add an extra argument specifying the file to extract, like this: unzip terraform_1.8.2_linux_amd64.zip terraform ### [`v1.8.1`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.1) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.8.0...v1.8.1) #### 1.8.1 (April 17, 2024) BUG FIXES: - Fix crash in terraform plan when referencing a module output that does not exist within the try(...) function. ([#​34985](https://togithub.com/hashicorp/terraform/pull/34985)) - Fix crash in terraform apply when referencing a module with no planned changes. ([#​34985](https://togithub.com/hashicorp/terraform/pull/34985)) - `moved` block: Fix crash when move targets a module which no longer exists. ([#​34986](https://togithub.com/hashicorp/terraform/pull/34986)) - `import` block: Fix crash when generating configuration for resources with complex sensitive attributes. ([#​34996](https://togithub.com/hashicorp/terraform/pull/34996)) - Plan renderer: Correctly render strings that begin with JSON compatible text but don't end with it. ([#​34959](https://togithub.com/hashicorp/terraform/pull/34959)) ### [`v1.8.0`](https://togithub.com/hashicorp/terraform/releases/tag/v1.8.0) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.7.5...v1.8.0) #### 1.8.0 (April 10, 2024) If you are upgrading from Terraform v1.7 or earlier, please refer to [the Terraform v1.8 Upgrade Guide](https://developer.hashicorp.com/terraform/language/v1.8.x/upgrade-guides). NEW FEATURES: - Providers can now offer functions which can be used from within the Terraform configuration language. The syntax for calling a provider-contributed function is `provider::provider_name::function_name()`. ([#​34394](https://togithub.com/hashicorp/terraform/issues/34394)) - Providers can now transfer the ownership of a remote object between resources of different types, for situations where there are two different resource types that represent the same remote object type. This extends the `moved` block behavior to support moving between two resources of different types only if the provider for the target resource type declares that it can convert from the source resource type. Refer to provider documentation for details on which pairs of resource types are supported. - New `issensitive` function returns true if the given value is marked as sensitive. ENHANCEMENTS: - `terraform test`: File-level variables can now refer to global variables. ([#​34699](https://togithub.com/hashicorp/terraform/issues/34699)) - When generating configuration based on `import` blocks, Terraform will detect strings that contain valid JSON syntax and generate them as calls to the `jsonencode` function, rather than generating a single string. This is primarily motivated by readability, but might also be useful if you need to replace part of the literal value with an expression as you generalize your module beyond the one example used for importing. - `terraform plan` now uses a different presentation for describing changes to lists where the old and new lists have the same length. It now compares the elements with correlated indices and shows a separate diff for each one, rather than trying to show a diff for the list as a whole. The behavior is unchanged for lists of different lengths. - `terraform providers lock` accepts a new boolean option `-enable-plugin-cache`. If specified, and if a [global plugin cache](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache) is configured, Terraform will use the cache in the provider lock process. ([#​34632](https://togithub.com/hashicorp/terraform/issues/34632)) - built-in "terraform" provider: new `decode_tfvars`, `encode_tfvars`, and `encode_expr` functions, for unusual situations where it's helpful to manually generate or read from Terraform's "tfvars" format. ([#​34718](https://togithub.com/hashicorp/terraform/issues/34718)) - `terraform show`'s JSON rendering of a plan now includes two explicit flags `"applyable"` and `"complete"`, which both summarize characteristics of a plan that were previously only inferrable by consumers replicating some of Terraform Core's own logic. ([#​34642](https://togithub.com/hashicorp/terraform/issues/34642)) `"applyable"` means that it makes sense for a wrapping automation to offer to apply this plan. `"complete"` means that applying this plan is expected to achieve convergence between desired and actual state. If this flag is present and set to `false` then wrapping automations should ideally encourage an operator to run another plan/apply round to continue making progress toward convergence. BUG FIXES: - core: Sensitive values will now be tracked more accurately in state and plans, preventing unexpected updates with no apparent changes. ([#​34567](https://togithub.com/hashicorp/terraform/issues/34567)) - core: Fix incorrect error message when using in invalid `iterator` argument within a dynamic block. ([#​34751](https://togithub.com/hashicorp/terraform/issues/34751)) - core: Fixed edge-case bug that could cause loss of floating point precision when round-tripping due to incorrectly using a MessagePack integer to represent a large non-integral number. ([#​24576](https://togithub.com/hashicorp/terraform/issues/24576)) - config: Converting from an unknown map value to an object type now correctly handles the situation where the map element type disagrees with an optional attribute of the target type, since when a map value is unknown we don't yet know which keys it has and thus cannot predict what subset of the elements will get converted as attributes in the resulting object. ([#​34756](https://togithub.com/hashicorp/terraform/issues/34756)) - cloud: Fixed unparsed color codes in policy failure error messages. ([#​34473](https://togithub.com/hashicorp/terraform/issues/34473)) #### Previous Releases For information on prior major and minor releases, see their changelogs: - [v1.7](https://togithub.com/hashicorp/terraform/blob/v1.7/CHANGELOG.md) - [v1.6](https://togithub.com/hashicorp/terraform/blob/v1.6/CHANGELOG.md) - [v1.5](https://togithub.com/hashicorp/terraform/blob/v1.5/CHANGELOG.md) - [v1.4](https://togithub.com/hashicorp/terraform/blob/v1.4/CHANGELOG.md) - [v1.3](https://togithub.com/hashicorp/terraform/blob/v1.3/CHANGELOG.md) - [v1.2](https://togithub.com/hashicorp/terraform/blob/v1.2/CHANGELOG.md) - [v1.1](https://togithub.com/hashicorp/terraform/blob/v1.1/CHANGELOG.md) - [v1.0](https://togithub.com/hashicorp/terraform/blob/v1.0/CHANGELOG.md) - [v0.15](https://togithub.com/hashicorp/terraform/blob/v0.15/CHANGELOG.md) - [v0.14](https://togithub.com/hashicorp/terraform/blob/v0.14/CHANGELOG.md) - [v0.13](https://togithub.com/hashicorp/terraform/blob/v0.13/CHANGELOG.md) - [v0.12](https://togithub.com/hashicorp/terraform/blob/v0.12/CHANGELOG.md) - [v0.11 and earlier](https://togithub.com/hashicorp/terraform/blob/v0.11/CHANGELOG.md) ### [`v1.7.5`](https://togithub.com/hashicorp/terraform/releases/tag/v1.7.5) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.7.4...v1.7.5) #### 1.7.5 (March 13, 2024) BUG FIXES: - backend/s3: When using s3 backend and encountering a network issue, the retry code would fail with "failed to rewind transport stream for retry". Now the retry should be successful. ([#​34796](https://togithub.com/hashicorp/terraform/pull/34796)) ### [`v1.7.4`](https://togithub.com/hashicorp/terraform/releases/tag/v1.7.4) [Compare Source](https://togithub.com/hashicorp/terraform/compare/v1.7.3...v1.7.4) #### 1.7.4 (February 21, 2024) BUG FIXES: - `terraform test`: Fix automatic loading of variable files within the test directory on `windows` platforms. ([#​34666](https://togithub.com/hashicorp/terraform/pull/34666)) - plan renderer: Very large numbers (> 2^63) will no longer be truncated in the human-readable plan. ([#​34702](https://togithub.com/hashicorp/terraform/pull/34702))

Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

hmcts-jenkins-d-to-i[bot] commented 2 months ago

Plan Result (aat)

Plan: 0 to add, 2 to change, 0 to destroy.
Change Result (Click me) ```hcl # data.azurerm_key_vault.ia_key_vault will be read during apply # (depends on a resource or a module with changes pending) <= data "azurerm_key_vault" "ia_key_vault" { + access_policy = (known after apply) + enable_rbac_authorization = (known after apply) + enabled_for_deployment = (known after apply) + enabled_for_disk_encryption = (known after apply) + enabled_for_template_deployment = (known after apply) + id = (known after apply) + location = (known after apply) + name = "ia-aat" + network_acls = (known after apply) + public_network_access_enabled = (known after apply) + purge_protection_enabled = (known after apply) + resource_group_name = "ia-aat" + sku_name = (known after apply) + tags = (known after apply) + tenant_id = (known after apply) + vault_uri = (known after apply) } # data.azurerm_key_vault_secret.ia_support_email will be read during apply # (config refers to values not yet known) <= data "azurerm_key_vault_secret" "ia_support_email" { + content_type = (known after apply) + expiration_date = (known after apply) + id = (known after apply) + key_vault_id = (known after apply) + name = "ia-support-email" + not_before_date = (known after apply) + resource_id = (known after apply) + resource_versionless_id = (known after apply) + tags = (known after apply) + value = (sensitive value) + versionless_id = (known after apply) } # azurerm_resource_group.rg will be updated in-place ~ resource "azurerm_resource_group" "rg" { id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/ia-aat" name = "ia-aat" ~ tags = { - "application" = "immigration" - "autoShutdown" = "true" - "builtFrom" = "https://github.com/HMCTS/ia-shared-infrastructure.git" - "businessArea" = "CFT" - "contactSlackChannel" = "#ia-tech" - "environment" = "staging" - "lastUpdated" = "2024-06-12T11:45:55Z" - "managedBy" = "Immigration" } -> (known after apply) # (2 unchanged attributes hidden) } # module.application_insights.azurerm_monitor_activity_log_alert.main has moved to module.application_insights.azurerm_monitor_activity_log_alert.main[0] resource "azurerm_monitor_activity_log_alert" "main" { id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/ia-aat/providers/Microsoft.Insights/activityLogAlerts/Application Insights daily cap reached - ia-aat" name = "Application Insights daily cap reached - ia-aat" tags = { "application" = "immigration" "autoShutdown" = "true" "builtFrom" = "https://github.com/HMCTS/ia-shared-infrastructure.git" "businessArea" = "CFT" "contactSlackChannel" = "#ia-tech" "environment" = "staging" "managedBy" = "Immigration" } # (4 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.iac-action-group.azurerm_resource_group_template_deployment.action-group will be updated in-place ~ resource "azurerm_resource_group_template_deployment" "action-group" { id = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/ia-aat/providers/Microsoft.Resources/deployments/ia-support" name = "ia-support" ~ parameters_content = (sensitive value) tags = {} ~ template_content = jsonencode( ~ { ~ parameters = { ~ actionGroupName = { ~ type = "String" -> "string" } ~ emailReceiverAddress = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ emailReceiverName = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ location = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ shortName = { ~ type = "String" -> "string" } } # (3 unchanged attributes hidden) } ) # (5 unchanged attributes hidden) } Plan: 0 to add, 2 to change, 0 to destroy. ```
hmcts-jenkins-d-to-i[bot] commented 2 months ago

Plan Result (prod)

Plan: 0 to add, 3 to change, 0 to destroy.
Change Result (Click me) ```hcl # data.azurerm_key_vault.ia_key_vault will be read during apply # (depends on a resource or a module with changes pending) <= data "azurerm_key_vault" "ia_key_vault" { + access_policy = (known after apply) + enable_rbac_authorization = (known after apply) + enabled_for_deployment = (known after apply) + enabled_for_disk_encryption = (known after apply) + enabled_for_template_deployment = (known after apply) + id = (known after apply) + location = (known after apply) + name = "ia-prod" + network_acls = (known after apply) + public_network_access_enabled = (known after apply) + purge_protection_enabled = (known after apply) + resource_group_name = "ia-prod" + sku_name = (known after apply) + tags = (known after apply) + tenant_id = (known after apply) + vault_uri = (known after apply) } # data.azurerm_key_vault_secret.ia_support_email will be read during apply # (config refers to values not yet known) <= data "azurerm_key_vault_secret" "ia_support_email" { + content_type = (known after apply) + expiration_date = (known after apply) + id = (known after apply) + key_vault_id = (known after apply) + name = "ia-support-email" + not_before_date = (known after apply) + resource_id = (known after apply) + resource_versionless_id = (known after apply) + tags = (known after apply) + value = (sensitive value) + versionless_id = (known after apply) } # azurerm_resource_group.rg will be updated in-place ~ resource "azurerm_resource_group" "rg" { id = "/subscriptions/8999dec3-0104-4a27-94ee-6588559729d1/resourceGroups/ia-prod" name = "ia-prod" ~ tags = { - "application" = "immigration" - "builtFrom" = "https://github.com/HMCTS/ia-shared-infrastructure.git" - "businessArea" = "CFT" - "contactSlackChannel" = "#ia-tech" - "environment" = "production" - "lastUpdated" = "2024-06-12T11:46:58Z" - "managedBy" = "Immigration" } -> (known after apply) # (2 unchanged attributes hidden) } # module.application_insights.azurerm_monitor_activity_log_alert.main has moved to module.application_insights.azurerm_monitor_activity_log_alert.main[0] resource "azurerm_monitor_activity_log_alert" "main" { id = "/subscriptions/8999dec3-0104-4a27-94ee-6588559729d1/resourceGroups/ia-prod/providers/Microsoft.Insights/activityLogAlerts/Application Insights daily cap reached - ia-prod" name = "Application Insights daily cap reached - ia-prod" tags = { "application" = "immigration" "builtFrom" = "https://github.com/HMCTS/ia-shared-infrastructure.git" "businessArea" = "CFT" "contactSlackChannel" = "#ia-tech" "environment" = "production" "managedBy" = "Immigration" } # (4 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.ia-exception-alert.azurerm_resource_group_template_deployment.custom_alert[0] will be updated in-place ~ resource "azurerm_resource_group_template_deployment" "custom_alert" { id = "/subscriptions/8999dec3-0104-4a27-94ee-6588559729d1/resourceGroups/ia-prod/providers/Microsoft.Resources/deployments/ia-exception-alert" name = "ia-exception-alert" tags = {} ~ template_content = jsonencode( ~ { ~ parameters = { ~ actionGroupName = { ~ type = "String" -> "string" } ~ actionGroupRg = { ~ type = "String" -> "string" } ~ alertDesc = { ~ type = "String" -> "string" } ~ alertName = { ~ type = "String" -> "string" } ~ appInsightsName = { ~ type = "String" -> "string" } ~ appInsightsQuery = { ~ type = "String" -> "string" } ~ commonTags = { ~ type = "String" -> "string" } ~ customEmailSubject = { ~ type = "String" -> "string" } ~ frequencyInMinutes = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ location = { ~ type = "String" -> "string" } ~ severityLevel = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ timeWindowInMinutes = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ triggerThreshold = { ~ type = "String" -> "string" } ~ triggerThresholdOperator = { ~ type = "String" -> "string" # (2 unchanged attributes hidden) } } # (4 unchanged attributes hidden) } ) # (6 unchanged attributes hidden) } # module.iac-action-group.azurerm_resource_group_template_deployment.action-group will be updated in-place ~ resource "azurerm_resource_group_template_deployment" "action-group" { id = "/subscriptions/8999dec3-0104-4a27-94ee-6588559729d1/resourceGroups/ia-prod/providers/Microsoft.Resources/deployments/ia-support" name = "ia-support" ~ parameters_content = (sensitive value) tags = {} ~ template_content = jsonencode( ~ { ~ parameters = { ~ actionGroupName = { ~ type = "String" -> "string" } ~ emailReceiverAddress = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ emailReceiverName = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ location = { ~ type = "String" -> "string" # (1 unchanged attribute hidden) } ~ shortName = { ~ type = "String" -> "string" } } # (3 unchanged attributes hidden) } ) # (5 unchanged attributes hidden) } Plan: 0 to add, 3 to change, 0 to destroy. ```
renovate[bot] commented 2 months ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

github-actions[bot] commented 2 months ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

renovate[bot] commented 2 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (1.9.1). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.