restoreDbClusterFromS3

Creates an Amazon Aurora DB cluster from MySQL data stored in an Amazon S3 bucket. Amazon RDS must be authorized to access the Amazon S3 bucket and the data must be created using the Percona XtraBackup utility as described in Migrating Data from MySQL by Using an Amazon S3 Bucket in the Amazon Aurora User Guide.

This operation only restores the DB cluster, not the DB instances for that DB cluster. You must invoke the CreateDBInstance operation to create DB instances for the restored DB cluster, specifying the identifier of the restored DB cluster in DBClusterIdentifier. You can create DB instances only after the RestoreDBClusterFromS3 operation has completed and the DB cluster is available.

For more information on Amazon Aurora, see What is Amazon Aurora? in the Amazon Aurora User Guide.

This operation only applies to Aurora DB clusters. The source DB engine must be MySQL.

Samples


fun main() { 
   //sampleStart 
   // The following example restores an Amazon Aurora MySQL version 5. 7 compatible DB cluster from a
// MySQL 5. 7 DB backup file in Amazon S3.
val resp = rdsClient.restoreDbClusterFromS3 {
    dbClusterIdentifier = "cluster-s3-restore"
    engine = "aurora-mysql"
    masterUsername = "admin"
    masterUserPassword = "mypassword"
    sourceEngine = "mysql"
    sourceEngineVersion = "5.7.28"
    s3BucketName = "mybucket"
    s3Prefix = "test-backup"
    s3IngestionRoleArn = "arn:aws:iam::123456789012:role/service-role/TestBackup"
} 
   //sampleEnd
}