Edge hostname

akamai_edge_hostname

Create or update an edge hostname.

Akamai supports three types of edge hostnames. Each type supports a different level of security.

Edge hostname typeDomain suffixExample
Standard TLSedgesuite.netwww.example.com.edgesuite.net
Enhanced TLSedgekey.netwww.example.com.edgekey.net
Shared Certakamaized.netwww.example.com.akamaized.net

You can only update the TTL and IP version. On update of an edge hostname's IP version, you also need to include the status_update_email argument with a set of notification email addresses.

resource "akamai_edge_hostname" "terraform-demo" {
  product_id    = "prd_Object_Delivery"
  contract_id   = "ctr_1-AB123"
  group_id      = "grp_123"
  edge_hostname = "www.example.com.edgesuite.net"
  ip_behavior   = "IPV4"
  timeout {
    default = "1h"
  }
}

Argument reference

This resource supports these arguments:

  • contract_id - (Required) A contract's unique ID, including the ctr_ prefix.

  • group_id - (Required) A group's unique ID, including the grp_ prefix.

  • product_id - (Required) A product's unique ID, including the prd_ prefix.

  • edge_hostname - (Required) One or more edge hostnames. The number of edge hostnames must be less than or equal to the number of public hostnames.

  • ip_behavior - (Required) Which version of the IP protocol to use: IPV4 or IPV6_IPV4_DUALSTACK.

  • status_update_email - A set of comma-separated change notification email addresses.

  • use_cases - (Optional) A JSON encoded list of use cases.

  • certificate - (Optional) Required only when creating an Enhanced TLS edge hostname. This argument sets the certificate enrollment ID. Edge hostnames for Enhanced TLS end in edgekey.net. You can retrieve this ID from the Certificate Provisioning Service CLI.

  • timeouts - (Optional) Uses a delete argument to override the HashiCorp processing timeout of 20 minutes. Value is a string containing a number and its time reference, h, m, s. You can pass one, two, or all values. For example:

    • 1h3m5s
    • 2h5m
    • 3m

Attributes reference

This resource returns this attribute:

  • ip_behavior - Returns the IP protocol the hostname will use. Either IPV4 or IPV6_IPV4_DUALSTACK.