GithubHelp home page GithubHelp logo

aws-sa-tutorial's Introduction

aws-sa-tutorial

Aws Solution-Architect-Tutorial

How to install Web-server

sudo yum install httpd -y

sudo service httpd start
sudo service httpd status

sudo /var/www/html/
sudo vim  /var/www/html/index.html

sudo chkconfig httpd on 

instance meta-data


sudo curl http://169.254.169.254/latest/meta-data/public-ipv4
curl http://169.254.169.254/latest/
curl http://169.254.169.254/latest/meta-data
curl http://169.254.169.254/latest/meta-data/ami-id

How to Create a VPC and its component

1.	Create vpc
2.	Create pub-subnet
3.	Create private-subnet
4.	Create IGW for pub subnet
a.	And attached to the VPC
5.	Create Public Route table 
a.	And attached the IGW with destination 0.0.0.0/0
b.	Associate the Public Subnet
6.	Create NAT gw for private subnet
a.	Create elastic ip 
7.	Create private Route table
a.	Attached Nat-GW
b.	Associate the Private Subnet

8.	Create DHCP Option Set
9.	Create EndPoint 

How to create Auto Scaling group and Launch Configuration 
from [email protected] to All Participants:
1.    Create an instance in a public subnet & connect 
2.    Update & Install the Apache 
3.    Start the service 4.    Insert the code in AWS CLI 
5.    Ensure correct port (Launch Wizard 1 – Inbound Rule – Add HTTP – Anywhere) 
6.    Create Image (Instance – Action – Image & template – Create AMI) 
7.    Create Launch Configuration (Name – AMI – Choose Instance type – IAM Role if any – root volume – security group – key pair – Create) 
8.    Create Auto Scaling Group (Name – select Launch configuration – Select VPC – Subnet – Load balancer – Health Check – Group Size – Capacity – Create Auto Scaling Group 
9.    Go to EC2 – Instances – Auto Scaling Groups must be initializing 
10.    Copy the Public IP and run it in the browser to verify

->create an instance ->connect with your instance ->make sure port http 80 should open. if not go to security group->inbound group and add HTTP porta 80 and select anywhere  ->install apache ->start service(service https start)-> start httpd.service->chkconfig httpd on ->vim /var/www/html/index.html ->paste & save your content -> :wq ->select and instance  ->click on action & select image and template  ->create a image ->select auto scaling & click launch configuration  ->give a name & select AMI ->select an existing key pair and click launch configuration  ->now select auto scaling groups & click on auto sclaing group ->give an name ->switch to auto scaling group ->select launch configuration and click on next ->choose instance launch options ->select vpc and AZ ->click on next ->select No balance loader ->click on next and select group size and scaling policies ->give desires,min,max capicity  ->click on next and click on auto scaling group ->now we can see all auto scaling groups in list view

Varun's Blog

References

  1. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
  2. https://aws.amazon.com/certification/certified-solutions-architect-associate/
  3. https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/connecting_to_windows_instance.html
  4. https://en.wikipedia.org/wiki/Hypervisor
  5. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
  6. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
  7. https://www.w3schools.com/html/default.asp

aws-sa-tutorial's People

Contributors

manikcloud avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.