Passer au contenu

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 réponse
2
Réponse acceptée

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).

AWS
EXPERT
répondu il y a 4 ans
AWS
EXPERT
vérifié il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.