Skip to content

resource/db_instance: add restore to point in time support#15969

Merged
anGie44 merged 7 commits into
masterfrom
f-db-instance-point-in-time-restore
Nov 12, 2020
Merged

resource/db_instance: add restore to point in time support#15969
anGie44 merged 7 commits into
masterfrom
f-db-instance-point-in-time-restore

Conversation

@anGie44

@anGie44 anGie44 commented Nov 2, 2020

Copy link
Copy Markdown
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Relates #5286
Preceded by #7031

Release note for CHANGELOG:

resource/db_instance: add `restore_to_point_in_time` argument
resource/db_instance: add `latest_restorable_time` attribute

Output from acceptance testing:

--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceIdentifier (1469.96s)
--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceResourceID (1275.53s)

--- PASS: TestAccAWSDBInstance_kmsKey (430.59s) (previously panicking but fixed w/ commit 81ca42c14)

other test results in progress...

@anGie44 anGie44 requested a review from a team November 2, 2020 12:45
@ghost ghost added size/L Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/iot Issues and PRs that pertain to the iot service. service/rds Issues and PRs that pertain to the rds service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 2, 2020
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from 30a4c68 to ffe6076 Compare November 2, 2020 12:59
@anGie44 anGie44 marked this pull request as draft November 2, 2020 14:23
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch 3 times, most recently from c090dc8 to 202d976 Compare November 2, 2020 14:57
@anGie44 anGie44 marked this pull request as ready for review November 2, 2020 14:58
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch 2 times, most recently from c17355e to de19bb1 Compare November 2, 2020 15:59
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Nov 2, 2020
Comment thread aws/validators_test.go Outdated
Comment on lines 3223 to 3249

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied over from #7031 to re-use here though under a more generic func name

@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from de19bb1 to 565b560 Compare November 2, 2020 16:02
@anGie44 anGie44 added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 2, 2020
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from 565b560 to 291851c Compare November 2, 2020 16:34
@anGie44 anGie44 requested a review from a team as a code owner November 11, 2020 02:50
@YakDriver YakDriver self-assigned this Nov 11, 2020

@YakDriver YakDriver left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits but looks great!

GovCloud:

--- PASS: TestAccAWSDBInstance_MinorVersion (429.15s)
--- PASS: TestAccAWSDBInstance_basic (432.28s)
--- PASS: TestAccAWSDBInstance_AllowMajorVersionUpgrade (447.87s)
--- PASS: TestAccAWSDBInstance_namePrefix (449.64s)
--- PASS: TestAccAWSDBInstance_IsAlreadyBeingDeleted (459.03s)
--- PASS: TestAccAWSDBInstance_DbSubnetGroupName_VpcSecurityGroupIds (474.81s)
--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceResourceID (1305.06s)
--- PASS: TestAccAWSDBInstance_RestoreToPointInTime_SourceIdentifier (1388.71s)

Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance.go
Comment thread aws/resource_aws_db_instance_test.go Outdated
Comment thread aws/validators.go Outdated
Comment thread website/docs/r/db_instance.html.markdown Outdated
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from 40fdef3 to 29f6405 Compare November 12, 2020 00:32
Comment thread aws/validators_test.go Outdated
Comment thread aws/validators_test.go Outdated
@anGie44 anGie44 added this to the v3.15.0 milestone Nov 12, 2020
@ghost ghost added size/XXL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. and removed size/XL Managed by automation to categorize the size of a PR. labels Nov 12, 2020
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. size/XXL Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. size/XXL Managed by automation to categorize the size of a PR. labels Nov 12, 2020
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from 78d9d5f to dd30d59 Compare November 12, 2020 18:07
@anGie44 anGie44 force-pushed the f-db-instance-point-in-time-restore branch from fb33369 to 227fc68 Compare November 12, 2020 18:13
@anGie44 anGie44 added service/iot Issues and PRs that pertain to the iot service. and removed service/apigateway Issues and PRs that pertain to the apigateway service. service/devicefarm Issues and PRs that pertain to the devicefarm service. service/ec2 Issues and PRs that pertain to the ec2 service. service/iot Issues and PRs that pertain to the iot service. service/waf Issues and PRs that pertain to the waf service. labels Nov 12, 2020
@anGie44 anGie44 merged commit dea61f5 into master Nov 12, 2020
@anGie44 anGie44 deleted the f-db-instance-point-in-time-restore branch November 12, 2020 18:23
anGie44 added a commit that referenced this pull request Nov 12, 2020
@ghost

ghost commented Nov 12, 2020

Copy link
Copy Markdown

This has been released in version 3.15.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!

@ghost

ghost commented Dec 13, 2020

Copy link
Copy Markdown

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!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. provider Pertains to the provider itself, rather than any interaction with AWS. service/iot Issues and PRs that pertain to the iot service. service/rds Issues and PRs that pertain to the rds service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants