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, and request limits.
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.
$ export <variable>="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_MAX_BODY | Integer. The maximum message body size in bytes. The default is 131072 bytes. |
AKAMAI_REQUEST_LIMIT | Integer. The maximum number of requests to make per second. |
AKAMAI_ACTIVATION_TIMEOUT | Integer. The activation time-out in minutes. Default is 30 minutes. |
Updated 3 months ago