Reference SSM Parameters as Variables
See original GitHub issueThis 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:
- Created 6 years ago
- Comments:23 (22 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created https://github.com/serverless/serverless/issues/4062 to demonstrate working code and further the discussion.
@akleiber @exoego thanks for the heads up!