-
Notifications
You must be signed in to change notification settings - Fork 411
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
Added support for setting transaction_log_retention_days, retained_backups, and retention_unit to backup_configuration. #203
Conversation
Please check the contributing guide and ensure tests pass: https://github.com/terraform-google-modules/terraform-google-sql-db/blob/master/CONTRIBUTING.md |
@tjokimie - are you still working on this PR? |
Anyupdate on this request? i tried the code not wokring for me. |
@waqas105 The PR needs to be rebased and edited to make sure tests pass. |
d6082b6
to
5d4d6e3
Compare
Thanks for the PR! 🚀 |
@morgante Sorry, finishing this took quite a bit longer than I anticipated. I fixed the issue, rebased the PR, updated the examples and added some tests. I run the tests locally but I couldn't figure out what triggered this one to fail. All the other tests are passing.
The |
6c90d99
to
913f003
Compare
/gcbrun |
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 the rebase and apologies for the churn. You can ignore the test failure as it looks unrelated.
examples/postgresql-ha/main.tf
Outdated
@@ -81,6 +81,11 @@ module "pg" { | |||
start_time = "20:55" | |||
location = null | |||
point_in_time_recovery_enabled = false | |||
transaction_log_retention_days = null | |||
backup_retention_settings = { |
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 don't think we need to nest this. Let's just collapse to the backup_configuration
level:
backup_configuration = {
enabled = true
start_time = "20:55"
location = null
point_in_time_recovery_enabled = false
transaction_log_retention_days = null
retained_backups = 365
retention_unit = "COUNT"
}
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.
8676fba
to
b28b835
Compare
b28b835
to
e89c589
Compare
Rebased with |
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, test failure is unrelated.
Add support for
transaction_log_retention_days
andbackup_retention_settings
.Closes #199.