Having trouble utilizing SSM in the serverless.ts file and encountering issues.
const serverlessConfiguration: AWS = {
service: "data-lineage",
frameworkVersion: "2",
custom: {
webpack: {
webpackConfig: "./webpack.config.js",
includeModules: true,
},
stages: ["dev", "staging", "prod"],
region: "${opt:region, self:provider.region}",
stage: "${opt:stage, self:provider.stage}",
dburl: {
dev: config.transactionalMongoUrl,
staging:
"${ssm:/some/some2/staging/dburl}",
prod:
"${ssm:/some/some2/prod/dburl}",
},
.... ... ..
environment: {
AWS_NODEJS_CONNECTION_REUSE_ENABLED: "1",
DB_URL:
"${self:custom.dburl.${self:provider.stage}}",
My deployed lambda is not functioning correctly as process.env.DB_URL returns undefined.
Seeking guidance on effectively using SSM within the context of serverless.ts.