I am trying to run AWS program (https://docs.aws.amazon.com/AmazonS3/latest/dev/AuthUsingTempSessionTokenJava.html)
from my local system to test the assume functionality but I am wondering if I need to configure something else to make it run as I am getting following error on statement '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)
question from:https://stackoverflow.com/questions/65906983/s3-assume-role-from-local-system