Skip to content

Update .terraform-version#267

Closed
cpareek wants to merge 2 commits intomasterfrom
cpareek-patch-1
Closed

Update .terraform-version#267
cpareek wants to merge 2 commits intomasterfrom
cpareek-patch-1

Conversation

@cpareek
Copy link
Copy Markdown
Contributor

@cpareek cpareek commented Feb 14, 2024

Updated Terraform version

Updated TF version
@hmcts-jenkins-a-to-c
Copy link
Copy Markdown
Contributor

Plan Result

Plan: 2 to add, 4 to change, 0 to destroy.
  • Create
    • module.application_insights.azurerm_monitor_action_group.action_group
    • module.application_insights.azurerm_monitor_activity_log_alert.main
  • Update
    • azurerm_key_vault_secret.POSTGRES-HOST
    • azurerm_key_vault_secret.POSTGRES-PASS
    • azurerm_key_vault_secret.POSTGRES-USER
    • module.application_insights.azurerm_application_insights.this
Change Result (Click me)
  # azurerm_key_vault_secret.POSTGRES-HOST will be updated in-place
  ~ resource "azurerm_key_vault_secret" "POSTGRES-HOST" {
        id                      = "https://cpo-aat.vault.azure.net/secrets/case-payment-orders-api-POSTGRES-HOST/62249c8a440a4fb5bd7abb3ac21b5651"
        name                    = "case-payment-orders-api-POSTGRES-HOST"
        tags                    = {}
      ~ value                   = (sensitive value)
        # (5 unchanged attributes hidden)
    }

  # azurerm_key_vault_secret.POSTGRES-PASS will be updated in-place
  ~ resource "azurerm_key_vault_secret" "POSTGRES-PASS" {
        id                      = "https://cpo-aat.vault.azure.net/secrets/case-payment-orders-api-POSTGRES-PASS/2873e880434c499d81dd790568347c4a"
        name                    = "case-payment-orders-api-POSTGRES-PASS"
        tags                    = {}
      ~ value                   = (sensitive value)
        # (5 unchanged attributes hidden)
    }

  # azurerm_key_vault_secret.POSTGRES-USER will be updated in-place
  ~ resource "azurerm_key_vault_secret" "POSTGRES-USER" {
        id                      = "https://cpo-aat.vault.azure.net/secrets/case-payment-orders-api-POSTGRES-USER/c1d98962358d4149b2883e55a2521ac9"
        name                    = "case-payment-orders-api-POSTGRES-USER"
        tags                    = {}
      ~ value                   = (sensitive value)
        # (5 unchanged attributes hidden)
    }

  # module.application_insights.azurerm_application_insights.this will be updated in-place
  ~ resource "azurerm_application_insights" "this" {
      ~ daily_data_cap_notifications_disabled = false -> true
        id                                    = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/cpo-shared-aat/providers/Microsoft.Insights/components/cpo-aat"
        name                                  = "cpo-aat"
        tags                                  = {
            "application"         = "core-case-data"
            "autoShutdown"        = "true"
            "builtFrom"           = "https://github.com/HMCTS/cpo-case-payment-orders-api.git"
            "businessArea"        = "CFT"
            "contactSlackChannel" = "#ccd_support"
            "environment"         = "staging"
            "managedBy"           = "CDM"
        }
        # (15 unchanged attributes hidden)
    }

  # module.application_insights.azurerm_monitor_action_group.action_group will be created
  + resource "azurerm_monitor_action_group" "action_group" {
      + enabled             = true
      + id                  = (known after apply)
      + location            = "global"
      + name                = "Cpo-Aat-Warning-Alerts"
      + resource_group_name = "cpo-shared-aat"
      + short_name          = "cpo-aat"
      + tags                = {
          + "application"         = "core-case-data"
          + "autoShutdown"        = "true"
          + "builtFrom"           = "https://github.com/HMCTS/cpo-case-payment-orders-api.git"
          + "businessArea"        = "CFT"
          + "contactSlackChannel" = "#ccd_support"
          + "environment"         = "staging"
          + "managedBy"           = "CDM"
        }

      + azure_function_receiver {
          + function_app_resource_id = "/subscriptions/96c274ce-846d-4e48-89a7-d528432298a7/resourceGroups/cft-alerts-slack-aat/providers/Microsoft.Web/sites/cft-alerts-slack-aat"
          + function_name            = "httpTrigger"
          + http_trigger_url         = (sensitive value)
          + name                     = "slack-alerts"
          + use_common_alert_schema  = true
        }
    }

  # module.application_insights.azurerm_monitor_activity_log_alert.main will be created
  + resource "azurerm_monitor_activity_log_alert" "main" {
      + description         = "Monitors for application insight reaching it's daily cap."
      + enabled             = true
      + id                  = (known after apply)
      + name                = "Application Insights daily cap reached"
      + resource_group_name = "cpo-shared-aat"
      + scopes              = [
          + "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/cpo-shared-aat/providers/Microsoft.Insights/components/cpo-aat",
        ]
      + tags                = {
          + "application"         = "core-case-data"
          + "autoShutdown"        = "true"
          + "builtFrom"           = "https://github.com/HMCTS/cpo-case-payment-orders-api.git"
          + "businessArea"        = "CFT"
          + "contactSlackChannel" = "#ccd_support"
          + "environment"         = "staging"
          + "managedBy"           = "CDM"
        }

      + action {
          + action_group_id    = (known after apply)
          + webhook_properties = {
              + "from"           = "terraform"
              + "slackChannelId" = "CG1QC1L66"
            }
        }

      + criteria {
          + category       = "Administrative"
          + level          = "Warning"
          + operation_name = "Microsoft.Insights/Components/DailyCapReached/Action"
          + resource_id    = "/subscriptions/1c4f0704-a29e-403d-b719-b90c34ef14c9/resourceGroups/cpo-shared-aat/providers/Microsoft.Insights/components/cpo-aat"
        }
    }

Plan: 2 to add, 4 to change, 0 to destroy.

@RebeccaBaker RebeccaBaker deleted the cpareek-patch-1 branch June 24, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants