php - Update TTL in existing Route53 Resource Record set -


I have some records in the routing 53 account. I want bulk to update TTL for all of them.

The argument I am using is that I get all the records using the "ListResourceRecordSets" operation. I create the following change object for each record. The array ('action' = & gt; 'UPSER', 'resource recordset' => array ('name' = & gt; OLD_CNAME, 'type' = & gt; A ',' ttl '= & gt; NEW_TTL,' resource record '= & gt; array (array (' value '= & gt; OLD_IP)),);)

Then I send the "ChangeResourceRecordSets" request with the changes objects created in the last step.

Router 53 is returning to this error Validation Errors: [ChangeBatch] [changes] [changes] [verb] "make" or "delete" [ChangeBatch] should be one of [change [1] [change] [verb] should be one of "create" or "delete")

PS ChangeResourceRecordSets call < No UPSER example could be found for / div>

A later version that supports your AWS SDK to UPSERT In or you must delete the record set first and then add them to the new changes.

UPSER was added at the beginning of 2014: in fact the old SDK

To do this without UPSERT:

  array ('action' => gt; 'DELETE', 'ResourceRecordSet' = & gt; array ('name' = & Gt; OLD_CNAME, 'type' = & gt; 'A', 'ttl' = & gt; OLD_TTL, 'resource processing' = & gt; array (array ('value' = & gt; OLD_IP)), ); The array ('action' => 'CREATE', 'ResourceRecordSet' => means the array ('name' =   

and then:

 & Gt; OLD_CNAME, 'Type' = & gt; 'A', 'ttl' = & gt; NEW_TTL, 'resource processing' = & gt; array (array ('value' = & gt; OLD_IP)),) ;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -