Skip to content

kalyani33/aws-architect-for-real-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

aws-architect-for-real-world

AWS Global Infrastructure

image

IAM

  • IAM is used to manage AWS users and their access to AWS accounts and Services
  • Good way to think about groups and roles:
    • Groups are logical grouping of users with the same permissions;
    • Roles are logical group of AWS Services with the same permission (i.e. Users can be assigned to a group which can have policies, just like AWS services can be assigned to a role which can have policies).

image

EC2

Security Groups

  • A security group is a set of firewall rules that control the traffic for your instance. Add rules to allow specific traffic to reach your instance.

User Data

image

Configure an AWS Web Server

  • SSH into ec2 machine
sudo yum update -y
sudo yum install httpd -y
sudo systemctl status htppd
sudo systemctl start httpd
sudo systemctl status httpd
sudo systemctl enable httpd
cd var/www/html
sudo su
echo "<h1>tag Hello welcome to AWS learning</h1>" > index.html
  • Now in browser type the public ip address/public DNS and voila , your server is serving now

Stress Testing on ec2

Status Checks

  • System check:AWS related infrastructure issues
  • Instance Check:Issue related to my ec2 application
  • Create an Status check alarm in Status Check tab
  • Raise an alarm when CPU Utilization is >= 50% constantly for 5 mins
  • If the alarm is triggered, take Terminate action on EC2 instance
  • Now connect to ec2
  • sudo amazon-linux-extras install epel -y
  • sudo yum install stress -y
  • stress --help -- for help
  • stress --cpu 7 ----> applying stress on my ec2 instance

image

image

image

image

Instance Metadata

  • Just a information about your machine
  • Instance metadata is data about your instance that you can use to configure or manage the running instance.
  • Instance metadata is divided into categories, for example, host name, events, and security groups.
  • We can view/get the metadata only winthin the instance

image

image

- More about that at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

Elastic IP Addresses

image

image

- Can be associated to "Instance" or "Network Interface"

Elastic Network Interfaces

  • Flow logs can capture IP traffic flow information for the network interfaces associated with your resources. You can create multiple subscriptions to send traffic to different destinations.

Create Custom Image

  • An image (also referred to as an AMI) defines the programs and settings that are applied when you launch an EC2 instance. You can create an image from the configuration of an existing instance.
  • Add you can start using your image when creating a instance

image

Placement Groups

  • Determines how the instances are placed on the underlying hardware.
  • Cluster (low network latency,low availability)
  • Rack crashes => All EC2 instances fail
  • Partition (multiple partitions with low network latency)
  • Spread (avoid simultaneous failures)

image image image

EC2 Pricing

VPCs

image

image image

Internet Gateway

  • Allows communication between your insatnces in your VPC and the internet
  • Your default VPC already has an IGW attached
  • Internet Gateway is to be attached to VPC to enable communication with internet
  • Only 1 IGW can be attached to a VPC at a time
  • An IGW cannot dettached from a VPC while there are active aws resources in the VPC(such as ec2 instance or RDS database)

Route Tables

  • Route table contains a set of rules called 'Routes' that are used to determine where internet traffic is redirected

NACLs

image

image image

Subnets

image

Public vs Private Subnets

image image

CIDR

  • Classless Inter Domain Routing
  • 0.0.0.0/0 - means all IP

Security Groups vs NACLs

image

S3

  • Global service
  • Store and retrieve any amount of data from anywhere
  • Buckets are containers for data stored in S3.

image image

image

Storage Classes

  • Storage classes has varying attributes that dictates things like:
    • Storage Cost
    • Object Availability
    • Object Durability
    • Frequency of access to the object
  • Each object must be assigned to a storage class(standard is default SC)

image

#### S3 Object Lifecycle - Lifecycle policies,automates the process of changing the files storage class to different storage class(or deletion) ,based on time intervals to meet usage needs and keep the storage cost as low as possible

Useful Links

Links
AWS Essentials by Linux Academy
Notes

About

documenting my aws hands on practice

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published