Reputation: 1304
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
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
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.
--replication-subnet-group-identifier (string)
A subnet group to associate with the replication instance.
Upvotes: 1