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

Bump hashicorp/setup-terraform from 3.0.0 to 3.1.0 #761

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 23, 2024

Bumps hashicorp/setup-terraform from 3.0.0 to 3.1.0.

Release notes

Sourced from hashicorp/setup-terraform's releases.

v3.1.0

ENHANCEMENTS:

  • Automatically fallback to darwin/amd64 for Terraform versions before 1.0.2 as releases for darwin/arm64 are not available (#409)
Changelog

Sourced from hashicorp/setup-terraform's changelog.

3.1.0 (2024-04-23)

ENHANCEMENTS:

  • Automatically fallback to darwin/amd64 for Terraform versions before 1.0.2 as releases for darwin/arm64 are not available (#409)

3.0.0 (2023-10-30)

NOTES:

  • Updated default runtime to node20 (#346)
  • The wrapper around the installed Terraform binary has been fixed to return the exact STDOUT and STDERR from Terraform when executing commands. Previous versions of setup-terraform may have required workarounds to process the STDOUT in bash, such as filtering out the first line or selectively parsing STDOUT with jq. These workarounds may need to be adjusted with v3.0.0, which will now return just the STDOUT/STDERR from Terraform with no errant characters/statements. (#367)

BUG FIXES:

  • Fixed malformed stdout when wrapper is enabled (#367)

[2.0.3] (2022-11-01)

NOTES

  • Reduced occurrences of GitHub Actions warnings for setting output #247

[2.0.2] (2022-10-12)

BUG FIXES

INTERNAL

[2.0.1] (2022-10-12)

ENHANCEMENTS

BUG FIXES

INTERNAL

... (truncated)

Commits
  • 97f030c Update package version
  • c9227a4 Update changelog
  • 22013f7 Automatically fallback to darwin/amd64 for Terraform versions before 1.0.2 (#...
  • a75f1a3 Bump nock from 13.5.3 to 13.5.4 (#400)
  • b033326 Bump nock from 13.5.1 to 13.5.3 (#399)
  • 0051b26 Result of tsccr-helper -log-level=info gha update -latest . (#398)
  • e45327d Bump undici from 5.26.4 to 5.28.3 (#397)
  • 2417443 Remove husky tool + fix lint error (#394)
  • e12a014 Remove precommit and update dependabot (#393)
  • 521e785 Bump nock from 13.5.0 to 13.5.1 (#392)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [hashicorp/setup-terraform](/~https://github.com/hashicorp/setup-terraform) from 3.0.0 to 3.1.0.
- [Release notes](/~https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](/~https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](hashicorp/setup-terraform@a1502cd...97f030c)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner April 23, 2024 19:09
@dependabot dependabot bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Apr 23, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 25, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/github_actions/hashicorp/setup-terraform-3.1.0 branch April 25, 2024 07:10
@ASTRobinson ASTRobinson restored the dependabot/github_actions/hashicorp/setup-terraform-3.1.0 branch April 25, 2024 07:12
@ASTRobinson ASTRobinson reopened this Apr 25, 2024
Copy link
Contributor

teams/nomis-data-hub/rhel_7_9_app terragrunt plan on pull_request event #203

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 1s
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_caller_identity.current: Reading...
module.imagebuilder.data.aws_imagebuilder_component.this["update-linux"]: Reading...
module.imagebuilder.data.aws_caller_identity.current: Read complete after 1s [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["update-linux"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_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_distribution_configuration.this will be updated in-place
  ~ resource "aws_imagebuilder_distribution_configuration" "this" {
        id           = "arn:aws:imagebuilder:eu-west-2:374269020027:distribution-configuration/nomis-data-hub-rhel-7-9-app"
        name         = "nomis_data_hub_rhel_7_9_app"
      ~ tags         = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all     = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 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:374269020027:image-pipeline/nomis-data-hub-rhel-7-9-app" -> (known after apply)
      ~ date_created                     = "2024-03-25T10:32:39.132Z" -> (known after apply)
      ~ date_last_run                    = "2024-04-02T00:00:07.562Z" -> (known after apply)
      ~ date_next_run                    = "2024-05-02T00:00:00.000Z" -> (known after apply)
      ~ date_updated                     = "2024-03-25T10:32:39.132Z" -> (known after apply)
      ~ id                               = "arn:aws:imagebuilder:eu-west-2:374269020027:image-pipeline/nomis-data-hub-rhel-7-9-app" -> (known after apply)
      ~ image_recipe_arn                 = "arn:aws:imagebuilder:eu-west-2:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" # forces replacement -> (known after apply) # forces replacement
      ~ infrastructure_configuration_arn = "arn:aws:imagebuilder:eu-west-2:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
        name                             = "nomis_data_hub_rhel_7_9_app"
      ~ platform                         = "Linux" -> (known after apply)
      ~ tags                             = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all                         = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 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:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" -> (known after apply)
      ~ date_created     = "2024-03-25T10:32:38.027Z" -> (known after apply)
      ~ id               = "arn:aws:imagebuilder:eu-west-2:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" -> (known after apply)
        name             = "nomis_data_hub_rhel_7_9_app"
      ~ owner            = "374269020027" -> (known after apply)
      ~ platform         = "Linux" -> (known after apply)
      ~ tags             = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all         = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
      + user_data_base64 = (known after apply)
      ~ version          = "0.0.5" -> "0.0.4" # forces replacement
        # (2 unchanged attributes hidden)

      ~ component {
            # (1 unchanged attribute hidden)

          - parameter { # forces replacement
              - name  = "Branch" -> null
              - value = "main" -> null
            }
          + parameter { # forces replacement
              + name  = "Branch"
              + value = "feature/DSOS-1506/test_ami"
            }

            # (1 unchanged block hidden)
        }

        # (2 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:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
      ~ date_created                  = "2024-03-25T10:32:38.199Z" -> (known after apply)
      + date_updated                  = (known after apply)
      ~ id                            = "arn:aws:imagebuilder:eu-west-2:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
      ~ name                          = "nomis_data_hub_rhel_7_9_app_0_0_5" -> "nomis_data_hub_rhel_7_9_app_0_0_4" # forces replacement
      ~ resource_tags                 = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
      ~ tags                          = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all                      = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 3 to add, 1 to change, 3 to destroy.

Copy link
Contributor

commonimages/components terraform plan on pull_request event #276

data.aws_secretsmanager_secret.environment_management: Reading...
data.aws_secretsmanager_secret.environment_management: Read complete after 0s [id=<REDACTED>]
data.aws_secretsmanager_secret_version.environment_management: Reading...
data.aws_secretsmanager_secret_version.environment_management: Read complete after 1s [id=<REDACTED>]
data.aws_caller_identity.current: Reading...
data.aws_caller_identity.current: Read complete after 0s [id=<REDACTED>]
data.aws_kms_key.hmpps_ebs_encryption_cmk: Reading...
data.aws_kms_key.hmpps_ebs_encryption_cmk: Read complete after 0s [id=<REDACTED>]
aws_imagebuilder_component.this["aws_cli.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["powershell_core_server_2012.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["ansible.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["python_3_9.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["git_windows.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["yum_packages.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["powershell_core.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["prometheus_windows_exporter.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["psreadline_fix.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["python_3_6.yml"]: Refreshing state... [id=<REDACTED>]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_imagebuilder_component.this["chocolatey.yml"] will be created
  + resource "aws_imagebuilder_component" "this" {
      + arn          = (known after apply)
      + data         = <<-EOT
            ---
            name: chocolatey
            description: Component to install chocolatey
            schemaVersion: 1.0
            parameters:
              - Version:
                  type: string
                  default: 0.0.4
                  description: Component version (update this each time the file changes)
              - Platform:
                  type: string
                  default: "Windows"
                  description: Platform.
            phases:
              - name: build
                steps:
                  - name: InstallChocolatey
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          if (Get-Command choco.exe -ErrorAction SilentlyContinue) {
                            Write-Host "Chocolatey already installed"
                            [System.Environment]::Exit(0)
                          } else {
                            Write-Host "Installing Chocolatey"
                            Set-ExecutionPolicy Bypass -Scope Process -Force
                            [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
                            Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
                            [System.Environment]::Exit(3010)
                          }
        EOT
      + date_created = (known after apply)
      + description  = "Component to install chocolatey"
      + encrypted    = (known after apply)
      + id           = (known after apply)
      + kms_key_id   = "arn:aws:kms:eu-west-2:374269020027:key/12984197-3371-4c21-8e43-a88a1581e691"
      + name         = "chocolatey"
      + owner        = (known after apply)
      + platform     = "Windows"
      + skip_destroy = false
      + tags         = {
          + "application"   = "n/a"
          + "branch"        = "main"
          + "business-unit" = "HMPPS"
          + "is-production" = "true"
          + "owner"         = "digital-studio-operations-team@digital.justice.gov.uk"
          + "source-code"   = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/commonimages/components"
        }
      + tags_all     = {
          + "application"   = "n/a"
          + "branch"        = "main"
          + "business-unit" = "HMPPS"
          + "is-production" = "true"
          + "owner"         = "digital-studio-operations-team@digital.justice.gov.uk"
          + "source-code"   = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/commonimages/components"
        }
      + type         = (known after apply)
      + version      = "0.0.4"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Warning: Value for undeclared variable

The root module does not declare a variable named "account_to_distribute_ami"
but a value was found in file "terraform.tfvars". If you meant to use this
value, add a "variable" block to the configuration.

To silence these warnings, use TF_VAR_... environment variables to provide
certain "global" settings to all configurations in your organization. To
reduce the verbosity of these warnings, use the -compact-warnings option.

@ASTRobinson ASTRobinson merged commit 072ce50 into main Apr 29, 2024
59 of 70 checks passed
@ASTRobinson ASTRobinson deleted the dependabot/github_actions/hashicorp/setup-terraform-3.1.0 branch April 29, 2024 07:49
Copy link
Contributor

commonimages/components terraform plan on push event #278

data.aws_secretsmanager_secret.environment_management: Reading...
data.aws_secretsmanager_secret.environment_management: Read complete after 1s [id=<REDACTED>]
data.aws_secretsmanager_secret_version.environment_management: Reading...
data.aws_secretsmanager_secret_version.environment_management: Read complete after 0s [id=<REDACTED>]
data.aws_caller_identity.current: Reading...
data.aws_caller_identity.current: Read complete after 0s [id=<REDACTED>]
data.aws_kms_key.hmpps_ebs_encryption_cmk: Reading...
data.aws_kms_key.hmpps_ebs_encryption_cmk: Read complete after 1s [id=<REDACTED>]
aws_imagebuilder_component.this["git_windows.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["yum_packages.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["python_3_6.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["ansible.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["prometheus_windows_exporter.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["psreadline_fix.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["python_3_9.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["powershell_core.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["aws_cli.yml"]: Refreshing state... [id=<REDACTED>]
aws_imagebuilder_component.this["powershell_core_server_2012.yml"]: Refreshing state... [id=<REDACTED>]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_imagebuilder_component.this["chocolatey.yml"] will be created
  + resource "aws_imagebuilder_component" "this" {
      + arn          = (known after apply)
      + data         = <<-EOT
            ---
            name: chocolatey
            description: Component to install chocolatey
            schemaVersion: 1.0
            parameters:
              - Version:
                  type: string
                  default: 0.0.4
                  description: Component version (update this each time the file changes)
              - Platform:
                  type: string
                  default: "Windows"
                  description: Platform.
            phases:
              - name: build
                steps:
                  - name: InstallChocolatey
                    action: ExecutePowerShell
                    inputs:
                      commands:
                        - |
                          if (Get-Command choco.exe -ErrorAction SilentlyContinue) {
                            Write-Host "Chocolatey already installed"
                            [System.Environment]::Exit(0)
                          } else {
                            Write-Host "Installing Chocolatey"
                            Set-ExecutionPolicy Bypass -Scope Process -Force
                            [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
                            Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
                            [System.Environment]::Exit(3010)
                          }
        EOT
      + date_created = (known after apply)
      + description  = "Component to install chocolatey"
      + encrypted    = (known after apply)
      + id           = (known after apply)
      + kms_key_id   = "arn:aws:kms:eu-west-2:374269020027:key/12984197-3371-4c21-8e43-a88a1581e691"
      + name         = "chocolatey"
      + owner        = (known after apply)
      + platform     = "Windows"
      + skip_destroy = false
      + tags         = {
          + "application"   = "n/a"
          + "branch"        = "main"
          + "business-unit" = "HMPPS"
          + "is-production" = "true"
          + "owner"         = "digital-studio-operations-team@digital.justice.gov.uk"
          + "source-code"   = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/commonimages/components"
        }
      + tags_all     = {
          + "application"   = "n/a"
          + "branch"        = "main"
          + "business-unit" = "HMPPS"
          + "is-production" = "true"
          + "owner"         = "digital-studio-operations-team@digital.justice.gov.uk"
          + "source-code"   = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/commonimages/components"
        }
      + type         = (known after apply)
      + version      = "0.0.4"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Warning: Value for undeclared variable

The root module does not declare a variable named "account_to_distribute_ami"
but a value was found in file "terraform.tfvars". If you meant to use this
value, add a "variable" block to the configuration.

To silence these warnings, use TF_VAR_... environment variables to provide
certain "global" settings to all configurations in your organization. To
reduce the verbosity of these warnings, use the -compact-warnings option.

Copy link
Contributor

teams/nomis-data-hub/rhel_7_9_app terragrunt plan on push event #205

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.terraform_remote_state.imagebuilder_mp: Read complete after 1s
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 0s [id=<REDACTED>]
module.imagebuilder.data.terraform_remote_state.core_shared_services_production: Read complete after 1s
module.imagebuilder.data.aws_caller_identity.current: Reading...
module.imagebuilder.data.aws_imagebuilder_component.this["update-linux"]: 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["update-linux"]: Read complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Refreshing state... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_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_distribution_configuration.this will be updated in-place
  ~ resource "aws_imagebuilder_distribution_configuration" "this" {
        id           = "arn:aws:imagebuilder:eu-west-2:374269020027:distribution-configuration/nomis-data-hub-rhel-7-9-app"
        name         = "nomis_data_hub_rhel_7_9_app"
      ~ tags         = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all     = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 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:374269020027:image-pipeline/nomis-data-hub-rhel-7-9-app" -> (known after apply)
      ~ date_created                     = "2024-03-25T10:32:39.132Z" -> (known after apply)
      ~ date_last_run                    = "2024-04-02T00:00:07.562Z" -> (known after apply)
      ~ date_next_run                    = "2024-05-02T00:00:00.000Z" -> (known after apply)
      ~ date_updated                     = "2024-03-25T10:32:39.132Z" -> (known after apply)
      ~ id                               = "arn:aws:imagebuilder:eu-west-2:374269020027:image-pipeline/nomis-data-hub-rhel-7-9-app" -> (known after apply)
      ~ image_recipe_arn                 = "arn:aws:imagebuilder:eu-west-2:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" # forces replacement -> (known after apply) # forces replacement
      ~ infrastructure_configuration_arn = "arn:aws:imagebuilder:eu-west-2:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
        name                             = "nomis_data_hub_rhel_7_9_app"
      ~ platform                         = "Linux" -> (known after apply)
      ~ tags                             = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all                         = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 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:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" -> (known after apply)
      ~ date_created     = "2024-03-25T10:32:38.027Z" -> (known after apply)
      ~ id               = "arn:aws:imagebuilder:eu-west-2:374269020027:image-recipe/nomis-data-hub-rhel-7-9-app/0.0.5" -> (known after apply)
        name             = "nomis_data_hub_rhel_7_9_app"
      ~ owner            = "374269020027" -> (known after apply)
      ~ platform         = "Linux" -> (known after apply)
      ~ tags             = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all         = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
      + user_data_base64 = (known after apply)
      ~ version          = "0.0.5" -> "0.0.4" # forces replacement
        # (2 unchanged attributes hidden)

      ~ component {
            # (1 unchanged attribute hidden)

          - parameter { # forces replacement
              - name  = "Branch" -> null
              - value = "main" -> null
            }
          + parameter { # forces replacement
              + name  = "Branch"
              + value = "feature/DSOS-1506/test_ami"
            }

            # (1 unchanged block hidden)
        }

        # (2 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:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
      ~ date_created                  = "2024-03-25T10:32:38.199Z" -> (known after apply)
      + date_updated                  = (known after apply)
      ~ id                            = "arn:aws:imagebuilder:eu-west-2:374269020027:infrastructure-configuration/nomis-data-hub-rhel-7-9-app-0-0-5" -> (known after apply)
      ~ name                          = "nomis_data_hub_rhel_7_9_app_0_0_5" -> "nomis_data_hub_rhel_7_9_app_0_0_4" # forces replacement
      ~ resource_tags                 = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
      ~ tags                          = {
            "application"                  = "NOMIS-DATA-HUB"
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
            "business-unit"                = "HMPPS"
            "image-pipeline"               = "nomis_data_hub_rhel_7_9_app"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
            "os-version"                   = "rhel 7.9"
            "owner"                        = "DSO: digital-studio-operations-team@digital.justice.gov.uk"
          ~ "release-or-patch"             = "test" -> "release"
            "source-code"                  = "/~https://github.com/ministryofjustice/modernisation-platform-ami-builds/tree/main/teams/nomis-data-hub"
            "update-linux-version"         = "1.0.2"
        }
      ~ tags_all                      = {
          ~ "branch"                       = "DSOS/ndh-app-fix" -> "main"
          ~ "image-recipe"                 = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "infrastructure-configuration" = "nomis_data_hub_rhel_7_9_app/0.0.5" -> "nomis_data_hub_rhel_7_9_app/0.0.4"
          ~ "is-production"                = "false" -> "true"
          ~ "release-or-patch"             = "test" -> "release"
            # (7 unchanged elements hidden)
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 3 to add, 1 to change, 3 to destroy.

Copy link
Contributor

teams/nomis-data-hub/rhel_7_9_app terraform apply on push event #205

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_image_recipe.this: Creating...
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Modifying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_distribution_configuration.this: Modifications complete after 0s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Creation complete after 1s [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Destruction complete after 1s
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Creating...
module.imagebuilder.aws_imagebuilder_infrastructure_configuration.this: Creation complete after 0s [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 109b89ce): Destroying... [id=<REDACTED>]
module.imagebuilder.aws_imagebuilder_image_recipe.this: Destruction complete after 1s

Apply complete! Resources: 3 added, 1 changed, 3 destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant