Application load balancer
akamai_cloudlets_application_load_balancer
Create and update a load balancer configuration or remove a load balancer configuration from your Terraform state.
Running
terraform destroydoes not delete your configuration; it only removes it from your state file. Re-import your configuration to get it back.
resource "akamai_cloudlets_application_load_balancer" "my_alb_configuration" {
origin_id = "my_alb"
description = "Initial configuration for testing"
balancing_type = "WEIGHTED"
data_centers {
cloud_server_host_header_override = false
cloud_service = true
country = "US"
continent = "NA"
latitude = 42.3601
longitude = 71.0589
percent = 100
liveness_hosts = ["example"]
hostname= "my_alb_config.com"
state_or_province = "MA"
city = "Boston"
origin_id = "my_alb"
}
liveness_settings {
port = 80
protocol = "HTTP"
path = "/status"
host_header = "header"
additional_headers = {
additional_headers = "12345"
}
interval = 10
request_string = "my_request_string"
response_string = "my_response_string"
timeout = 60
}
}
Arguments
Pass an origin ID, a list of your data centers, and any of the optional arguments to create a load balancer.
| Argument | Required | Description |
|---|---|---|
origin_id | ✔ | A user created ID that represents a data center for an application load balancer implementation. Alphanumeric characters and underscores only, and the first and last characters must be alphanumeric.Note:. The application load balancer cloudlet only supports a setting of |
data_centers | ✔ | The conditional origins of type of type CUSTOMER or NETSTORAGE used as data centers in an application load balancer implementation. Contains:
|
liveness_settings | ✔ | Health details for a load balanced data center. Contains:port. The port for the test object. The default port is 80 for HTTP and 443 for HTTPS.protocol. The protocol or scheme for the database, either HTTP or HTTPS.path. The path to the test object used for liveness testing.host_header. The host header for a liveness HTTP request.additional_headers. The additional case-insensitive HTTP header names included mapped to the liveness testing requests.interval. The frequency of liveness tests in seconds.peer_certificate_verification. Whether to validate the origin certificate for an HTTPS request.request_string. The request used for TCP and TCPS tests.response_string. The response used for TCP and TCPS tests.status_3xx_failure. Whether the the liveness test fails if a request returns a 3xx redirect status code.status_4xx_failure. Whether the liveness test fails if a request returns a 4xx client error status code.status_5xx_failure. Whether the liveness test fails if a request returns a 5xxtimeout. The number of seconds the system waits before failing the liveness test. |
description | A human-readable description about your load balancing configuration. | |
balancing_type | The type of load balancing. Value is one of WEIGHTED or PERFORMANCE. |
Attributes
Returned to you are the version number and any warnings that occurred on creation.
| Attribute | Description |
|---|---|
version | The version number of the load balancing configuration. |
warnings | A list of warnings that occurred during the load balancer configuration activation. |
Updated 8 months ago
