> For the complete documentation index, see [llms.txt](https://hawkins.gitbook.io/consoleme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawkins.gitbook.io/consoleme/weep-cli/aws-credentials-in-the-cli-using-weep.md).

# AWS Credentials in the CLI using Weep and ConsoleMe

Weep is a CLI utility for getting AWS credentials from ConsoleMe, serving them to your AWS CLI or SDKs, and (in many cases) caching and refreshing credentials automatically.

Read about the specifics in our [Getting Started with Weep](/consoleme/weep-cli/cli.md) guide.

Weep supports the following operations:

1\) **Emulate the ECS Credential Provider locally**. (This provides a convenient way to get credentials on-demand, without needing networking rules. Each of your shells or IDEs can use a different role. Weep will cache these credentials and refresh them on demand):

![](/files/ES9LCZMKhzAdvviHNPsk)

2\) **Emulate the EC2 Instance Metadata Service locally**:

![](/files/LR8fykNIjGv42NmZwDEz)

3\) **Invoke weep using the** [**credential\_process flow**](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html)**.** (Note: We've seen this introduce performance issues when you have a large number of roles.)

![](/files/lDkfud6Ue7Vk5MULMH0O)

4\) **Export credentials as environment variables**

![](/files/SR4GNeSe6wZpFcYZaynk)

5\) **Write credentials to your \~/.aws/credentials file**

![](/files/GYKaIv9L5P7CWSZjESxe)

6\) **Have weep perform nested assume-role calls on your behalf, and serve the assumed role credentials** (The video below shows this flow for Weep's ECS credential provider mode. You can do this with most other modes as well):

![](/files/s9bX5RhKXKmi0TpcmvvO)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hawkins.gitbook.io/consoleme/weep-cli/aws-credentials-in-the-cli-using-weep.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
