Skip to content

Commit

Permalink
Reverse sort MSK results by default (#78)
Browse files Browse the repository at this point in the history
Also point to the right url for detailed version informations.
  • Loading branch information
guikcd authored Apr 7, 2022
1 parent 77b0090 commit 4815a90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
from jinja2 import Template

GENERATION_DATE = datetime.datetime.now()
VERSION = "0.7"
VERSION = "0.7.1"

ELASTICACHE_ENGINES = ["memcached", "redis"]

VERSION_URL_DETAIL = {
"opensearch": "https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#aes-choosing-version",
"redis": "https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/supported-engine-versions.html",
"memcached": "https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/supported-engine-versions.html",
"kafka": "https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html",
"kafka": "https://docs.aws.amazon.com/msk/latest/developerguide/kafka-versions.html",
"kubernetes": "https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html",
"lambda": "https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html",
"postgres": "https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html",
Expand Down Expand Up @@ -192,6 +192,8 @@ def msk_versions():
for version in msk.list_kafka_versions()["KafkaVersions"]:
if version["Status"] == "ACTIVE":
active_versions.append(version["Version"])
active_versions.sort()
active_versions.reverse()
return test_versions(active_versions)


Expand Down

0 comments on commit 4815a90

Please # to comment.