github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/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  ```
    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    subnet_ids = [
    21      "subnet-12345678",
    22    ]
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `replication_subnet_group_description` - (Required) The description for the subnet group.
    31  * `replication_subnet_group_id` - (Required) The name for the replication subnet group. This value is stored as a lowercase string.
    32  
    33      - Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens.
    34      - Must not be "default".
    35  
    36  * `subnet_ids` - (Required) A list of the EC2 subnet IDs for the subnet group.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `vpc_id` - The ID of the VPC the subnet group is in.
    43  
    44  ## Import
    45  
    46  Replication subnet groups can be imported using the `replication_subnet_group_id`, e.g.
    47  
    48  ```
    49  $ terraform import aws_dms_replication_subnet_group.test test-dms-replication-subnet-group-tf
    50  ```