Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Assignment Details and Expected Outcomes In this assignment, the student is to write a python script that perform the following sub-tasks: Running the python

image text in transcribed

image text in transcribed

image text in transcribed

2. Assignment Details and Expected Outcomes In this assignment, the student is to write a python script that perform the following sub-tasks: Running the python script results in six (6) websites. - The script will retrieve the identifications (subnet IDs) of the six subnets in the default virtual private cloud (VPC). - Then using subnet IDs, the same script will deploy one EC2 instance per each subnet. - Finally, the script will list the identification of the EC2 (instance IDs), the subnet Id the instance is deployed to and instance's private IPv4 address. - The following diagram shows the requested infrastructure. By the end of the script execution, there will be a total of six websites deployed across the six default subnets. Once all EC2 Instances have been created, perform following steps on all EC2 Instances;- 1. Install httpd. 2. Restart and enable httpd on all instances. 3. Create a web page (index.html) on all instances under /var/www/html folder. 4. Index.html on every machine should have separate message. For Example;- Index.html file for vm1 should display Hello from VM1 machine in hi > tag Index.html file for vm2 should display Hello from VM2 machine in h1 > tag And so on..... 5. Test connection using Web browser for http and test ssh connection to each machine using command prompt. In case Diagram explained: ssh connection is not working then you can try putty connection. - Boto3 offers two modules, resource and client. The high-level (For more details on Putty Connection, watch video guide for resource module returns classes while the lower-level client putty connection posted on slate). module returns dictionaries. Some tasks are simpler to do with resource while others are simpler to do with client. AWS maintains a vast documentation about both modules. 3. Programmatic access to the cloud - Python boto3 interacts with the lower-level module botocore which acts as an intermediary to access the cloud resources such as the Elastic Compute Cloud service (EC2). In this case, botocore translates the upper-level instructions from boto3 to ( (4)

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago