Provides a DMS (Data Migration Service) replication subnet group resource. DMS replication subnet groups can be created, updated, deleted, and imported.
# Create a new replication subnet group
resource "aws_dms_replication_subnet_group" "test" {
  replication_subnet_group_description = "Test replication subnet group"
  replication_subnet_group_id          = "test-dms-replication-subnet-group-tf"
  subnet_ids = [
    "subnet-12345678",
  ]
  tags {
    Name = "test"
  }
}
The following arguments are supported:
replication_subnet_group_description - (Required) The description for the subnet group. replication_subnet_group_id - (Required) The name for the replication subnet group. This value is stored as a lowercase string.
subnet_ids - (Required) A list of the EC2 subnet IDs for the subnet group.
tags - (Optional) A mapping of tags to assign to the resource.
In addition to all arguments above, the following attributes are exported:
vpc_id - The ID of the VPC the subnet group is in. Replication subnet groups can be imported using the replication_subnet_group_id, e.g.
$ terraform import aws_dms_replication_subnet_group.test test-dms-replication-subnet-group-tf
    © 2018 HashiCorpLicensed under the MPL 2.0 License.
    https://www.terraform.io/docs/providers/aws/r/dms_replication_subnet_group.html