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

change planetscale_database cluster_size without replace #107

Open
joemiller opened this issue Feb 12, 2025 · 0 comments
Open

change planetscale_database cluster_size without replace #107

joemiller opened this issue Feb 12, 2025 · 0 comments

Comments

@joemiller
Copy link
Member

The API does not expose the endpoint to change a planetscale_database's cluster_size so we currently need to do a replace (destroy + create) in the TF provider.

Ideal would be to add cluster_size to the PATCH database endpoint - https://api-docs.planetscale.com/reference/update_database_settings - to simplify the client code, but exposing the existing resizes endpoint should be manageable as well.

joemiller added a commit that referenced this issue Feb 12, 2025
- mark `cluster_size` as required
- mark `cluster_size` as requiring recreate (destroy+create), pending: #107
- fix `issues_count` marked as a changeable param, it is readonly
- fix `multiple_admins_required_for_deletion` marked as a changeable param, it is readonly
- fix `plan` marked as a changeable param, it is readonly
- refactor `planetscale_database` tests to include coverage of all changeable params

Also:
- Update goreleaser.yml to address deprecations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant