Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me with the instructions and code please. Thank you very much 2.Assignment Details and Expected Outcomes - Deploy three EC2 instances using python

image text in transcribedimage text in transcribedimage text in transcribedplease help me with the instructions and code please. Thank you very much

2.Assignment Details and Expected Outcomes - Deploy three EC2 instances using python script and boto3 library. The instances should be deployed into different subnets as specified in Figure 1 below. - Instances specification below should be reflected in the user data scripts used by AWS to initialize the EC2 instances: VM1 is a plain EC2 instance with no applications installed. VM2 and VM3 will be running three containerized applications using Docker. On each of VM2 and VM3, two containers are NGINX webservers, and one is a MongoDB (see in Figure 1 and in Figure 2 for details). - Create security groups that accomplish the communication specified in the in Figure 1 below and in the Table 1 : Figure 1 Python script should create 3 EC2 instances in 3 different subnets. Figure 2 Containerized applications deployed on VM2 and VM3 This sample user data installs the application Docker and then it deploys two NGINX webserver containers and one MongoDB container. The application ports exposed are 8081, 8082, and 27017 (use the same sample data to create the VM3, just adjust the port numbers according to the instruction). Table 1 Inbound rules to be reflected in the security groups of VM1, VM2 and VM2 TELE20483 3. Use Wireshark to capture the traffic and analyze the network communication Use the traffic analyzer Wireshark to capture the conversation between your PC and the VM2's MongoDB container. Start Wireshark application on your laptop. In the Wireshark tab, set a filter ip.addr == the destination addresses to capture only the conversation between your PC and the VM2's address. Assuming the public IP of the VM2 is 54.67.54.116, Wireshark capture would look like Figure 3 when you attempt to access MongoDB running on VM2 via browser. Figure 31 address You should get the message below in the browser: It looks like you are trying to access MongoDB over HTTP on the native driver port. Close the web browser, then stop the sniffer capture and answer the questions below. For all these questions use snippets of the Wireshark sniffer to complement your explanation: Q3.1 How does your PC start the conversation? What are the source and destination IPv4 addresses? What are the source and destination TCP ports? What are the TCP messages involved? Q3.2 When does the HTTP protocol appear in the conversation? What is the HTTP message sent by the PC and what is the reply? Is the conversation clear text? Q3.3 How does the conversation end? What are the messages exchanged to close the session

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions