我正在尝试运行 AWS 程序(https://docs.aws.amazon.com/AmazonS3/latest/dev/AuthUsingTempSessionTokenJava.html)
从我的本地系统测试假设功能,但我想知道是否需要配置其他东西以使其运行,因为我在语句“AssumeRoleResult roleResponse = stsClient.assumeRole(roleRequest);”上收到以下错误
: The security token included in the request is invalid. (Service: AWSSecurityTokenService; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: 4ec69431-c382-4cea-8099-b98e77f501ed; Proxy: null)