Resource

akamai_gtm_resource

The akamai_gtm_resource lets you create, configure, and import a GTM resource. In GTM, a resource is anything you can measure whose scarcity affects load balancing. Examples of resources include bandwidth, CPU load average, database queries per second, or disk operations per second.

resource "akamai_gtm_resource" "demo_resource" {
    domain = "demo_domain.akadns.net"
    name = "demo_resource"
    aggregation_type = "latest"
    type = "XML load object via HTTP"
}

Arguments

ArgumentRequiredDescription
domainDNS name for the GTM Domain set that includes this property.
nameA descriptive label for the GTM resource.
aggregation_typeSpecifies how GTM handles different load numbers when multiple load servers are used for a data center or property.
typeIndicates the kind of load_object format used to determine the load on the resource.
wait_on_completeA boolean indicating whether to wait for transaction to complete. Set to true by default.
resource_instanceContains information about the resources that constrain the properties within the data center. You can have multiple resource_instance entries. Contains:
  • datacenter_id. A unique identifier for an existing data center in the domain.
  • load_object.Identifies the load object file used to report real-time information about the current load, maximum allowable load, and target load on each resource.
  • load_object_port. Specifies the TCP port of the load_object.
  • load_servers. Specifies a list of servers from which to request the load object.
use_default_load_objectA boolean that indicates whether a default load_object is used for the resources.
host_headerOptionally specifies the host header used when fetching the load object.
upper_boundThe maximum allowed value for any component of the load object.
descriptionA descriptive note to help you track what the resource constrains.
leader_stringSpecifies the text that comes before the load_object.
constrained_propertySpecifies the name of the property that this resource constrains, enter ** to constrain all properties.
load_imbalance_percentIndicates the percent of load imbalance factor (LIF) for the property.