我正在使用 Node 的aws-lib模块。我知道它是围绕节点 API 的一个相当薄的包装器,例如运行 call("CreateTags") 将包装 API 中记录的CreateTags调用。
我成功地调用了其他 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 存在。我怎样才能让它工作?我错过了什么?谢谢!