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

fix(terraform): vol5223 give batch jobs a priority and share identifier #225

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

matbeales
Copy link
Contributor

@matbeales matbeales commented Aug 8, 2024

Description

The queue has been set up with a fair share scheduling policy, so the batch jobs need a share identifier and priority to be submitted. I've set defaults for now but we can make them more specific further down the line.

Annoyingly there is an option to add a scheduling priority to a job definition in terraform, but this option does not yet exist in the batch module, so we need to set an override in the scheduling instead.

Related issue: https://dvsa.atlassian.net/browse/VOL-5223

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

Copy link
Contributor

github-actions bot commented Aug 8, 2024

Terraform plan for environment: int

Commit: 6a4b50b

API version: 418eb0c
CLI version: 418eb0c
Selfserve version: 418eb0c
Internal version: 418eb0c

Plan summary

0 to add, 1 to change, 0 to destroy

🔄 Updates

module.service.aws_s3_bucket_policy.bucket_policy

Show full plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.service.aws_s3_bucket_policy.bucket_policy will be updated in-place
  ~ resource "aws_s3_bucket_policy" "bucket_policy" {
        id     = "vol-app-assets"
      ~ policy = jsonencode(
          ~ {
              ~ Statement = [
                  ~ {
                      ~ Condition = {
                          ~ StringEquals = {
                              ~ "aws:SourceArn" = "arn:aws:cloudfront::054614622558:distribution/E3R9S2AKJG4ZTR" -> "arn:aws:cloudfront::054614622558:distribution/E1GZYPKGUFNMP4"
                            }
                        }
                        # (4 unchanged attributes hidden)
                    },
                ]
                # (1 unchanged attribute hidden)
            }
        )
        # (1 unchanged attribute hidden)
    }

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

Copy link
Contributor

github-actions bot commented Aug 8, 2024

Terraform plan for environment: dev

Commit: 6a4b50b

API version: 418eb0c
CLI version: 418eb0c
Selfserve version: 418eb0c
Internal version: 418eb0c

Plan summary

0 to add, 34 to change, 0 to destroy

🔄 Updates

