Amazon WebServices:
Day1:
IAM
VPC
EC2 - LB - AS
RDS
Day2:
MicroServices
AWS Lambda
AWS S3 - SWH
AWS Dynamodb
AWS API Gateway
AWS Route53 - DNS
Day3:
AWS CloudFormation
AWS BeanStalk - PaaS
AWS CloudWatch
----------------------------------------------------
AWS:
1) Scalability
2) Cost
3) HA
4) Durability
Cloud Model:
1) Public Cloud
2) Private Cloud
3) Hybrid Cloud
4) Community Cloud
Cloud Services:
1) IaaS (Prod)
- AWS/Azure/GCP/Oracle
2) PaaS (Dev/test)
- Heroku, CloudFoundary, BeanStalk
3) SaaS
- gmail, fb, whatup, salesforce
----------------------------------
AWS Global Infrastructure:
1) regions:
geographic location
mumbai - ap-south-1
2) Availability Zones:
data centers
mumbai - mumbai, new delhi
1) HA
2) Reliable
3) Edge Network Locations: (CDN)
- cache static files - html, css, js, logs, video, audio, pdf, excel,
zip.,............
- Execute Lambda - BL
------------------------------------------
230 + Services:
Root Account
- No Access Key, Secret Access Key
MFA - Root Account & All Users
1) AWS Management Console (MC)
https://console.aws.amazon.com/
email, password - Root Account
- Full Access
Create User:
https://vinsys101.signin.aws.amazon.com/console
username, password
2) AWS CLI (CLI)
access key, secret access key
Install AWS CLI Tools:
aws help
aws configure
aws iam create-user --user-name Bob
- AWS CLI Commands Documentation
3) AWS SDK (SDK)
access key, secret access key
-----------------------------------------
AWS Administrator (MC, CLI)
AWS Developer (SDK)
AWS Devops Engineer (CLI, SDK)
AWS Architect Associate (MC, CLI)
AWS Architect (MC)
AWS Security (MC, CLI)
AWS Networking (CLI)
AWS Redshift Developer (SDK)
AWS Redshift Administrator (MC, CLI)
AWS SysOps (MC)
-----------------------------------------
AWS IAM: (Identity Access Management)
- User - Add -> Group - Attach -> Policy
Multi Factor Authentication
- Google Authenticator
-----------------
IAM Roles:
- Role - Attach -> Policy
- generate AK, SAK
- get META-DATA - 169.254.169.254
- RETAIN - 15 minutes
-------------------
Networking Services:
VPC: (Virtual Private Cloud) - Region
- virtual router
- 10.0.0.0/16 - 65535
-----------------
Subnet: (per AZ)
- group of IP Address
Two types of Subnet:
1) Public Subnet
- igw
2) Private Subnet
- no igw
Route Tables: (per subnet)
- routes
Internet Gateway
Steps:
1) Create your vpc
2) Enable DNS HostNames
3) Create a Internet Gateway
4) Attach IGW to VPC
5) Create a Route Table
Public_Route_Table
6) Edit Routes - Add Route of IGW
7) Create a Route Table
Private_Route_Table
8) Create a Public Subnet - AZ - A
9) Edit Route Table - Add the Public Route Table
----------------------------------------
http://collabedit.com/xjbuf
----------------------------------------
Computing Service:
EC2 (Elastic Cloud Compute):
AMI - Amazon Machine Images
Steps:
1) Create a Security Group
- firewall for Instance
2) Create a Key Pair
- RSA Private Key
3) Launch an EC2 Instance
--------------------------------
AWS RDS:
- abstraction for database
- mariadb, postgres, oracle, sqlserver, mysql, Aurora
Features:
1) HA
- Multi-AZ - Master - Slave (Sync)
2) Automatic Backup - Schedule
3) Maintainance Window
4) Restore point-in-time
5) Read Replica (Async) - Another Region - 10
6) Automatic updates
Steps:
1) Create a Security Group
2) Create a Subnet Group
3) Launch an Database Instance
----------------------------------------------
AWS Lambda:
lets you run code without thinking about servers.
nodejs, python, java, .net 2.0, go
2 Approach:
1) Pull Approach
2) Push Approach
-----------------------
AWS S3: (Simple Storage Service) - Global
- unlimited
- http - PUT - Mutlipart - 5GB
- Object Based Storage
- internet
Features:
1) Auto Replication - Region
2) HA
3) Lifecycle management
4) Versioning
5) Static Website Hosting
6) CDN
7) Encryption
8) Logs
Terminilogies:
1) Bucket
2) Object
3) Key
3 flavours:
1) S3
HA - 99.999999999%
Durability - 99.99%
2) RRS
HA - 99.99%
3) Glacier (0.25 USD)
HA - 99.999999999%
Durability - 99.99%
4-8 Hours
------------------------------------------------
S3
Bucket - No Access
- ListBucket, WriteObject
Object - No Access
- Read Object
------------------------------------------------
1) Pull Approach
AWS S3 - AWS Lambda - AWS CloudWatch Logs
getObject()
create a loggroup
describe loggroup
create a stream
describe stream
put event(create a event)
------------------------------------------------
ARN: (Amazon Resource Names)
------------------------------------------------
2) Push Approach:
MongoDB:
Document based
AWS DynamoDB:
Terminologies:
1) Tables
2) Items
3) Attributes
--------------------------------------------
nodejs
visual studio code
------------------------------
Nodejs
- awssdk
npm install -g aws-sdk
npm install -g lambda-local
mkdir temp
cd temp
npm install aws-sdk --save
npm install lambda-local --save
{}
lambda-local -l getheroeslist.js -h handler -e event.json
-----------------------------------
{
"superhero": "Superman"
}
lambda-local -l getmissiondetails.js -h handler -e event.json
-------------------------------------
AWS EC2: LB, AS
VPC
Public Subnet_A , Private SUbnet
Public Subnet_A - AWS EC2 (AMI)
---------------------------
My AMI:
Step 1:
Stop the instance
Step 2:
Create the image
---------------------------
Load Balancer:
AutoScaling:
1) Launch Configuration
2) Auto Scaling Group
---------------------------
Delete:
*) Delete the Auto Scaling Group
*) Delete the Launch Configuration
*) Delete the Load Balancer
*) Terminate the EC2 Instance
*) Delete the Security Group
*) Delete the Key Pair
*) Delete the RDS Instance
*) Delete the Subnet Group from RDS
*) Delete the VPC (will delete all subnet, route table, igw)
Note: if you get error during the deleting vpc wait for some time and try again.
*) Delete the DynamoDB Table
*) Delete the Lambda
*) Delete the API Gateway
*) Delete the S3 bucket
*) Disable the CDN
*) Delete the CDN
*) Delete IAM role, group, policy, user
--------------------------------------
AWS CloudFormation:
IaaC
Template:
.template
JSON/Yaml
- Parameters
- Resources
- Outputs
- Conditions
-----------------------------------------
AWS BeanStalk:
- PaaS
-----------------------------------------
Certification:
60
10 question
10 question
40 question
https://briefmenow.org/amazon
faqs
---------------------------