Description
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