8000 Existing security group rules get deleted when I use `terraform destroy` · Issue #3017 · tencentcloudstack/terraform-provider-tencentcloud · GitHub
[go: up one dir, main page]

Skip to content
Existing security group rules get deleted when I use terraform destroy #3017
Open
@ruspaul013

Description

@ruspaul013

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

[root@base tencentcloud]# terraform -v
Terraform v1.10.0-dev
on linux_amd64
+ provider registry.terraform.io/hashicorp/null v3.2.3
+ provider registry.terraform.io/tencentcloudstack/tencentcloud v1.81.147

Affected Resource(s)

  • tencentcloud_security_group_rule_set

Expected Behavior

When destroying a deployed instance, I expect that only the security group rules that terraform created to be deleted. The security groups was created in the Tencent Console.

Also, if there are any security group rules already in the security group, they get deleted when run terraform apply.

Actual Behavior

All security groups rules from the security group were deleted.

Steps to Reproduce

  1. create a security group in Tencent Console
  2. add a security group rule
  3. use data "tencentcloud_security_groups" to get information about the security group
  4. add rules using resource "tencentcloud_security_group_rule_set"
  5. run terraform plan
  6. run terraform apply
  7. run terraform destroy

If you need anything else, please let me know.

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

      0