Created
December 6, 2022 02:17
-
-
Save dazza-codes/e26e9ad419df2c2fd24f1de2daa9c621 to your computer and use it in GitHub Desktop.
Get AWS Load Balancers and API Gateway Endpoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC1090 | |
source ~/bin/aws_profile.sh | |
aws-profile org-main-e1 | |
aws elbv2 describe-load-balancers | jq -r '.LoadBalancers[].DNSName' | |
# shellcheck disable=SC2086 | |
aws apigateway get-rest-apis | jq -r '.items[] | "https://\(.id).execute-api.'${AWS_DEFAULT_REGION}'.amazonaws.com/\(.tags.STAGE)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment