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.
- Destination: this is final destination.
- Next hop: The IP address to which the packet is forwarded
- Interface: The outgoing network interface the device should use when forwarding the packet
- Metric: Assigns a cost to each.
- 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 .