Activation

akamai_edgeworkers_activation

Average processing time5 minutes

Activate or deactivate a given EdgeWorker version to deploy it to the staging or production network.

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.

ūüďė

To deactivate, run terraform destroy.

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.

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.
timeoutsUses 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:
  • 1h3m5s
  • 2h5m
  • 3m

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.