Skip to content

对已有弹性网卡关联安全组时, 指定不了顺序;并且执行destroy命令时,会将接口原先绑定的安全组均清除了 #3870

Description

@mir-xiong

Community Note

  • 对已有弹性网卡关联安全组时, 指定不了顺序;并且执行destroy命令时,会将接口原先绑定的安全组均清除了

Terraform Version

Terraform v1.14.7
on linux_386

  • provider registry.terraform.io/tencentcloudstack/tencentcloud v1.82.75

Affected Resource(s)

  • tencentcloud_eni_sg_attachment
  • tencentcloud_security_group

Terraform Configuration Files

 resource "tencentcloud_security_group" "base" {
   name        = "test-set-sg"
   description = "Testing Rule Set Security"
 
 
 }
 
 resource "tencentcloud_eni_sg_attachment" "my_sg_attachment" {
   # 目标弹性网卡 (ENI) 的实例 ID
   network_interface_ids = ["eni-xxxxxxx-1"]
 
   # 需要绑定的安全组 ID 列表(支持同时绑定多个安全组)
   security_group_ids = [
     tencentcloud_security_group.base.id,
     "sg-xxxxxxx-1",
     "sg-xxxxxxx-2"
 
 
   ]
 
 
 }

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply
  2. terraform destory

Important Factoids

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions