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

RFE: Support creating instance from XtraBackup (API_RestoreDBInstanceFromS3) #2410

Closed
jasonmcintosh opened this issue Nov 22, 2017 · 4 comments
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

@jasonmcintosh
Copy link
Contributor

We'd like the ability to restore from an XtraBackup stored in an S3 bucket. This is VERY fast creation of RDS databases vs. doing a load from a CSV file or similar. I'm working on updating the code to support this myself, but wanted to present the issue here for reference later.

Terraform Version

0.10.2

Affected Resource(s)

aws_db_instance

Terraform Configuration Files

Here's a conceptual of what this could look like...

resource "aws_db_instance" "myinstance" {
restore_s3_bucket "mybucket"
restore_s3_bucket_path "backups"
restore_s3_role "rolearn"
}

Option (I like this one better)

resource "aws_db_instance" "myinstance" {
  restore_s3 {
    bucket  "mybucket"
    path "backups"
    role "restricted_s3_role_arn"
  }
}

Important Factoids

Tied to...
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.html
and API to implement is...
http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceFromS3.html

@jasonmcintosh
Copy link
Contributor Author

Related btw to hashicorp/terraform#16736

@Ninir Ninir added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 22, 2017
@radeksimko radeksimko added the service/rds Issues and PRs that pertain to the rds service. label Jan 28, 2018
@bflad bflad added this to the v1.16.0 milestone Apr 25, 2018
@bflad
Copy link
Contributor

bflad commented Apr 25, 2018

Support for s3_import argument on the aws_db_instance resource has been merged and will release with v1.16.0 of the AWS provider tomorrow 🎉

@bflad bflad closed this as completed Apr 25, 2018
@bflad
Copy link
Contributor

bflad commented Apr 25, 2018

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

@ghost
Copy link

ghost commented Apr 6, 2020

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 and limited conversation to collaborators Apr 6, 2020
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
Development

No branches or pull requests

4 participants