aws_dms_replication_subnet_group
Provides a DMS (Data Migration Service) replication subnet group resource. DMS replication subnet groups can be created, updated, deleted, and imported.
Example Usage
# 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" } }
Argument Reference
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.- Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens.
- Must not be "default".
-
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.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
vpc_id
- The ID of the VPC the subnet group is in.
Import
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