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

aws_db_instance_automated_backups_replication timeouts #25776

Closed
dhruvp92 opened this issue Jul 11, 2022 · 4 comments · Fixed by #25796
Closed

aws_db_instance_automated_backups_replication timeouts #25776

dhruvp92 opened this issue Jul 11, 2022 · 4 comments · Fixed by #25796
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@dhruvp92
Copy link

dhruvp92 commented Jul 11, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v1.2.3
on linux_amd64

Affected Resource(s)

aws_db_instance_automated_backups_replication
aws_db_instance

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "aws_db_instance_automated_backups_replication" "cross_region" {
   count = local.cross_region_condition ? 1 : 0

   source_db_instance_arn = aws_db_instance.rds_master_instance.arn
   kms_key_id             = aws_kms_replica_key.cross_region[0].arn

   provider = aws.replica
}

Panic Output

module.production_rds.aws_db_instance_automated_backups_replication.cross_region[0]: Still creating... [19m59s elapsed]
Error: error waiting for DB instance automated backup (arns:XXX) create: timeout while waiting for state to become 'replicating' (last state: 'pending', timeout: 20m0s)
 
with module.production_rds.aws_db_instance_automated_backups_replication.cross_region[0],
on ../../modules/rds/main.tf line 145, in resource "aws_db_instance_automated_backups_replication" "cross_region":
145: resource "aws_db_instance_automated_backups_replication" "cross_region" {

I am following the documentation :https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance_automated_backups_replication

However, it times out after 20 minutes and there is no custom timeouts block for the above resource to accommodate. Snapshot size is roughly 150 GB. It works for the snapshots having a smaller size.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/rds Issues and PRs that pertain to the rds service. labels Jul 11, 2022
@bschaatsbergen
Copy link
Member

bschaatsbergen commented Jul 12, 2022

Hi @dhruvp92,

Thanks for raising this, I'll get on it. Besides bumping the default from 20 to 60 - I'll high likely look into adding a custom timeout block as everyone has different snapshot sizes.

@dhruvp92
Copy link
Author

Thank you @bschaatsbergen . Yeah it would be more sustainable on moving forward with timeouts block.

@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 15, 2022
@github-actions github-actions bot added this to the v4.23.0 milestone Jul 15, 2022
@github-actions
Copy link

This functionality has been released in v4.23.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
3 participants