Access key
akamai_cloudaccess_key
Average processing time per key version 10–15 minutes
Create, update, or delete a cloud-origin access key or access key version.
resource "akamai_cloudaccess_key" "my_access_key" {
access_key_name = "MyAccessKey"
authentication_method = "AWS4_HMAC_SHA256"
contract_id = "C-0N7RAC7"
credentials_a = {
cloud_access_key_id = "ABCDEFGHIJKL1"
cloud_secret_access_key = "aBcdeFgHiJKLM/n1oPQRS/Tw2xY345Z"
primary_key = true
}
credentials_b = {
cloud_access_key_id = "ABCDEFGHIJKL2"
cloud_secret_access_key = "AbcDefGhijKLm/n3opqrs/tW45X67yZ"
primary_key = false
}
group_id = 12345
network_configuration = {
security_network = "ENHANCED_TLS"
additional_cdn = "CHINA_CDN"
}
timeouts = {
create = "30m"
update = "30m"
delete = "30m"
}
}
variable "access_key_name" {
type = string
description = "My cloud-origin access key name"
default = ""
}
// local
access_key_name = akamai_cloudaccess_key.my_access_key.access_key_name
// tvars
access_key_name = var.access_key_name
Arguments
Provide a key name, the authentication method, your contract, and group to create an access key.
Argument | Required | Description |
---|---|---|
access_key_name | ✔ | A human-readable name for your access key. |
authentication_method | ✔ | The type of authentication. Value is one of:
|
group_id | ✔ | Your group ID. |
contract_id | ✔ | Your contract ID. |
credentials_a /credentials_b | Your cloud access credentials. Requires at least one set of credentials upon creation. Contains:
| |
network_configuration | ✔ | The key's network deployment details. Contains:
|
timeouts | Uses the create , update , and delete arguments to override the HashiCorp processing timeout. By default, it's 60 minutes with a one minute polling interval. Value is a string containing a number and its time reference, h , m , s . You can pass one, two, or all values. For example:
|
Attributes
There is no default standard output. Upon creation, the last line of the process log contains a success message.
Adding an output block returns the access key details you provided on create along with the computed attributes.
Attribute | Description |
---|---|
access_key_uid | The access key's ID. |
access_key_name | A human-readable name for your access key. |
authentication_method | The type of authentication. Value is one of:
|
contract_id | Your contract ID. |
group_id | Your group ID. |
credentials_a /credentials_b | Your cloud access credentials.
|
network_configuration | The key's network deployment details. Contains:
|
primary_guid | The access key's version ID for your primary_key . |
timeouts | The create , update , and delete arguments overriding the HashiCorp processing timeout. |
Updated 28 days ago