AWS Foundation Module 9 Lambda Beanstalk OpsWorks PDF
AWS Foundation Module 9 Lambda Beanstalk OpsWorks PDF
How does Lambda work? 13 Elastic Beanstalk Pricing 21 AWS OpsWorks Pricing
5
What is Configuration
Use Cases of Lambda 14 22 Quiz
6 Management?
Backend
Frontend (Website)
Database
Frontend
Backend Database
The Frontend, Backend, and the database services use dedicated servers.
AWS Lambda is a ‘serverless’ compute service where your code is triggered in response to a
event occurrence and it also manages the underlying compute resources for you!
AWS Lambda is used only for running Deploy and manage the apps on AWS
and executing your Back-end code Cloud without worrying about the
infrastructure that runs those
applications.
You cannot select the AWS resources,
like a type of EC2 instance, lambda Freedom to select AWS resources, like,
provides you resources based on your choose an EC2 instance type which is
workload. optimal for your application.
Serverless Architecture
Code freely
No VM needs to be created
Pay-as-you-go
First you upload your code to Lambda in one or more lambda functions
AWS Lambda will then execute the code in your behalf
After the code is invoked, Lambda automatically takes care of
provisioning and managing the required servers
First you upload your code to Lambda in one or more lambda functions
AWS Lambda will then execute the code in your behalf
After the code is invoked, Lambda automatically takes care of
provisioning and managing the required servers
First you upload your code to Lambda in one or more lambda functions
AWS Lambda will then execute the code in your behalf
After the code is invoked, Lambda automatically takes care of
provisioning and managing the required servers
Hosting your static website over S3 and then making it available using
AWS Lambda makes it easier for the users to keep track of their
resources being used.
Automated Backups
Filter and
Transform data
One can easily schedule the Lambda events and create back-ups in their
Serverless Websites AWS Accounts.
Create the back-ups, check if there are any idle resources or not,
generate reports using Lambda in no time.
Automated Backups
Filter and
Transform data
One can easily use it for transferring the data between Lambda and
Serverless Websites other Amazon Services like S3, Kinesis, Redshift and database services
One can easily transform and load data between Lambda and these
services.
Automated Backups
Filter and
Transform data
Runtimes
Layers
Log Streams
Function Settings
Functions
The runtime sits in-between the Lambda service and your function code,
relaying invocation events, context information, and responses between
Runtimes the two.
Layers
Log Streams
Layers
Log Streams
You can annotate your function code with custom logging statements
that allow you to analyze the execution flow and performance of your
Runtimes Lambda function to ensure it's working properly.
Layers
Log Streams
microservice
microservice
microservice
User Website Amazon S3 AWS Lambda
Create a function
This should have triggered the Lambda function. Go to the monitoring tab
under the Lambda console and check the log stream to confirm the
invocation of the function
Beanstalk is a service where you can create, run and manage application without
worrying about the underlying infrastructure. It is a PaaS.
You can directly upload your website code to Beanstalk, and it will automatically host
the application for you with a URL. You can concentrate on the code of your application
rather than the architecture which it is hosted on.
You can simply upload your code and Elastic Beanstalk automatically handles the deployment, from capacity
provisioning, load balancing, auto-scaling to application health monitoring. We will look at the details of it.
Update Version
Upload App
Manage
Environment
Create Application
Launch Environment
Application Version
Environment
Environment Tier
Environment Configuration
Saved Configuration
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
Application It is a specific iteration of the code which is uploaded to Beanstalk. For
example, if first version is 1 then the next would be 1.1 and so on.
Application Version
Environment
Environment Tier
Environment Configuration
Version 1 Version 1.1
Saved Configuration
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
Application
An environment is a collection of AWS resources on which your
application runs on. In an environment, at a time period, only one
version of an application can be running. If you want to run multiple
Application Version application versions at the same time, then you will have to create
more environments and run an other application version on it
Environment
Version 1 Version 1.1
Environment Tier
Environment Configuration
Saved Configuration
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
When you launch an environment in beanstalk, you will have to choose one of the
Application tiers given below. The tier decides the AWS resources which should be assigned for
that environment and the type of application which it can run.
Environment
Environment Tier
• Using this environment you can • If you have operations in your
directly upload your web server which might take a
Environment Configuration application’s code and get it long time to complete, you can
hosted offload them to the worker
Saved Configuration • You will be provided with a URL • For example, a task which
like this myapp.us-west- processes videos or one which
2.elasticbeanstalk.com generates a ZIP archive
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
Application Web Server Environment Architecture
Application Version
Environment
Environment Tier
Environment Configuration
Saved Configuration
Application Version
Environment
Environment Tier
Environment Configuration
Saved Configuration
Environment
Environment Tier
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
Application It is a template which you can create. These templates contain the
configuration details and you can directly use them to create your own
unique environment. Even if you delete the environment which is
Application Version running, you can create the exact same environment with this template.
Environment
Environment Tier
Environment Configuration
Saved Configuration
Platform
Copyright IntelliPaat, All rights reserved
Elastic Beanstalk Concepts
Application Combination of an operating system, programming language runtime,
web server, application server, and Elastic Beanstalk components
Application Version
Environment
Environment Tier
Environment Configuration
Saved Configuration
Platform
Copyright IntelliPaat, All rights reserved
Demo: Launching a sample
application
Give the application’s name and choose the platform you want (such as
PHP)
Go ahead and explore the options; then proceed with the Single instance
(Free Tier eligible) because you will not be billed
Once it completes, click on the DNS name provided and view the sample
PHP application which is running
You pay for the underlying resources which the Beanstalk uses
like EC2 servers, RDS databases and S3 storage.
How do we manage? Let’s assume you have 10 similar web servers running and you want
to run a configuration update on all of them. To open each server and install that
software is a time-consuming process. Instead, you can use create a script and run it on
each server automatically to roll updates on all servers at the same time.
CloudFormation OpsWorks
Provides business a way of creating a collection of AWS Provides businesses managed instances of Chef &
resources in a chronological order Puppet to automate server management on your EC2
instances or on-premises instances
CloudFormation concentrates mainly on what and how OpsWorks mainly works on the orchestration of Servers
AWS resources are created and managing the software configuration rather than
looking into the architecture
Use CloudFormation when you must create multiple Use OpsWorks when you must manage the
architectures of the same design configuration of multiple servers which server a similar
purpose
Example: Replication of an available architecture Example: Installing a web server in 100 instances and
running a web page inside them
AWS OpsWorks for Chef Automate lets you create AWS-managed Chef
server. A Chef server manages nodes in your environment, stores
information about those nodes, and serves as a central repository for
AWS OpsWorks for Puppet your Chef cookbooks.
Enterprise
Layers
Instances
Apps
Each stack will have a layer. Each layer describes a component. Like the
Stacks load balancer layer or database layer.
Layers
Instances
Load balancer Layer
Database Layer
Customizing your Stack
Layers
Instances
Apps
OpsWorks app option represents the code that you want to run on the
Stacks server. The code can reside in S3 or a repository like GitHub. App has the
information required to deploy the code to app servers.
Layers
Instances
Apps
Stacks
Layers
Instances
Apps
Then click Start and explore the other options in the stack. Such as apps.
Once the instance is running, go to the public IP and find the website
successfully hosted
You pay for the underlying resources which the OpsWorks uses
like EC2 servers, RDS databases.
The pricing for each on-premises server on which you install the
OpsWorks Stacks agent is $0.02 per hour
A. 10 seconds
B. 10 minutes
C. 15 minutes
D. 200 seconds
A. IaaS
B. PaaS
C. SaaS
D. FaaS
A. Yes
B. No
A. Yes
B. No
A. Serverfull
B. Serverless
C. Code as an Infrastructure
D. Database