---
title: "Discussion on \"How to Assume an IAM Role in AWS via CLI & Console\" | Hashnode"
description: "Discussion on \"How to Assume an IAM Role in AWS via CLI & Console\". Learn how to assume an IAM role in AWS using Console GUI, AWS CLI profiles, direct STS commands, and the Granted tool. Complete guide with troubleshooting, cross-account setup, and MFA configuration."
url: "https://hashnode.com/posts/aws-cli-assume-iam-role/695439b999cf34acf48a89da"
---

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

Discussion

# [How to Assume an IAM Role in AWS via CLI & Console](https://towardsthecloud.hashnode.dev/aws-cli-assume-iam-role?utm_source=hashnode&utm_medium=feed)

Learn how to assume an IAM role in AWS using Console GUI, AWS CLI profiles, direct STS commands, and the Granted tool. Complete guide with troubleshooting, cross-account setup, and MFA configuration.

Jul 30, 2023 · 18 min read · towardsthecloud.hashnode.dev  
Updated Apr 2  
Read the article

-   [#cli](https://hashnode.com/tag/cli)
-   [#cloud](https://hashnode.com/tag/cloud)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#cloud-security](https://hashnode.com/tag/cloud-security)
-   [#devops](https://hashnode.com/tag/devops)
-   [#iam](https://hashnode.com/tag/iam)
-   [#security](https://hashnode.com/tag/security)
-   [#sts](https://hashnode.com/tag/sts)

## Written by

[Danny Steenman](https://hashnode.com/@dannysteenman)

@dannysteenman · Amsterdam, Netherlands

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

Principal Cloud Consultant

Hi, 👋 my name is Danny. I’m an AWS Cloud Consultant who likes to build things in the Cloud. I write blog posts about a variety of topics like AWS, DevOps, and Certifications. The goal is to keep things practical and easy to understand.

## Responses

Comments are turned off for this post.
