hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

sql server s3 import #17063

Open fdavier opened 3 years ago

fdavier commented 3 years ago

Community Note

Description

Hi, in resource aws_db_instance, there is option to set s3 import with s3_import{} This actually worlk only for mysql

New or Affected Resource(s)

Following https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance

resource "aws_db_instance" "db" {
  s3_import {
    source_engine = "mysql"
    source_engine_version = "5.6" 
    bucket_name = "mybucket"
    bucket_prefix = "backups"
    ingestion_role = "arn:aws:iam::1234567890:role/role-xtrabackup-rds-restore"
  }
}

And following AWS documentation: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/User.SQLServer.Options.S3-integration.html It should be possible to use it with SQL Server

Potential Terraform Configuration

resource "aws_db_instance" "db" {
  s3_import {
    source_engine = "sqlserver"
    source_engine_version = "xxx.xxx"
    bucket_name = "mybucket"
    bucket_prefix = "backups"
    ingestion_role = "arn:aws:iam::1234567890:role/role-xtrabackup-rds-restore"
  }
}

References

breathingdust commented 3 years ago

Hi @fdavier! For the provider to support this functionality it must be supported via the AWS RDS API. The existing API method still only supports mysql and the method you link to has no associated API support. So at this time this is not possible, I will mark this as upstream and we can revisit if/when AWS support.

noumanullah commented 1 year ago

Hi, Does aws_db_instance now support SQL Server? It's been more than a year so thought to ask members if any updates or possibilities we have for SQL server s3 import.

github-actions[bot] commented 2 days ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!