Skip to content

Instantly share code, notes, and snippets.

@dazza-codes
Created December 6, 2022 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dazza-codes/e26e9ad419df2c2fd24f1de2daa9c621 to your computer and use it in GitHub Desktop.
Save dazza-codes/e26e9ad419df2c2fd24f1de2daa9c621 to your computer and use it in GitHub Desktop.
Get AWS Load Balancers and API Gateway Endpoints
#!/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