Access keys

akamai_cloudaccess_keys

Get a list of your access keys.

data "akamai_cloudaccess_keys" "my_access_keys" {
}

output "my_access_keys" {
    value = data.akamai_cloudaccess_keys.my_access_keys
}
my_access_keys = {
      access_keys = [
          {
              access_key_name       = "MyAccessKey1"
              access_key_uid        = 12345
              authentication_method = "AWS4_HMAC_SHA256"
              created_by            = "jsmith@example.com"
              created_time          = "2024-04-13T16:34:47.231623Z"
              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"
                }
            },
          {
              access_key_name       = "MyAccessKey2"
              access_key_uid        = 987654
              authentication_method = "GOOG4_HMAC_SHA256"
              created_by            = "jsmith@email.com"
              created_time          = "2024-05-04T13:29:21.650042Z"
              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   = "CHINA_CDN"
                  security_network = "ENCHANCED_TLS"
                }
            },
        ]
    }

Arguments

This data source is passed empty. The config_section argument in the Akamai provider block of your Terraform configuration provides the necessary information.

Attributes

Returned to you is a set of your access_keys and their details.

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.
  • AOS4_HMAC_SHA256 for Akamai Object 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.