Reference no: EM132937968
MMI223996 Cloud Computing and Web Services - Glasgow Caledonian University
Specification
The purpose of this development lab is to allow you to demonstrate your understanding of cloud application development using a variety of cloud technologies available on the Google Cloud. The work is split into sections with details provided below on the work to be undertaken in each section.
Section 1
Undertake the following:
• Using the Cloud Console, create a project using a unique Project ID and confirm using the Cloud Shell that the prompt matches that Project.
• On your own computer create a text file containing your name, save the file on your computer and then copy the file to the Cloud Shell file system.
• Using a Cloud Shell command of your choice verify that the file exists and that the content is as expected.
• Using a Cloud Shell command of your choice change the content of the file, download the new version of the file to your own computer and verify that it contains the updated content.
Section 2
Undertake the following:
• Using the Cloud Console create a Compute Engine VM instance as follows:
» The name should be cwwebserver and the region should be us-central1
» The VM instance should have two VCPUs and around 8 GB of RAM
» The operating system should be Debian Linux 10
» HTTP and HTTPS traffic should be able to reach the VM instance
• Install and test an Apache Web Server ensuring that it restarts when the instance is restarted and that it can serve files.
• Create a second Compute Engine VM instance using a Cloud Shell command with a configuration of your choosing in a zone closer to the UK.
• Install an NGINX server in your second VM ensuring that it restarts when the instance is restarted and that it can serve files.
• Develop and test a simple App Engine app using a supported programming language that displays a message, when accessed using an appropriate URL. Test locally using the development server as well as deployed to App Engine.
Section 3
Undertake the following:
• Create a Cloud Storage bucket configured as follows:
- The bucket replicates its contents to multiple regions.
- The storage class is appropriate for access once every two months
- All other settings use their default values.
• Upload three pictures to your bucket with the pictures visible to everyone.
• Create an HTML file that displays the three pictures in your bucket with an appropriate caption for each picture and serve the file using your NGINX server.
• Develop and test a second App Engine application that can be used to view the three pictures stored in your storage bucket. Your application must support serving specific pictures on a specific URL as shown in Table 1 and be tested locally using the development server as well as deployed to App Engine.
Section 4
Undertake the following:
• Use APIs Explorer to test the instances.list method of the Compute Engine API and verify that both of your Compute Engine VMs appear in the method response.
• Investigate the REST API available for Google Storage and determine the REST API URL that can be used to retrieve the metadata for a resource contained in a storage bucket. Use this to determine the URLs required to obtain the metadata for each of your three pictures.
• Create a Cloud Shell script which can be used to present the metadata for all three of your stored pictures using these URLs.
• Develop and test a third App Engine app, similar to the one created in Section 3, which uses a different <chosenpath> and serves the metadata for the pictures rather than the actual pictures. You should test your app locally using the development server as well as deployed to App Engine.
Section 5
Undertake the following:
• Secure the App Engine app you created in Section 4 using Google Identity-Aware Proxy (IAP) so that you are the only user who can access it.
• Test your application to show that it is no longer publicly accessible and that you are the only one who can access it using your Google account credentials.
Attachment:- Cloud Computing and Web Services.rar