GuideReference
TrainingSupportCommunity
Guide

Access key

akamai_cloudaccess_key

Get details about a given access key.

data "akamai_cloudaccess_key" "my_access_key" {
    access_key_name = "MyAccessKeyName"
}

output "my_access_key" {
    value = data.akamai_cloudaccess_key.my_access_key
}
Changes to Outputs:
  + my_access_key = {
      + access_key_name       = "MyAccessKeyName"
      + access_key_uid        = 12345
      + authentication_method = "AWS4_HMAC_SHA256"
      + created_by            = "jsmith@email.com"
      + created_time          = "2024-06-10T08:04:27.278697Z"
      + groups                = [
          + {
              + contract_ids = [
                  + "C-0N7RAC7",
                ]
              + group_id      = 123456
              + group_name    = "my-group-name-1"
            },
          + {
              + contract_ids = [
                  + "C-0N7RAC7",
                ]
              + group_id      = 987654
              + group_name    = "my-group-name-2"
            },
        ]
      + latest_version        = 1
      + network_configuration = {
          + additional_cdn   = "RUSSIA_CDN"
          + security_network = "STANDARD_TLS"
        }
    }
// local
access_key_name = akamai_cloudaccess_key.my_access_key.access_key_name

// tvars
access_key_name = var.access_key_name

Arguments

Pass a key's access_key_name to get its details. key. Run the akamai_cloudaccess_keys data source to retrieve the key name.

Attributes

Returned to you is information about your access key.

AttributeDescription
access_key_uidThe access key's ID.
access_key_nameA human-readable name for your access key.
groupsA set of groups using the key. Contains:
  • group_id. A group ID.
  • group_name. A human-readable name for a group.
  • contract_ids. A set of contract IDs within a group.
authentication_methodThe type of authentication. Value is one of:
  • AWS4_HMAC_SHA256 for Amazon Web Services.
  • GOOG4_HMAC_SHA256 for Google Cloud Storage.
created_timeWhen the key was created in ISO 8601 format.
created_byThe name of the user who created the key.
latest_versionThe most recent version of an access key.
network_configurationThe key's network deployment details. Contains:
  • additional_cdn. Specifies an additional CDN network you deploy your key to. Value is one of:
    • RUSSIA_CDN to enable consumption of content in Russia.
    • CHINA_CDN to enable consumption of content in China.
  • security_network. The network's security level. Value is one of:
    • STANDARD_TLS for a non-PCI compliant network.
    • ENHANCED_TLS for a PCI compliant network.