GuideReference
TrainingSupportCommunity
Guide

Access key versions

akamai_cloudaccess_key_versions

Get a list of versions for a given access key.

data "akamai_cloudaccess_key_versions" "my_access_key_versions" {
    access_key_name = "MyAccessKeyName"
}

output "my_access_key_versions" {
    value = data.akamai_cloudaccess_key_versions.my_access_key_versions
}
Changes to Outputs:
  + my_access_key_versions = {
      + access_key_name     = "MyAccessKeyName"
      + access_key_uid      = 12345
      + access_key_versions = [
          + {
              + cloud_access_key_id = "ABCDEFGHIJKL2"
              + created_by          = "jsmith@example.com"
              + created_time        = "2024-06-14T09:32:06.137823Z"
              + deployment_status   = "PENDING_ACTIVATION"
              + version             = 2
              + version_guid        = "a1b23c4d-56e7-89fg-hijk-12lmn3op4qr"
            },
          + {
              + cloud_access_key_id = "ABCDEFGHIJKL1"
              + created_by          = "jsmith@example.com"
              + created_time        = "2024-06-14T09:20:51.300709Z"
              + deployment_status   = "ACTIVE"
              + version             = 1
              + version_guid        = "123a4567-891b-23cd-efgh-45678912345i"
            },
        ]
    }

Argument

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

Attributes

Returned to you is information about the access_key_versions for a specific key.

AttributeDescription
access_key_uidThe access key's ID.
access_key_nameA human-readable name for your access key.
access_key_versionsA list of the access key's versions. Contains:
  • cloud_access_key_id. The ID for your Amazon Web Services or Google Cloud Storage authentication.
  • created_time. When the key was created in ISO 8601 format.
  • created_by. The name of the user who created the key.
  • deployment_status. The status of the access key's creation and activation. Possible values: PENDING_ACTIVATION, ACTIVE, or PENDING_DELETION.
  • version. The access key's version.
  • version_guid. The ID of the access key's version.