Friday 13 April 2018

AWS Tutorial Terminology page 3

AWS Tutorial Terminology page 3

Question: What are routing table?
A routing table is a set of rules, is used to determine where data packets will be directed over the internet protocol. Internet protocol will contain the necessary information.
Each packet contains information about its origin and destination.
When a packet is received, a network device examines the packet and matches it to the routing table for its destination.


  1. Destination: this is final destination.
  2. Next hop: The IP address to which the packet is forwarded
  3. Interface: The outgoing network interface the device should use when forwarding the packet
  4. Metric: Assigns a cost to each.
  5. Routes



Question: What is subnets in VPC?
A subnet is a range of IP addresses in your VPC.
You can launch AWS resources into a specified subnet.


Question: What is IAAS PAAS SAAS?
IaaS (Infrastructure as a Service), as the name suggests, provides you the computing infrastructure, physical or (quite often) virtual machines and other resources like virtual-machine disk image library, block and file-based storage, firewalls, load balancers, IP addresses, virtual local area networks etc.
Examples: Amazon EC2, Windows Azure, Rackspace, Google Compute Engine.

PaaS (Platform as a Service), as the name suggests, provides you computing platforms which typically includes operating system, programming language execution environment, database, web server etc.
Examples: AWS Elastic Beanstalk, Windows Azure, Heroku, Force.com, Google App Engine, Apache Stratos.

While in SaaS (Software as a Service) model you are provided with access to application software often referred to as "on-demand software". You don't have to worry about the installation, setup and running of the application. Service provider will do that for you. You just have to pay and use it through some client.
Examples: Google Apps, Microsoft Office 365.


Question: How to Pass query string to AWS lamba?
You can access Query String as below:
event['pathParameters']['param1']


You can access Header String as below:
event['requestContext']['identity']['userAgent']
event['requestContext']['identity']['sourceIP']



Question: How to Make all S3 object public?
Now go to your AWS S3 console, At the bucket level, click on Properties, Expand Permissions, then Select Add bucket policy.
Following are Generate Policy.
{
  "Id": "Policy1397632521960",
  "Statement": [
    {
      "Sid": "Stmt1397633323327",
      "Action": [
        "s3:GetObject"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:s3:::bucketnm/*",
      "Principal": {
        "AWS": [
          "*"
        ]
      }
    }
  ]
}



Question: Can't ping AwS ec2 instance. How to Fix?
Add a new EC2 security group inbound rule:
Type: Custom ICMP rule
Protocol: Echo Request
Port: N/A
Source: your choice (I would select Anywhere to be able to ping from any machine)


Question: Why to use S3?
Amazon S3 is designed for large-capacity, low-cost file storage in one specific geographical region.* The storage and bandwidth costs are quite low.

Amazon CloudFront is a Content Delivery Network (CDN) which proxies and caches web data at edge locations as close to users as possible.


Question: How to download entire S3 bucket?
Execute following command from Console.
aws s3 sync s3://mybucket .



Wednesday 28 March 2018

AWS Tutorial Terminology page 2

AWS Tutorial Terminology page 2

Question: What Is AWS Media Services?
AWS Media Services are a family of fully-managed services that make it easy to build reliable, broadcast-quality video workflows in the Cloud.


Question: What Is Amazon Simple Notification Service(SNS)?
Amazon Simple Notification Service is a notification service provided by AWS.
It provides a low-cost infrastructure for the mass delivery of messages, predominantly to mobile users.
It can send notification for below
  1. Mobile Push Notifications
  2. SMS
  3. Email
  4. Http/Https
  5. SQS
  6. Lambda functions



Question: What Is Amazon Simple Queue Service (SQS)?
Amazon Simple Queue Service message queuing service that makes it easy to decouple and scale microservices, distributed systems, and serverless applications.
With SQS you can send, store, and receive messages between software components without losing messages to be always available.


Question: What Is Amazon SWF?
Amazon SWF helps developers build, run, and scale background jobs that have parallel or sequential steps.


Question: What is CloudFormation?
AWS CloudFormation provides a common language to describe and provision all the infrastructure resources in your cloud environment.
It allows you to use a simple text file to model and provision, in an automated and secure manner, all the resources needed for your applications across all regions.


Question: What are difference between cloudtrail and cloudwatch?
CloudTrail:
  1. It helps to visibility into your user and resource activity by recording AWS API calls.
  2. Used to log the API calls across your AWS infrastructure.
  3. it keeps the history of API calls of your account, AWS Management console, AWS SDKs, command line tools, and every other AWS services etc.

CloudWatch:
  1. it monitoring service for AWS cloud resources and the applications you run on AWS
  2. Collect and track metrics.
  3. System-wide visibility into resource utilization, application performance, and operational health.



Question: What is Sagemaker?
We use Sagemaker to Build, train, and deploy machine learning models & algorithms at scale.


Question: What is Amazon athena?
Amazon Athena is a serverless, interactive query service that makes it easy to analyze big data in S3 using standard SQL.


Question: What is System manager?
AWS Systems Manager gives you visibility and control of your infrastructure on AWS.


Question: What is Amazon EMR?
Amazon EMR provides a managed Hadoop framework that makes it easy, fast, and cost-effective to process vast amounts of data across dynamically scalable Amazon EC2 instances.


Question: What is Amazon CloudSearch?
Amazon CloudSearch is a fully-managed search service in the AWS Cloud that lets you easily integrate fast and highly scalable search functionality into your apps.


Question: What is Amazon Kinesis?
Amazon Kinesis Data Streams enables you to build custom applications that process or analyze streaming data for specialized needs.


Question: What is Amazon QuickSight?
Amazon QuickSight is a fast, cloud-powered business analytics service that makes it easy to build visualizations, perform ad-hoc analysis, and quickly get business insights from your data


Question: What does an AWS Region consist of?
An independent collection of AWS computing resources in a defined geography.


Question: What is Elastic Map Reduce?
Amazon EMR processes big data across a Hadoop cluster of virtual servers on Amazon Elastic Compute Cloud (EC2) and Amazon Simple Storage Service (S3).


Question: How to Install AWS command line in Winows
  1. Download the installer from https://aws.amazon.com/cli/
  2. After download, install the software in windows.
  3. Now, Go to windows command line.
  4. In command prompt type
     aws configure
     
    It will ask AWS access key, and Secret key.
  5. for Region Name and Default format just enter key.



Question: How to configure Aws in console?
aws configure

Question: How to get list configured aws account?
aws configure list



Question: How to list name of all the bucket?
aws s3 ls



Question: How to list all the files in S3 Bucket?
aws s3 ls s3://mybucket



Question: How to list all the files recursively in S3 Bucket?
aws s3 ls s3://mybucket --recursive


v Question: How to Rename a file?
aws s3 mv s3://mybucket/filename.png  s3://mybucket/newname.png 



Question: What is EBS?
Full form of EBS is Amazon Elastic Block Store.
It provides persistent block storage volumes for use with Amazon EC2 instances in the AWS Cloud.


Question: What is EFS?
Full form of EBS is Amazon Elastic File System .
It provides provides simple, scalable file storage for use with Amazon EC2 instances.
EFS offers a simple interface that allows you to create and configure file systems quickly and easily.
It growing and shrinking automatically as you add and remove files. You can use this in shared.


Question: AWS command to Describe the EC2 instances?
aws ec2 describe-instances



Question: AWS command to Describe the Start EC2 instances?
aws ec2 start-instances --instance-ids i-1348636c



Question: AWS command to sync the myfolder with S3 bucket in recursive?
aws s3 cp myfolder s3://mybucket/myfolder --recursive

It will move local files to S3 bucket(if does not exist in bucket)


Question: AWS command to sync the myfolder with S3 bucket in recursive but exclude the temp file?
aws s3 cp myfolder s3://mybucket/myfolder --recursive

It will move local files to S3 bucket(if does not exist in bucket)