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

[Bug]: RDS PITR support for a new instance passwords #35566

Closed
kolvin opened this issue Jan 30, 2024 · 3 comments · Fixed by #35589
Closed

[Bug]: RDS PITR support for a new instance passwords #35566

kolvin opened this issue Jan 30, 2024 · 3 comments · Fixed by #35589
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@kolvin
Copy link
Contributor

kolvin commented Jan 30, 2024

Terraform Core Version

1.5.5

AWS Provider Version

5.34.0

Affected Resource(s)

aws_db_instance

nested block: restore_to_point_in_time

Expected Behavior

When restoring an instance via var.point_in_time_recovery. I expect the new instance to respect the value defined in var.password.

Note: This behavior already exists for instance restores via var.snapshot_identifier.

Actual Behavior

Instances restored via var.point_in_time_recovery are only accessible when using the original password from the source database regardless of the value defined in var.password.

Relevant Error/Panic Output Snippet

The instance restore completes fine, so no errors to share

Terraform Configuration Files

Terraform configuration for creating a postgres instance - https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/examples/complete-postgres/main.tf

Steps to Reproduce

  1. Create a source postgres database via terraform-aws-rds community module
  2. Validate instance is online and has a LatestRestorableTime available
  aws rds describe-db-instances \
  --db-instance-identifier $INSTANCE_IDENTIFIER \
  --query 'DBInstances[0].LatestRestorableTime' \
  --output text
}
  1. Instantiate a new module call for our restored instance.
  2. Reference our source database identifier and restore timestamp as input variables
  3. Change the password for the new instance. var.password
  4. Deploy new instance via plan+apply
  5. Attempt to connect to the new restored instance

Debug Output

No response

Panic Output

No response

Important Factoids

References

Inspecting the source code of this repo validated the behavior I'm experiencing


The official docs listed here validate

  1. Point-in-time recovery operations creates a new instance
  2. The AWS RDS API for creating Instances accepts a password value.

Screenshots

  • Screenshot 2024-01-30 at 11 55 10
  • Screenshot 2024-01-30 at 12 00 59

Would you like to implement a fix?

Yes

@kolvin kolvin added the bug Addresses a defect in current functionality. label Jan 30, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 30, 2024
@ewbankkit ewbankkit added service/rds Issues and PRs that pertain to the rds service. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 1, 2024
@github-actions github-actions bot added this to the v5.36.0 milestone Feb 6, 2024
Copy link

github-actions bot commented Feb 8, 2024

This functionality has been released in v5.36.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!

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 Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
2 participants