EdgeWorkers

akamai_edgeworker

Create, update, or delete an EdgeWorker.

ūüďė

To delete an EdgeWorker, run terraform destroy.

resource "akamai_edgeworker" "my_edgeworker" {
  group_id         = 12345
  name             = "My_EdgeWorker"
  resource_tier_id = 100
}
// create
akamai_edgeworker.my_edgeworker: Creation complete after 8s [id=12345]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:

my_edgeworker = {
  "edgeworker_id" = 12345
  "local_bundle_hash" = "examplefebf06dee5be85eb17745b9f5dd6c718a3020409a5848f341d"
  "version" = "1"
  "warnings" = tolist([])
}

// update
akamai_edgeworker.my_edgeworker: Modifications complete after 3s [id=12345]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Arguments

Pass a name, your group ID, and a resource tier to create or update an EdgeWorker.

ArgumentRequiredDescription
name‚úĒÔłŹThe name of the EdgeWorker.
group_id‚úĒÔłŹThe EdgeWorker's assigned group.
resource_tier_id‚úĒÔłŹThe resource tier ID.
local_bundleThe path to your EdgeWorkers code bundle.

Attributes

Returned to you is a computed data set with your EdgeWorker's ID.