Replies: 1 comment 3 replies
-
Can you try updating the version of the sdk that you are using? You are using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my effort of trying to use the STS AssumeRole service, I am noticing that
ListObjects()
API seems to be taking a lot longer when using credentials (key/secret/token) obtained from AssumeRole service. I wanted to ask and understand if this behavior has been noticed before or is it just me seeing this because of the way I am using the service.I will try to explain both the approaches below in detail that I have tried, one of which is seeing a lot more time for
ListObjects()
API.Setup:
Approach 1: Use of
ListObjects()
with regular service-account credentials in the form of key and secret.Set some client configurations
Aws::Client::ClientConfiguration client_config;
We set couple of options here like:
region, followRedirects, connect/requestTimeoutMs, scheme, maxConnections
and few others.Create credentials object
Create client object
Use ListObjects() to list objects
Approach 2: Obtain STS credentials using the service account credentials we had and then use those to do ListObjects().
Set same client configurations as mentioned above in approach 1 for '
client_config
'....
Create STS client
Initiate AssumeRole request.
Create credentials object as shown in approach 1 using
m_key, m_secret and m_sessiontok
values from above step.m_sessiontok
is not NULL in this case....
Create client object as shown in approach 1.
...
Call
ListObjects()
exactly as shown in approach 1 and measure its time....
Observation:
We are noticing that requests are taking significantly longer in approach 2 after obtaining temporary credentials from AssumeRole service. Feel free to update me if there is a better way to use STS AssumeRole via the SDK than what I mentioned above, which may yield better performance of
ListObjects()
.Let me know if you need more information.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions