Creates a custom RDS engine version for SQL Server using an AMI copied from another region.

Terraform Template

resource "aws_ami_copy" "example" {
  name = "sqlserver-se-2019-15.00.4249.2"
  source_ami_id = "ami-xxxxxxxx"
  source_ami_region = "us-east-1"
}

resource "aws_rds_custom_db_engine_version" "test" {
  engine = "custom-sqlserver-se"
  engine_version = "15.00.4249.2.cev-1"
  source_image_id = aws_ami_copy.example.id
}