Skip to content

Feature request: utility function to get multiple parameters by name instead of path #1040

Closed
@hooverdc

Description

@hooverdc

Is your feature request related to a problem? Please describe.

I have several functions in a severless application with several SSM parameters under the same path. Each function only needs access to some parameters and most functions will share some parameters but not all. I don't want functions to have access to parameters they don't require. I also don't want to call get_parameter for each parameter in order to keep cold start times down. I would like to be able to specify the parameter names and return them in one batch.

Describe the solution you'd like

A get_parameters_by_name function that accepts a list of strings of parameter names and returns a dict similar to the get_parameters function, but with the full parameter path as the key (presumably you could call this with parameters on different paths).

https://docs.aws.amazon.com/cli/latest/reference/ssm/get-parameters.html#get-parameters

Describe alternatives you've considered

Writing my own wrapper function that calls get_parameters from boto3.

Additional context
N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions