Posts

Showing posts from November, 2022

LAB MODAL 2

Image
  Create an EBS volume for the existing EC2 machine in the same region  Create an EBS volume for the existing EC2 machine in the same region   Step 1:  Head over to EC2 –> Volumes and create a new volume of your preferred size and type. Step 2:  Select the created volume, right-click and select the “ attach volume ” option. Step 3:  Select the ec2 instance from the instance text box as shown below Step 4:  Now, login to your ec2 instance and list the available disks using the following command. lsblk Step 5:  Check if the volume has any data using the following command. sudo file -s /dev/xvdf If the above command output shows “ /dev/xvdf: data “, it means your volume is empty. Step 6:  Format the volume to the  ext4  filesystem using the following command. sudo mkfs -t ext4 /dev/xvdf Alternatively, you can also use the xfs format. You have to use either ext4 or xfs. sudo mkfs -t xfs /dev/xvdf Step 7:  Create a director...

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

Image
  Create a VM and configure security groups with defined Inbound and Outbound rules like letting traffic through HTTP, ICMP, TCP,SSL(TLS). First create a key pair with .pem file format Now your ke y pair is created Next create an instance Next create an instance Now the instance is successfully been created Select the paticular instance and check the security group id and make a note of it Select the security group with the same instance id and click edit inbound rules. Add the rules such as TCP,HTTP,TLS AND ICMP The same process is done for outbound rules also allowing the traffic in both. Then click Save rules. Now our  VM has been created with the given security groups configured.

Create a S Bucket Replication in AWS.

Image
  Create a S Bucket Replication in AWS

HOSTING A STATIC WEBSITE ON AMAZON S3

Image
HOSTING A STATIC WEBSITE ON AMAZON S3   Step 1: Create a bucket Choose  Create bucket . Enter the  Bucket name Step 2: Enable static website hosting Step 3: Edit Block Public Access settings In the  Buckets  list, choose the name of the bucket that you want to enable static website hosting for. Choose  Properties . Under  Static website hosting , choose  Edit . Choose  Use this bucket to host a website . Under  Static website hosting , choose  Enable . In  Index document , enter the file name of the index document, typically  index.html Step 4: Add a bucket policy that makes your bucket content publicly available Step 7: Test your website endpoint Under  Buckets , choose the name of your bucket. Choose  Properties . At the bottom of the page, under  Static website hosting , choose your  Bucket website endpoint . Your index document opens in a separate browser window.

EX 7 b)Set up a RDS Mysql server in AWS

Image
  EX 7 b)Set up a RDS Mysql server in AWS step 1 : search for RDS in services and go to RDS.Click on Create Database in Create Database Section on Dashboard.Choose Standard Create to configure db Instance.Choose MYSQL in Engine options and Free Tier in Templates. step 2: Configure a DB instance name and credentials settings. step 3: In connectivity and security copy the host name step 4 : Install mysql workbench and setup new connection  step 5: Enter created password for testing the connection step 6 : In security group edit your inbound rules for connection step 7 : successfully connect your RDS in mysql server and create database step 8: create table for my database and insert data