Hugo
Hugo

Reputation: 1304

Choose VPC when creating a DMS replication instance

When using the command

aws dms create-replication-instance

How can I force/choose the VPC that will contain the instance ?

Upvotes: 1

Views: 1373

Answers (2)

ashtonium
ashtonium

Reputation: 2437

If you want to create a DMS Replication Instance somewhere other than the default VPC and subnet, you need to first create a replication subnet group. This is created with a name and a list of one or more subnet ids (all in the same VPC).

Reference for the aws-cli call to create-replication-subnet-group: https://docs.aws.amazon.com/cli/latest/reference/dms/create-replication-subnet-group.html

You would then pass that resulting replication subnet group id to create-replication-instance command as the --replication-subnet-group-identifier option.

Reference for the the aws-cli call for create-replication-instance: https://docs.aws.amazon.com/cli/latest/reference/dms/create-replication-instance.html

The DMS Replication Instance would then be created in the VPC determined by the subnet group.

Upvotes: 1

helloV
helloV

Reputation: 52433

VPC is too broad. You need to specify the subnet in which you want the replication instance to be created. VPC can be derived from the subnet id.

create-replication-instance

--replication-subnet-group-identifier (string)

A subnet group to associate with the replication instance.

Upvotes: 1

Related Questions