volcengine / terraform-provider-volcengine

Mozilla Public License 2.0
27 stars 10 forks source link

volcengine_redis_instance 设置 param_values 后,每次 terraform apply 都会重新更新 #138

Closed cadl closed 1 year ago

cadl commented 1 year ago

版本 0.0.119

配置例如

resource "volcengine_redis_instance" "db_01" {
  zone_ids      = [local.zone]
  instance_name = "db-01"
  charge_type   = "PrePaid"
  auto_renew    = true

  sharded_cluster = 0
  node_number = 2

  # 单节点内存
  shard_capacity = 8192
  # 版本
  engine_version = "4.0"

  subnet_id = xxxx
  deletion_protection = "enabled"
  vpc_auth_mode = "open"

  project_name = xxx
  backup_period = [1, 2, 3, 4, 5, 6, 7]
  backup_hour = 3
  backup_active = true
  create_backup     = false
  apply_immediately = false

  param_values {
    name  = "maxmemory-policy"
    value = "noeviction"
  }
}

后续每次 plan/apply 时都会重新对 param_values 进行修改,控制台参数修改记录历史如下图:

image

希望首次修改成功后,后续就不再重复进行修改

zpp12354321 commented 1 year ago

@cadl 您好,感谢您的反馈,我们排查一下

zpp12354321 commented 1 year ago

https://github.com/volcengine/terraform-provider-volcengine/pull/140

针对这个问题我们在 0.0.121 版本中进行修复

zpp12354321 commented 1 year ago

@cadl https://registry.terraform.io/providers/volcengine/volcengine/latest 麻烦升级到最新的版本,看一下是否还有问题呢

cadl commented 1 year ago

@cadl https://registry.terraform.io/providers/volcengine/volcengine/latest 麻烦升级到最新的版本,看一下是否还有问题呢

测试了 0.0121,已经修复,感谢