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
local_bundle = "./my_bundle.tgz"
timeouts {
default = "1h"
}
}
my_edgeworker = {
edgeworker_id = 12345
group_id = "54321"
id = "12345"
local_bundle = "./my_bundle.tgz"
local_bundle_hash = "examplefebf06dee5be85eb17745b9f5dd6c718a3020409a5848f341d"
name = "My_EdgeWorker"
resource_tier_id = 100
timeouts = [
{
default = "1h"
},
]
version = "1.0"
warnings = []
}
variable "bundle_path" {
type = string
description = "My bundle"
default = "./my_bundle.tgz"
}
// tvars
local_bundle = var.bundle_path
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. | |
timeouts |
Uses a default argument to override the HashiCorp processing timeout of 20 minutes. Value is a string containing a number and its time reference, h, m, m. You can pass one, two, or all values. For example:
|
Attributes
There is no default standard output. Adding an output block returns the EdgeWorker's details you provided upon creation or update, along with the computed attributes.
| Attribute | Description |
|---|---|
edgeworker_id |
The EdgeWorker's ID. |
local_bundle_hash |
The local bundle hash for the EdgeWorker. It's used to identify content changes for the bundle. |
version |
The bundle's version. |
warnings |
The list of warnings returned by EdgeWorker validation. |
Updated 11 days ago
