Skip to content

Instantly share code, notes, and snippets.

@bashtoni
Created July 4, 2018 10:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bashtoni/cda204308d9730d6420e59d84f55f77e to your computer and use it in GitHub Desktop.
Save bashtoni/cda204308d9730d6420e59d84f55f77e to your computer and use it in GitHub Desktop.
Get HostedZoneId from AWS CLI for a given domain
aws route53 list-hosted-zones-by-name --dns-name example.com --query HostedZones[].Id --output text | cut -d/ -f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment