aliyun / terraform-provider-alicloud

Terraform AliCloud provider
https://www.terraform.io/docs/providers/alicloud/
Mozilla Public License 2.0
590 stars 553 forks source link

alicloud_cs_kubernetes_permissions must be replaced || +/- create replacement and then destroy #6645

Closed yeshuan closed 5 months ago

yeshuan commented 12 months ago

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v1.5.0 on linux_amd64

Affected Resource(s)

Please list the resources as a list, for example:

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

Debug Output

+/- resource "alicloud_cs_kubernetes_permissions" "ops"

Panic Output

no change for this resource

Expected Behavior

it will change anytime about ,and it create before destroy,create frist and then destroy,finally the RBAC permission lost

tips:the statefile this resource no create_before_destroy =true configuration

why terraform plan always must be replaced ”resource "alicloud_cs_kubernetes_permissions",and create first then destroy,resource will be lost

sanyangji commented 6 months ago

This was caused by modification from https://github.com/aliyun/terraform-provider-alicloud/pull/6646 (version 1.213) and was reverted by https://github.com/aliyun/terraform-provider-alicloud/pull/6769 (version 1.214) so that the resource behaved as before. Further updates to make resource alicloud_cs_kubernetes_permissions better:

xiaozhu36 commented 5 months ago

@sanyangji Thanks for your feedback. @yeshuan Please let me know and reopen the issue if you have more questions.