From 83182f0f96e9a96914ce79211585e08024c91c62 Mon Sep 17 00:00:00 2001 From: Anthony Brown <121869075+anthony-nhs@users.noreply.github.com> Date: Mon, 7 Oct 2024 07:08:16 +0000 Subject: [PATCH] use arm --- Makefile | 3 ++- SAMtemplates/functions/main.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 34d7834b3..01810a3ec 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,8 @@ compile: compile-node download-get-secrets-layer: mkdir -p packages/getSecretLayer/lib - curl -LJ https://github.com/NHSDigital/electronic-prescription-service-get-secrets/releases/download/$$(curl -s "https://api.github.com/repos/NHSDigital/electronic-prescription-service-get-secrets/releases/latest" | jq -r .tag_name)/get-secrets-layer.zip -o packages/getSecretLayer/lib/get-secrets-layer.zip +# curl -LJ https://github.com/NHSDigital/electronic-prescription-service-get-secrets/releases/download/$$(curl -s "https://api.github.com/repos/NHSDigital/electronic-prescription-service-get-secrets/releases/latest" | jq -r .tag_name)/get-secrets-layer.zip -o packages/getSecretLayer/lib/get-secrets-layer.zip + curl https://github.com/NHSDigital/electronic-prescription-service-get-secrets/actions/runs/11210354066/artifacts/2022391984 -o packages/getSecretLayer/lib/get-secrets-layer.zip lint-node: compile-node npm run lint --workspace packages/capabilityStatement diff --git a/SAMtemplates/functions/main.yaml b/SAMtemplates/functions/main.yaml index cd621740a..229a039c9 100644 --- a/SAMtemplates/functions/main.yaml +++ b/SAMtemplates/functions/main.yaml @@ -8,7 +8,7 @@ Globals: Timeout: 50 MemorySize: 256 Architectures: - - x86_64 + - arm64 Runtime: nodejs20.x Environment: Variables: @@ -22,7 +22,7 @@ Globals: SpineCAChainARN: !ImportValue account-resources:SpineCAChain ServiceSearchApiKeyARN: !ImportValue account-resources:ServiceSearchApiKey Layers: - - !Sub arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension:52 + - !Sub arn:aws:lambda:${AWS::Region}:580247275435:layer:LambdaInsightsExtension-Arm64:20 Parameters: StackName: