Skip to content

Commit

Permalink
perf: bump default role session duration
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Oct 26, 2022
1 parent 451a153 commit fae4a4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepsea_ai/config/setup.py
Expand Up @@ -112,6 +112,7 @@ def create_role():
path = '/'
role_name = 'DeepSeaAI'
description = 'DeepSeaAI Role'
session_mins = 3600*24*7

POLICY_JSON = {
"Version": "2012-10-17",
Expand Down Expand Up @@ -141,7 +142,7 @@ def create_role():
RoleName=role_name,
AssumeRolePolicyDocument=json.dumps(POLICY_JSON),
Description=description,
MaxSessionDuration=3600
MaxSessionDuration=session_mins
)

iam.attach_role_policy(
Expand Down

0 comments on commit fae4a4a

Please sign in to comment.