Route53 reporting with command line

0

Is it possible to use an API/CLI to query/change my Route53 records? For example can I produce a list of domains and when they are due? or change the auto renew flag?

1 Answer
2
Accepted Answer

You can use the Route53 Domains API (and CLI command). See the CLI docs, or you can run aws route53domains help at your prompt.

To list your domains and when they're due for renewal, you could use something like:

aws route53domains list-domains --query "Domains[].[DomainName,Expiry]" --output text

and to change the autorenew flag, use

aws route53domains enable-domain-auto-renew --domain-name example.com

(or disable-domain-auto-renew). You can use the route53domains client in the SDKs similarly (for example, in boto3).

profile pictureAWS
EXPERT
James_S
answered 2 years ago
profile pictureAWS
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions