Posts

Showing posts from November, 2022

Installing MySQL instance in EC2

Image
 1. Create an EC2 instance and  Connect to your instance through SSH 2.  After connecting to the instance use the following commands in order to install MySQL Server sudo su cd ../.. sudo apt-get update sudo apt-get install mysql-server sudo mysql mysql > ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password by 'my-secret-password' ; sudo mysql_secure_installation 3.  Now again enter into MySQL session using the following commands and perform all the required tasks

Setup RDS MySQL server that is accessible over the internet

Image
 1. Search for RDS service in AWS console. 2. Create a database 3. Give appropriate name and password. 4. Make your Database publicly accessible. 5. Finally create database. 6. RDS successfully created. 7. Configure security groups. 8. O pen MySQL workbench and click on the plus symbol to create a new connection copy the host name from newly created database in RDS and use the master password for creation of database in connection settings 9.  Now perform all the required operation as you need from MySQL workbench

Read and Write Operations on Dynamo DB

Image
1. Search for DynamoDB on AWS console 2.  Give appropriate name and primary key for your table. 3. Then create table 4. Create a new item  5. Give appropriate values to the fields in table. 6. Succefully inserted.

Hosting a static website on AWS S3

Image
1. Search for S3 service in AWS Console. 2. Create a new bucket. 3. Give Proper name and region to host your website in. Then Create the bucket 4. Now we have to upload our website files to this S3 bucket. But before that keep your website files ready.  Click upload and select the files you want to upload.  Finally click on upload. 5. Once the files are uploaded, go back to bucket properties and find the static hosting option. 6. Enable the static hosting and give names of your index and error document files. Then click on save changes. 7. Now go back to your Bucket permissions, then edit the block public access settings. Uncheck " Block   all   public access " 10. Edit object ownership 11.  Now copy the public url for object and paste in web browser. The pages will be accessible.

Setting up Replication in S3 Bucket

Image
1. Go to aws console for S3 bucket and select the bucket you want to replicate. 2. Go to management tab and click on create replication rule. 3. Give name to replication rule 4. Apply rule to all objects in this bucket. 5. Create a new IAM role. 6. Choose another bucket replicate to.  Click on save.  Enable versioning for this bucket. 7.  Set job settings. Uncheck completion report. 8.  Replication rule was successfully set on bucket.

Create a VM and configure security groups with defined Inbound and Outbound rules like letting traffic through HTTP, ICMP, TCP,SSL(TLS).

Image
  1. Go to the AWS console and create a new EC2 instance. 2. Create a new security group. 3. Create an inbound rule on TCP, ICMP, HTTP, and SSH on my IP. 5. set the outbound traffic for HTTP, SSH, and ICMP.      6. create the security group. 7. use the same security group in the network settings and launch the instance.

Network Virtualization

Image
N etwork virtualization allows network functions, hardware resources, and software resources to be delivered independently of hardware, as a virtual network. It can be used to combine many physical networks, subdivide a network, or connect virtual machines  together.  It enables the grouping of nodes in a virtual network and also  enables the virtual network to share network resources. C ommunication between nodes in a virtual network without routing of frames is made possible. Network Virtualization software enables the virtual deployment of a full network and decouples network functions from the actual hardware. It enables the use of the fundamental physical network as the packet-forwarding backplane while enabling programmatic creation, provisioning, and management of networks completely within the software. Switching, routing, firewalling, load balancing, virtual private networks, and other physical network packets are bundled and supplied in software. The underlying ...

Hosting Web application using Amazon Elastic Beanstalk

Image
1.    Search for elastic beanstalk in AWS console. 2. Name  your application. 3.  Select node js as platform, then create application. 4.  Application creation under progress 5.  Successfully deployed 6.  Open the link