---
updatedAt: 2026-07-28T17:42:27.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# Activation

akamai_edgeworkers_activation

<div class="aligned">
  <img class="img-header" src="https://techdocs.akamai.com/terraform-images/img/clock.png" height="25" width="25" style="padding-left:15px;" />
  <span class="span-header">&nbsp;Average processing time</span><span class="span-header-text">&nbsp;5 minutes</span>
</div>

<div><p></p></div>

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.

```shell bash
akamai terraform [global flags] export-edgeworker [flags] <edgeworker_id>
```

Idempotent activation declarations result in an import of your EdgeWorker activation.

```json Declaration
resource "akamai_edgeworkers_activation" "my_activation" {
  edgeworker_id = 12345
  network       = "STAGING"
  version       = "1"
  timeouts {
    default = "1h"
    delete = "30m"
  }
}
```
```json Output
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.<br /><br/>Value is a string containing a number and its time reference, `h`, `m`, `s`. You can pass one, two, or all values. For example:<ul><li><code>1h3m5s</code></li><li><code>2h5m</code></li><li><code>3m</code></li></ul> |

## Attribute

This resource returns the identifier for your activation in `activation_id`.

## Import

To import your activation, use the [Terraform CLI](https://github.com/akamai/cli-terraform) to export your EdgeWorker.

```shell bash
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.

# Sibling pages

* [EdgeKV](https://techdocs.akamai.com/terraform/v9.3/docs/ew-rc-edgekv.md)
* [EdgeKV group items](https://techdocs.akamai.com/terraform/v9.3/docs/edgekv-rc-group-items.md)
* [EdgeWorkers](https://techdocs.akamai.com/terraform/v9.3/docs/ew-rc-edgeworkers.md)