Hi everyone,
I’m trying to create different environments for development versus production where the development doesn’t need access to any AWS key. I have this keyless requirement because I want to run automated tests on a server without an AWS key. Here are the two pieces of my serverless.yml:
provider:
stage: ${env:STAGE}
environment:
CONTENT_TABLE: ${self:custom.CONTENT_TABLE.${self:provider.stage}}
then down in custom
custom:
CONTENT_TABLE:
dev: ps-dev-content
staging: ${ssm:/ps/${self:provider.stage}/CONTENT_TABLE}
This works great locally if I comment out the staging line, but if I uncomment it, I get this error. It’s so strange because it uses the dev line when I comment out the staging line and provide a process.env.stage = ‘dev’.
1 unsettled promises
ssm:/ps/dev/CONTENT_TABLE waited on by: ${ssm:/ps/dev/CONTENT_TABLE}