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.
Argument | Required | Description |
---|---|---|
name | ✔️ | The name of the EdgeWorker. |
group_id | ✔️ | The EdgeWorker's assigned group. |
resource_tier_id | ✔️ | The resource tier ID. |
local_bundle | The path to your EdgeWorkers code bundle. |
Attributes
Returned to you is a computed data set with your EdgeWorker's ID.
Updated about 1 year ago