terraform-provider-alicloud icon indicating copy to clipboard operation
terraform-provider-alicloud copied to clipboard

[FEAT] Support EIP in alicloud_alb_load_balancer

Open shusaan opened this issue 4 months ago • 0 comments

Description

The alicloud_alb_load_balancer resource does not support AllocationId for EIP. However, the EIP can be assigned using the Aliyun CLI.

Here is the ref link for ALB (AllocationId)

Terraform Configuration

resource "alicloud_alb_load_balancer" "default" {
  load_balancer_edition  = "Basic"
  address_type           = "Internet"
  vpc_id                 = alicloud_vpc.default.id
  address_allocated_mode = "Fixed"
  resource_group_id      = data.alicloud_resource_manager_resource_groups.default.groups.0.id
  load_balancer_name     = var.name
  load_balancer_billing_config {
    pay_type = "PayAsYouGo"
  }
  modification_protection_config {
    status = "NonProtection"
  }
  zone_mappings {
    vswitch_id = alicloud_vswitch.default.0.id
    zone_id    = data.alicloud_alb_zones.default.zones.0.id
  }
  zone_mappings {
    vswitch_id = alicloud_vswitch.default.1.id
    zone_id    = data.alicloud_alb_zones.default.zones.1.id
  }
  tags = {
    Created = "TF"
  }
}

Expected Behavior Support for allocation_id for EIP in the alicloud_alb_load_balancer resource.

Actual Behavior The alicloud_alb_load_balancer resource does not support allocation_id for EIP. The EIP can only be assigned using the Aliyun CLI.

shusaan avatar Oct 03 '24 07:10 shusaan