javascript - InvalidInput: Invalid request on AWS Route 53 -
i trying set resource records in aws route 53 via sdk , getting invalid request error(invalidinput). can double check params make sure have them set correctly?
function testw () { var params = { changebatch: { changes: [ { action: 'create', resourcerecordset: { name: 'example.com', type: 'a', aliastarget: { dnsname: 's3-website-us-east-1.amazonaws.com', evaluatetargethealth: false, hostedzoneid: 'z1yu6g6wexamp' }, } }, ], comment: 'this test , should working.' }, hostedzoneid: 'z1yu6g6wexamp' }; route53.changeresourcerecordsets(params, function (err, data) { if (err) console.log(err, err.stack); // error occurred else console.log(data); // successful response }); }
thanks help!!
can try removing ttl? when use aliases, not specify ttl route 53 use target's ttl. also, per documentation, alias target zone id should z3aqbstgfyjstf.
Comments
Post a Comment