Download Cloud Computing Assignment: Cloud's Implementation and Security Threats - Prof. Nguyen Van and more Lecture notes Computer Communication Systems in PDF only on Docsity!
CLOUD COMPUTING
ASSIGNMENT 2
Learner’s name: Luong Thanh Dat
Assessor name: Ho Hai Van
Class: GCS100 4 B
Learner’s ID: GCS210 698
Subject’s ID: 1644
Assignment due: 26 /0 6 /
Page 1
Task 1 Base on the scenario and architecture design in the first assignment provide the implementation. Because of the time constraint of the assignment, the implementation just provides some demo functions of the scenario. The implementation includes two parts:
- A step-by-step instruction o which shows which functions are implemented o How to config, deploy and test the services (Web application, Database Server, Source code management, server logs...) using service provider’s frameworks and open-source tools. oImages for the built functions
- A brief discussion about difficulties which one can face during the development process(optional)
- The source code for the built application Task 2 The table of contents in your security manual (which should be 500 – 700 words) should be as follows:
- Analysis of the most common problems and security issues of a cloud computing platform.
- Discussion on how to overcome these issues.
- Summary. Learning Outcomes and Assessment Criteria Pass Merit Distinction LO3 Develop Cloud Computing solutions using service provider’s frameworks and open-source tools D2 Critically discuss how one Page 3
P5 Configure a Cloud Computing platform with a cloud service provider’s framework. P6 Implement a cloud platform using open-source tools. M3 Discuss the issues and constraints one can face during the development process. can overcome these issues and constraints. LO4 Analyse the technical challenges for cloud applications and assess their risks P7 Analyse the most common problems which arise in a Cloud Computing platform and discuss appropriate solutions to these problems. P8 Assess the most common security issues in cloud environments. M4 Discuss how to overcome these security issues when building a secure cloud platform. D3 Critically discuss how an organisation should protect their data when they migrate to a cloud solution.
Table of Contents
P5 Configure a Cloud Computing platform with a cloud service provider’s framework .................................. 5
1. Node.js.................................................................................................................................................... 5 2. Git/GitHub: .......................................................................................................................................... 10 3. MongoDB compass/atlas ...................................................................................................................... 12 _Page 4
- Render .................................................................................................................................................._ 17 P6 Implement a cloud platform using open-source tools ............................................................................... 19
1. Node.js: First, I need to install Node.js on my computer I will show it step by step below: Step 1: I access to the link https://nodejs.org/en/download/ to download the Node installer, here I chose the window installer after that I run the installer and click next till the setup wizard complete. Figure 1 Download Node.js Step 2: after installing Node.js I will verify the installation by running the command node - v in command prompt and if it returns the node version that mean I successfully install Node.js. Figure 2 Complete download Node.js Page 6
Figure 3 Create Command Node.js Step 3: In this step we going to update the version of npm because when we install the npm with Node.js it is not up to date, so we have to write the command npm install - g npm to get our npm up to date Figure 4 Update version In the image above my npm is up to date so it looks like that but if you just downloaded npm it should look like the picture below when you run the command Page 7
Figure 7 Create Module Express Page 9
Figure 8 Create Module Mongodb After 4 steps above now, I can use Node.js to write an application.
2. Git/GitHub: Second, now I need to publish the web I wrote to GitHub and to do that I need do the following steps: Step 1: Create an GitHub account by accessing the link https://github.com/ and sign in then we go to this link https://git-scm.com/book/en/v2/Getting-Started-Installing-Git to install git set up Page 10
Figure 11 Create and run GitHub By following those steps above now I able to publish my web to GitHub.
3. MongoDB compass/atlas: Third, I am going to download mongoDB this will play a role as database for my web, the following steps below will show I install mongoDB on my computer: Step 1: Go to https://www.mongodb.com/ and sign up. Page 12
Figure 12 Download Mongodb In this phase, we will install the Mongodb application so that the process of developing code and running the program may be more efficient. To download MongoDB, you can follow these steps:
- Visit the official MongoDB download page: https://www.mongodb.com/try/download/community
- On the download page, you will see different versions of MongoDB available for download. Choose the appropriate version based on your operating system (Windows, macOS, or Linux) and the preferred package format (e.g., MSI for Windows, DMG for macOS, or TGZ for Linux).
- Once you have selected the appropriate version and package format, click on the "Download" button next to it.
- If prompted, provide your email address and other required information to download MongoDB. Alternatively, MongoDB may provide a direct download link without requiring any personal information.
- The download process will begin, and the package file will be saved to your computer.
- After the download is complete, locate the downloaded package file and proceed with the installation based on your operating system: For Windows: − Double-click the downloaded MSI file to launch the MongoDB installer. − Follow the on-screen instructions to complete the installation. You can choose the installation directory and customize the installation options as needed. − Once the installation is finished, MongoDB will be installed on your Windows system. For macOS: − Double-click the downloaded DMG file to mount the disk image. − Open the mounted disk image and locate the MongoDB package file. − Double-click the package file and follow the on-screen instructions to install MongoDB on your macOS system. For Linux: − Extract the contents of the downloaded TGZ file to a desired directory using the following command (replace
Figure 13 Create a Shared Cluster To create a shared cluster, you need to follow these general steps:
- Determine the purpose and requirements: Understand the purpose of the shared cluster and identify the specific requirements such as computing power, storage capacity, and network bandwidth. This will help you choose the appropriate infrastructure and configuration.
- Choose a cluster management system: Select a cluster management system that suits your needs. Some popular options include Kubernetes, Apache Mesos, or Docker Swarm. These systems help manage the cluster's resources and enable scheduling and scaling of applications.
- Set up the infrastructure: Provision the necessary infrastructure to support your cluster. This typically includes physical or virtual machines (nodes) that will make up the cluster. Ensure that the infrastructure meets the requirements identified in step 1.
- Install and configure the cluster management system: Install the chosen cluster management system on each node of the cluster. Configure the system based on your requirements, such as network settings, authentication, and access controls.
- Deploy containerization or virtualization technology: Implement containerization (e.g., Docker) or virtualization (e.g., VMware, VirtualBox) technology on the cluster nodes. This allows you to encapsulate and isolate applications or services running on the cluster.
- Set up networking and communication: Configure networking among the cluster nodes, ensuring that they can communicate with each other. You may need to set up a private network, configure IP addresses, and define network policies to control access.
- Deploy shared services: Identify the shared services or applications you want to run on the cluster. These could include databases, storage systems, message queues, or other services required by the applications running in the cluster.
- Implement resource allocation and scheduling: Configure the cluster management system to allocate resources effectively and schedule applications or services across the nodes. This ensures efficient utilization of the cluster's resources.
- Monitor and manage the cluster: Set up monitoring tools and logging mechanisms to track the cluster's performance, resource usage, and application health. Implement automated scaling or load balancing mechanisms to handle changing workload demands.
- Establish access controls and security measures: Define access controls and security policies to protect the cluster and its applications. This may include authentication, authorization, encryption, and firewall configurations.
- Test and optimize: Conduct thorough testing to verify the cluster's functionality and performance. Identify any bottlenecks or areas of improvement and optimize the cluster configuration accordingly.
- Document and maintain: Document the cluster setup, configuration, and any customizations made. Regularly update the documentation as changes or enhancements are made to the cluster. Maintain the cluster by applying security patches, updating software versions, and monitoring for issues. Note: The specific steps and tools required may vary depending on the cluster management system and infrastructure you choose. It's recommended to refer to the documentation and guides provided by the chosen cluster management system for detailed instructions. Step 2: I will create username and password for my atlas account. Figure 14 Create Username and password
Then I copy the connection string then past it to mongoDB compass to connect to database Figure 16 Conection MongoDB
By those steps above now my web have a database
4. Render: Last, I am access to the web name Render.com this web will help me deploy my web on cloud and I will show you how to use deploy service on render.com by the step below: Page 17