Skip to content

Commit 05eb423

Browse files
authored
Chore: [AEA-5803] - revert use but not creation of PSU secrets (#2442)
## Summary - 🤖 Operational or Infrastructure Change ### Details We need to create new PSU secrets one release ahead of using. Hence this uses the old `secrets` stack. Confluence page to go along with the release: https://nhsd-confluence.digital.nhs.uk/spaces/APIMC/pages/1236043264/Migration+to+PSU+managed+secrets+for+NHS+Notify+integration
1 parent efc69f7 commit 05eb423

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

SAMtemplates/functions/main.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,9 @@ Resources:
431431
LOG_LEVEL: !Ref LogLevel
432432
NHS_NOTIFY_PRESCRIPTIONS_SQS_QUEUE_URL: !Ref NHSNotifyPrescriptionsSQSQueueUrl
433433
TABLE_NAME: !Ref PrescriptionNotificationStatesTableName
434-
API_KEY_SECRET:
435-
Fn::ImportValue: !Sub ${StackName}-PSU-Notify-API-Key
436-
PRIVATE_KEY_SECRET:
437-
Fn::ImportValue: !Sub ${StackName}-PSU-Notify-PrivateKey
438-
KID_SECRET:
439-
Fn::ImportValue: !Sub ${StackName}-PSU-Notify-KID
434+
API_KEY_SECRET: secrets-PSU-Notify-API-Key
435+
PRIVATE_KEY_SECRET: secrets-PSU-Notify-PrivateKey
436+
KID_SECRET: secrets-PSU-Notify-Application-KID
440437
NHS_NOTIFY_ROUTING_ID_PARAM: !Ref NotifyRoutingPlanIDParam
441438
NOTIFY_API_BASE_URL_PARAM: !Ref NotifyAPIBaseURLParam
442439
MAKE_REAL_NOTIFY_REQUESTS_PARAM: !Ref EnableNotificationsExternalParam
@@ -500,10 +497,8 @@ Resources:
500497
Variables:
501498
LOG_LEVEL: !Ref LogLevel
502499
TABLE_NAME: !Ref PrescriptionNotificationStatesTableName
503-
APP_ID_SECRET:
504-
Fn::ImportValue: !Sub ${StackName}-PSU-Notify-Application-ID
505-
API_KEY_SECRET:
506-
Fn::ImportValue: !Sub ${StackName}-PSU-Notify-API-Key
500+
APP_ID_SECRET: secrets-PSU-Notify-Application-ID
501+
API_KEY_SECRET: secrets-PSU-Notify-API-Key
507502
Metadata:
508503
BuildMethod: esbuild
509504
guard:

0 commit comments

Comments
 (0)