GuideReference
TrainingSupportCommunity
Guide

Activation

akamai_edgeworkers_activation

 Average processing time 5 minutes

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"
}
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.

ArgumentRequiredDescription
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.

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.