Skip to content

Error when setting custom database_instance_tier value #8

@udit-001

Description

@udit-001

I encounter the following error when trying to use a custom database_instance_tier for a Cloud SQL instance with the ENTERPRISE edition:

Configuration snippet

database_instance_tier    = "db-custom-2-4096"
database_instance_edition = "ENTERPRISE"

Error Message

╷
│ Error: Error, failed to update instance settings for : googleapi: Error 400: Invalid request: The number of transaction log retention days must be between 1 and 7., invalid
│ 
│   with module.langfuse.google_sql_database_instance.this,
│   on .terraform/modules/langfuse/postgres.tf line 1, in resource 'google_sql_database_instance' 'this':
│    1: resource "google_sql_database_instance" 'this' {
│ 
╵

Any guidance on resolving this or clarifying constraints for db-custom-* tiers with the ENTERPRISE edition would be appreciated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions