我正在尝试用java和STS创建s3客户端。BasicSessionCredentials credentials = getCredentialsOfCurrentRole(); assumedRoleCredentials = assumeRoleResult.getCredentials();
但在请求IAM角色的临时凭据时出现以下异常Failed to get credentials using
我需要从主帐户中承担次要帐户中的临时角色。对于主帐户,我已经有了一个角色,它为次要角色中的临时角色提供了一个假定角色策略。但是当我执行命令时我收到了这个错误calling the AssumeRole operation: User: arn:aws:iam::xxxxxxx:user/primary is not authorized to perform: <e