> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/privileged-access-manager/just-in-time-access-jit/keeper-privileged-cloud/configure-jit-access-to-the-aws-console.md).

# Configure JIT Access to the AWS Console

Providing just-in-time access to the AWS console with authenticated SSO Launch URLs and session recording

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2Fczz79qT6JRJSrolvN7JW%2Fimage.png?alt=media&amp;token=ea683bc5-1a21-418e-b4cb-9d2ebe3bf0c2" alt=""><figcaption></figcaption></figure>

### Overview

Using Keeper Privileged Cloud, when a user launches an RBI session on an AWS linked cloud resource record, Keeper automatically signs in the user to the AWS Management Console. No password required.

This works with both JIT ephemeral accounts and existing AWS users.

### Before you start

* Set up the PAM configuration as outlined in [AWS Environment Setup](https://docs.keeper.io/keeperpam/privileged-access-manager/getting-started/pam-configuration/aws-environment-setup.md), and connect the corresponding gateway.
* Make sure the record's URL is pointed to the correct AWS console, such as `https://console.aws.amazon.com/` (or `https://console.amazonaws-us-gov.com/` for GovCloud). If the URL points somewhere else, or the account is in an AWS China region, the session still opens but lands on the regular AWS login page.
* To use ephemeral accounts, make sure to check the "create ephemeral account for connection" box in the record's JIT settings, and validate the permissions the account should receive.

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2FzPaUWScwBq6R7XpvNl9t%2FScreenshot%202026-10-27%20at%202.47.01%E2%80%AFPM.png?alt=media&amp;token=f572bfb0-af10-48ec-b263-de50f8eb2c05" alt="PAM Cloud Resource record JIT settings for ephemeral account creation"><figcaption><p>This record is setup to use an ephemeral account when connecting to the cloud resource.</p></figcaption></figure>

### Launching a session

{% stepper %}
{% step %}

#### Open the record

Click **Launch**.
{% endstep %}

{% step %}

#### Access the AWS console

The AWS console opens in a Remote Browser Isolation ("RBI") window, and the remote AWS session is already signed in.
{% endstep %}

{% step %}

### Audit and protect

Based on the configuration of the resource, sessions can be automatically session recorded and summarized with KeeperAI.
{% endstep %}
{% endstepper %}

That's everything the user does. The rest happens in the background.

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2FxHxIMnO5ilcSsc3E9tdi%2FScreenshot%202026-10-29%20at%201.27.57%E2%80%AFPM.png?alt=media&amp;token=8145b5d9-bd8d-442c-932b-df1b0ed274be" alt="PAM Cloud Resource record showing the AWS console in an RBI window after automatically being logged into the environment"><figcaption><p>This record shows the AWS console in an RBI window after automatically being logged into the environment with an ephemeral account.</p></figcaption></figure>

### What happens behind the scenes

{% stepper %}
{% step %}

#### An ephemeral user account is created when needed

For an ephemeral account, the gateway creates a new user in AWS with the permissions from the JIT settings. For an existing user, it skips this step.
{% endstep %}

{% step %}

#### A temporary access key is created

The gateway creates a temporary access key (a token) on the user's account. AWS won't issue a console login link without one.
{% endstep %}

{% step %}

#### A single use SSO launch URL is generated

The gateway uses the newly minted access key to generate a pre-authorized login link, which is the SSO launch URL, and passes it to the RBI.
{% endstep %}

{% step %}

#### RBI is redirected to the AWS console

When the RBI window loads, it opens the link and the user is logged straight in to the console.
{% endstep %}
{% endstepper %}

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2Fbaw15Q0X2JLJEgmwESlC%2FScreenshot%202026-10-29%20at%201.29.52%E2%80%AFPM.png?alt=media&amp;token=9e24cba1-fe68-4e61-a0c4-1d010eea23c0" alt="AWS console showing the newly created ephemeral user after launching the RBI session"><figcaption><p>In this example, an ephemeral user account has been created in the AWS IAM instance when the RBI session from above launched.</p></figcaption></figure>

### When the session ends

A session ends when the JIT timer runs out or when the user closes the RBI session. The KeeperPAM Gateway then removes what it created:

* **Ephemeral user:** The user is deleted from AWS, and its access key goes with it.
* **Existing user:** The gateway deletes the access key it created for the session. The user account and any access keys it already had are left alone.

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2F4w7PfuWtuoSrww6kmtue%2FScreenshot%202026-10-29%20at%201.30.30%E2%80%AFPM.png?alt=media&amp;token=890ffc73-bfc1-4ef8-b745-fd1cf2a98945" alt="AWS console showing the previously created ephemeral user no longer exists after closing the RBI session"><figcaption><p>In this example, the AWS console shows the previously created ephemeral user no longer exists after closing the RBI session.</p></figcaption></figure>

### Troubleshooting

#### The user already has two access keys

AWS limits each user at two access keys. If an existing user already has two, the gateway can't add the temporary one, so the SSO launch URL can't be generated and the session doesn't start. The user sees this error:

> Can't start the session: this launch credential's AWS user is already at the maximum of 2 access keys, so a temporary sign-in key can't be created. Remove an unused access key on that IAM user and try again.

To fix it, delete one of the user's access keys in AWS (IAM > Users > select the user > Security credentials > Access keys), then launch again. Check that nothing still depends on the key before you delete it. Deactivating the key isn't enough, because AWS counts inactive keys toward the limit.

Ephemeral users don't run into this. They start with no access keys.

#### The console takes a while to load

AWS needs a few seconds to recognize a new access key before it will issue a login link. Expect a short wait on every launch, and up to about 15 seconds for a brand-new ephemeral user.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/privileged-access-manager/just-in-time-access-jit/keeper-privileged-cloud/configure-jit-access-to-the-aws-console.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
