Installing the MGN connector on a secured network
The MGN connector and the AWS Replication Agents that the MGN connector installs, require network access to various AWS endpoints. If your on-premises network is not open to AWS endpoints, then you can install the MGN connector and the AWS Replication Agents with the aid of PrivateLink.
You can connect your on-premises network to your VPCs using AWS VPN or DirectConnect.
Global view
If you are using the Global view feature, which provides cross-account view and operations, you will have at least one staging VPC per member account.
You will also need to designate a VPC in the management account in order to allow the MGN connector to communicate with AWS services via PrivateLink. If you are migrating some of your source servers into the management account, you can use the same VPC as a staging VPC.
The following sections apply to the MGN connector VPC as well as to each staging VPC.
Create VPC endpoints
To allow the MGN connector and AWS Replication Agents to communicate with AWS services, create the VPC endpoints listed below. For each endpoint:
-
Select your staging area VPC or MGN connector VPC (see Global view above).
-
Enable private DNS names.
-
Choose a subnet, and ensure that a route exists from the MGN connector or AWS Replication Agent to the selected subnet.
-
Ensure that the security groups associated with the endpoint allow inbound traffic from the MGN connector and source servers.
Create the following interface endpoints:
-
com.amazonaws.
– The endpoint for the Systems Manager service. This endpoint is required by the SSM Agent, which is installed by the MGN connector installer.region
.ssm -
com.amazonaws.
– Systems Manager uses this endpoint to make calls from the SSM Agent to the Systems Manager service.region
.ec2messages -
com.amazonaws.
– This endpoint is required only if you wish to connect to the MGN connector using Session Manager.region
.ssmmessages -
com.amazonaws.
– This endpoint is required only if you wish to connect to the MGN connector using Session Manager and using AWS KMS encryption to add an additional layer of encryption to the session. For more information, see Turn on KMS key encryption of session data in the Amazon Systems Manager User Guide.region
.kms -
com.amazonaws.
– Systems Manager uses this endpoint to update the SSM Agent and to perform patching operations. The MGN connector installer and the AWS Replication Agent installer download installation assets from this endpoint.region
.s3-
Note that private DNS names are disabled by default for the S3 endpoint.
-
If you wish to also Enable private DNS only for inbound endpoint, you must first create an S3 gateway VPC endpoint. For more information, see S3 Private DNS in the Amazon Simple Storage Service User Guide.
-
-
com.amazonaws.
– The MGN connector calls this endpoint to retrieve source server credentials.region
.secretsmanager -
com.amazonaws.
– The MGN connector calls this endpoint to retrieve credentials of the AWS Replication Agent installer role.region
.sts -
com.amazonaws.
– The endpoint for MGN. This endpoint is required by the MGN connector, the AWS Replication Agent, and their respective installers. If a VPCE Policy is used (to scope down access), add the following statement to your policy:region
.mgn{ "Effect": "Allow", "Principal": "*", "Action": "execute-api:Invoke", "Resource": "arn:aws:execute-api:<region>:*:*/POST/CreateSessionForMgn" }
For more information, see Creating an interface endpoint in the Amazon VPC User Guide.
Create a Route 53 inbound endpoint
To route your traffic to the VPC endpoints created above, create a Route 53 inbound endpoint in your staging area VPC or the MGN connector VPC (see Global view above).
Ensure that the security group associated with the inbound endpoint allows traffic from your on-premises DNS resolvers.
Configure DNS resolvers on your on-premises network to forward DNS queries for the endpoints of the above AWS services,
to the IP addresses of your Route 53 inbound endpoint.
To find the regional endpoints of these services, see
Service endpoints
in the AWS General Reference Guide.
For example, the endpoint of the MGN service in the US East (Ohio) Region (us-east-2) is
mgn.us-east-2.amazonaws.com
For more information, see Forwarding inbound DNS queries to your VPCs in the Amazon Route 53 User Guide.
Modify replication settings
In order to allow the AWS Replication Agent to communicate with the replication server without using the public internet, you must use Private IP for data replication. The replication server requires access to the EC2 service. Therefore:
-
If your staging area VPC has a VPC endpoint for
com.amazonaws.
with private DNS names enabled, or if your staging area subnet has a route to the public internet via a NAT gateway, then the replication server can communicate with EC2 over its private IP. Choose the option:region
.ec2Use private IP for data replication
-
Otherwise, if your staging area subnet has a route to the public internet via an internet gateway, a public IP is required for the replication server to reach EC2. Choose the option:
Create public IP, and use Private IP for data replication
Ensure that the security groups associated with the MGN VPC endpoint allow inbound traffic from the replication server.
Verify VPC endpoints are being used
Use CloudTrail to verify that calls to AWS services from the MGN connector and its associated source servers, are made via the vpcEndpointIds of the VPC endpoints you have created.