Skip to content

Commit

Permalink
add longer duration aws session cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
BSathvik committed Dec 20, 2023
1 parent 37d6e59 commit 62608a5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions home/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,20 @@ in

# Connect to AWS via Okta
# Ops role only 1h session duration
okta-aws.body = ''
auth.body = ''
okta-aws-cli \
--org-domain=kensho.okta.com \
--oidc-client-id=0oacyf7evwyrXjjgO4x7 \
--aws-acct-fed-app-id=0oa92bduvp33uw5Pv4x7 \
--open-browser \
--write-aws-credentials \
--cache-access-token \
--session-duration 36000 \
--profile kensho \
--aws-iam-role arn:aws:iam::208007848330:role/kensho_infra_developer
'';

authops.body = ''
okta-aws-cli \
--org-domain=kensho.okta.com \
--oidc-client-id=0oacyf7evwyrXjjgO4x7 \
Expand All @@ -59,7 +72,8 @@ in
--write-aws-credentials \
--cache-access-token \
--session-duration 3600 \
--profile kensho
--profile kensho \
--aws-iam-role arn:aws:iam::208007848330:role/kensho_ops
'';

# Toggles `$term_background` between "light" and "dark". Other Fish functions trigger when this
Expand Down

0 comments on commit 62608a5

Please sign in to comment.