-
Notifications
You must be signed in to change notification settings - Fork 910
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
Cloud SQL activation policy selectable #1613
Conversation
added activation policy
added activation_policy variable defaulted as ALWAYS for non regression
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR.
Please check the contributing guide to check the linting and test errors. You'll also have to regenerate the README file for the module.
@juliocc please could you review/Approve in order to check subsequent wf status? thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the module and I'm getting the following error:
Error running command plan: 1
Error: Unsupported argument
on fabric/modules/cloudsql-instance/main.tf line 122, in resource "google_sql_database_instance" "primary":
122: activation_policy = var.activation_policy
An argument named "activation_policy" is not expected here.
Please make sure to test the proposed changes.
Thank you @juliocc for your valuable work and the patience. |
This PR make the Cloud SQL activation policy changeable from the default ALWAYS value. it yet does validation on input and is defaulted in order to don't make regressions on previous module. This PR make possible to manage databases that are not alway started (Eg. non production envs, historical data storage etc)