Saturday, September 14, 2024

1. AWS session 1 - notes

 

AWS – SESSION 1 –

 

 

Session 1 Agenda:

1. Why AWS and what are market expections?

AWS => DevOps => Azure => Kubernetes => GCP/Python

2. Syllabus & Dependencies (Basic Linux or Windows)

3. Creating a AWS Account and validate it?

4. Enable Multi Factor Authentiction (MFA)

4. Understand free trial in AWS?  27:00

6. Deploy a Ubutu Linux Machine for practice?

7. Fee Details and Q/A.

 

ashwinboosani@outlook.com

kamasaniyashwanth2004@gmail.com

 

steps

1.       Account creation

2.       To check if your account is created properly or not create a volume first

3.       Validate account step

4.       EC2 – VOLUME creation

a.       (If you can create volume , it means your account is created successfully )

b.       EC2 > EBS > volumes > Create volume

c.       Volume type  : Gp2

d.       Size : 1 gb

e.       >> create volume

5.       Now , delete the created volume

6.       Next

7.       MFA authentication

8.       Right top > username > security credentials

a.       >> Assign MFA device

b.       > scan qr code >> add passcode 2 time

c.       Done

9.       ( 30 : 00 ) Free trial understanding ( Rs. 1000 )

a.       Free supported

                                                               i.      Virtual machines > t2.nano & t2.micro ( 1 cpu & 1 gb RAM  )

                                                             ii.      EBS Volumes  = 30 GB

                                                           iii.      S3 = 5 GB

b.       Not supported

                                                               i.      Firewall , natgateway , VPG , TGW (Transit gateway ) , VM T2 medium

                                                             ii.      T2 large

10.    Deploy a Ubuntu Linux Machine for practice?

a.       VPC ,SUBNETS , RP (Later classes )

11.   How to Create demo VPC (33:00)

a.       Services > vpc

b.       Create VPC >

                                                               i.      vpc and more

                                                             ii.      Autogenerate : yes

                                                           iii.      Name : AWSB63

                                                           iv.      IPV4 : 10.62.0.0/16

                                                             v.      IPV6 : NO IPV6

                                                           vi.      No of availabilty zones : 1

                                                          vii.      No of Public : 1

                                                        viii.      No of Private : 0

                                                            ix.      Public subnet : 10.62.1.0/24

                                                             x.      Nat gateway : none

                                                            xi.      Vpc endpoint: none

                                                          xii.      DNS : YES , YES

c.       >> CREATE VPC >>

12.   Create EC2 Instance and deploy it in VPC 

a.       (To create a linux instance )

b.      Services > EC2  > instances

c.       Launch instance >>

                                                              i.      Name : Awsb63-Demoserver

                                                             ii.      Quickstart :  ( select )  ubuntu  (Ubuntu 22.04 LTS SSD volume)

                                                           iii.      >>   

                                                           iv.      Instance type : t2 micro  ( t3 micro since t2 micro not listed )

                                                             v.      Key pair > create a new key pair

1.       Keypair name : AWSB63

2.       RSA

3.       Private key : .ppk

4.       >> create key pair

5.       Save that file in local pc

                                                           vi.       Network settings section > edit

1.       Vpc :

2.       Subnet

3.       Auto assign public ip : enable

4.       Firewall :

a.       Create security group

b.       security group name : AWSB63-ALLOWALLTRAFFIC

5.       Security group rules

a.       Type :  all traffic

b.      Source : anywhere

                                                         vii.      >> launch instance

                                                        viii.      Successfully initiated

d.       Go to EC2 > INSTANCES

                                                              i.      FIND > Awsb63-Demoserver

                                                             ii.      Instance state : running .

e.       Download and run > PUTTY

1.       Now to connect to this instance you need ‘PUTTY’ tool

2.       Google > putty download >

3.       second link > chiark greenend

a.       https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

b.      0.81 >    SSH & TELNET CLIENT .> alternative binary > putty .exe >  64 bit x86

c.       Download

d.      Open putty >

                                                                                                                                      i.      hostname > ubuntu@

                                                                                                                                     ii.      ssh

                                                                                                                                   iii.      saved sessions > awsb63-ubuntu

                                                                                                                                   iv.      windows appearance >

1.       font size : 28

                                                                                                                                     v.      connection

1.       seconds between : 5

2.       ssh > keys

a.       private key > browse > key pair (from local pc)

                                                                                                                                   vi.      save > open

                                                                                                                                 vii.      linux opens as CLI

1.        # sudo su –

2.        # ls =ltr

3.       # df -h

4.       # uname -a

5.       # ls -alr

                                                                                                                               viii.      Install nginx

1.       # apt install -y unzip nginx

2.       # curl ipconfig.io

3.       44.195.30.34

                                                                                                                                   ix.      Copy and paste ip in browser to open nginx

1.       44.195.30.34

2.       Welcome to nginx

                                                                                                                                     x.       Linux prompt type > nano command to open html editor

1.       # nano /var/www/html/index.nginx-debian.html

2.       <h2> Hello harish welcome </h2>

3.       Save >> ctrl + o

4.       Exit >> Ctrl + x

5.       Now again open browser and paste ip

6.       You can see > Hello harish welcome.

                                                             ii.      Now , to stop the EC2 instance ,

1.       Select  the instance , right click “Terminate”

13.   Google > linux frequently used commands >

a.       > digital ocean

 

--------------------end --------------------------------------

                                                                                                                         

No comments:

Post a Comment

2) linux commands - Frequent

  Top 50 Linux Commands You Must Know as a Regular User ls  - The most frequently used command in Linux to list directories pwd  - Print wor...