Skip to content

Conversation

@steph-torres-nhs
Copy link
Contributor

No description provided.

@github-actions
Copy link

Report for degrades-dashboards on environment: dev

Terraform Format and Style 🖌success

Format Output


Terraform Initialization ⚙️success

Initialization Output

Initializing the backend...

Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Finding hashicorp/aws versions matching "~> 5.0"...
- Installing hashicorp/aws v5.100.0...
- Installed hashicorp/aws v5.100.0 (signed by HashiCorp)
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


Terraform Plan 📖success

Show Plan (2 to add, 3 to change, 2 to destroy)


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

Terraform will perform the following actions:

  # aws_iam_policy.lambda_layer will be updated in-place
  ~ resource "aws_iam_policy" "lambda_layer" {
        id               = "arn:aws:iam::343515223843:policy/lambda_layer_policy"
        name             = "lambda_layer_policy"
      ~ policy           = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "lambda:GetLayerVersion",
                          - "lambda:ListLayerVersions",
                          - "lambda:ListLayers",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer:7:*",
                        ]
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags             = {}
        # (7 unchanged attributes hidden)
    }

  # aws_iam_role_policy_attachment.degrades_daily_summary_registrations_mi_event_access will be created
  + resource "aws_iam_role_policy_attachment" "degrades_daily_summary_registrations_mi_event_access" {
      + id         = (known after apply)
      + policy_arn = "arn:aws:iam::343515223843:policy/regristrations_mi_events_read_policy"
      + role       = "degrades_daily_summary_lambda_role"
    }

  # aws_iam_role_policy_attachment.degrades_daily_summary_registrations_mi_event_read will be destroyed
  # (because aws_iam_role_policy_attachment.degrades_daily_summary_registrations_mi_event_read is not in configuration)
  - resource "aws_iam_role_policy_attachment" "degrades_daily_summary_registrations_mi_event_read" {
      - id         = "degrades_daily_summary_lambda_role-20250709101303396800000001" -> null
      - policy_arn = "arn:aws:iam::343515223843:policy/regristrations_mi_events_read_policy" -> null
      - role       = "degrades_daily_summary_lambda_role" -> null
    }

  # aws_lambda_function.degrades_daily_summary will be updated in-place
  ~ resource "aws_lambda_function" "degrades_daily_summary" {
        id                             = "dev_degrades_daily_summary_lambda"
      ~ last_modified                  = "2025-07-10T09:36:22.000+0000" -> (known after apply)
      ~ layers                         = [
          - "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer:7",
        ] -> (known after apply)
      ~ source_code_hash               = "oOMo3nKCJpwnNXDwn4CuBYdhqHp1Cx+Y4lEKCofewCE=" -> "KHVVS5LxcoiC2AKilpb6d78VzdzgmK4MyZxJ/Fiy4+M="
        tags                           = {}
        # (26 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.degrades_message_receiver will be updated in-place
  ~ resource "aws_lambda_function" "degrades_message_receiver" {
        id                             = "dev_degrades_message_receiver_lambda"
      ~ last_modified                  = "2025-07-09T12:22:07.000+0000" -> (known after apply)
      ~ layers                         = [
          - "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer:7",
        ] -> (known after apply)
      ~ source_code_hash               = "WMxVkVpAlfJ6EIHQmOBe7WUu7LeK1JY/VXSFnbCHB+U=" -> "WrN/CSTotlD/uzyr8ZBSkoxO7yH366H10Fqkhs0kAWc="
        tags                           = {}
        # (26 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_layer_version.degrades must be replaced
-/+ resource "aws_lambda_layer_version" "degrades" {
      ~ arn                         = "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer:7" -> (known after apply)
      ~ code_sha256                 = "oxd0+KB8lnIoja7NSQcHOvpQYdW/kQwyLz5ACCBbH80=" -> (known after apply)
      ~ created_date                = "2025-07-09T12:22:01.186+0000" -> (known after apply)
      ~ id                          = "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer:7" -> (known after apply)
      ~ layer_arn                   = "arn:aws:lambda:eu-west-2:343515223843:layer:dev_degrades_lambda_layer" -> (known after apply)
      + signing_job_arn             = (known after apply)
      + signing_profile_version_arn = (known after apply)
      ~ source_code_hash            = "oxd0+KB8lnIoja7NSQcHOvpQYdW/kQwyLz5ACCBbH80=" -> "khxJ6wCB+Te7mjPggmUPhFunxR4eoHwbKWLJbT5hqxQ=" # forces replacement
      ~ source_code_size            = 28382634 -> (known after apply)
      ~ version                     = "7" -> (known after apply)
        # (7 unchanged attributes hidden)
    }

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

@steph-torres-nhs steph-torres-nhs merged commit 46ae603 into main Jul 10, 2025
6 checks passed
@steph-torres-nhs steph-torres-nhs deleted the PMR-366 branch July 10, 2025 10:13
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