diff --git a/scripts/update_schemas_from_aws_api.py b/scripts/update_schemas_from_aws_api.py index 57d57763fd..1b9a2d5df7 100755 --- a/scripts/update_schemas_from_aws_api.py +++ b/scripts/update_schemas_from_aws_api.py @@ -155,6 +155,12 @@ def write_db_instance(results): continue engine_versions = sorted(results.get(engine)) + if engine == "postgres": + for engine_version in engine_versions.copy(): + major_engine_version = ".".join(engine_version.split(".")[0:1]) + if major_engine_version not in engine_versions: + engine_versions.append(major_engine_version) + engine_versions = sorted(engine_versions) if engine == "aurora-mysql": for engine_version in engine_versions.copy(): sub_engine_version = ".".join(engine_version.split(".")[0:2]) @@ -258,7 +264,6 @@ def elasticache_api(): for page in elasticache_client.get_paginator( "describe_cache_engine_versions" ).paginate(): - print(page) for version in page.get("CacheEngineVersions"): engine = version.get("Engine") engine_version = version.get("EngineVersion") diff --git a/src/cfnlint/data/schemas/extensions/aws_rds_dbinstance/engine_version.json b/src/cfnlint/data/schemas/extensions/aws_rds_dbinstance/engine_version.json index d525bb86ca..080adc637d 100644 --- a/src/cfnlint/data/schemas/extensions/aws_rds_dbinstance/engine_version.json +++ b/src/cfnlint/data/schemas/extensions/aws_rds_dbinstance/engine_version.json @@ -466,10 +466,12 @@ "properties": { "EngineVersion": { "enum": [ + "11", "11.22", "11.22-rds.20240418", "11.22-rds.20240509", "11.22-rds.20240808", + "12", "12.15", "12.16", "12.17", @@ -478,6 +480,7 @@ "12.20", "12.21", "12.22", + "13", "13.11", "13.12", "13.13", @@ -486,6 +489,7 @@ "13.16", "13.17", "13.18", + "14", "14.10", "14.11", "14.12", @@ -493,6 +497,7 @@ "14.14", "14.15", "14.9", + "15", "15.10", "15.4", "15.5", @@ -500,12 +505,14 @@ "15.7", "15.8", "15.9", + "16", "16.1", "16.2", "16.3", "16.4", "16.5", "16.6", + "17", "17.1", "17.2" ]