Skip to content

Commit cfc8d95

Browse files
Refactor - improve performance by setting a fixed assume role expiration time
1 parent d29ca03 commit cfc8d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/assume_role.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ aws_assume_role_get_credentail() {
104104

105105
assume_role_result=""
106106

107-
aws_assume_role_expired_time_from_config=$(aws configure get profile.${ASSUME_ROLE}.assume_role_timeout)
107+
# aws_assume_role_expired_time_from_config=$(aws configure get profile.${ASSUME_ROLE}.assume_role_timeout)
108+
# improve performance
109+
aws_assume_role_expired_time_from_config=60
108110

109111
# Check input invalid
110112
if [[ -n "$aws_assume_role_expired_time_from_config" ]]; then

0 commit comments

Comments
 (0)