【发布时间】:2015-10-27 16:22:43
【问题描述】:
我正在尝试通过 SDK 在 AWS 路由 53 中设置资源记录,但我收到了无效请求错误 (InvalidInput)。你能仔细检查我的参数以确保我的设置正确吗?
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 is a test and it should be working.'
},
HostedZoneId: 'Z1YU6G6WEXAMP'
};
route53.changeResourceRecordSets(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
}
感谢您的帮助!!
【问题讨论】:
标签: javascript amazon-web-services