Fix retrieval of single encrypted values

This commit is contained in:
Correl Roush 2024-04-02 14:23:36 -04:00
parent 7e023a5f08
commit 7bf6e1ba9c

2
ssm.py
View file

@ -44,7 +44,7 @@ def get_parameters(
client: botocore.client.BaseClient, path: SSMPath, recursive: bool client: botocore.client.BaseClient, path: SSMPath, recursive: bool
) -> typing.Iterable[dict]: ) -> typing.Iterable[dict]:
try: try:
parameter = client.get_parameter(Name=str(path)) parameter = client.get_parameter(Name=str(path), WithDecryption=True)
yield parameter.get("Parameter") yield parameter.get("Parameter")
return return
except client.exceptions.ParameterNotFound: except client.exceptions.ParameterNotFound: