Akamai GTM Failover/Weighted Domain
Global Traffic Management domain with datacenters and failover or weighted-round-robin properties plus liveness tests.
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-gtm-failover
Akamai Global Traffic Management (GTM) failover / weighted domain in one
module: a GTM domain, two or more data centers, and load-balancing properties
(failover or weighted-round-robin) with a liveness health test so GTM detects a
dead origin and steers traffic away. Works with Terraform and OpenTofu
(>= 1.6), Akamai provider >= 10.0, < 11.0.
Status: static-validated, live-test pending. Ships under live-test quarantine — validated with
tofu fmt,tofu validate, andtflint. Real apply → propagate → destroy against an Akamai GTM contract is pending a cloud sandbox. GTM domain names are globally unique and deletion is eventually-consistent, so destroys can take time on Akamai's side.
What you get:
akamai_gtm_domain(defaults to typeweighted).akamai_gtm_datacenterper entry indatacenters(min two — load balancing needs more than one target).akamai_gtm_propertyper entry inproperties, withtraffic_targetblocks that reference data centers by your own key (decoupled from Akamai's generated datacenter IDs) and a sharedliveness_test.
Secure / resilient defaults
- Health checks on by default: every property gets a
liveness_test(HTTPS GET/every 60s, answers required), so GTM can fail over off an unhealthy data center. Setliveness_test = nullonly if you really want to disable it. load_feedbackandcname_coalescing_enabledare on, so GTM routes around degraded origins and collapses CNAME chains.wait_on_complete = trueby default — each apply returns only once GTM has propagated the change, so you never report success on an in-flight change.- Preconditions enforce that every traffic target maps to a managed data center and that weighted properties carry weights — failures surface at plan time.
Provider pin
akamai = {
source = "akamai/akamai"
version = ">= 10.0, < 11.0"
}
License
Commercial — LicenseRef-IaCBazaar-Commercial. © IaC Bazaar. Original work
(not derived from a third-party module).
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