fix(rds): handle not existing parameter values (#4191)

This commit is contained in:
Sergio Garcia
2024-06-06 08:43:19 -04:00
committed by GitHub
parent a890895e8b
commit 84b9c442fe
@@ -266,15 +266,19 @@ class RDS(AWSService):
DBClusterParameterGroupName=cluster.parameter_group
):
for parameter in page["Parameters"]:
if parameter["ParameterName"] == "rds.force_ssl":
cluster.force_ssl = parameter["ParameterValue"]
if (
parameter["ParameterName"]
== "require_secure_transport"
"ParameterValue" in parameter
and "ParameterName" in parameter
):
cluster.require_secure_transport = parameter[
"ParameterValue"
]
if parameter["ParameterName"] == "rds.force_ssl":
cluster.force_ssl = parameter["ParameterValue"]
if (
parameter["ParameterName"]
== "require_secure_transport"
):
cluster.require_secure_transport = parameter[
"ParameterValue"
]
except ClientError as error:
if (
error.response["Error"]["Code"]