Akamai EdgeWorker with EdgeKV
Deploy JavaScript at the edge with bundle versioning, EdgeKV namespace, and network activation in one module.
Verification
Plan-validatedPassed: module logic verified on a mocked plan — inputs, validation rules, conditional creation and outputs resolve (no real provider, no cloud).
Conformance
- Static validation (fmt · validate · tflint)
- Security scan: findings disclosed (Checkov)
- Plan tests (mocked: validation rules · outputs)
Provenance
- SHA-256 checksum
- Signature (pending)
Functional
- Live test pending (no cloud run yet)
Last verified 2026-06-28 · how we verify
Documentation
akamai-edgeworker
Status: static-validated, live-test pending. This module ships under live-test quarantine: it passes
tofu fmt,tofu validate, andtflint, but a real apply → verify → destroy cycle has not yet run (no Akamai sandbox account in CI). Treat the resource graph as reviewed-but-unproven against a live tenant.
Deploy JavaScript at the edge on Akamai EdgeWorkers, with bundle versioning, an
optional EdgeKV namespace for low-latency key/value reads, and a guarded network
activation — in one module. Works with Terraform and OpenTofu (>= 1.6),
Akamai provider >= 10.0, < 11.0.
What you get:
- An
akamai_edgeworkertied to your group and resource tier, with the code bundle (built outside Terraform as a.tgz) tracked by hash so a changed bundle produces a new version. - A guarded
akamai_edgeworkers_activationthat defaults to STAGING — promote to production only after verification. Activation is automatically skipped unless a bundle is present (enforced by a precondition). - An optional
akamai_edgekvnamespace plus seededakamai_edgekv_group_items, with production data residency (US/EU/JP) wired through.
Secure defaults
- Staging-first activation.
activation_networkdefaults toSTAGING; you must explicitly opt intoPRODUCTION. - No silent half-deploys. A precondition fails the plan if
activate = truebut nolocal_bundleis supplied, so you never "activate" an empty version. - No secrets at the edge.
edgekv_itemsis plaintext key/value storage; the variable docs and this README state it is for non-secret data (flags, routing hints) only. Keep credentials in a real secrets store and inject at request time. - Initial revision pinned.
auto_pindefaults totrue(Akamai's safe default) so the activated revision is locked unless you deliberately opt out. - Sane retention. EdgeKV retention is validated to be
0(indefinite) or at least one day, preventing accidental sub-day expiry.
Provider
akamai = {
source = "akamai/akamai"
version = ">= 10.0, < 11.0"
}
License
Commercial — LicenseRef-IaCBazaar-Commercial.
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence — shown here and bundled in the download.
- Usage
- Inputs
- Outputs
- Notes