# tigris iam policies link-key

Link an access key to a policy. If no policy ARN is provided, shows interactive selection. If no access key ID is provided, shows interactive selection of unlinked keys.

**Alias:** `lnk`

## Usage[​](#usage "Direct link to Usage")

```
tigris iam policies link-key [resource] [flags]

t3 iam p lnk [resource] [flags]
```

## Flags[​](#flags "Direct link to Flags")

| Name   | Required | Default | Description             |
| ------ | -------- | ------- | ----------------------- |
| `--id` | No       | —       | Access key ID to attach |

## Examples[​](#examples "Direct link to Examples")

```
# Link a specific key to a specific policy

tigris iam policies link-key arn:aws:iam::org_id:policy/my-policy --id tid_AaBb



# Interactive selection for both policy and key

tigris iam policies link-key
```
