Skip to content

Commit 768ceb2

Browse files
committed
Pass in secret value at deployment time instead
1 parent 919facf commit 768ceb2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

SAMtemplates/functions/main.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,11 @@ Resources:
444444
Variables:
445445
LOG_LEVEL: !Ref LogLevel
446446
TABLE_NAME: !Ref PrescriptionNotificationStatesTableName
447-
APP_NAME: !ImportValue secrets:PSUNotifyCallbackAppName
448-
API_KEY: !ImportValue secrets:PSUNotifyCallbackApiKey
447+
Secrets:
448+
APP_NAME:
449+
ValueFrom: !ImportValue secrets:PSUNotifyCallbackAppName
450+
API_KEY:
451+
ValueFrom: !ImportValue secrets:PSUNotifyCallbackApiKey
449452
Metadata:
450453
BuildMethod: esbuild
451454
guard:

0 commit comments

Comments
 (0)