Resolving Secrets from a pinned Region with Serverless Framework at Resolution Mode 20210326

Viewed 159

Today I saw the deprecation warning for resolving region pinned SSM params & secrets by Serverless:

  • previous: ssm.<region>:<path>
  • new: ssm(<region>):<path>

I've updated the variable resolving directly to the latest version via variablesResolutionMode: 20210326, but now this seems to not work anymore for secrets, but only SSM parameters.

Examples:

  • ${ssm(eu-central-1):/some-ssm-param} works fine.
  • ${ssm(eu-central-1):/aws/reference/secretsmanager/some-secret} doesn't.

Error message is not too helpful:

Invalid variable reference syntax for variable ssm(eu-central-1):/aws/reference/secretsmanager/some-secret.
You can only reference env vars, options, & files. You can check our docs for more info.

Documentation does only give examples for retrieving secrets without the pinned region, but this worked before.

Am I missing something here?

0 Answers
Related