Posts

Showing posts from October, 2020

Create High Availablity Architecture with AWS-CLI

Image
 We will go through step by step process of building a high speed architecture of aws. For instance, we have created a website hosted it using AWS. Now, it is stored in our region let say, Mumbai. But, if someone from America wants to access it, then it has to travel all the distance through the internet. Majorly effecting the speed of loading of our website. If it contains multiple medias, the latency will be higher. So, to overcome this a concept called content delivery network(CDN) is used. In simple terms, it means that creating a cache for global network in multiple regions. In aws this is achieved by a service called cloudfront. To see its working we must have done few things- Web Server is configured  in our EC2 instance . The folder which contains our website must be mounted on an ebs volume of aws ec2 . The static objects or media must be stored in s3 of aws . In our case the website that we are launching is  Here we are using the url of s3 to acess this ima...

Create and Upload static objects in aws S3 bucket using AWS-CLI

Image
Lets Create a bucket and upload our data in S3 service of AWS uding CLI. First we have to create a bucket. At First our S3 will be empty Use Command aws s3api create-bucket --bucket bucketname --region regionname --create-bucket-configuration LocationConstraint=regionname --acl public-read Note- Here we can use only aws s3 mb to create a bucket instead of region but if you want it to be in a specific region that command can be used. Note- Here we use --acl to make it public. If you want to give permissions afterwards the you can use options  aws s3api put-bucket-acl --bucket bucketname --acl public-read Here our bucket is created Now, Our bucket is created ans we have to upload objects in it. Here Our bucket is empty Use command aws s3api put-object --bucket bucketname --body objectdata --key objectname --acl public-read Here Our image is uploaded We can view it in our html page. Thank You  for reading. I would like to thanks  Vimal Daga  Sir . ( https://www.lin...

Mount Server file with EBS volume in aws-cli

Image
 Here we will attach our Server folder with EBS volume. By chance if our EC2 instance crashed then all the data including our website will be lost. To prevent this we will attach that folder with an EBS volume in EC2 service.  Note- Create and Attach an EBS volume with aws-cli To check the partitions use command fdisk -l Now enter into the hardisk and create partition, use command fdisk name Inside the hardisk type n and press enter (4times). After this type w   to save the changes. Now format the partition created, use command mkfs.ext4 name At last mount your folder with formated partition, use command mount name /folder Now create a html file in it. Lets check our server working or not. Thank You  for reading. I would like to thanks  Vimal Daga  Sir . ( https://www.linkedin.com/in/vimaldaga/ ) My Email — ayanchawlae@gmail.com My LinkedIn —   https://www.linkedin.com/in/ayanchawlae/

Configure Webserver in AWS EC2 instance.

Image
 After launching an instance in aws. We can make it a webserver to launch websites or other things. Launching EC2 instance using CLI To configure any instance a webserver there are 3 steps to follow 1. Download the server software. 2. Configuring it in our system. 3. Starting the server. Here we are using Linux instance so, the software will be httpd . To install it type command yum install httpd After that type y to install it. Now, It has been installed and to start the service, type systemctl start httpd Note-   This is temporary start as when you will shutdown your instance then next time again you have to start the service. To make it autostart whenever you launch your instance, instead of above command use  systemctl enable httpd Note- Here, the ipadress that is hosted is my public IP. Our instance has been started working as a server and client can view the files present in the folder /var/www/html  by using url http://public-ip/filename.html . For this we ha...

MNCs using AI/ML to grow

Image
 AI means Artificial Intelligence and ML means Machine Learning. ML is a subpart of AI. MNCs using AI 1. Salesforce- They have created an Einstien Recommendation engine. You can view the full story here. Full Story   They have also used ethicalAI in it.  Example of using Einstien prediction with Salesforce 2. Intel- Intel is using AI to create superfast chips called Nervana Data processing for artificial intelligence or machine learning applications is said to be slightly different from other types. Whatever the details, experts say that a new generation of chips being built will be more capable of running AI and machine learning apps. Still the largest chipmaker in the world, Intel clearly does not want to miss out on this nascent market, and has been active in acquisitions. One of the largest purchases Intel made in the past few years is the $400 million acquisition of Nervana Systems, which build chips for data centre servers. Nervana chips are said to ...