From 7bf6e1ba9c81764a349d40a2c319b1ca20552329 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Tue, 2 Apr 2024 14:23:36 -0400 Subject: [PATCH] Fix retrieval of single encrypted values --- ssm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssm.py b/ssm.py index 17768c2..e0468f4 100644 --- a/ssm.py +++ b/ssm.py @@ -44,7 +44,7 @@ def get_parameters( client: botocore.client.BaseClient, path: SSMPath, recursive: bool ) -> typing.Iterable[dict]: try: - parameter = client.get_parameter(Name=str(path)) + parameter = client.get_parameter(Name=str(path), WithDecryption=True) yield parameter.get("Parameter") return except client.exceptions.ParameterNotFound: