From c1c7cb0258f11b92cab5ac753cb1f4afd32c21fa Mon Sep 17 00:00:00 2001 From: MacRae Linton <55759+macrael@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:35:24 -0800 Subject: [PATCH] Fix hard coded secret name that broke dev (#2214) --- services/app-api/serverless.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/app-api/serverless.yml b/services/app-api/serverless.yml index 76e4d5e5d0..7b419b7bcc 100644 --- a/services/app-api/serverless.yml +++ b/services/app-api/serverless.yml @@ -35,7 +35,7 @@ custom: dbURL: ${env:DATABASE_URL} ldSDKKey: ${env:LD_SDK_KEY, ssm:/configuration/ld_sdk_key_feds} # because the secret is in JSON in secret manager, we have to pass it into jwtSecret when not running locally - jwtSecretJSON: ${env:CF_CONFIG_IGNORED_LOCALLY, ssm:/aws/reference/secretsmanager/api_jwt_secret_wmltestapijwtaccess} + jwtSecretJSON: ${env:CF_CONFIG_IGNORED_LOCALLY, ssm:/aws/reference/secretsmanager/api_jwt_secret_${sls:stage}} jwtSecret: ${env:JWT_SECRET, self:custom.jwtSecretJSON.jwtsigningkey} webpack: webpackConfig: 'webpack.config.js'