github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/aws/r/dms_replication_subnet_group.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_dms_replication_subnet_group" 4 sidebar_current: "docs-aws-resource-dms-replication-subnet-group" 5 description: |- 6 Provides a DMS (Data Migration Service) subnet group resource. 7 --- 8 9 # aws\_dms\_replication\_subnet\_group 10 11 Provides a DMS (Data Migration Service) replication subnet group resource. DMS replication subnet groups can be created, updated, deleted, and imported. 12 13 ## Example Usage 14 15 ```hcl 16 # Create a new replication subnet group 17 resource "aws_dms_replication_subnet_group" "test" { 18 replication_subnet_group_description = "Test replication subnet group" 19 replication_subnet_group_id = "test-dms-replication-subnet-group-tf" 20 21 subnet_ids = [ 22 "subnet-12345678", 23 ] 24 } 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `replication_subnet_group_description` - (Required) The description for the subnet group. 32 * `replication_subnet_group_id` - (Required) The name for the replication subnet group. This value is stored as a lowercase string. 33 34 - Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. 35 - Must not be "default". 36 37 * `subnet_ids` - (Required) A list of the EC2 subnet IDs for the subnet group. 38 39 ## Attributes Reference 40 41 The following attributes are exported: 42 43 * `vpc_id` - The ID of the VPC the subnet group is in. 44 45 ## Import 46 47 Replication subnet groups can be imported using the `replication_subnet_group_id`, e.g. 48 49 ``` 50 $ terraform import aws_dms_replication_subnet_group.test test-dms-replication-subnet-group-tf 51 ```