Now that the “on-premises” infrastructure has been deployed. We now need to access the application server in order to mount the NFS server.
DataMigrationWorkshop-onPremResources
.You should see four values listed to copy down as these will be needed later:
If you configured an EC2 Key Pair when you deployed the on-premises CloudFormation template, then you can connect using an SSH client from your computer:
Otherwise you can connect to the instance directly through your browser using either EC2 Instance Connect or Session Manager:
If using EC2 Instance Connect or Session Manager, click Connect. A new tab will be opened in your browser with a command line interface (CLI) to the Application server. Keep this tab open - you will use the command line on the Application server throughout this workshop.
In the CLI for the Application server, run the following commands to mount the NFS export and verify the files on the NFS server.
Use the nfsServerPrivateIP value from the on-premises CloudFormation stack output.
$ sudo mount -t nfs <nfs-server-ip-address>:/media/data /mnt/data
$ sudo wget https://secure.eicar.org/eicar.com.txt
$ sudo cp eicar.com.txt /mnt/data/eicar.txt
$ ls /mnt/data/images
In the /mnt/data/images folder are 200 image files, as shown below. These image files represent the NFS server data that will be migrated to the S3 bucket in the in-cloud region.
Amazing, you have deployed all of the resources necessary in both the on-premises region and the in-cloud region. You have also mounted the NFS export on the Application server and verified your data set. 🚀