-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
RDS Not Passing db_subnet_group_name
with restore_to_point_in_time
#16821
Comments
db_subnet_group_name
when Also Using restore_to_point_in_time
db_subnet_group_name
with restore_to_point_in_time
Looks like a typo in the code terraform-provider-aws/aws/resource_aws_db_instance.go Lines 1152 to 1154 in e5e68dd
The attribute is named Related: |
Thanks for looking! I put a PR: #16830 |
r/aws_db_instance Bugfix: Pass db_subnet_group_name in restore_to_point_in_time (Issue #16821)
Thanks again @cyrusv 👍 The fix has been merged and will release with the forthcoming |
This has been released in version 3.22.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
I'm on
- Using previously-installed hashicorp/aws v3.20.0
Terraform v0.14.1
I'm using Postgres engine in RDS.
I'm trying practice disaster recovery scenario using
restore_to_point_in_time
The actions are:
aws_db_instance
in a module along with some aws_security_group, aws_db_subnet_group, and CNAME records.Step 3 works if I specify db_name and I don't have any
restore_to_point_in_time
block, so it works with manual snapshot recovery. When I do the exact same exercise withrestore_to_point_in_time
block, I get an error that indicates Terraform is trying to use the default subnet_group:When I double check my tf plan, though, it claims to be putting everything into the correct
db_subnet_group_name
and the correctvpc_security_group_ids
(which makes sense, bc I didn't change any of this code switching from manual snapshot restoration to restore-to-point-in-time).Terraform CLI and Terraform AWS Provider Version
I'm on
- Using previously-installed hashicorp/aws v3.20.0
Terraform v0.14.2
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
It looks like the VpcSecurityGroupIds is getting filled with some default I never specified:
The text was updated successfully, but these errors were encountered: