我正在按照本教程(为仪表板嵌入创建和执行初始设置 Lambda)运行 lambda 函数以设置 QuickSight 用户和组。
我的 QuickSight 区域是ap-southeast-1
,当我在 aws 控制台上测试 lambda 函数时,出现此错误:
{
"errorMessage": "An error occurred (AccessDeniedException) when calling the CreateGroup operation: Operation is being called from endpoint ap-southeast-1, but your identity region is us-east-1. Please use the us-east-1 endpoint.",
"errorType": "AccessDeniedException",
"stackTrace": [
" File \"/var/task/embedSetUp.py\", line 27, in handler\n raise e\n",
" File \"/var/task/embedSetUp.py\", line 21, in handler\n res = qs.create_group(\n",
" File \"/var/runtime/botocore/client.py\", line 386, in _api_call\n return self._make_api_call(operation_name, kwargs)\n",
" File \"/var/runtime/botocore/client.py\", line 705, in _make_api_call\n raise error_class(parsed_response, operation_name)\n"
]
}
我还在
creatGroup
AWS doc上找到了 API ,它说
权限资源是
arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name>
.
如果我的 QuickSight 帐户位于 中,那么使用此 CreateGroup API 的正确方法是ap-southeast-1
什么?