---
title: "Discussion on \"No more AWS keys on my laptop (part 1): aws sso login, aws login and MFA\" | Hashnode"
description: "Discussion on \"No more AWS keys on my laptop (part 1): aws sso login, aws login and MFA\". For years my laptop held AWS admin keys that never expired. How I moved 12 to 15 accounts to browser sign-in with MFA, and what still needs care."
url: "https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [No more AWS keys on my laptop (part 1): aws sso login, aws login and MFA](https://devops-stories.hashnode.dev/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa?utm_source=hashnode&utm_medium=feed)

For years my laptop held AWS admin keys that never expired. How I moved 12 to 15 accounts to browser sign-in with MFA, and what still needs care.

2d ago · 12 min read · devops-stories.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-cli](https://hashnode.com/tag/aws-cli)
-   [#iam-identity-center](https://hashnode.com/tag/iam-identity-center)
-   [#mfa](https://hashnode.com/tag/mfa)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#security](https://hashnode.com/tag/security)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)

## Written by

[Shad Reza](https://hashnode.com/@shadreza)

@shadreza

  
[View profile](https://hashnode.com/@shadreza)

scaling ideas, one dev story at a time.

## Responses 1

Markdown supported · ⌘↵ to post

[AI Developer](https://hashnode.com/@lycore)

[2d ago](https://hashnode.com/posts/no-more-aws-keys-on-my-laptop-part-1-aws-sso-login-aws-login-and-mfa/6b033498787bfe1f4b8e032e/comment/6b03a0ec7c9882690f857550)

The cache point is the interesting residual risk: the SSO/login token in ~/.aws/sso/cache stays valid for the session, so the useful comparison is the blast radius of a stolen token versus an old AKIA key, which is bounded by the permission set's session duration and role scope. One suggestion would be to give agent workflows their own read-only profile in a separate AWS\_CONFIG\_FILE/HOME, so the admin session cache isn't even on a path the agent can reach. For the question at the end, I'd move the profile with the most standing write access last, but only after CloudTrail shows nothing still calls it with the old key.
