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

Existing security group rules get deleted when I use terraform destroy #3017

Open
ruspaul013 opened this issue Dec 13, 2024 · 0 comments
Open

Comments

@ruspaul013
Copy link

ruspaul013 commented Dec 13, 2024

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.

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