You can follow the below steps to use Amazon Web Services to provide elastic file systems and databases to VMs running in VMware Cloud:
Obtain Amazon EFS and Amazon RDS Details
Verify Connectivity to Amazon Web Services
Mount Amazon EFS and Connect Amazon RDS to the VM Application
Obtain Amazon EFS and Amazon RDS Details:
Log in to Amazon Web Services and record Amazon EFS and Amazon RDS information
In a browser open the AWS Management console
On the AWS sign-in page, select IAM user
In the Account ID text box, enter your AWS account ID and click Next
In the IAM user name text box, enter your user name
In the Password text box key in your password
Click Sign in
You are logged in to the AWS Management console
Verify that you are logged in to the correct Amazon region
Click the region drop-down menu and select US West (Oregon) us-west-2
Obtain the IP address that is used to connect to the Amazon EFS instance
In the AWS Management Console, click the Services drop-down menu in the top-left of the page
Under Storage, select EFS
The Amazon Elastic File System console opens and one or more file systems are listed.
Click the link with the name that is associated with the filesystem id
In the file system general view, click Attach in the top-right corner of the page
The Attach window opens
In the Attach window, select Mount via IP
The command that appears shows the IP address in red font
Make a note of the Amazon EFS mount IP address
Click Close
Obtain the IP address that is used to connect to the Amazon RDS instance
In the AWS Management Console, click the Services drop-down menu
Under Databases, select RDS
The Amazon RDS dashboard appears
In the left pane, click Databases
Click the link with the name that is associated with db id
In the database summary view, click the Connectivity & security tab
Make a note of the endpoint URL and RDS port in a notepad
Verify Connectivity to Amazon Web Services:
You verify that the Photo-App-01 virtual machine can access the Amazon EFS and Amazon RDS services.
Open SSH using Putty to the Photo-App-01 VM using the VM IP
Using the Amazon EFS mount IP address that you recorded previously, run the nc command to test connectivity from the VM to the Amazon EFS instance
nc -z -v 172.xxx.xx.xx 2049
The command returns Connection to XXX.XXX.XXX.XXX 2049 port [tcp/nfs] succeeded!
Using the RDS endpoint URL and RDS port that you recorded in a previous task, run the nc command to test connectivity from the VM to the Amazon RDS instance
nc -z -v vmc-student1-db.........rds.amazonaws.com 3306
The command returns Connection to vmc-student1- db.........rds.amazonaws.com 2206 port [tcp/mysql] succeeded!
Mount Amazon EFS and Connect Amazon RDS to the VM Application:
You mount Amazon EFS and connect Amazon RDS services to the VM application.
Open the Photo-App-01 VM SSH session
You can follow this AWS article for the steps to configure the EFS and setup web-server
Open a browser tab to the IP address of the Photo-App-01 VM: http://192.168.xxx.x
The Lychee application database connection details window appears.
If necessary, obtain the IP address from the vSphere Client VM Summary tab in the SDDC vCenter Server instance
Upload photo files to the application
Click the plus icon and select Upload Photo
The Windows Explorer Open window appears
If necessary, navigate to F:\
The following three files are stored in F:\:
1.jpg
2.jpg
3.jpg
Select all three files and click Open
The Uploading window appears and the files are uploaded to the application. The Uploading window closes automatically
Comentarios