diff --git a/moto/rds/models.py b/moto/rds/models.py index 169e8132a..6958ba330 100644 --- a/moto/rds/models.py +++ b/moto/rds/models.py @@ -497,7 +497,7 @@ class Database(CloudFormationModel): {{ database.backup_retention_period }} {{ database.status }} {% if database.db_name %}{{ database.db_name }}{% endif %} - {{ database.multi_az }} + {{ 'true' if database.multi_az else 'false' }} {% for vpc_security_group_id in database.vpc_security_group_ids %} @@ -536,7 +536,7 @@ class Database(CloudFormationModel): {{ database.source_db_identifier }} {% endif %} {{ database.engine }} - {{database.enable_iam_database_authentication|lower }} + {{'true' if database.enable_iam_database_authentication else 'false' }} {{ database.license_model }} {{ database.engine_version }} diff --git a/tests/test_rds/test_server.py b/tests/test_rds/test_server.py index c9792c725..5a8d3a521 100644 --- a/tests/test_rds/test_server.py +++ b/tests/test_rds/test_server.py @@ -25,4 +25,11 @@ def test_create_db_instance(): } res = test_client.post("/?Action=CreateDBInstance", data=json.dumps(body)) - res.data.decode("utf-8").shouldnt.contain("") + response = res.data.decode("utf-8") + response.shouldnt.contain("") + + # We do not pass these values - they should default to false + response.should.contain("false") + response.should.contain( + "false" + )