# 

# exoscale_iam_access_key (Resource)

Manage Exoscale [IAM Access Keys](https://community.exoscale.com/documentation/iam/)

!> **WARNING:** This resource stores sensitive information in your Terraform state. Please be sure to correctly understand implications and how to mitigate potential risks before using it.

## Example Usage

```terraform
resource "exoscale_iam_access_key" "my_sos_access_key" {
  name       = "my-sos-access-key"
  operations = ["get-sos-object", "list-sos-bucket"]
  resources  = ["sos/bucket:my-bucket"]
}

resource "exoscale_iam_access_key" "my_sks_access_key" {
  name = "my-sks-access-key"
  tags = ["sks"]
}
```

Please refer to the [examples](https://github.com/exoscale/terraform-provider-exoscale/tree/master/examples/)
directory for complete configuration examples.

-> **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`.

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) ❗ The IAM access key name.

### Optional

- `operations` (Set of String) ❗ A list of API operations to restrict the key to.
- `resources` (Set of String) ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`<domain>/<type>:<name>`).
- `tags` (Set of String) ❗ A list of tags to restrict the key to.
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- `id` (String) The ID of this resource.
- `key` (String, Sensitive) The IAM access key (identifier).
- `secret` (String, Sensitive) The key secret.
- `tags_operations` (Set of String)

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `create` (String)
- `delete` (String)
- `read` (String)

-> The symbol ❗ in an attribute indicates that modifying it, will force the creation of a new resource.



