AWS STS client connection timeout while using AWS JAVA SDK

0

My use case requires to test connection to different AWS resources like s3 bucket, SNS topic arn and sqs url, while I am assuming a role through STS client. Now, my java application runs fine most of the times but it sometimes runs into STS client time out error and ends the API call. And when i hit the API call again, it will give the output. I wanted to know if there is any way(or any sts property) to set a custom timeout for this purpose. I am using my sts client to assume a role to a 3rd party AWS account and during the testing of the role ARN(which is to be assumed, am I getting this time out error). Please let me know if there is any way around this. Thanks.

1 Risposta
0

Hello, Thank you for your question. The reason for the timeout could be that you using the maximum time of session duration for the role. You can configure timeout options with HTTP connections.

Amir_C
con risposta 2 anni fa
AWS
TECNICO DI SUPPORTO
verificato 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande