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

NIT-1371 update iaps config #819

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

pbasumatary
Copy link
Contributor

No description provided.

@pbasumatary pbasumatary requested a review from a team as a code owner July 3, 2024 16:48
Copy link
Contributor

github-actions bot commented Jul 3, 2024

teams/delius-iaps/iaps_server terragrunt plan on pull_request event #393

module.imagebuilder.data.terraform_remote_state.core_shared_services_production: Reading...
module.imagebuilder.data.terraform_remote_state.imagebuilder_mp: Reading...
module.imagebuilder.data.aws_secretsmanager_secret.environment_management: Reading...
module.imagebuilder.data.terraform_remote_state.imagebuilder_mp: Read complete after 2s
module.imagebuilder.data.aws_secretsmanager_secret.environment_management: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.data.aws_secretsmanager_secret_version.environment_management: Reading...
module.imagebuilder.data.aws_secretsmanager_secret_version.environment_management: Read complete after 0s [id=<REDACTED>]
module.imagebuilder.data.terraform_remote_state.core_shared_services_production: Read complete after 2s
module.imagebuilder.data.aws_imagebuilder_component.this["amazon-cloudwatch-agent-windows"]: Reading...
module.imagebuilder.data.aws_caller_identity.current: Reading...
module.imagebuilder.data.aws_imagebuilder_component.this["ec2launch-v2-windows"]: Reading...
module.imagebuilder.data.aws_caller_identity.current: Read complete after 0s [id=<REDACTED>]
module.imagebuilder.data.aws_kms_key.hmpps_ebs_encryption_cmk: Reading...
module.imagebuilder.data.aws_kms_key.hmpps_ebs_encryption_cmk: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.data.aws_imagebuilder_component.this["ec2launch-v2-windows"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.data.aws_imagebuilder_component.this["amazon-cloudwatch-agent-windows"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_pipeline.this: Refreshing state... [id=<REDACTED>]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
-/+ destroy and then create replacement
+/- create replacement and then destroy

Terraform will perform the following actions:

  # module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/add-net-framework-features/0.2.0/1"
        name                  = "add_net_framework_features"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-configure-cloudwatch-agent/0.1.1/1"
        name                  = "delius_iaps_configure_cloudwatch_agent"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-configure-odbc-dsn/0.1.0/1"
        name                  = "delius_iaps_configure_odbc_dsn"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-base-packages/0.1.10/1"
        name                  = "delius_iaps_install_base_packages"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-im-interface/0.1.1/1"
        name                  = "delius_iaps_install_im_interface"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"] must be replaced
+/- resource "aws_imagebuilder_component" "this" {
      ~ arn                   = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" -> (known after apply)
      ~ data                  = <<-EOT # forces replacement
            ---
            name: delius_iaps_install_ndelius_interface
            description: Installs delius_iaps_install_ndelius_interface
            schemaVersion: 1.0
            parameters:
              - Version:
                  type: string
          -       default: 0.1.4
          +       default: 0.1.5
                  description: Component version
              - Platform:
                  type: string
                  default: "Windows"
                  description: Platform name
              - S3ArtefactBucket:
                  type: string
                  description: Name of s3 bucket holding software artefacts
            phases:
              - name: build
                steps:
                  - name: DownloadArtefacts
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Read-S3Object -BucketName {{ S3ArtefactBucket }} -KeyPrefix "delius-iaps/apps/ndelius-interface/" -Folder " ${env:TEMP}\ndelius-interface"
                  - name: InstallNDeliusInterface
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Start-Process -Wait -FilePath "${env:TEMP}\ndelius-interface\setup.exe" -ArgumentList "/quiet /qn" -Verb RunAs
                          New-Item -ItemType Junction -Path "C:\Program Files\I2N\IapsNDeliusInterface" -Target "C:\Program Files (x86)\I2N\IapsNDeliusInterface"
                  - name: RemoveInvalidShortcut
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          Write-Host('Grant local Users group full access recursively to I2N program dir')
                          $i2npath = "C:\Program Files (x86)\I2N"
                          $acl = (Get-Item $i2npath).GetAccessControl('Access')
                          $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Users", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
                          $acl.SetAccessRule($rule)
                          Set-Acl $i2npath $acl
            
                          Write-Host('Remove invalid shortcuts')
                          if ( Test-Path "C:\Users\Public\Desktop\Migration Utility (Iaps-NDelius IF).lnk") {
                            Remove-Item -Path "C:\Users\Public\Desktop\Migration Utility (Iaps-NDelius IF).lnk"
                          }
                          if ( Test-Path "C:\Users\Public\Desktop\Iaps-PCMS Interface Console.lnk") {
                            Remove-Item -Path "C:\Users\Public\Desktop\Iaps-PCMS Interface Console.lnk"
                          }
            
                          Write-Host('Creating new shortcut for all users')
                          $iapsapp = "C:\Program Files (x86)\I2N\IapsNDeliusInterface\PCMSIfConsole.exe"
                          $iapsshortcut = "C:\Users\Public\Desktop\PCMSIfConsole.lnk"
                          $WshShell = New-Object -comObject WScript.Shell
                          $Shortcut = $WshShell.CreateShortcut("$iapsshortcut")
                          $Shortcut.TargetPath = $iapsapp
                          $Shortcut.Save()
            
                          Write-Host('Setting RunAs Adminisrator flag on new shortcut')
                          $bytes = [System.IO.File]::ReadAllBytes("$iapsshortcut")
                          $bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
                          [System.IO.File]::WriteAllBytes("$iapsshortcut", $bytes)
                  - name: DownloadXMLConfigFiles
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Invoke-WebRequest -Uri "https://github.com/ministryofjustice/modernisation-platform-ami-builds/raw/main/teams/delius-iaps/components/files/IAPSCMSIF.xml" -OutFile "C:\Program Files (x86)\I2N\IapsNDeliusInterface\Config\IAPSCMSIF.xml"
                          Invoke-WebRequest -Uri "https://github.com/ministryofjustice/modernisation-platform-ami-builds/raw/main/teams/delius-iaps/components/files/NDELIUSIF.xml" -OutFile "C:\Program Files (x86)\I2N\IapsNDeliusInterface\Config\NDELIUSIF.xml"
        EOT
      ~ date_created          = "2023-03-14T14:34:50.187Z" -> (known after apply)
      ~ encrypted             = true -> (known after apply)
      ~ id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" -> (known after apply)
        name                  = "delius_iaps_install_ndelius_interface"
      ~ owner                 = "374269020027" -> (known after apply)
      - supported_os_versions = [] -> null
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      ~ type                  = "BUILD" -> (known after apply)
      ~ version               = "0.1.4" -> "0.1.5" # forces replacement
        # (4 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-oracle-db-client-tools/0.1.1/1"
        name                  = "delius_iaps_install_oracle_db_client_tools"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-oracle-sql-developer/0.1.5/1"
        name                  = "delius_iaps_install_oracle_sql_developer"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-set-system-locale/0.1.1/1"
        name                  = "delius_iaps_set_system_locale"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_distribution_configuration.this will be updated in-place
  ~ resource "aws_imagebuilder_distribution_configuration" "this" {
        id           = "arn:aws:imagebuilder:eu-west-2:REDACTED:distribution-configuration/delius-iaps-server"
        name         = "delius_iaps_server"
      ~ tags         = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all     = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

      - distribution {
          # At least one attribute in this block is (or was) sensitive,
          # so its contents will not be displayed.
        }
      + distribution {
          # At least one attribute in this block is (or was) sensitive,
          # so its contents will not be displayed.
        }
    }

  # module.imagebuilder.aws_imagebuilder_image_pipeline.this must be replaced
-/+ resource "aws_imagebuilder_image_pipeline" "this" {
      ~ arn                              = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-pipeline/delius-iaps-server" -> (known after apply)
      ~ date_created                     = "2023-11-03T12:58:22.594Z" -> (known after apply)
      ~ date_last_run                    = "2024-07-02T00:00:09.546Z" -> (known after apply)
      ~ date_next_run                    = "2024-08-02T00:00:00.000Z" -> (known after apply)
      ~ date_updated                     = "2023-11-03T12:58:22.594Z" -> (known after apply)
      ~ id                               = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-pipeline/delius-iaps-server" -> (known after apply)
      ~ image_recipe_arn                 = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" # forces replacement -> (known after apply) # forces replacement
      ~ infrastructure_configuration_arn = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
        name                             = "delius_iaps_server"
      ~ platform                         = "Windows" -> (known after apply)
      ~ tags                             = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all                         = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

      ~ schedule {
          + timezone                           = (known after apply)
            # (2 unchanged attributes hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.imagebuilder.aws_imagebuilder_image_recipe.this must be replaced
+/- resource "aws_imagebuilder_image_recipe" "this" {
      ~ arn              = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" -> (known after apply)
      ~ date_created     = "2023-11-03T12:58:21.526Z" -> (known after apply)
      ~ id               = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" -> (known after apply)
        name             = "delius_iaps_server"
      ~ owner            = "374269020027" -> (known after apply)
      ~ platform         = "Windows" -> (known after apply)
      ~ tags             = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all         = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      + user_data_base64 = (known after apply)
      ~ version          = "0.0.33" -> "0.0.34" # forces replacement
        # (2 unchanged attributes hidden)

      - block_device_mapping {
          - device_name = "/dev/sda1" -> null
          - no_device   = false -> null

          - ebs {
              - delete_on_termination = "true" -> null
              - encrypted             = "true" -> null
              - iops                  = 0 -> null
              - kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691" -> null
              - throughput            = 0 -> null
              - volume_size           = 30 -> null
              - volume_type           = "gp3" -> null
            }
        }
      - block_device_mapping {
          - device_name = "/dev/xvdf" -> null
          - no_device   = false -> null

          - ebs {
              - delete_on_termination = "true" -> null
              - encrypted             = "true" -> null
              - iops                  = 0 -> null
              - kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691" -> null
              - snapshot_id           = "snap-04435aa8246764616" -> null
              - throughput            = 0 -> null
              - volume_size           = 7 -> null
              - volume_type           = "gp3" -> null
            }
        }
      + block_device_mapping {
          + device_name = "/dev/sda1"

          + ebs {
              + delete_on_termination = "true"
              + encrypted             = "true"
              + kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691"
              + volume_size           = 30
              + volume_type           = "gp3"
            }
        }
      + block_device_mapping {
          + device_name = "/dev/xvdf"

          + ebs {
              + delete_on_termination = "true"
              + encrypted             = "true"
              + kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691"
              + snapshot_id           = "snap-04435aa8246764616"
              + volume_size           = 7
              + volume_type           = "gp3"
            }
        }

      ~ component {
          ~ component_arn = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" # forces replacement -> (known after apply) # forces replacement

            # (1 unchanged block hidden)
        }

        # (10 unchanged blocks hidden)
    }

  # module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this must be replaced
-/+ resource "aws_imagebuilder_infrastructure_configuration" "this" {
      ~ arn                           = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
      ~ date_created                  = "2023-11-03T12:58:19.048Z" -> (known after apply)
      ~ date_updated                  = "2024-06-28T14:34:34.243Z" -> (known after apply)
      ~ id                            = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
      ~ name                          = "delius_iaps_server_0_0_33" -> "delius_iaps_server_0_0_34" # forces replacement
      ~ resource_tags                 = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      ~ tags                          = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all                      = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 4 to add, 9 to change, 4 to destroy.

@pbasumatary pbasumatary merged commit 68ca47c into main Jul 4, 2024
7 checks passed
@pbasumatary pbasumatary deleted the NIT-1371-update-iaps-config branch July 4, 2024 08:49
Copy link
Contributor

github-actions bot commented Jul 4, 2024

teams/delius-iaps/iaps_server terragrunt plan on push event #394

module.imagebuilder.data.terraform_remote_state.imagebuilder_mp: Reading...
module.imagebuilder.data.terraform_remote_state.core_shared_services_production: Reading...
module.imagebuilder.data.aws_secretsmanager_secret.environment_management: Reading...
module.imagebuilder.data.aws_secretsmanager_secret.environment_management: Read complete after 0s [id=<REDACTED>]
module.imagebuilder.data.aws_secretsmanager_secret_version.environment_management: Reading...
module.imagebuilder.data.aws_secretsmanager_secret_version.environment_management: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.data.aws_caller_identity.current: Reading...
module.imagebuilder.data.aws_imagebuilder_component.this["amazon-cloudwatch-agent-windows"]: Reading...
module.imagebuilder.data.aws_imagebuilder_component.this["ec2launch-v2-windows"]: Reading...
module.imagebuilder.data.aws_caller_identity.current: Read complete after 0s [id=<REDACTED>]
module.imagebuilder.data.aws_kms_key.hmpps_ebs_encryption_cmk: Reading...
module.imagebuilder.data.aws_kms_key.hmpps_ebs_encryption_cmk: Read complete after 0s [id=<REDACTED>]
module.imagebuilder.data.aws_imagebuilder_component.this["amazon-cloudwatch-agent-windows"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.data.aws_imagebuilder_component.this["ec2launch-v2-windows"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"]: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.data.terraform_remote_state.imagebuilder_mp: Read complete after 7s
module.imagebuilder.data.terraform_remote_state.core_shared_services_production: Read complete after 8s
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_pipeline.this: Refreshing state... [id=<REDACTED>]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
-/+ destroy and then create replacement
+/- create replacement and then destroy

Terraform will perform the following actions:

  # module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/add-net-framework-features/0.2.0/1"
        name                  = "add_net_framework_features"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-configure-cloudwatch-agent/0.1.1/1"
        name                  = "delius_iaps_configure_cloudwatch_agent"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-configure-odbc-dsn/0.1.0/1"
        name                  = "delius_iaps_configure_odbc_dsn"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-base-packages/0.1.10/1"
        name                  = "delius_iaps_install_base_packages"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-im-interface/0.1.1/1"
        name                  = "delius_iaps_install_im_interface"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"] must be replaced
+/- resource "aws_imagebuilder_component" "this" {
      ~ arn                   = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" -> (known after apply)
      ~ data                  = <<-EOT # forces replacement
            ---
            name: delius_iaps_install_ndelius_interface
            description: Installs delius_iaps_install_ndelius_interface
            schemaVersion: 1.0
            parameters:
              - Version:
                  type: string
          -       default: 0.1.4
          +       default: 0.1.5
                  description: Component version
              - Platform:
                  type: string
                  default: "Windows"
                  description: Platform name
              - S3ArtefactBucket:
                  type: string
                  description: Name of s3 bucket holding software artefacts
            phases:
              - name: build
                steps:
                  - name: DownloadArtefacts
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Read-S3Object -BucketName {{ S3ArtefactBucket }} -KeyPrefix "delius-iaps/apps/ndelius-interface/" -Folder " ${env:TEMP}\ndelius-interface"
                  - name: InstallNDeliusInterface
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Start-Process -Wait -FilePath "${env:TEMP}\ndelius-interface\setup.exe" -ArgumentList "/quiet /qn" -Verb RunAs
                          New-Item -ItemType Junction -Path "C:\Program Files\I2N\IapsNDeliusInterface" -Target "C:\Program Files (x86)\I2N\IapsNDeliusInterface"
                  - name: RemoveInvalidShortcut
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          Write-Host('Grant local Users group full access recursively to I2N program dir')
                          $i2npath = "C:\Program Files (x86)\I2N"
                          $acl = (Get-Item $i2npath).GetAccessControl('Access')
                          $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Users", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
                          $acl.SetAccessRule($rule)
                          Set-Acl $i2npath $acl
            
                          Write-Host('Remove invalid shortcuts')
                          if ( Test-Path "C:\Users\Public\Desktop\Migration Utility (Iaps-NDelius IF).lnk") {
                            Remove-Item -Path "C:\Users\Public\Desktop\Migration Utility (Iaps-NDelius IF).lnk"
                          }
                          if ( Test-Path "C:\Users\Public\Desktop\Iaps-PCMS Interface Console.lnk") {
                            Remove-Item -Path "C:\Users\Public\Desktop\Iaps-PCMS Interface Console.lnk"
                          }
            
                          Write-Host('Creating new shortcut for all users')
                          $iapsapp = "C:\Program Files (x86)\I2N\IapsNDeliusInterface\PCMSIfConsole.exe"
                          $iapsshortcut = "C:\Users\Public\Desktop\PCMSIfConsole.lnk"
                          $WshShell = New-Object -comObject WScript.Shell
                          $Shortcut = $WshShell.CreateShortcut("$iapsshortcut")
                          $Shortcut.TargetPath = $iapsapp
                          $Shortcut.Save()
            
                          Write-Host('Setting RunAs Adminisrator flag on new shortcut')
                          $bytes = [System.IO.File]::ReadAllBytes("$iapsshortcut")
                          $bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
                          [System.IO.File]::WriteAllBytes("$iapsshortcut", $bytes)
                  - name: DownloadXMLConfigFiles
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          $ErrorActionPreference = "Stop"
                          $VerbosePreference = "Continue"
            
                          Invoke-WebRequest -Uri "https://github.com/ministryofjustice/modernisation-platform-ami-builds/raw/main/teams/delius-iaps/components/files/IAPSCMSIF.xml" -OutFile "C:\Program Files (x86)\I2N\IapsNDeliusInterface\Config\IAPSCMSIF.xml"
                          Invoke-WebRequest -Uri "https://github.com/ministryofjustice/modernisation-platform-ami-builds/raw/main/teams/delius-iaps/components/files/NDELIUSIF.xml" -OutFile "C:\Program Files (x86)\I2N\IapsNDeliusInterface\Config\NDELIUSIF.xml"
        EOT
      ~ date_created          = "2023-03-14T14:34:50.187Z" -> (known after apply)
      ~ encrypted             = true -> (known after apply)
      ~ id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" -> (known after apply)
        name                  = "delius_iaps_install_ndelius_interface"
      ~ owner                 = "374269020027" -> (known after apply)
      - supported_os_versions = [] -> null
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      ~ type                  = "BUILD" -> (known after apply)
      ~ version               = "0.1.4" -> "0.1.5" # forces replacement
        # (4 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-oracle-db-client-tools/0.1.1/1"
        name                  = "delius_iaps_install_oracle_db_client_tools"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-oracle-sql-developer/0.1.5/1"
        name                  = "delius_iaps_install_oracle_sql_developer"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"] will be updated in-place
  ~ resource "aws_imagebuilder_component" "this" {
        id                    = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-set-system-locale/0.1.1/1"
        name                  = "delius_iaps_set_system_locale"
      ~ tags                  = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all              = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (12 unchanged attributes hidden)
    }

  # module.imagebuilder.aws_imagebuilder_distribution_configuration.this will be updated in-place
  ~ resource "aws_imagebuilder_distribution_configuration" "this" {
        id           = "arn:aws:imagebuilder:eu-west-2:REDACTED:distribution-configuration/delius-iaps-server"
        name         = "delius_iaps_server"
      ~ tags         = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all     = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

      - distribution {
          # At least one attribute in this block is (or was) sensitive,
          # so its contents will not be displayed.
        }
      + distribution {
          # At least one attribute in this block is (or was) sensitive,
          # so its contents will not be displayed.
        }
    }

  # module.imagebuilder.aws_imagebuilder_image_pipeline.this must be replaced
-/+ resource "aws_imagebuilder_image_pipeline" "this" {
      ~ arn                              = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-pipeline/delius-iaps-server" -> (known after apply)
      ~ date_created                     = "2023-11-03T12:58:22.594Z" -> (known after apply)
      ~ date_last_run                    = "2024-07-02T00:00:09.546Z" -> (known after apply)
      ~ date_next_run                    = "2024-08-02T00:00:00.000Z" -> (known after apply)
      ~ date_updated                     = "2023-11-03T12:58:22.594Z" -> (known after apply)
      ~ id                               = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-pipeline/delius-iaps-server" -> (known after apply)
      ~ image_recipe_arn                 = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" # forces replacement -> (known after apply) # forces replacement
      ~ infrastructure_configuration_arn = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
        name                             = "delius_iaps_server"
      ~ platform                         = "Windows" -> (known after apply)
      ~ tags                             = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all                         = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (4 unchanged attributes hidden)

      ~ schedule {
          + timezone                           = (known after apply)
            # (2 unchanged attributes hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.imagebuilder.aws_imagebuilder_image_recipe.this must be replaced
+/- resource "aws_imagebuilder_image_recipe" "this" {
      ~ arn              = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" -> (known after apply)
      ~ date_created     = "2023-11-03T12:58:21.526Z" -> (known after apply)
      ~ id               = "arn:aws:imagebuilder:eu-west-2:REDACTED:image-recipe/delius-iaps-server/0.0.33" -> (known after apply)
        name             = "delius_iaps_server"
      ~ owner            = "374269020027" -> (known after apply)
      ~ platform         = "Windows" -> (known after apply)
      ~ tags             = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all         = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      + user_data_base64 = (known after apply)
      ~ version          = "0.0.33" -> "0.0.34" # forces replacement
        # (2 unchanged attributes hidden)

      - block_device_mapping {
          - device_name = "/dev/sda1" -> null
          - no_device   = false -> null

          - ebs {
              - delete_on_termination = "true" -> null
              - encrypted             = "true" -> null
              - iops                  = 0 -> null
              - kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691" -> null
              - throughput            = 0 -> null
              - volume_size           = 30 -> null
              - volume_type           = "gp3" -> null
            }
        }
      - block_device_mapping {
          - device_name = "/dev/xvdf" -> null
          - no_device   = false -> null

          - ebs {
              - delete_on_termination = "true" -> null
              - encrypted             = "true" -> null
              - iops                  = 0 -> null
              - kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691" -> null
              - snapshot_id           = "snap-04435aa8246764616" -> null
              - throughput            = 0 -> null
              - volume_size           = 7 -> null
              - volume_type           = "gp3" -> null
            }
        }
      + block_device_mapping {
          + device_name = "/dev/sda1"

          + ebs {
              + delete_on_termination = "true"
              + encrypted             = "true"
              + kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691"
              + volume_size           = 30
              + volume_type           = "gp3"
            }
        }
      + block_device_mapping {
          + device_name = "/dev/xvdf"

          + ebs {
              + delete_on_termination = "true"
              + encrypted             = "true"
              + kms_key_id            = "arn:aws:kms:eu-west-2:REDACTED:key/12984197-3371-4c21-8e43-a88a1581e691"
              + snapshot_id           = "snap-04435aa8246764616"
              + volume_size           = 7
              + volume_type           = "gp3"
            }
        }

      ~ component {
          ~ component_arn = "arn:aws:imagebuilder:eu-west-2:REDACTED:component/delius-iaps-install-ndelius-interface/0.1.4/1" # forces replacement -> (known after apply) # forces replacement

            # (1 unchanged block hidden)
        }

        # (10 unchanged blocks hidden)
    }

  # module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this must be replaced
-/+ resource "aws_imagebuilder_infrastructure_configuration" "this" {
      ~ arn                           = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
      ~ date_created                  = "2023-11-03T12:58:19.048Z" -> (known after apply)
      ~ date_updated                  = "2024-06-28T14:34:34.243Z" -> (known after apply)
      ~ id                            = "arn:aws:imagebuilder:eu-west-2:REDACTED:infrastructure-configuration/delius-iaps-server-0-0-33" -> (known after apply)
      ~ name                          = "delius_iaps_server_0_0_33" -> "delius_iaps_server_0_0_34" # forces replacement
      ~ resource_tags                 = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
      ~ tags                          = {
            "add_net_framework_features-version"                 = "0.2.0"
            "amazon-cloudwatch-agent-windows-version"            = "1.0.0"
            "application"                                        = "DELIUS-IAPS"
            "branch"                                             = "main"
            "business-unit"                                      = "HMPPS"
            "delius_iaps_configure_cloudwatch_agent-version"     = "0.1.1"
            "delius_iaps_configure_odbc_dsn-version"             = "0.1.0"
            "delius_iaps_install_base_packages-version"          = "0.1.10"
            "delius_iaps_install_im_interface-version"           = "0.1.1"
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
            "delius_iaps_install_oracle_db_client_tools-version" = "0.1.1"
            "delius_iaps_install_oracle_sql_developer-version"   = "0.1.5"
            "delius_iaps_set_system_locale-version"              = "0.1.1"
            "ec2launch-v2-windows-version"                       = "2.0.0"
            "image-pipeline"                                     = "delius_iaps_server"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            "is-production"                                      = "true"
            "os-version"                                         = "windows server 2022"
            "owner"                                              = "Probation Webops: [email protected]"
            "release-or-patch"                                   = "patch"
            "source-code"                                        = "https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/delius-iaps"
        }
      ~ tags_all                      = {
          ~ "delius_iaps_install_ndelius_interface-version"      = "0.1.4" -> "0.1.5"
          ~ "image-recipe"                                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
          ~ "infrastructure-configuration"                       = "delius_iaps_server/0.0.33" -> "delius_iaps_server/0.0.34"
            # (19 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 4 to add, 9 to change, 4 to destroy.

Copy link
Contributor

github-actions bot commented Jul 4, 2024

teams/delius-iaps/iaps_server terraform apply on push event #394

module.imagebuilder.aws_imagebuilder_image_pipeline.this: Destroying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_pipeline.this: Destruction complete after 1s
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Destroying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"]: Creating...
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Destruction complete after 1s
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"]: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["add_net_framework_features.yml"]: Modifications complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Creating...
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_sql_developer.yml"]: Modifications complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_oracle_db_client_tools.yml"]: Modifications complete after 0s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"]: Creation complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Creation complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_cloudwatch_agent.yml"]: Modifications complete after 2s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_configure_odbcdns.yml"]: Modifications complete after 2s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_base_packages.yml"]: Modifications complete after 3s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_im_interface.yml"]: Modifications complete after 3s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_set_system_locale.yml"]: Modifications complete after 3s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Creating...
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Modifications complete after 3s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Creation complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_pipeline.this: Creating...
module.imagebuilder.aws_imagebuilder_image_pipeline.this: Creation complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this (deposed object bda3df60): Destroying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Destruction complete after 1s
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"] (deposed object 10780b9d): Destroying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_component.this["delius_iaps_install_ndelius_interface.yml"]: Destruction complete after 0s

Apply complete! Resources: 4 added, 9 changed, 4 destroyed.

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.

2 participants