---
updatedAt: 2026-03-01T17:56:00.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Environment variables

As an alternative way to pass commonly used or globally used Akamai key-value pairs, you can set up and use environment variables with your Terraform configurations.

We support environment variables for credentials, body size, request limits, and global retries.

When using multiple API clients, add in the section header in all caps after `AKAMAI_`. For example, if you've got a `papi` section in your `.edgerc`  file, you'd add in `PAPI`.

To use environment variables, format your statement with the export command followed by the variable and value as the argument.

```shell
// string
$ export <variable>="value" 

// integer
$ export <variable>=n-value 
```

| Variable                          | Value                                                                                 |
| --------------------------------- | ------------------------------------------------------------------------------------- |
| `AKAMAI_CLIENT_SECRET`            | String. Your `default` client secret.                                                 |
| `AKAMAI_HOST`                     | String. Your `default` host.                                                          |
| `AKAMAI_ACCESS_TOKEN`             | String. Your `default` access token.                                                  |
| `AKAMAI_CLIENT_TOKEN`             | String. Your `default` client token.                                                  |
| `AKAMAI_PAPI_CLIENT_SECRET`       | String. Any other credential section heading.                                         |
| `AKAMAI_PAPI_HOST`                | String. Any other credential section heading.                                         |
| `AKAMAI_PAPI_ACCESS_TOKEN`        | String. Any other credential section heading.                                         |
| `AKAMAI_PAPI_CLIENT_TOKEN`        | String. Any other credential section heading.                                         |
| `AKAMAI_ACCOUNT_KEY`              | String. An account switch key.                                                        |
| `AKAMAI_REQUEST_LIMIT`            | Integer. The maximum number of requests to make per second.                           |
| `AKAMAI_RETRY_DISABLED`           | Boolean. Disables retries for cli-terraform. `true` to disable.                       |
| `AKAMAI_RETRY_EXCLUDED_ENDPOINTS` | The list of path expressions defining endpoints that should be excluded from retries. |
| `AKAMAI_RETRY_MAX`                | The maximum number of retries for a request. Default is `10`.                         |
| `AKAMAI_RETRY_WAIT_MIN`           | The minimum wait time between request retries. Default is `1` second.                 |
| `AKAMAI_RETRY_WAIT_MAX`           | The maximum wait time between request retries. Default is `30` seconds.               |
| `AKAMAI_ACTIVATION_TIMEOUT`       | Integer. The activation time-out in minutes. Default is `30` minutes.                 |

# Sibling pages

* [Breaking changes](https://techdocs.akamai.com/terraform/docs/breaking-changes.md)
* [Overview](https://techdocs.akamai.com/terraform/docs/overview.md)
* [Alternative authentication](https://techdocs.akamai.com/terraform/docs/gs-authentication.md)
* [Base IDs](https://techdocs.akamai.com/terraform/docs/common-identifiers.md)
* [Import and export assets](https://techdocs.akamai.com/terraform/docs/import-and-export-assets.md)
* [Request limits](https://techdocs.akamai.com/terraform/docs/request-limits.md)