module.service.module.eventbridge.aws_scheduler_schedule.this["clean-up-variations"]
module.service.module.eventbridge.aws_scheduler_schedule.this["close-expired-windows"]
module.service.module.eventbridge.aws_scheduler_schedule.this["cns"]
module.service.module.eventbridge.aws_scheduler_schedule.this["company-profile-dlq"]
module.service.module.eventbridge.aws_scheduler_schedule.this["create-psv-licence-surrender-task"]
module.service.module.eventbridge.aws_scheduler_schedule.this["digital-continuation-reminders"]
module.service.module.eventbridge.aws_scheduler_schedule.this["duplicate-vehicle-warning"]
module.service.module.eventbridge.aws_scheduler_schedule.this["enqueue-ch-compare"]
module.service.module.eventbridge.aws_scheduler_schedule.this["expire-bus-registration"]
module.service.module.eventbridge.aws_scheduler_schedule.this["flag-urgent-tasks"]
module.service.module.eventbridge.aws_scheduler_schedule.this["inspection-request-email"]
module.service.module.eventbridge.aws_scheduler_schedule.this["interim-end-date-enforcement"]
module.service.module.eventbridge.aws_scheduler_schedule.this["international-goods-export"]
module.service.module.eventbridge.aws_scheduler_schedule.this["last-tm-letter"]
module.service.module.eventbridge.aws_scheduler_schedule.this["licence-status-rules"]
module.service.module.eventbridge.aws_scheduler_schedule.this["mark-expired-permits"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-company-profile"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-inbox"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-insolvency"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-insolvency-dlq"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-ntu"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-community-licences"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-disc-generation"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-disc-print"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-ecmt-accept"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-general"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-irhp-allocate"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-permit-generation"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-permit-print"]
module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-print"]
module.service.module.eventbridge.aws_scheduler_schedule.this["psv-operator-list-export"]
module.service.module.eventbridge.aws_scheduler_schedule.this["remove-read-audit"]
module.service.module.eventbridge.aws_scheduler_schedule.this["resolve-payments"]
module.service.module.eventbridge.aws_scheduler_schedule.this["transxchange-consumer"]

Show full plan
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.service.module.eventbridge.aws_scheduler_schedule.this["clean-up-variations"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/clean-up-variations-schedule"
        name                         = "clean-up-variations-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["close-expired-windows"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/close-expired-windows-schedule"
        name                         = "close-expired-windows-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["cns"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/cns-schedule"
        name                         = "cns-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["company-profile-dlq"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/company-profile-dlq-schedule"
        name                         = "company-profile-dlq-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["create-psv-licence-surrender-task"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/create-psv-licence-surrender-task-schedule"
        name                         = "create-psv-licence-surrender-task-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["digital-continuation-reminders"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/digital-continuation-reminders-schedule"
        name                         = "digital-continuation-reminders-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["duplicate-vehicle-warning"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/duplicate-vehicle-warning-schedule"
        name                         = "duplicate-vehicle-warning-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["enqueue-ch-compare"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/enqueue-ch-compare-schedule"
        name                         = "enqueue-ch-compare-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["expire-bus-registration"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/expire-bus-registration-schedule"
        name                         = "expire-bus-registration-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["flag-urgent-tasks"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/flag-urgent-tasks-schedule"
        name                         = "flag-urgent-tasks-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["inspection-request-email"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/inspection-request-email-schedule"
        name                         = "inspection-request-email-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["interim-end-date-enforcement"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/interim-end-date-enforcement-schedule"
        name                         = "interim-end-date-enforcement-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["international-goods-export"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/international-goods-export-schedule"
        name                         = "international-goods-export-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["last-tm-letter"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/last-tm-letter-schedule"
        name                         = "last-tm-letter-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["licence-status-rules"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/licence-status-rules-schedule"
        name                         = "licence-status-rules-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["mark-expired-permits"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/mark-expired-permits-schedule"
        name                         = "mark-expired-permits-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-company-profile"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-company-profile-schedule"
        name                         = "process-company-profile-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-inbox"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-inbox-schedule"
        name                         = "process-inbox-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-insolvency"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-insolvency-schedule"
        name                         = "process-insolvency-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-insolvency-dlq"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-insolvency-dlq-schedule"
        name                         = "process-insolvency-dlq-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-ntu"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-ntu-schedule"
        name                         = "process-ntu-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-community-licences"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-community-licences-schedule"
        name                         = "process-queue-community-licences-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-disc-generation"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-disc-generation-schedule"
        name                         = "process-queue-disc-generation-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-disc-print"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-disc-print-schedule"
        name                         = "process-queue-disc-print-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-ecmt-accept"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-ecmt-accept-schedule"
        name                         = "process-queue-ecmt-accept-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-general"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-general-schedule"
        name                         = "process-queue-general-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-irhp-allocate"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-irhp-allocate-schedule"
        name                         = "process-queue-irhp-allocate-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-permit-generation"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-permit-generation-schedule"
        name                         = "process-queue-permit-generation-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-permit-print"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-permit-print-schedule"
        name                         = "process-queue-permit-print-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["process-queue-print"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/process-queue-print-schedule"
        name                         = "process-queue-print-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["psv-operator-list-export"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/psv-operator-list-export-schedule"
        name                         = "psv-operator-list-export-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["remove-read-audit"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/remove-read-audit-schedule"
        name                         = "remove-read-audit-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["resolve-payments"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/resolve-payments-schedule"
        name                         = "resolve-payments-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

  # module.service.module.eventbridge.aws_scheduler_schedule.this["transxchange-consumer"] will be updated in-place
  ~ resource "aws_scheduler_schedule" "this" {
        id                           = "default/transxchange-consumer-schedule"
        name                         = "transxchange-consumer-schedule"
        # (10 unchanged attributes hidden)

      ~ target {
          ~ input    = jsonencode(
              ~ {
                  + SchedulingPriorityOverride = 1
                  + ShareIdentifier            = "volapp"
                    # (3 unchanged attributes hidden)
                }
            )
            # (2 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }

        # (1 unchanged block hidden)
    }

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

@matbeales matbeales changed the title fix(terraform): VOL5223 give batch jobs a priority and share identifier fix(terraform): vol5223 give batch jobs a priority and share identifier Aug 8, 2024
@JoshuaLicense JoshuaLicense merged commit 720d999 into main Aug 8, 2024
19 checks passed
@JoshuaLicense JoshuaLicense deleted the VOL-5223-batch-scheduling-policy branch August 8, 2024 12:04
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.

3 participants