You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't make any progress and I'm becoming frustrated.
This is something I have done in the past with python and also my setup works for aws cli, but I can't seem to make it work for Java.
So here is my setup:
I have an SSO identity manager setup on an AWS account, and I want to actually access another account.
my ~/.aws/config looks like that
I get The security token included in the request is invalid
I'm at a loss there.
using the aws cli, the same profile setup works well.
also when I activate the verbose logs for software.amazon.awssdk I can see that it gets the "original" credentials and then the "assume_role" ones (at least I think that's what I'm seeing).
The following is a trace trying to get to SSM, but I get the same with S3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi team,
I can't make any progress and I'm becoming frustrated.
This is something I have done in the past with python and also my setup works for aws cli, but I can't seem to make it work for Java.
So here is my setup:
I have an SSO identity manager setup on an AWS account, and I want to actually access another account.
my
~/.aws/config
looks like thatIn my java application, I'm using the SDK v2 and I have pulled things like
Now in the application, if I do
using the "direct" profile, it works
However, if I try to use the indirect (assume_role) profile
I get
The security token included in the request is invalid
I'm at a loss there.
using the aws cli, the same profile setup works well.
also when I activate the verbose logs for
software.amazon.awssdk
I can see that it gets the "original" credentials and then the "assume_role" ones (at least I think that's what I'm seeing).The following is a trace trying to get to SSM, but I get the same with S3
any idea anyone?
Beta Was this translation helpful? Give feedback.
All reactions