Skip to content

Instantly share code, notes, and snippets.

@joshes
Last active August 31, 2022 22:56
Show Gist options
  • Save joshes/159cb9e62aed7dec789005b40e5a9b14 to your computer and use it in GitHub Desktop.
Save joshes/159cb9e62aed7dec789005b40e5a9b14 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Print all Airflow URLs you have access to with their environment name
for env in $(aws mwaa list-environments | jq -r '.Environments[]'); do
echo "Env: $env - url: https://$(aws mwaa get-environment --name $env | jq -r '.Environment.WebserverUrl')"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment