GuideReference
TrainingSupportCommunity
Guide

EdgeWorker

akamai_edgeworker

Get details about a given EdgeWorker.

data "akamai_edgeworker" "my_edgeworker" {
  edgeworker_id = 12345
}

output "my_edgeworker" {
  value = data.akamai_edgeworker.my_edgeworker
}
Changes to Outputs:
  + my_edgeworker = {
      + edgeworker_id     = 12345
      + group_id          = "12345"
      + id                = "12345"
      + local_bundle      = "default_name.tgz"
      + local_bundle_hash = "exampleba1ca447bdfebf06dee5be85eb17745b9f5dd6c718a3020409a5848f3"
      + name              = "My_edgeworker"
      + resource_tier_id  = 100
      + version           = "0.2"
      + warnings          = []
    }

Arguments

Pass your EdgeWorker ID in the body of the data block. Optionally, you can pass a path to the location you want to store the code bundle associated with your EdgeWorker. If not passed, the bundle is placed at your current location.

ArgumentRequiredDescription
edgeworker_id✔️The unique identifier of the EdgeWorker.
local_bundleThe path at which to store the EdgeWorkers .tgz code bundle.

Attributes

Returned to you are the high-level details of your EdgeWorker. Also returned and not in this list is the code bundle associated with your EdgeWorker placed at the query's given location or your current location.

AttributeDescription
nameThe EdgeWorker's name.
group_idThe group association for the EdgeWorker.
resource_tier_idThe resource tier identifier.
local_bundle_hashThe local bundle hash for the EdgeWorker. It's used to identify content changes for the bundle.
versionThe bundle's version.
warningsThe list of warnings returned by EdgeWorker validation.