question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reference SSM Parameters as Variables

See original GitHub issue

This is a Feature Proposal

Description

I was thinking it would be great to have the ability to reference SSM parameters as serverless variables. The syntax would probably look something like this:

service: new-service
provider: aws
functions:
  hello:
      name: ${ssm:param-name}
      handler: handler.hello

I looked at the current code, and I think the implementation would be pretty similar to the s3 variable reference. I’d be happy to test a patch and submit a pull request if there is interest. The feature should include a couple things:

  • Ability to reference both regular and path-based SSM parameters.
  • Ability to specify WithDecryption. Not sure quite yet where this would go. Any ideas for this one? Maybe a new provider option?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (22 by maintainers)

github_iconTop GitHub Comments

4reactions
lorengordoncommented, Aug 8, 2017

I created https://github.com/serverless/serverless/issues/4062 to demonstrate working code and further the discussion.

0reactions
eahefnawycommented, Jan 28, 2019

@akleiber @exoego thanks for the heads up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and reference SSM Parameter Store variables in ...
Referencing a Parameter Store value in Lambda Code​​ Now there are two ways to make use of the parameters with the code of...
Read more >
3 Ways to Read SSM Parameters - DEV Community ‍ ‍
AWS Systems Manager Parameter Store (or SSM Parameter Store) is a convenient way to store hierarchical parameters in AWS.
Read more >
AWS Systems Manager Parameter Store
You can store values as plain text or encrypted data. You can reference Systems Manager parameters in your scripts, commands, SSM documents, and...
Read more >
Variables - Serverless Framework
Reference Variables using the SSM Parameter Store. You can reference SSM Parameters as the source of your variables with the ssm:/path/to/param syntax.
Read more >
AWS Systems Manager (SSM) Parameters Store and Access ...
Create Parameter in SSM first · Create New IAM permission for accessing SSM parameters(Variable) from lambda · Create Lambda function: use SSM Javascript...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found