Within AWS CLI
aws ec2 describe-instances --query "Reservations[*].Instances[].[KeyName, PlatformDetails, PrivateIpAddress, InstanceId]" --output=text --no-cli-pager | sortaws rds describe-db-instances --query
"DBInstances[].[DBInstanceIdentifier,Engine]" --output=text
--no-cli-pager | sort