> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Workload identity

> Give a service its own Google Cloud or AWS identity, so it can use cloud APIs without a key file.

A service that calls your cloud's APIs, such as Cloud Storage, BigQuery, Pub/Sub, S3, SQS or DynamoDB, needs an identity. Inframan gives each service its own, with no key file to store, leak or rotate:

* **Google Cloud:** a Google service account bound to the service through **Workload Identity**.
* **AWS:** an IAM role that only this service's pods can take, through **EKS Pod Identity**.

The cloud SDKs find the identity by themselves, so your code doesn't change.

## Set it up

**1. Open the service's Security tab**

Open the service and select **Security**.

**2. Create the identity**

Click **Enable Workload Identity** on Google Cloud, or **Set up an AWS role** on AWS. Inframan reserves the identity and shows the commands that create it.

**3. Run the commands**

Run them in Cloud Shell or AWS CloudShell. They create the service account or role and limit it to this one service:

* On Google Cloud, only this service's Kubernetes service account can act as the Google service account.
* On AWS, the role's trust admits only this cluster, this namespace and this service's Kubernetes service account.

**4. Verify**

Click **Verify**. Inframan checks the binding and attaches the identity to the service's pods. It takes a few seconds.

**5. Grant permissions**

The new identity starts with **no permissions**. Grant it what the service needs, in your cloud:

* Google Cloud: assign IAM roles to the service account.
* AWS: attach a policy to the role.

The next release of the service runs with its identity. On Google Cloud, the service also receives the account's email as `INFRAMAN_SERVICE_ACCOUNT`.

> [!NOTE]
>
> Inframan never grants permissions to a service's identity. You decide exactly what each service may do, and it stays visible in your cloud's IAM console. The one exception is the [Storage add-on](https://inframan.mintlify.site/provision/add-ons/storage.md), whose bucket grants are also commands you run yourself.

## Status

| Status | Meaning |
| - | - |
| No identity configured | The service has no cloud identity. |
| Pending | Reserved. Run the commands, then verify. |
| Bound | The service runs with its identity. |

## Who can set it up

Developers and Admins. A connected AI assistant can start the setup and verify it, but the commands are always run by you.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.