MAHAVIR SWAMI INSTITUTE OF TECHNOLOGY SUMMER TRAINING REPORT on “Cloud Computing using AWS” Submitted in partial fulfillment of the requirement for the award of the degree of Bachelor of Technology In Department of Electronics and Communication Engineering Submitted to: Ms. Ruchika Doda Submitted by: Anushree Misra Assistant professor (E.C.E.) 50355102817 TABLE OF CONTENT Acknowledgement ………………………………………………………………....…......……….i Declaration …………………………………………………………………………………..……ii Preface…………....………………………………………………………………………..……..iii List of Figures………………………………………………………………….....………………iv Abbreviations used…………..…………………………...…………………….....…….…………v Abstract…………..…………………………………………………………….……………...….vi CHAPTER 1: About the company…..………………………….……………………….………..1 CHAPTER 2:Introduction………………………………………………………………....…...…2 2.1:Basic Introduction...............................................................................................................2 CHAPTER 3: Need for Cloud Computing......................................................................................3 3.1: Reasons...............................................................................................................................3 3.2: Flexibility………………………………………………..……………………………….3 CHAPTER 4:Characteristics of Cloud Computing………………………..…………………...4 4.1: Basic Characteristics .........................................................................................................4 CHAPTER 5:Services used in the project....................................................................................5 5.1: Lightsail………………………………………………………...……………………….5 5.2: WordPress………………………………………………………………....…………….5 CHAPTER 6: Steps Followed ......................................................................................................6 6.1 Sign up for AWS .....................................................................................................................6 6.2 Create a WordPress instance in Lightsail.............................................................................6,7 6.3 Connect your instance..............................................................................................................7 6.4 Sign In........................................................................................................................................7 6.5 Static IP, DNS, Additional steps.........................................................................................7,8 CHAPTER 7: Pros and Cons of Lightsail................................................................................9 CHAPTER 8: Results...............................................................................................................10 CHAPTER 9: Conclusion and Discussion................................................................................11 ACKNOWLEDGEMENT First and foremost, I wish to express my profound gratitude to Mr Narendra Sangwan, Director, Nucleus Computers Ltd, Delhi for giving me the opportunity to carry out my project at Nucleus Computers Ltd. No words can express my deep sense of gratitude to Mr Varun Jha, Er., without whom this project would not have turned up this way. My heartfelt thanks to him for his immense help and support, useful discussions and valuable recommendations throughout the course of my project work. I wish to thank my respected faculty and my lab mates for their support. Last but not the least I thank the almighty for enlightening me with his blessings. Anushree Misra Enrollment Number: 50355102817 i DECLARATION This report is based on the summer internship I have undergone in the premises of Nucleus Computers, Delhi from May 2020 to July 2020. I acquired the knowledge of Cloud Computing using AWS through the selfless efforts of the engineers and instructors of the organization. The training/internship was based on the concept of understanding the basics of AWS and their utilization in modern society. ANUSHREE ii PREFACE Industrial training is meant to expose the students of engineering to the actual industrial processes about which they have been studying in detail each semester. They have spent the last few years gaining the theoretical knowledge of the manufacturing and assembly processes. The training period has exposed us to the actual applications of the various studies. The training period has been very interesting where we got to know the final results of the processes and how the final results are analyzed and used in the practical life. Each field requires skillful handling and training given at each step which will help us in the long run. iii LIST OF FIGURES Fig 1.1: Basic Webpage...................................................................................................10 Fig 2.1: Admin View.......................................................................................................10 iv ABBREVIATION USED IT: Information Technology AWS: Amazon Web Services IP: Internet Protocol USD: United States Dollars SSH: Secure Shell DNS: Domain Name System SaaS, PaaS IaaS: Software as a Service, Platform as a Service, Infrastructure as a Service SSD: Solid State Drive VM: Virtual Machines EC2: Elastic Compute Cloud CMS: Content management system LMS: Learning management systems PHP: Hypertext Processor v ABSTRACT Cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining physical data centres and servers, you can access technology services, such as computing power, storage, and databases, on an as-needed basis from a cloud provider like Amazon Web Services (AWS). In Various labs, we learned about services such as Application Integration, Cost management, Business Applications, Compute, End User Computing, Management and Governance, Networking and Content Delivery, Security, Identity, Appliance, Storage. In this report, I did “web development using WordPress and Lightsail”. Lightsail is an easy-touse cloud platform that offers you everything needed to build an application or website, plus a cost-effective, monthly plan. If you’re interested in creating a personal or small business blog, chances are that you’re going to use WordPress. vi CHAPTER 1 ABOUT THE COMPANY (NUCLEUS COMPUTERS LTD.) Nucleus Computers Limited is a Non-govt company, incorporated on 10 Jan 1991. It's a public unlisted company and is classified as a company limited by shares. Company's authorized capital stands at Rs 5.0 lakhs and has 100.0% paid-up capital which is Rs 5.0 lakhs. Nucleus Computers Limited last annual general meet (AGM) happened on 30 Sep 2017. The company last updated its financials on 31 Mar 2017 as per Ministry of Corporate Affairs (MCA). Nucleus Computers Limited is majorly in Business Services business from the last 29 years and currently, company operations are active. Company is registered in Delhi (Delhi) Registrar Office. Nucleus Computers Limited registered address is B-402, NAVRATTAN APARTMENTS, PLOT NO. 7A, SECTOR-23, DWARKA NEW DELHI DL 110075 IN. 1 CHAPTER 2 INTRODUCTION Cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining physical data centres and servers, you can access technology services, such as computing power, storage, and databases, on an as-needed basis from a cloud provider like Amazon Web Services (AWS). Cloud computing is the delivery of on-demand computing services -- from applications to storage and processing power -- typically over the internet and on a pay-as-you-go basis. Rather than owning their own computing infrastructure or data centres, companies can rent access to anything from applications to storage from a cloud service provider. One benefit of using cloud computing services is that firms can avoid the upfront cost and complexity of owning and maintaining their own IT infrastructure, and instead simply pay for what they use when they use it. Cloud computing underpins a vast number of services. That includes consumer services like Gmail or the cloud back-up of the photos on your smartphone, though to the services which allow large enterprises to host all their data and run all of their applications in the cloud. Netflix relies on cloud computing services to run its video streaming service and its other business systems too, and have a number of other organisations. A fundamental concept behind cloud computing is that the location of the service, and many of the details such as the hardware or operating system on which it is running, are largely irrelevant to the user. It's with this in mind that the metaphor of the cloud was borrowed from old telecoms network schematics, in which the public telephone network (and later the internet) was often represented as a cloud to denote that the just didn't matter -- it was just a cloud of stuff. This is an oversimplification of course; for many customers location of their services and data remains a key issue. 2 CHAPTER 3 NEED FOR CLOUD COMPUTING Several reasons are there why we need cloud computing today! Here are some of the reasons: One of the major reasons why a huge number of small scale and large scale business sectors from all over the world are using cloud today is because of the tremendous effect on cost-saving. Yes, Cloud computing has made a drastic change in the reduction of hardware and software cost and other server resources as well We can run all our workload data of applications and processes online over the internet remotely instead of using physical hardware and software Day to day issues related to server maintenance or installation of software/ hardware or whether it is a renewal of a license, all those factors are undertaken via cloud computing service providers With the help of the cloud, we can access any data, applications whenever and wherever we want to, over the internet. 100 of pre-configured applications can be install and update Cloud not only handles data storage remotely but it also protects and recovers all crashed or lost data, so we don’t have to worry about crashed or loss of data, it gives you high security Flexibility is achieved in the following ways when using cloud computing: Scalability; Cloud computing is the best option for businesses with fluctuating workloads since cloud infrastructure scales depending on the demands of the business. Tools selection; Cloud computing allows businesses to select specific prebuilt tools and features to derive solutions tailored to their specific needs. Cloud options; Cloud computing offers private cloud, public cloud and hybrid cloud solutions each with different features. Organizations can choose these options depending on what best serves their needs. Control choices; Businesses can determine their level of control with as-a-service options offered by the cloud provider. These options include SaaS, PaaS, and IaaS. Increased collaboration; With the capabilities of cloud computing, individuals from different places can collaborate in business projects without necessarily having to meet. 3 CHAPTER 4 CHARACTERISTICS OF CLOUD COMPUTING ● On-demand self-service: A consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with each service provider. ● Broad network access: Capabilities are available over the network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, tablets, laptops and workstations). ● Resource pooling: The provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to consumer demand. There is a sense of location independence in that the customer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state or datacenter). Examples of resources include storage, processing, memory and network bandwidth. ● Rapid elasticity: Capabilities can be elastically provisioned and released, in some cases automatically, to scale rapidly outward and inward commensurate with demand. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be appropriated in any quantity at any time. ● Measured service: Cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth and active user accounts). Resource usage can be monitored, controlled and reported, providing transparency for the provider and consumer. Cloud Computing has numerous amounts of benefits which are helping both hosts as well as the customer. A host consists of various benefits too which benefit the customers. There are myriads of security features which is a positive point along with it the access time is very low and one can easily upload and download data quickly. The company nowadays is in great need of the data storage facility and the Big Data companies provide them very easily. 4 CHAPTER 5 SERVICES USED IN THE PROJECT Lightsail: Amazon Lightsail is the easiest way to get started with Amazon Web Services if you just need instances (virtual private servers). Lightsail includes everything you need to launch your project quickly — instances, managed databases, SSD-based storage, backups, data transfer, domain DNS management, static IPs, and load balancers — for a low, predictable price. Lightsail automatically configures networking, access, and security environments, taking the guesswork out of launching your server. Amazon Lightsail is an Amazon cloud service that offers bundles of cloud compute power and memory for new or less experienced cloud users. Amazon Web Services (AWS) packages memory, processing, storage and transfer into virtual machines (VMs) for customers to purchase, and then releases that compute capacity as Amazon Elastic Compute Cloud (EC2) instances. Amazon Lightsail derives its compute power from an EC2 instance and repackages it for customers who are new or inexperienced with cloud. AWS designed the Lightsail service to make it simpler to understand and purchase rudimentary compute capacity. AWS also manages the infrastructure, which shares the same uptime and global regions and availability zones as EC2, and makes it available with a few mouse clicks. WordPress: WordPress is one of the most popular blogging platforms in the world, used to power 32.3% of all websites on the internet according to a recent survey. And it is not hard to see why: WordPress is very easy to use, comes with thousands of extensions and themes, is completely free, and is open source. Due to its robust features, many of the top brands use WordPress to power their websites including Time Magazine, Facebook, Disney, and more. It is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes. WordPress was originally created as a blog-publishing system but has evolved to support other types of web content including more traditional mailing lists and forums, media galleries, membership sites, learning management systems (LMS) and online stores. WordPress is used by more than 60 million websites, including 33.6% of the top 10 million websites as of April 2019, WordPress is one of the most popular content management system solutions in use. 5 CHAPTER 6 STEPS FOLLOWED Step 1: Sign up for AWS Step 2: Create a WordPress instance in Lightsail ● ● ● ● Sign in to the Lightsail console. On the Instances tab of the Lightsail home page, choose Create instance. Choose the AWS Region and Availability Zone for your instance. Choose your instance image. 1. Choose Linux/Unix as the platform. 2. Choose WordPress as the blueprint. ● Choose an instance plan. A plan includes a low, predictable cost, machine configuration, and data transfer allowance. You can try the $3.50 USD Lightsail plan without charge for one month (up to 750 hours). AWS credits one free month to your account. ● Enter a name for your instance. ● Choose Create instance. Step 3: Connect to your instance via SSH and get the password for your WordPress website The default password to sign in to the administration dashboard of your WordPress website is stored on the instance. Complete the following steps to connect to your instance using the browser-based SSH client in the Lightsail console, and get the password for the administration dashboard. ● On the Instances tab of the Lightsail home page, choose the SSH quick-connect icon for your WordPress instance. ● After the browser-based SSH client window opens, enter the following command to retrieve the default application password: cat $HOME/bitnami_application_password 6 ● Make note of the password displayed on the screen. You use it later to sign in to the administration dashboard of your WordPress website. Step 4: Sign in to the administration dashboard of your WordPress website Now that you have the password for the administration dashboard of your WordPress website, you can sign in. In the administration dashboard, you can change your user password, install plugins, change the theme of your website, and more. Complete the following steps to sign in to the administration dashboard of your WordPress website. ● In a browser window, go to http://PublicIpAddress/wp-login.php In the address, replace PublicIpAddress with the public IP address of your WordPress instance. You can get your instance's public IP address from the Lightsail console as shown: ● In the Username or Email Address box, enter user ● In the Password box, enter the default password obtained earlier in this tutorial ● Choose Log in. You are now signed in to the administration dashboard of your WordPress website where you can perform administrative actions. For more information about administering your WordPress website, see the WordPress Codex in the WordPress documentation. Step 5: Create a Lightsail static IP address and attach it to your WordPress instance The default public IP for your WordPress instance changes if you stop and start your instance. A static IP address, attached to an instance, stays the same even if you stop and start your instance. Complete the following steps to create a static IP address and attach it to your WordPress instance. ● On the Instances tab of the Lightsail home page, choose your running WordPress instance. ● Choose the Networking tab, then choose Create static IP. 7 ● The static IP location and attached instance are pre-selected based on the instance that you chose earlier in this tutorial. ● Name your static IP, then choose Create. Step 6: Create a Lightsail DNS zone and map a domain to your WordPress instance Transfer management of your domain's DNS records to Lightsail. Complete the following steps to create a Lightsail DNS zone and map a domain to your WordPress instance. ● On the Networking tab of the Lightsail home page, choose Create DNS zone. ● Enter your domain, then choose Create DNS zone. ● Make note of the name server addresses listed on the page. ● You add these name server addresses to your domain name’s registrar to transfer management of your domain’s DNS records to Lightsail. ● After management of your domain’s DNS records are transferred to Lightsail, add an A record to point the apex of your domain to your WordPress instance, as follows: 1. In the DNS zone for your domain, choose Add record. 2. In the Subdomain box, enter an @ symbol to map the apex of your domain (such as example.com) to your instance. The @ symbol explicitly symbolizes that you’re adding an apex record. It is not added as a subdomain. 3. In the Maps to box, choose the static IP that you attached to the WordPress instance in the previous step of this tutorial. 4. Choose the save icon. Allow time for the change to propagate through the internet's DNS before your domain begins routing traffic to your WordPress instance. 8 CHAPTER 7 PROS AND CONS OF USING LIGHTSAIL AWS Lightsail is a brilliant service from Amazon that helps you get started with the AWS infrastructure quickly. Lightsail offers servers at a fixed monthly price along with networking and managed database options embedded into an easy to use interface. The core selling points of Lightsail are its monthly pricing model and an easy-to-use interface. If you have used EC2 before, you might be aware that EC2 prices can spiral out of control (if you are not careful). Lightsail offers a fixed pricing model along with other options like managed databases and static IP addresses. Lightsail offers all core configuration options as simple clickable choices that usually take hours for a developer or system administrator to set up. This is an important value proposition, especially for beginners and startups who cannot afford a professional to help them create and configure a server for their application. Lightsail is not recommended for enterpriselevel workloads due to its lack of auto-scaling capabilities, but it is definitely a great choice for hosting WordPress blogs, API servers, and staging environments. Unlike EC2 or AWS lambda which can scale based on incoming requests, Lightsail can only work with the computing power that you have purchased. Even though you have the option to move to a larger instance on Lightsail, it does not happen automatically. Use Lightsail only for applications where you can afford downtime. If your application is used by thousands of users on a regular basis, it is recommended that you stick to EC2. 9 CHAPTER 8 RESULTS Basic Blog made by LightSail using WordPress Admin View of the Blog 10 CHAPTER 9 CONCLUSION In this project, we looked at the basics of cloud computing. We also looked at the pros and cons of hosting your website with Lightsail. We also saw exactly how to install, configure, and launch a WordPress website using Amazon’s cloud platform. Using Lightsail, you can create a website even if you have zero previous AWS experience. However, there’s no such thing as a one-size-fits-all hosting provider, so there are some drawbacks that mean Lightsail may not be the best choice for your particular website. But, all in all, for a small business or a starting blogger, Lightsail is very apt. 11