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

rdb instance state problem #2711

Closed
D0wn3r opened this issue Aug 20, 2024 · 1 comment · Fixed by #2725
Closed

rdb instance state problem #2711

D0wn3r opened this issue Aug 20, 2024 · 1 comment · Fixed by #2725
Assignees
Labels
bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Comments

@D0wn3r
Copy link

D0wn3r commented Aug 20, 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 other comments that do not add relevant new information or questions, 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

Terraform v1.9.4
on linux_amd64
+ provider registry.terraform.io/hashicorp/local v2.5.1
+ provider registry.terraform.io/scaleway/scaleway v2.41.0

Affected Resource(s)

  • scaleway_rdb_instance

Terraform Configuration Files

terraform {
  required_providers {
    scaleway = {
      source = "scaleway/scaleway"
      version = "2.42.1"
    }
  }
  required_version = ">= 1.1.0"
}

provider "scaleway" {
  project_id        = "replace"
  zone            = "fr-par-2"
  region          = "fr-par"
  access_key      = "replace"
  secret_key      = "replace"
}

resource "scaleway_rdb_instance" "postgresql" {
  name           = "test"
  node_type      = "DB-DEV-S"
  engine         = "POSTGRESQL-15"
  is_ha_cluster  = false
  user_name      = "test"
  password       = "Th1s_is_my_password"
}

Expected Behavior

When we apply 2 times without changes, nothing should change

Actual Behavior

Every apply make change even if our config file didn't change

Steps to Reproduce

  1. terraform apply multiple times
@D0wn3r
Copy link
Author

D0wn3r commented Aug 21, 2024

I found this problem is caused by the case sensitive when the state is calculated while the provider is not case sensitive to create.
POSTGRESQL-15 -> it will be created well but will trigger an update always
PostgreSQL-15 -> will be ok

@Laure-di Laure-di added bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug rdb Managed MySQL and PostgreSQL issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants