我使用此政策
{
"allowed": false,
"explicitDeny": false,
"matchedStatements": {
"items": []
},
"failures": {
"items": []
},
"context": {
"principal": {
"id": "AIDAJXOEQNA64A677DGQO",
"name": "DevOps1",
"arn": "arn:aws:iam::955246940111:user/DevOps1"
},
"action": "ec2:RunInstances",
"resource": "arn:aws:ec2:us-east-1:955246940111:key-pair/CodeDeploy",
"conditions": {
"items": [
{
"key": "ec2:Region",
"values": {
"items": [
{
"value": "us-east-1"
}
]
}
}
]
}
}
}
但它显示错误消息,初始化失败。我在aws文档中看到了这个例子,但是不明白为什么会出现这个问题。
S._ensureIndex({ a: 1, b: 1, c: -1, d: 1 });
S.find({ a: "specificString"}, { sort: { b: 1, c: -1, d: 1 } });