Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Support attaching NLB server groups to Auto Scaling groups in the Alicloud Terraform Provider #7377

Open
Auditore8 opened this issue Jun 24, 2024 · 0 comments

Comments

@Auditore8
Copy link

Auditore8 commented Jun 24, 2024

Description

The current AliCloud Auto Scaling Terraform module does not support attaching NLB (Network Load Balancer) server groups to the auto-scaling group. While both the AliCloud Console and OpenAPI support attaching NLB server groups, this functionality is not available in the Terraform module.While users can manually perform this action in the Alibaba Cloud console, the lack of support in Terraform makes it difficult to maintain configuration consistency and automation.

Category

AliCloud

Aspect

  • Auto Scaling
  • NLB

Details

Current Support:

image-2024-6-14_11-0-36

Future Support:

  • According to feedback from AliCloud support, the function to attach NLB server groups is still under planning.
    Here's the GitHub issue using the provided template based on the information given:

Terraform Version

1.3.9

Affected Resource(s)

  • alicloud_auto_scaling_group

Terraform Configuration Files

resource "alicloud_ess_alb_server_group_attachment" "default" {
  scaling_group_id    = alicloud_ess_scaling_configuration.default.scaling_group_id
  alb_server_group_id = alicloud_alb_server_group.default.id
  port                = 9000
  weight              = 50
  force_attach        = true
}



resource "alicloud_ess_scalinggroup_vserver_groups" "default" {
  scaling_group_id = alicloud_ess_scaling_group.default.id
  vserver_groups {
    loadbalancer_id = alicloud_slb_load_balancer.default.0.id
    vserver_attributes {
      vserver_group_id = alicloud_slb_server_group.default1.0.id
      port             = "100"
      weight           = "60"
    }
    vserver_attributes {
      vserver_group_id = alicloud_slb_server_group.default1.1.id
      port             = "110"
      weight           = "60"
    }
  }
  vserver_groups {
    loadbalancer_id = alicloud_slb_load_balancer.default.1.id
    vserver_attributes {
      vserver_group_id = alicloud_slb_server_group.default2.0.id
      port             = "200"
      weight           = "60"
    }
    vserver_attributes {
      vserver_group_id = alicloud_slb_server_group.default2.1.id
      port             = "210"
      weight           = "60"
    }
  }
  force = true
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

The Terraform module should support attaching NLB (Network Load Balancer) server groups to auto-scaling groups, similar to the support for ALB (Application Load Balancer) and SLB (Server Load Balancer) server groups.

Actual Behavior

The current AliCloud Auto Scaling Terraform module does not support attaching NLB server groups. Users can manually perform this action in the Alibaba Cloud console, but the lack of support in Terraform makes it difficult to maintain configuration consistency and automation.

Steps to Reproduce

  1. Create an auto-scaling group using the Terraform configuration above.
  2. Attempt to attach an NLB server group to the auto-scaling group (currently not supported).

Important Factoids

N/A

References

AttachServerGroups - Auto Scaling
ALB
SLB

@Auditore8 Auditore8 changed the title [Feature Request] Support attaching NLB server groups to Auto Scaling groups in the Alicloud Terraform Provider [FEAT] Support attaching NLB server groups to Auto Scaling groups in the Alicloud Terraform Provider Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant