Skip to content

This repository includes two folders mandatory_task and extra_task. mandatory_task folder icnlude the steps of creation aws_ec2 instances and installation of apache server. extra_task folder includes the steps of creation VPC ,CloudFront file and bash script.

Notifications You must be signed in to change notification settings

uvaysjon-coder/CloudTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mandatory Task

1.I’ve signed up to AWS

alt text

2.I’ve created budget and alert

alt text

3.I’ve created two EC2 Instance t2.micro with different operating systems (AmazonLinux/Ubuntu)

alt text

4.I’ve connected to Ubuntu and Amazon Linux Servers through Putty using Public Ip and hostname

alt text alt text

5.After that I’ve checked ping and SSH connection

alt text alt text

And connected between two instances through ssh

I’ve used private key

And give permission for the files

chmod 400 Ubuntu_Server.pem for Ubuntu Server

chmod 400 Amazon_Linux_Server.pem

6.I’ve installed Apache Server in Amazon_Linux_Server

alt text

7.I’ve created web page with the text “Hello World” and additional information about OS version, free disk space, free/used memory in the system and about all running processes

I’ve used commands:

1) uname -a

2) df -h

3) free -h

cd /var/www/html/

touch index.html

sudo nano index.html

alt text

8.And I’ve checked through my browser http://18.234.143.186

alt text

Extra Task

1.Firstly I’ve created VPC by giving name my_network_vpc

alt text

2.After that I’ve created Internet Gateway and attached to my_network_vpc

alt text alt text

3.I’ve created two public Subnets

alt text alt text

4.After that I’ve enabled auto-assign Public IP

alt text

5. I’ve created Routing table for Public subnets by giving destination IP address 0.0.0.0/0 to my_network_IGW

alt text

6.After that I’ve created two Private Subnets

alt text

7.I’ve created routing Table for Private subnets and associated

alt text

8.I’ve created Database Subnet A and Database Subnet B

alt text

9.I’ve created Route Table for Database Subnets and associated them

alt text alt text

10.After that I’ve Created NAT Gateway for which gives cloud resources without public IP addresses access to the internet without exposing those resources to incoming internet connections. And assigned Elastic IP. Also separated route tables and associated them with Private Subnets.

alt text

11.Then I’ve created Security group SSH_Acces_For_Bastion

alt text

12.From Create Auto Scaling Group created a new lunch configuration for Bastion so instances can communicate each other

13.After that i've terminated and Created two instances with VPC which I've created my_network_vpc and checked ping and ssh connection

14.I wrote BASH script for installing web server (nginx/apache) and creating web pages with text “Hello World”, and information about OS version link

15.To Run step.6 without “manual” EC2 SSH connection I've cused Cloud Front and created yaml file to Automate tasks link

16.I've created S3 bucket uvays-cloudfront-bucket and uploaded scrrenshots of my Tasks so in order to make it public I wrote policy JSON

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::uvays-cloudfront-bucket/*"
        }
    ]
} 

About

This repository includes two folders mandatory_task and extra_task. mandatory_task folder icnlude the steps of creation aws_ec2 instances and installation of apache server. extra_task folder includes the steps of creation VPC ,CloudFront file and bash script.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published