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

GCP SQL PostgreSQL Read-Replica Problems #99

Open
eb-trigo opened this issue Mar 3, 2021 · 0 comments
Open

GCP SQL PostgreSQL Read-Replica Problems #99

eb-trigo opened this issue Mar 3, 2021 · 0 comments

Comments

@eb-trigo
Copy link

eb-trigo commented Mar 3, 2021

Hi,

I'd like to know if it's possible to understand using Python and tfplan if a specific GCP SQL resource has changed?

Name of the Terraform resource:
resource "google_sql_database_instance" "read_replica"

Python command:
terraform.plan(out = "tfplan", compact_warnings = IsFlagged, no_color = IsNotFlagged, capture_output = False)

My problem is when I try to upgrade the GCP PostgreSQL tier it first of all increase the master instance and only then the read-reaplica instance which cause this ERROR:

master cannot be larger than read replicas

Any ideas on how I can update the read-replica SQL PostgreSQL instance first if there are any changes (tier, max_connections, etc..)?

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