frostmoln_scale_group (Resource)
Manages an auto-scaling group in the Frostmoln platform.
Example Usage
terraform
resource "frostmoln_scale_group" "web" {
name = "web-servers"
launch_template_id = frostmoln_launch_template.web.id
min_size = 2
max_size = 10
desired_capacity = 3
subnet_ids = [frostmoln_subnet.a.id, frostmoln_subnet.b.id]
load_balancer_pool_ids = [frostmoln_load_balancer_pool.web.id]
health_check_type = "elb"
health_check_grace_period = 120
cooldown_seconds = 300
termination_policy = "oldest_first"
tags = {
environment = "production"
}
}Schema
Required
desired_capacity(Number) The desired number of instances in the scale group.launch_template_id(String) The launch template ID used to create instances in this scale group.max_size(Number) The maximum number of instances in the scale group.min_size(Number) The minimum number of instances in the scale group.name(String) The name of the scale group.subnet_ids(Set of String) The subnet IDs where instances will be launched. At least one is required.
Optional
cooldown_seconds(Number) The number of seconds after a scaling activity completes before another can start.health_check_grace_period(Number) The number of seconds to wait before starting health checks on new instances.health_check_type(String) The type of health check to use: "instance", "lb", or "both".load_balancer_pool_ids(Set of String) The load balancer pool IDs to attach to the scale group.tags(Map of String) Key-value tags for the scale group.termination_policy(String) The policy for selecting instances to terminate during scale-in (e.g. "oldest_first", "newest_first").warmup_seconds(Number) The number of seconds to wait for a new instance to warm up before it receives traffic.
Read-Only
created_at(String) The timestamp when the scale group was created.current_size(Number) The current number of running instances in the scale group.id(String) The unique identifier of the scale group.status(String) The current status of the scale group.updated_at(String) The timestamp when the scale group was last updated.