Tuesday, May 21, 2019

phpMyPassion

Process To Test AWS Route53 ChangeResourceRecordSets API from Terminal

Here I am explaining the process to test AWS Route53 ChangeResourceRecordSets API from terminal. you can copy below code and paste that to your terminal then hit an ENTER from your keyboard.


image credit: google images

aws route53 change-resource-record-sets --hosted-zone-id ZGN2AVYTFOA --change-batch '
{
 "Comment": "",
 "Changes": [
   {
     "Action": "CREATE",
     "ResourceRecordSet": {
       "Name": "anilc.phpmypassion.com.",
       "Type": "A",
       "AliasTarget": {
          "HostedZoneId": "Z26RNL4JYFTOTI",
          "DNSName": "phpmypassion-event-0ddd4472d016751e.elb.us-east-1.amazonaws.com",
          "EvaluateTargetHealth": false
       }
     }
   }
 ]
}'
"HostedZoneId": "Z26RNL4JYFTOTI" :- This hosted zone id belongs to Load Balancer Id 

--hosted-zone-id ZGN2AVYTFOA :-  This hosted zone id belongs to route53 hosted zone Id.


Output:-


{
    "ChangeInfo": {
        "Id": "/change/CWR0FJ4AJNZFT",
        "Status": "PENDING",
        "SubmittedAt": "2019-05-21T10:06:47.123Z",
        "Comment": ""
    }
}



About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a huge information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :

Note: Only a member of this blog may post a comment.