Skip to content

Instantly share code, notes, and snippets.

@tfentonz
Created July 28, 2026 03:49
Show Gist options
  • Select an option

  • Save tfentonz/a6473028218cb4a668154713398cfcb7 to your computer and use it in GitHub Desktop.

Select an option

Save tfentonz/a6473028218cb4a668154713398cfcb7 to your computer and use it in GitHub Desktop.
rds-sqlserver-versions.sh
#!/bin/bash
min_version="16.00.4236.2.v1"
aws rds describe-db-engine-versions \
--filters Name=engine,Values=sqlserver-ee,sqlserver-se,sqlserver-ex \
--query "DBEngineVersions[?starts_with(EngineVersion, '16')].[Engine,EngineVersion]" \
--output text |
while read -r engine version; do
if [ "$version" != "$min_version" ] &&
[ "$(printf '%s\n' "$min_version" "$version" | sort -V | tail -n 1)" = "$version" ]; then
printf '%s\t%s\n' "$engine" "$version"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment