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

Cloud SQL activation policy selectable #1613

Merged
merged 9 commits into from Aug 25, 2023

Conversation

cmvalla
Copy link
Contributor

@cmvalla cmvalla commented Aug 23, 2023

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)

added activation policy
added activation_policy variable defaulted as ALWAYS for non regression
@google-cla
Copy link

google-cla bot commented Aug 23, 2023

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.

Copy link
Collaborator

@juliocc juliocc left a 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.

modules/cloudsql-instance/variables.tf Outdated Show resolved Hide resolved
modules/cloudsql-instance/variables.tf Outdated Show resolved Hide resolved
modules/cloudsql-instance/variables.tf Outdated Show resolved Hide resolved
@cmvalla
Copy link
Contributor Author

cmvalla commented Aug 25, 2023

@juliocc please could you review/Approve in order to check subsequent wf status? thx

Copy link
Collaborator

@juliocc juliocc left a 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.

modules/cloudsql-instance/main.tf Outdated Show resolved Hide resolved
@cmvalla cmvalla requested a review from juliocc August 25, 2023 09:06
@juliocc juliocc merged commit befbd19 into GoogleCloudPlatform:master Aug 25, 2023
9 checks passed
@cmvalla
Copy link
Contributor Author

cmvalla commented Aug 25, 2023

Thank you @juliocc for your valuable work and the patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants