---
title: "Discussion on \"Configuring AWS CLI (macOS & Linux) to Use Entra SSO and Assume Role Across Multiple AWS Accounts\" | Hashnode"
description: "Discussion on \"Configuring AWS CLI (macOS & Linux) to Use Entra SSO and Assume Role Across Multiple AWS Accounts\". Let’s start with a WHY:\nStoring long-lived AWS access keys on laptops or servers is extremely risky because anyone who gains access to the device—whether through theft, malware, or simple misconfiguration—immediately gains full control of whatever th..."
url: "https://hashnode.com/posts/replace-access-keys-with-sso-and-assumerole/6932b5b324a98e830e43074e"
---

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

Discussion

# [Configuring AWS CLI (macOS & Linux) to Use Entra SSO and Assume Role Across Multiple AWS Accounts](https://kopitalk.hashnode.dev/replace-access-keys-with-sso-and-assumerole?utm_source=hashnode&utm_medium=feed)

Let’s start with a WHY: Storing long-lived AWS access keys on laptops or servers is extremely risky because anyone who gains access to the device—whether through theft, malware, or simple misconfiguration—immediately gains full control of whatever th...

Dec 5, 2025 · 5 min read · kopitalk.hashnode.dev  
Read the article

-   [#aws-so](https://hashnode.com/tag/aws-so)
-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-cli](https://hashnode.com/tag/aws-cli)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#entra-id](https://hashnode.com/tag/entra-id)
-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#identity-management](https://hashnode.com/tag/identity-management)
-   [#least-privilege](https://hashnode.com/tag/least-privilege)

## Written by

[Ayub M](https://hashnode.com/@Ayubmamat)

@Ayubmamat · Singapore, Asia

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
