kislerdm / terraform-provider-neon

Terraform provider to manage Neon SaaS resources
https://registry.terraform.io/providers/kislerdm/neon/latest/docs
Mozilla Public License 2.0
28 stars 10 forks source link

default_endpoint_setting is ignored #48

Closed kbumsik closed 11 months ago

kbumsik commented 12 months ago

Hi there,

Thank you for opening an issue.

Terraform Version

1.5.7

Provider Version

0.2.1

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

resource "neon_project" "this" {
  name = var.name
  # https://neon.tech/docs/introduction/regions
  region_id           = "aws-us-west-2"
  pg_version          = "15"
  compute_provisioner = "k8s-neonvm"

  history_retention_seconds = 604800 # 7 days
  branch {
    name = "main"
    database_name = "do_not_use_neondb_default"
    role_name = "root"
  }
  default_endpoint_settings {
    autoscaling_limit_min_cu = 0.25
    autoscaling_limit_max_cu = 2
    suspend_timeout_seconds = 300 # 5 min
  }
}

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

The default compute setting should be changed after creation, but it is ignored

Actual Behavior

Screenshot by Dropbox Capture

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

Are there anything atypical about your accounts that we should know?

References

This is somewhat similar to #42

kislerdm commented 11 months ago

@kbumsik Hey Bumsik! Thank you for opening the issue!

Have you tried to verify what happens when you create a new branch using terraform?

Thanks! Dmitry

kislerdm commented 11 months ago

@kbumsik Hey! The root cause was identified, the fix will be released in v0.2.2. ETA: 2023-09-20.

kbumsik commented 11 months ago

Hi, I just saw your replies. That's great you already fixed it πŸ‘

I hope I could contribute this TF module directly someday.

kislerdm commented 11 months ago

@kbumsik Hey Bumsik! Thank you for your feedback and look forward to further cooperation! πŸ™‚ BTW may I kindly ask to start the repo for its visibility? Thanks!

kbumsik commented 11 months ago

start the repo for its visibility?

Do you mean making a fork?

kislerdm commented 11 months ago

@kbumsik no, I mean pressing the "star button" for this repo πŸ˜‰

image

kbumsik commented 11 months ago

Typo πŸ˜‰ I did it for the SDK too. Hope you get ♾️ stars some day!