Application load balancer
akamai_cloudlets_application_load_balancer
Create, update, or delete a configuration for an application load balancer cloudlet.
- The create function also imports functionality, saving the existing origin and version in your state.
- The delete function of this resource does not delete a configuration. It's only removed from your state to allow reuse. To use this function, run
terraform destroy
.
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:
|
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 10 months ago