> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/cloud-devops/aws-sts.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# AWS Security Token Service

AWS Security Token Service issues temporary credentials. Assume roles, get federation tokens, and identify the caller behind a set of credentials.

![AWS Security Token Service logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-8050823e909f339f2ce2a3feb3bded2e7e0fa4a9%2Faws-s3.png?alt=media)

|                    |                                                                                                              |
| ------------------ | ------------------------------------------------------------------------------------------------------------ |
| **Category**       | [Cloud and DevOps](https://docs.fastn.ai/connectors/catalog/cloud-devops.md)                                 |
| **Website**        | [aws.amazon.com](https://aws.amazon.com)                                                                     |
| **Authentication** | API key or token                                                                                             |
| **Slug**           | `awsSts`                                                                                                     |
| **On fastn.ai**    | [Embed AWS Security Token Service in your product](https://fastn.ai/integrations/aws-security-token-service) |

## Setup

Your customers enter their API key or token for AWS Security Token Service when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect AWS Security Token Service from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **AWS Security Token Service**.
2. Select **Connect** on the AWS Security Token Service card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use AWS Security Token Service's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Assume Role</td><td><code>assumeRole</code></td><td>Returns a set of temporary security credentials (access key ID, secret access key and session token) for an IAM role, signed with the connection's own AWS credentials. The calling identity must be trusted by the role's trust policy and allowed sts:AssumeRole. Supports session duration, external ID, MFA, inline and managed session policies (up to 5 managed policy ARNs through this action), source identity and up to 5 session tags. Returns the AssumeRoleResponse envelope.</td></tr><tr><td>Assume Role With SAML</td><td><code>assumeRoleWithSaml</code></td><td>Returns temporary credentials for an IAM role in exchange for a SAML authentication response from an identity provider registered as a SAML provider in IAM. AWS does not require the request to be signed. The session lasts for the requested duration or until the assertion's SessionNotOnOrAfter time, whichever is shorter. Supports up to 5 managed session policy ARNs through this action. Returns the AssumeRoleWithSAMLResponse envelope.</td></tr><tr><td>Assume Role With Web Identity</td><td><code>assumeRoleWithWebIdentity</code></td><td>Returns temporary credentials for an IAM role in exchange for an OpenID Connect ID token or OAuth 2.0 access token from a web identity provider such as Amazon Cognito, Login with Amazon, Google, or an OIDC provider registered in IAM. AWS does not require the request to be signed, and the role's trust policy must trust the identity provider. Supports up to 5 managed session policy ARNs through this action. Returns the AssumeRoleWithWebIdentityResponse envelope.</td></tr><tr><td>Assume Root</td><td><code>assumeRoot</code></td><td>Returns short-term privileged root credentials for a member account in an AWS Organization, scoped to one of the AWS managed root-task policies. The connection must hold credentials of the Organizations management account or the delegated administrator for IAM, and centralized root access must be enabled in the organization. Sessions last at most 900 seconds. Returns the AssumeRootResponse envelope.</td></tr><tr><td>Decode Authorization Message</td><td><code>decodeAuthorizationMessage</code></td><td>Decodes the encoded authorization message that AWS services return alongside an authorization failure, revealing which policy, principal, action and resource caused the denial. Requires the sts:DecodeAuthorizationMessage permission. Returns the DecodeAuthorizationMessageResponse envelope with the decoded JSON message as a string.</td></tr><tr><td>Fastn Assume Role</td><td><code>fastnAssumeRole</code></td><td>Sends the same AWS STS AssumeRole request as Assume Role and returns temporary credentials for the given IAM role. The difference is the credential source: in the legacy Fastn platform this operation was signed with Fastn's own AWS account keys so a customer only had to trust Fastn's account in the role's trust policy (usually with an external ID). Here the request is signed with whatever keys the connection holds, so to reproduce that model the connection must hold fastn-owned AWS credentials and the role must trust that account.</td></tr><tr><td>Get Access Key Info</td><td><code>getAccessKeyInfo</code></td><td>Returns the AWS account ID that owns a given access key ID, for long-term (AKIA) and temporary (ASIA) keys alike, without revealing anything else about the key. Useful for identifying the account behind a leaked or unknown key. Returns the GetAccessKeyInfoResponse envelope with the Account.</td></tr><tr><td>Get Caller Identity</td><td><code>getCallerIdentity</code></td><td>Returns details about the IAM user or role whose credentials are used to call the operation, including the AWS account ID, ARN, and user ID. No IAM permissions are required to perform this operation.</td></tr><tr><td>Get Delegated Access Token</td><td><code>getDelegatedAccessToken</code></td><td>Exchanges a trade-in token, issued for an AWS resource or trusted-identity-propagation flow, for temporary AWS credentials and the identity they represent. The trade-in token must be valid and unexpired at the time of the request. Returns the GetDelegatedAccessTokenResponse envelope with the Credentials and the delegated identity details.</td></tr><tr><td>Get Federation Token</td><td><code>getFederationToken</code></td><td>Returns temporary credentials for a federated user, signed with the IAM user credentials on the connection. The effective permissions are the intersection of the calling user's policies and the inline or managed session policies passed here, so pass at least one policy or the federated user has no permissions. Sessions last 900 to 129,600 seconds (12 hours by default). Supports up to 5 managed policy ARNs and 5 session tags through this action. Returns the GetFederationTokenResponse envelope.</td></tr></tbody></table>

<details>

<summary>View 2 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Session Token</td><td><code>getSessionToken</code></td><td>Returns a set of temporary credentials for the IAM user whose long-term keys the connection holds, optionally after MFA. The temporary credentials carry the same permissions as the user except that they cannot call IAM or most STS operations. Sessions last 900 to 129,600 seconds (12 hours by default). Returns the GetSessionTokenResponse envelope with the Credentials.</td></tr><tr><td>Get Web Identity Token</td><td><code>getWebIdentityToken</code></td><td>Issues a short-lived JSON Web Token (JWT) signed by AWS STS that represents the calling IAM identity, for presenting to an external service that validates AWS-issued tokens. The audience populates the aud claim and up to 5 tags can be added as custom claims through this action. Tokens last 60 to 3,600 seconds (300 by default). Returns the GetWebIdentityTokenResponse envelope with the JWT.</td></tr></tbody></table>

</details>


---

# 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.fastn.ai/connectors/catalog/cloud-devops/aws-sts.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.
