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개 답변
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
답변함 2년 전
AWS
지원 엔지니어
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