-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Automated Backup Failure #21602
Automated Backup Failure #21602
Comments
Confirmed issue! Terraform registry states the following:
|
Either the documentation needs to be updated to indicate that leaving those out of the |
Community Note
Terraform Version & Provider Version(s)
Terraform v0.12.31
on Jenkins
provider registry.terraform.io/hashicorp/.google v6.22.0
provider registry.terraform.io/hashicorp/external v2.3.4
Affected Resource(s)
google_bigtable_table
Terraform Configuration
We have set the vars to:
and have also tried the following for completion:
Debug Output
No response
Expected Behavior
Terraform should have created a table with no backup as per the following documentation:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigtable_table#automated_backup_policy-1
automated_backup_policy Defines an automated backup policy for a table, specified by Retention Period and Frequency. To disable, set both Retention Period and Frequency to 0.
Actual Behavior
When creating an automated backup policy via terraform using the module google_bigtable_table we are seeing the following error:
Error: Error creating table. rpc error: code = InvalidArgument desc = Automated backup policy has an input retention period 0, which is out of the desired range of [72h, 2160h].
Google documentation states the following:
Which we assume this is why the error tells us between 72 hours and 2160 hours. This is not clarified in Terraform documentation. We imagine that 0 is not actually allowed due to the restriction described in the screenshot above.
Google documentation: https://cloud.google.com/bigtable/docs/backups#retention
Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
b/401038219
The text was updated successfully, but these errors were encountered: