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?

preguntada hace 2 años367 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
EXPERTO
James_S
respondido hace 2 años
profile pictureAWS
EXPERTO
revisado hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas