Increase the duration of Assume Role session in AWS Connector
long-term
Gino Orvieto
With an AWS connector set as assume role on delegate, the role has by default a timeout of 15 mins. There is a need to increase this timeout from the default of 15 min to a larger amount, say 1 hr. This is supported using an awscli command, where the duration for assume role session can be defined. Same ability to define this in the connector for assume role on delegate is needed.
Log In
Canny AI
Merged in a post:
Provide option for specifying duration second in AWS connector.
I
Ink Tiger
Currently when we create a AWS connector of type IRSA or assume role on delegate, the by deafult token present in it have a duration second for 15 minutes, after 15 minutes this token is expired.
Due to this, whenever we run any terraform job in Harness IACM or any other pipelines that takes more than 15 minutes it gets timeout as the token we started the job with is expired, Please give an option to increase this duration second for this token refresh.
Here is a sample AWS command which can increase this duration second for assume role -
``
aws sts assume-role --role-arn <RoleARN> --role-session-name <SessionName> --duration-seconds 3600
``Rohan Gupta
long-term