我正在尝试使用 cli 来检索嵌入式 quicksight 仪表板 url。但是,我不断收到错误消息QuickSightUserNotFoundException
。
我正在按照本指南检索 url链接。
步骤:
aws sts assume-role --role-arn "<ARN>" --role-session-name testsession
返回
{
"Credentials": {
"AccessKeyId": "<KEY>",
"SecretAccessKey": "<KEY>",
"SessionToken": "<TOKEN>",
"Expiration": "2019-07-04T04:54:21Z"
},
"AssumedRoleUser": {
"AssumedRoleId": "<ID>:testsession",
"Arn": "<ARN>/testsession"
}
}
然后我执行
aws quicksight get-dashboard-embed-url --aws-account-id <ID> --dashboard-id <ID> --identity-type IAM
返回错误
An error occurred (QuickSightUserNotFoundException) when calling the GetDashboardEmbedUrl operation: Could not find user information in QuickSight
假设现在用户不是 QuickSight 的一部分,我执行下面的命令来添加用户
aws quicksight register-user --aws-account-id <ID> --namespace default --identity-type IAM --iam-arn "<ARN>" --user-role READER --session-name "testsession" --email user123@example.com --region us-east-1
返回
{
"Status": 201,
"User": {
"Arn": "<ARN>/testsession",
"UserName": "<NAME>/testsession",
"Email": "user123@example.com",
"Role": "READER",
"Active": false,
"PrincipalId": "<ID>"
},
"RequestId": "<ID>"
}
现在再次尝试之前的获取网址,我仍然得到同样的错误......