# Assume Role

1. `AWS > IAM > Roles > Create Role > AWS account` 를 통해 새로운 역할 생성

<figure><img src="/files/hQn9AXoC4cNtA9Vi9iqi" alt=""><figcaption></figcaption></figure>

2. 생성한 역할의 신뢰 정책에서 신뢰할 대상(외부/내부) 지정

<figure><img src="/files/DLwp6ux9dUhY9jzrmYF6" alt=""><figcaption></figcaption></figure>

3. 위임을 받을 계정의 정책을 수정하여 sts:AssumeRole 권한 할당

<figure><img src="/files/nThfMWX3q6n0btnNFPrA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/home-lab/aws/assume-role.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
