Activation
akamai_edgeworkers_activation
Activate or deactivate a given EdgeWorker version to deploy it to the staging or production network. To deactivate, run terraform destroy.
To import your activation, use the Terraform CLI to export your EdgeWorker.
akamai terraform [global flags] export-edgeworker [flags] <edgeworker_id>Idempotent activation declarations result in an import of your EdgeWorker activation.
resource "akamai_edgeworkers_activation" "my_activation" {
edgeworker_id = 12345
network = "STAGING"
version = "1"
timeouts {
default = "1h"
delete = "30m"
}
}akamai_edgeworkers_activation.my_activation: Creation complete after 4m12s [id=12345:STAGING]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
my_activation = {
"activation_id" = 1
"edgeworker_id" = 12345
"id" = "123451:STAGING"
"network" = "STAGING"
"timeouts" = null /* object */
"version" = "1"
}Arguments
Pass all arguments to activate your EdgeWorker.
| Argument | Required | Description |
|---|---|---|
edgeworker_id | ✔️ | The EdgeWorker ID you want to activate. |
version | ✔️ | The EdgeWorker version you want to activate. |
network | ✔️ | The network on which you want to activate the EdgeWorker, STAGING or PRODUCTION. |
note | A human-readable description about your EdgeWorker activation. | |
timeouts | Uses a default argument to override the HashiCorp processing timeout of 20 minutes, and a delete argument to stop retries after a given time.Value is a string containing a number and its time reference, h, m, s. You can pass one, two, or all values. For example:
|
Attribute
This resource returns the identifier for your activation in activation_id.
Import
To import your activation, use the Terraform CLI to export your EdgeWorker.
akamai terraform [global flags] export-edgeworker [command flags] <edgeworker_id>The EdgeWorker activation is idempotent. It imports of your activation upon a declaration that's a multiple.
Updated 10 days ago
Did this page help you?
