Skip to content

Commit a75180b

Browse files
Merge branch 'main' into feature/CCM-13610-letterRequestEventPerformance_secondBranch
2 parents 289c3c2 + c912dee commit a75180b

12 files changed

Lines changed: 159 additions & 134 deletions

File tree

.github/actions/trivy-iac/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ runs:
88
run: |
99
components_exit_code=0
1010
modules_exit_code=0
11-
11+
asdf plugin add trivy || true
12+
asdf install trivy || true
1213
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/components || components_exit_code=$?
1314
./scripts/terraform/trivy-scan.sh --mode iac ./infrastructure/terraform/modules || modules_exit_code=$?
1415

.github/actions/trivy-package/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ runs:
77
shell: bash
88
run: |
99
exit_code=0
10-
10+
asdf plugin add trivy || true
11+
asdf install trivy || true
1112
./scripts/terraform/trivy-scan.sh --mode package . || exit_code=$?
1213
1314
if [ $exit_code -ne 0 ]; then

.github/workflows/release_created.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ name: Github Release Created
22

33
on:
44
release:
5-
types: ["published"] # Inherits all input defaults
5+
types: ["released"] # Inherits all input defaults
6+
workflow_dispatch:
7+
inputs:
8+
releaseVersion:
9+
description: Release, tag, branch, or commit ID to be used for deployment
10+
required: false
11+
default: "main"
12+
type: string
613

714
concurrency:
815
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,7 +34,7 @@ jobs:
2734
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
2835
run: |
2936
bash .github/scripts/dispatch_internal_repo_workflow.sh \
30-
--releaseVersion "${{ github.event.release.tag_name }}" \
37+
--releaseVersion "${{ github.event.release.tag_name || inputs.releaseVersion }}" \
3138
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
3239
--targetEnvironment "main" \
3340
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
@@ -58,5 +65,5 @@ jobs:
5865
environment: "main"
5966
apimEnv: "int"
6067
runId: "${{ github.run_id }}"
61-
releaseVersion: "${{ github.event.release.tag_name }}"
68+
releaseVersion: "${{ github.event.release.tag_name || inputs.releaseVersion }}"
6269
isRelease: true

.github/workflows/stage-1-commit.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,6 @@ jobs:
169169
uses: actions/checkout@v4
170170
- name: "Setup ASDF"
171171
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
172-
- name: "Repo setup"
173-
uses: ./.github/actions/node-install
174-
with:
175-
node-version: ${{ inputs.nodejs_version }}
176-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177-
- name: "Perform Setup"
178-
uses: ./.github/actions/setup
179172
- name: "Trivy IaC Scan"
180173
uses: ./.github/actions/trivy-iac
181174
trivy-package:
@@ -191,13 +184,6 @@ jobs:
191184
uses: actions/checkout@v4
192185
- name: "Setup ASDF"
193186
uses: asdf-vm/actions/setup@1902764435ca0dd2f3388eea723a4f92a4eb8302
194-
- name: "Repo setup"
195-
uses: ./.github/actions/node-install
196-
with:
197-
node-version: ${{ inputs.nodejs_version }}
198-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
199-
- name: "Perform Setup"
200-
uses: ./.github/actions/setup
201187
- name: "Trivy Package Scan"
202188
uses: ./.github/actions/trivy-package
203189
count-lines-of-code:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
1.1.0-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

infrastructure/terraform/components/api/module_lambda_get_letter_data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "get_letter_data" {
2424
function_include_common = true
2525
handler_function_name = "getLetterData"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "letter_updates_transformer" {
2424
function_include_common = true
2525
handler_function_name = "handler"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

infrastructure/terraform/components/api/module_lambda_post_letters.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "post_letters" {
2424
function_include_common = true
2525
handler_function_name = "postLetters"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

infrastructure/terraform/components/api/module_lambda_upsert_letter.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module "upsert_letter" {
2424
function_include_common = true
2525
handler_function_name = "upsertLetterHandler"
2626
runtime = "nodejs22.x"
27-
memory = 128
27+
memory = 512
2828
timeout = 29
2929
log_level = var.log_level
3030

infrastructure/terraform/components/api/modules_eventpub.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ module "eventpub" {
1616
log_retention_in_days = var.log_retention_in_days
1717
log_level = "INFO"
1818

19+
force_destroy = var.force_destroy
20+
1921
event_cache_buffer_interval = 500
2022
enable_sns_delivery_logging = true
2123
sns_success_logging_sample_percent = 0

0 commit comments

Comments
 (0)