【发布时间】:2012-09-20 09:09:33
【问题描述】:
我正在使用 Node 的 aws-lib 模块。我知道它是围绕节点 API 的一个相当薄的包装器,例如运行 call("CreateTags") 将包装 CreateTags 调用,如 API 中所述。
我已成功调用其他 API 函数,例如 RunInstance 和 DescribeInstances 工作正常。 但是 CreateTags 会导致问题:
ec2.call("CreateTags", {
'ResourceId.1':notmyrealresourceid,
'Tag.1.Key':'Name'
'Tag.1.Value':'Somemachine'
}, function(err, result){
if ( err) {
console.log('Failure tagging image');
console.log(err)
}
})
在 err 中响应以下内容:
The action CreateTags is not valid for this web service.
API 明确提到 CreateTags 存在。我怎样才能让它工作?我错过了什么? 谢谢!
【问题讨论】:
标签: node.js amazon-ec2 amazon-web-services aws-lib