-
Notifications
You must be signed in to change notification settings - Fork 716
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
cloudsql - postgres #286
Comments
@jonbcampos I just (frustratingly) ran into this same error, but think I found a solution. From looking at the project audit logs I was trying to deploy to it looked like this was a Unlike what I have seen with MySQL CloudSQL failover replicas, the failover was reported in the console as
Upon removing the failover instance from the template and adding the above properties the deployment worked. E.g.
Ideally the example could be updated to work, but until then hopefully this helps. |
Have you tried the Cloud Foundation Toolkit version of the CloudSQL: |
Maybe the contents have since changed, but I don't see an example for PostgreSQL in @ocsig 's link above 🙃 Maybe the example is valid for both MySQL and PostgreSQL, but valid value for a property can be different depending on the db (e.g. There's a simple example on stackoverflow: Is it not possible to create a postgres cloudsql via deployment manager? |
Please take a look at our new repo where all the active development is going on. |
Cool, thanks for the pointer @ocsig ! |
I've been trying to extend the cloudsql mysql example to include POSTGRES options. So what is the deal? For me what fails is the failover section of code. I've tried (as you can see) to set the
locationPreference
because I read that needs to be different from the original. I've also set theavailabilityType: REGIONAL
for the master.Any idea what might be the problem? the error isn't very descriptive.
The text was updated successfully, but these errors were encountered: