terraform-provider-scaleway icon indicating copy to clipboard operation
terraform-provider-scaleway copied to clipboard

Redis cluster will do "update in place" every time after initial install

Open milenbm opened this issue 3 years ago • 0 comments
trafficstars

Hi there,

I'm experiencing some odd behavior when creating scaleway_redis_cluster

  # module.redis.scaleway_redis_cluster.main will be updated in-place
  ~ resource "scaleway_redis_cluster" "main" {
        id           = "pl-waw-1/ed3e86d9-aec4-447b-bfd6-c5afd2fcf440"
        name         = "redis-stage"
      ~ node_type    = "RED1-micro" -> "RED1-MICRO"
        # (9 unchanged attributes hidden)
        # (1 unchanged block hidden)
    }

And it finishes with error

│ Error: scaleway-sdk-go: invalid argument(s): node_type does not respect constraint, Cannot migrate to a node_type with less or equals memory
│ 
│   with module.redis.scaleway_redis_cluster.main,
│   on [modules/redis/main.tf](https://bitbucket.org/next-basket/infrastructure/src/0d3985df9a7270c7bc5bb95940579c684766510b/modules/redis/main.tf) line 9, in resource "scaleway_redis_cluster" "main":
│    9: resource "scaleway_redis_cluster" "main" {

It appears that it wants to migrate itself from "RED1-micro" to "RED1-MICRO" which is strange....

My resource is set like this RED1-MICRO ---> if I set it as RED1-micro everything is OK.... I just think that this is something that can be polished..

milenbm avatar Aug 10 '22 12:08 milenbm