Services >> Cloud >> AWS >> CLI >> How to update route53 record in your hosted zonee.g. hosted zone: example.com
(1) Obtain the route53 hosted-zone-id aws route53 list-hosted-zones Example output: { "HostedZones": [ { "ResourceRecordSetCount": 4, "CallerReference": "C510CAC3-D5D9-XXXX-B039-1DFA2XXXXXXX", "Config": {}, "Id": "/hostedzone/Z1W9BXXXXXXXLB", "Name": "example.com." } ], "IsTruncated": false, "MaxItems": "100" } Note the hosted zone id, e.g. above highted in RED (2) prepare the recordset .json file e.g. /tmp/update.json { (3) run the aws cli to update
aws route53 change-resource-record-sets --hosted-zone-id Z1W9BXXXXXXXLB --change-batch file:///tmp/update.json
|