GuideReference
TrainingSupportCommunity
Guide

Resource tier

akamai_edgeworkers_resource_tier

Get the available resource tiers on your contract. Use the returned resource tier ID downstream to set resource consumption limits when you create or update an EdgeWorker.

data "akamai_edgeworkers_resource_tier" "my_tiers" {
  contract_id        = "C-0N7RAC7"
  resource_tier_name = "Basic Compute"
}

output "my_tiers" {
  value = data.akamai_edgeworkers_resource_tier.my_tiers
}
Changes to Outputs:
  + my_tiers = {
      + contract_id        = "C-0N7RAC7"
      + id                 = "C-0N7RAC7:Basic Compute"
      + resource_tier_id   = 100
      + resource_tier_name = "Basic Compute"
    }
variable "resource_tier_id" {
  type = Integer
  description = "My resource tier ID"
  default = 100
}
// local
resource_tier_id = data.akamai_edgeworkers_resource_tier.my_tiers.resource_tier_id

// tvars
resource_tier_id = var.resource_tier_id

Arguments

Pass your contract ID and a resource tier name in the body of the data block.

ArgumentRequiredDescription
contract_id✔️Your contract ID.
resource_tier_name✔️The type of resource tier by name. Values are Basic Compute or Dynamic Compute

Attribute

Returned to you is the resource_tier_id value, 100 for basic compute and 200 for dynamic.