admin管理员组文章数量:1220424
I created a resource explorer index in us-east-2 with this command:
aws resource-explorer-2 create-index --region us-east-2
I verified it was ready:
aws resource-explorer-2 get-index --region us-east-2
{
"Arn": "arn:aws:resource-explorer-2:us-east-2:123456123456:index/c8a3afa7-aca7-4d74-a5d9-7bef74385371",
"CreatedAt": "2025-02-08T18:53:50.523000+00:00",
"LastUpdatedAt": "2025-02-08T18:53:50.523000+00:00",
"ReplicatingTo": [],
"State": "ACTIVE",
"Tags": {},
"Type": "LOCAL"
}
When I try to search against the index, I get an UnauthorizedException
aws resource-explorer-2 search --query-string "*" --region us-east-2
An error occurred (UnauthorizedException) when calling the Search operation: Unauthorized
My user already had an AdministratorAccess
policy attached to it, which should allow searching. Just in case I also added AWSResourceExplorerFullAccess
to the user, which did not fix it.
Why am I getting UnauthorizedExceptions searching for resources in an index I created?
I created a resource explorer index in us-east-2 with this command:
aws resource-explorer-2 create-index --region us-east-2
I verified it was ready:
aws resource-explorer-2 get-index --region us-east-2
{
"Arn": "arn:aws:resource-explorer-2:us-east-2:123456123456:index/c8a3afa7-aca7-4d74-a5d9-7bef74385371",
"CreatedAt": "2025-02-08T18:53:50.523000+00:00",
"LastUpdatedAt": "2025-02-08T18:53:50.523000+00:00",
"ReplicatingTo": [],
"State": "ACTIVE",
"Tags": {},
"Type": "LOCAL"
}
When I try to search against the index, I get an UnauthorizedException
aws resource-explorer-2 search --query-string "*" --region us-east-2
An error occurred (UnauthorizedException) when calling the Search operation: Unauthorized
My user already had an AdministratorAccess
policy attached to it, which should allow searching. Just in case I also added AWSResourceExplorerFullAccess
to the user, which did not fix it.
Why am I getting UnauthorizedExceptions searching for resources in an index I created?
Share Improve this question asked 2 days ago lreederlreeder 12.2k2 gold badges59 silver badges68 bronze badges1 Answer
Reset to default 0That error is generated because the default --view-arn
is not set in us-east-2
(check the description of --value-arn
in https://awscli.amazonaws.com/v2/documentation/api/latest/reference/resource-explorer-2/search.html).
You need to create a default view in us-east-2
(https://docs.aws.amazon.com/resource-explorer/latest/userguide/configure-views-set-default.html).
本文标签: amazon web servicesUnauthorizedError when using resourceexplorer2 search operationStack Overflow
版权声明:本文标题:amazon web services - UnauthorizedError when using resource-explorer-2 search operation - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739248760a2154810.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论