Prerequisites
- AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- Active AWS access keys – access key ID and secret access key
Configure AWS CLI
Use command aws configure
aws configure
# AWS Access Key ID [****************MPLE]:
# AWS Secret Access Key [****************MPLE]:
# Default region name [us-east-1]:
# Default output format [None]:
Check domains using route53domains
command
aws route53domains check-domain-availability --output=text --domain-name <example.com>
Example
aws route53domains check-domain-availability --output=text --domain-name [some.com](http://some.com/)
# UNAVAILABLE
Example
aws route53domains check-domain-availability --output=text --domain-name [random12345.com](http://random12345.com/)
# AVAILABLE
Create an alias to find domains quickly
Create an alias to map to the command seen above.
alias domain=’aws route53domains check-domain-availability --output=text --domain-name’
Use the alias instead of typing the whole command in the future.
domain some.com
# UNAVAILABLE
Similarly, you can create a shell function or script, or macro to run the entire command efficiently.