Monday, July 6, 2020

AWS -What is cloud

What is cloud:

100 windows server-
license -10k


2 days/2 months
time
storage
license


whatever we are following to create any service in on-premises, the same steps follow in cloud

All organisation moving towards cloud
No initial investment

use and Pay model

No extra hassels
Amazon workspace

Creating EC2 instance:

1)Created EC2 steps in AWS

2)PUTTYGen-->load the private key file-->save as ppk file

3)Open putty-->put your ssh-->add the ppk file

4)open your ip address through Putty

5)sudo su ~  or sudo su root

6)apt-get update

7)apt install apache2

8)service apache2 start

9)service apache2 status

10)cd /var/www/html

11)vi index.html--> change something

12)put your ipaddress in the browser, you can see your changes



aws console---> aws.amazon.com

Free Tier- 12 months Free Access

New user-creating the account
old user-New mail id,New Debit card/credit card,Mobile Number

Support Plan Basic(Free)
             Business
             Enterprise

Phone number -Verification(suggested to use Mobile Number)
Payment(CC/DB Card)-verification


Region--->

    Availability Zones(min 2 to max 6 zones)

Latency->The time taken to intiate the process(2s) (4s)

Charges
-------
Time
type (ec2-1 core 1GB,256 core-1920GB RAM)
Network- 2 GB Video-100 persons vs 2GB video-100,000

AWS monthly calculator
AWS Pricing calculator

Purchasing Options
-------------------
On-Demand
Reserved  -->Company usage
Spot Instance

Region-which region
-----------------------
100 machine-purchasing-On-demand(default)
                      -Reserved- 3 years/1 year-2$(advanced pay)


USA company -->End User Europe-->Chennai

Instance Type
General Purpose
Compute optimized
GPU Instance
Mempry Optimized

T2/T3 unlimited -1CPU-1GB RAM

Real Time-Tag
-------------------------
Security Group->Inbound /Outbound Access
49.207.141.49/32- single machine
49.207.14.20/24-
49.207.14.20/16
49.207.14.20/8


yum update -y
yum install httpd
systemctl start httpd
systemctl enable httpd

cd /var/www/html
vi index.html


Meta data http://169.254.169.254/latest/meta-data

dynamic
-public ,private IP
Per account 5 static (Elastic IP

user data:
#!/bin/bash
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
echo "hello">/var/www/html/index.html

Template:


USA company -->End User Europe-->Chennai

Instance Type
General Purpose
Compute optimized
GPU Instance
Memory Optimized

T2/T3 unlimited -1CPU-1GB RAM

Real Time-Tag
-------------------------
Security Group->Inbound /Outbound Access
49.207.141.49/32- single machine
49.207.14.20/24-
49.207.14.20/16
49.207.14.20/8


yum update -y
yum install httpd
systemctl start httpd
systemctl enable httpd

cd /var/www/html
vi index.html


Meta data http://169.254.169.254/latest/meta-data

dynamic
-public ,private IP
Per account 5 static (Elastic IP

user data:
#!/bin/bash
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
echo "hello">/var/www/html/index.html

Template:































No comments:

Post a Comment

Python Challenges Program

Challenges program: program 1: #Input :ABAABBCA #Output: A4B3C1 str1="ABAABBCA" str2="" d={} for x in str1: d[x]=d...