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

[EC-408] Fix TF Validation in common config #1138

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

Krusty93
Copy link
Contributor

@Krusty93 Krusty93 commented Aug 29, 2024

List of changes

Update Common config TF lock file

Motivation and context

Assembly hashes for x86 architecture were missing

Type of changes

  • Add new resources
  • Update configuration to existing resources
  • Remove existing resources

Env to apply

  • DEV
  • UAT
  • PROD

Does this introduce a change to production resources with possible user impact?

  • Yes, users may be impacted applying this change
  • No

Does this introduce an unwanted change on infrastructure? Check terraform plan execution result

  • Yes
  • No

Other information


If PR is partially applied, why? (reserved to mantainers)

How to apply

After PR is approved

  1. run deploy pipeline from Azure DevOps io-platform-iac-projects
  2. select PR branch
  3. wait for approval

@Krusty93 Krusty93 requested a review from a team as a code owner August 29, 2024 10:22
Copy link

Copy link

📖 Terraform Plan ('src/common/prod') - success

Terraform Plan
osoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-message-status-io-cdc-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-message-status-io-cdc-key/versions/7dad5971086f4d058470283a32682a3d"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-message-status-io-cdc-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "7dad5971086f4d058470283a32682a3d"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-message-status-io-cdc-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["io-cosmosdb-message-status.io-messages"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-message-status-io-messages-key/b8622fb3177141a7974f1a421b58983c")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-message-status-io-messages-key/b8622fb3177141a7974f1a421b58983c"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-message-status-io-messages-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-message-status-io-messages-key/versions/b8622fb3177141a7974f1a421b58983c"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-message-status-io-messages-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "b8622fb3177141a7974f1a421b58983c"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-message-status-io-messages-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["io-cosmosdb-profiles.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-io-fn-elt-key/054648e5a2b54d57b87affd80ada2df5")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-io-fn-elt-key/054648e5a2b54d57b87affd80ada2df5"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-profiles-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-profiles-io-fn-elt-key/versions/054648e5a2b54d57b87affd80ada2df5"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-profiles-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "054648e5a2b54d57b87affd80ada2df5"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["io-cosmosdb-profiles.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-pdnd-key/4b5a24bdbb964e85b3f1790e45699b41")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-pdnd-key/4b5a24bdbb964e85b3f1790e45699b41"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-profiles-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-profiles-pdnd-key/versions/4b5a24bdbb964e85b3f1790e45699b41"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-profiles-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "4b5a24bdbb964e85b3f1790e45699b41"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-profiles-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["io-cosmosdb-services.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-io-fn-elt-key/9fa19a20e49c449bbda4ecc2973c500b")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-io-fn-elt-key/9fa19a20e49c449bbda4ecc2973c500b"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-services-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-services-io-fn-elt-key/versions/9fa19a20e49c449bbda4ecc2973c500b"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-services-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "9fa19a20e49c449bbda4ecc2973c500b"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["io-cosmosdb-services.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-pdnd-key/5a08bcae79d84402b53618c4dc1ce65f")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-pdnd-key/5a08bcae79d84402b53618c4dc1ce65f"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-io-cosmosdb-services-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-services-pdnd-key/versions/5a08bcae79d84402b53618c4dc1ce65f"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-io-cosmosdb-services-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "5a08bcae79d84402b53618c4dc1ce65f"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-io-cosmosdb-services-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-message-status.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key/ecf9695481a64e6eaa6f34ad9a07cc4a")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key/ecf9695481a64e6eaa6f34ad9a07cc4a"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key/versions/ecf9695481a64e6eaa6f34ad9a07cc4a"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "ecf9695481a64e6eaa6f34ad9a07cc4a"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-message-status.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-pdnd-key/66a3e87abae7411f87a2a29eeeb99397")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-pdnd-key/66a3e87abae7411f87a2a29eeeb99397"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-message-status-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-message-status-pdnd-key/versions/66a3e87abae7411f87a2a29eeeb99397"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-message-status-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "66a3e87abae7411f87a2a29eeeb99397"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-message-status-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-messages.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-io-fn-elt-key/fe247a088d16414098ee8359d43e0e70")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-io-fn-elt-key/fe247a088d16414098ee8359d43e0e70"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-messages-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-messages-io-fn-elt-key/versions/fe247a088d16414098ee8359d43e0e70"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-messages-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "fe247a088d16414098ee8359d43e0e70"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-messages.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-pdnd-key/a5ab3a6f63d24f51a8330d618bb5a130")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-pdnd-key/a5ab3a6f63d24f51a8330d618bb5a130"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-messages-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-messages-pdnd-key/versions/a5ab3a6f63d24f51a8330d618bb5a130"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-messages-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "a5ab3a6f63d24f51a8330d618bb5a130"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-messages-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-notification-status.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key/2425d2f15f6e40fc8602426f9c6ecb25")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key/2425d2f15f6e40fc8602426f9c6ecb25"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key/versions/2425d2f15f6e40fc8602426f9c6ecb25"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "2425d2f15f6e40fc8602426f9c6ecb25"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-notification-status.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-pdnd-key/2e7a3c36d01246d59b2a304e1b8244cc")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-pdnd-key/2e7a3c36d01246d59b2a304e1b8244cc"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-notification-status-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-notification-status-pdnd-key/versions/2e7a3c36d01246d59b2a304e1b8244cc"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-notification-status-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "2e7a3c36d01246d59b2a304e1b8244cc"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-notification-status-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-service-preferences.io-fn-elt"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key/a92476402501461eb8b358c6d8eeff6c")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key/a92476402501461eb8b358c6d8eeff6c"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key/versions/a92476402501461eb8b358c6d8eeff6c"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "a92476402501461eb8b358c6d8eeff6c"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-io-fn-elt-key"
    }

  # module.event_hubs_weu.azurerm_key_vault_secret.event_hub_keys["pdnd-io-cosmosdb-service-preferences.pdnd"] will be updated in-place
  # (imported from "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-pdnd-key/30610dd23b2248149f042755e154b444")
  ~ resource "azurerm_key_vault_secret" "event_hub_keys" {
        content_type            = "text/plain"
        id                      = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-pdnd-key/30610dd23b2248149f042755e154b444"
        key_vault_id            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv"
        name                    = "evh-pdnd-io-cosmosdb-service-preferences-pdnd-key"
        resource_id             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-service-preferences-pdnd-key/versions/30610dd23b2248149f042755e154b444"
        resource_versionless_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-sec-rg/providers/Microsoft.KeyVault/vaults/io-p-kv/secrets/evh-pdnd-io-cosmosdb-service-preferences-pdnd-key"
        tags                    = {}
        value                   = (sensitive value)
        version                 = "30610dd23b2248149f042755e154b444"
        versionless_id          = "https://io-p-kv.vault.azure.net/secrets/evh-pdnd-io-cosmosdb-service-preferences-pdnd-key"
    }

  # module.event_hubs_weu.azurerm_resource_group.event_rg will be updated in-place
  # (imported from "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg")
  ~ resource "azurerm_resource_group" "event_rg" {
        id       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg"
        location = "westeurope"
        name     = "io-p-evt-rg"
      ~ tags     = {
            "CostCenter"  = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"   = "Terraform"
            "Environment" = "Prod"
            "Owner"       = "IO"
          ~ "Source"      = "https://github.com/pagopa/io-infra" -> "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["import-command"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/import-command"
        message_retention   = 7
        name                = "import-command"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 2
        partition_ids       = [
            "0",
            "1",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["io-cosmosdb-message-status"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status"
        message_retention   = 7
        name                = "io-cosmosdb-message-status"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 32
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "30",
            "31",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["io-cosmosdb-message-status-for-view"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status-for-view"
        message_retention   = 7
        name                = "io-cosmosdb-message-status-for-view"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 32
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "30",
            "31",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["io-cosmosdb-profiles"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-profiles"
        message_retention   = 7
        name                = "io-cosmosdb-profiles"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 5
        partition_ids       = [
            "0",
            "1",
            "2",
            "3",
            "4",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["io-cosmosdb-services"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-services"
        message_retention   = 7
        name                = "io-cosmosdb-services"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 5
        partition_ids       = [
            "0",
            "1",
            "2",
            "3",
            "4",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["pdnd-io-cosmosdb-message-status"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-message-status"
        message_retention   = 7
        name                = "pdnd-io-cosmosdb-message-status"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 30
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["pdnd-io-cosmosdb-messages"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-messages"
        message_retention   = 7
        name                = "pdnd-io-cosmosdb-messages"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 30
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["pdnd-io-cosmosdb-notification-status"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-notification-status"
        message_retention   = 7
        name                = "pdnd-io-cosmosdb-notification-status"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 30
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub.events["pdnd-io-cosmosdb-service-preferences"] will be imported
    resource "azurerm_eventhub" "events" {
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-service-preferences"
        message_retention   = 7
        name                = "pdnd-io-cosmosdb-service-preferences"
        namespace_name      = "io-p-evh-ns"
        partition_count     = 30
        partition_ids       = [
            "0",
            "1",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "2",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
        ]
        resource_group_name = "io-p-evt-rg"
        status              = "Active"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["import-command.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "import-command"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/import-command/authorizationRules/io-fn-elt"
        listen                      = true
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["import-command.ops"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "import-command"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/import-command/authorizationRules/ops"
        listen                      = false
        manage                      = false
        name                        = "ops"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-message-status-for-view.io-cdc"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-message-status-for-view"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status-for-view/authorizationRules/io-cdc"
        listen                      = false
        manage                      = false
        name                        = "io-cdc"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-message-status-for-view.io-messages"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-message-status-for-view"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status-for-view/authorizationRules/io-messages"
        listen                      = true
        manage                      = false
        name                        = "io-messages"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-message-status.io-cdc"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-message-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status/authorizationRules/io-cdc"
        listen                      = false
        manage                      = false
        name                        = "io-cdc"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-message-status.io-messages"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-message-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status/authorizationRules/io-messages"
        listen                      = true
        manage                      = false
        name                        = "io-messages"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-profiles.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-profiles"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-profiles/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-profiles.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-profiles"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-profiles/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-services.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-services"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-services/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["io-cosmosdb-services.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "io-cosmosdb-services"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-services/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-message-status.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-message-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-message-status/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-message-status.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-message-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-message-status/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-messages.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-messages"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-messages/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-messages.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-messages"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-messages/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-notification-status.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-notification-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-notification-status/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-notification-status.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-notification-status"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-notification-status/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-service-preferences.io-fn-elt"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-service-preferences"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-service-preferences/authorizationRules/io-fn-elt"
        listen                      = false
        manage                      = false
        name                        = "io-fn-elt"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_authorization_rule.events["pdnd-io-cosmosdb-service-preferences.pdnd"] will be imported
    resource "azurerm_eventhub_authorization_rule" "events" {
        eventhub_name               = "pdnd-io-cosmosdb-service-preferences"
        id                          = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/pdnd-io-cosmosdb-service-preferences/authorizationRules/pdnd"
        listen                      = true
        manage                      = false
        name                        = "pdnd"
        namespace_name              = "io-p-evh-ns"
        primary_connection_string   = (sensitive value)
        primary_key                 = (sensitive value)
        resource_group_name         = "io-p-evt-rg"
        secondary_connection_string = (sensitive value)
        secondary_key               = (sensitive value)
        send                        = false
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_consumer_group.events["io-cosmosdb-message-status-for-view.io-messages"] will be imported
    resource "azurerm_eventhub_consumer_group" "events" {
        eventhub_name       = "io-cosmosdb-message-status-for-view"
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status-for-view/consumerGroups/io-messages"
        name                = "io-messages"
        namespace_name      = "io-p-evh-ns"
        resource_group_name = "io-p-evt-rg"
        user_metadata       = "terraform"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_consumer_group.events["io-cosmosdb-message-status.io-messages"] will be imported
    resource "azurerm_eventhub_consumer_group" "events" {
        eventhub_name       = "io-cosmosdb-message-status"
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns/eventhubs/io-cosmosdb-message-status/consumerGroups/io-messages"
        name                = "io-messages"
        namespace_name      = "io-p-evh-ns"
        resource_group_name = "io-p-evt-rg"
        user_metadata       = "terraform"
    }

  # module.event_hubs_weu.module.event_hub.azurerm_eventhub_namespace.this will be updated in-place
  # (imported from "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns")
  ~ resource "azurerm_eventhub_namespace" "this" {
        auto_inflate_enabled          = true
        capacity                      = 5
        id                            = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns"
        local_authentication_enabled  = true
        location                      = "westeurope"
        maximum_throughput_units      = 5
        minimum_tls_version           = "1.2"
        name                          = "io-p-evh-ns"
        network_rulesets              = [
            {
                default_action                 = "Deny"
                ip_rule                        = [
                    {
                        action  = "Allow"
                        ip_mask = "18.192.147.151"
                    },
                    {
                        action  = "Allow"
                        ip_mask = "18.159.227.69"
                    },
                    {
                        action  = "Allow"
                        ip_mask = "3.126.198.129"
                    },
                ]
                public_network_access_enabled  = true
                trusted_service_access_enabled = false
                virtual_network_rule           = [
                    {
                        ignore_missing_virtual_network_service_endpoint = false
                        subnet_id                                       = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/fn3eltout"
                    },
                ]
            },
        ]
        public_network_access_enabled = true
        resource_group_name           = "io-p-evt-rg"
        sku                           = "Standard"
      ~ tags                          = {
            "CostCenter"  = "TS310 - PAGAMENTI & SERVIZI"
            "CreatedBy"   = "Terraform"
            "Environment" = "Prod"
            "Owner"       = "IO"
          ~ "Source"      = "https://github.com/pagopa/io-infra" -> "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
        }
        zone_redundant                = true
    }

  # module.event_hubs_weu.module.event_hub.azurerm_monitor_metric_alert.this["active_connections"] will be imported
    resource "azurerm_monitor_metric_alert" "this" {
        auto_mitigate       = true
        enabled             = true
        frequency           = "PT5M"
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.Insights/metricAlerts/io-p-evh-ns-ACTIVE_CONNECTIONS"
        name                = "io-p-evh-ns-ACTIVE_CONNECTIONS"
        resource_group_name = "io-p-evt-rg"
        scopes              = [
            "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns",
        ]
        severity            = 3
        tags                = {}
        window_size         = "PT15M"

        action {
            action_group_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Insights/actionGroups/ioperror"
            webhook_properties = {}
        }

        criteria {
            aggregation            = "Average"
            metric_name            = "ActiveConnections"
            metric_namespace       = "microsoft.eventhub/namespaces"
            operator               = "LessThanOrEqual"
            skip_metric_validation = false
            threshold              = 0
        }
    }

  # module.event_hubs_weu.module.event_hub.azurerm_monitor_metric_alert.this["error_trx"] will be imported
    resource "azurerm_monitor_metric_alert" "this" {
        auto_mitigate       = true
        description         = "Transactions rejected from one acquirer file received. trx write on eventhub. check immediately"
        enabled             = true
        frequency           = "PT5M"
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.Insights/metricAlerts/io-p-evh-ns-ERROR_TRX"
        name                = "io-p-evh-ns-ERROR_TRX"
        resource_group_name = "io-p-evt-rg"
        scopes              = [
            "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns",
        ]
        severity            = 3
        tags                = {}
        window_size         = "PT30M"

        action {
            action_group_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Insights/actionGroups/ioperror"
            webhook_properties = {}
        }

        criteria {
            aggregation            = "Total"
            metric_name            = "IncomingMessages"
            metric_namespace       = "microsoft.eventhub/namespaces"
            operator               = "GreaterThan"
            skip_metric_validation = false
            threshold              = 0

            dimension {
                name     = "EntityName"
                operator = "Include"
                values   = [
                    "bpd-trx-error",
                    "rtd-trx-error",
                ]
            }
        }
    }

  # module.event_hubs_weu.module.event_hub.azurerm_monitor_metric_alert.this["no_trx"] will be imported
    resource "azurerm_monitor_metric_alert" "this" {
        auto_mitigate       = true
        description         = "No transactions received from acquirer in the last 24h"
        enabled             = true
        frequency           = "PT1H"
        id                  = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.Insights/metricAlerts/io-p-evh-ns-NO_TRX"
        name                = "io-p-evh-ns-NO_TRX"
        resource_group_name = "io-p-evt-rg"
        scopes              = [
            "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-evt-rg/providers/Microsoft.EventHub/namespaces/io-p-evh-ns",
        ]
        severity            = 3
        tags                = {}
        window_size         = "P1D"

        action {
            action_group_id    = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Insights/actionGroups/ioperror"
            webhook_properties = {}
        }

        criteria {
            aggregation            = "Total"
            metric_name            = "IncomingMessages"
            metric_namespace       = "microsoft.eventhub/namespaces"
            operator               = "LessThanOrEqual"
            skip_metric_validation = false
            threshold              = 1000

            dimension {
                name     = "EntityName"
                operator = "Include"
                values   = [
                    "rtd-trx",
                ]
            }
        }
    }

  # module.event_hubs_weu.module.eventhub_snet.azurerm_subnet.this will be imported
    resource "azurerm_subnet" "this" {
        address_prefixes                               = [
            "10.0.10.0/24",
        ]
        default_outbound_access_enabled                = true
        enforce_private_link_endpoint_network_policies = true
        enforce_private_link_service_network_policies  = false
        id                                             = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common/subnets/io-p-eventhub-snet"
        name                                           = "io-p-eventhub-snet"
        private_endpoint_network_policies              = "Disabled"
        private_endpoint_network_policies_enabled      = false
        private_link_service_network_policies_enabled  = true
        resource_group_name                            = "io-p-rg-common"
        service_endpoint_policy_ids                    = []
        service_endpoints                              = [
            "Microsoft.EventHub",
        ]
        virtual_network_name                           = "io-p-vnet-common"
    }

Plan: 53 to import, 0 to add, 20 to change, 0 to destroy.

Warning: Argument is deprecated

  with module.event_hubs_weu.module.event_hub.azurerm_eventhub_namespace.this,
  on .terraform/modules/event_hubs_weu.event_hub/eventhub/main.tf line 25, in resource "azurerm_eventhub_namespace" "this":
  25:   zone_redundant                = var.zone_redundant

The `zone_redundant` property has been deprecated and will be removed in v4.0
of the provider.

(and one more similar warning elsewhere)

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

@Krusty93 Krusty93 merged commit 390bac7 into main Aug 29, 2024
8 checks passed
@Krusty93 Krusty93 deleted the EC-408-fix-tf-validation-io-infra branch August 29, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant