Skip to content

Commit 3814406

Browse files
committed
Pass in secret values a different way
1 parent f38ba4c commit 3814406

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

SAMtemplates/functions/main.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,9 @@ Resources:
444444
Variables:
445445
LOG_LEVEL: !Ref LogLevel
446446
TABLE_NAME: !Ref PrescriptionNotificationStatesTableName
447-
Secrets:
448-
APP_NAME:
449-
ValueFrom: !ImportValue secrets:PSUNotifyCallbackAppName
450-
API_KEY:
451-
ValueFrom: !ImportValue secrets:PSUNotifyCallbackApiKey
447+
APP_NAME: !Sub "{{resolve:secretsmanager:PSUNotifyCallbackAppName:SecretString:AWSCURRENT}}"
448+
API_KEY: !Sub "{{resolve:secretsmanager:PSUNotifyCallbackApiKey:SecretString:AWSCURRENT}}"
449+
452450
Metadata:
453451
BuildMethod: esbuild
454452
guard:

0 commit comments

Comments
 (0)