This update fixes an issue with desired_count
for services without autoscaling.
You will need to add a moved
block to your configuration to avoid recreating your service.
If you are using desired_count
, add the following next to your module block:
moved = {
from = module.ecs_service.aws_ecs_service.service
from = module.ecs_service.aws_ecs_service.service[0]
}
If you are using autoscaling
, add the following next to your module block:
moved = {
from = module.ecs_service.aws_ecs_service.service
from = module.ecs_service.aws_ecs_service.service_with_autoscaling[0]
}
This block can be deleted after apply.
-
Require
terraform >= v1.3.0
-
Changed
lb_listener.path_parameter
tolb_listener.conditions
.
To update, chang your configuration from:
lb_listeners = [{
listener_arn = data.aws_lb_listener.http.arn
security_group_id = one(data.aws_lb.main.security_groups)
path_pattern = "/${local.application_name}/*"
}]
To this:
lb_listeners = [{
listener_arn = data.aws_lb_listener.http.arn
security_group_id = one(data.aws_lb.main.security_groups)
conditions = [{
path_pattern = "/${local.application_name}/*"
}]
}]