{"id":2125,"date":"2019-06-21T12:11:42","date_gmt":"2019-06-21T12:11:42","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2125"},"modified":"2026-12-01T11:32:43","modified_gmt":"2026-12-01T11:32:43","slug":"get-started-with-aws-lambda","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/","title":{"rendered":"Get Started With AWS Lambda"},"content":{"rendered":"<h2>AWS Lambda: Get Started with Serverless Computing<\/h2>\n<p><span style=\"font-weight: 400;\">Currently over 1.5 million customers utilize AWS Lambda. Each month, these customers cause tens of trillions of AWS Lambda function invocations. It is clear that many businesses are now adopting serverless. As a newcomer to AWS Lambda, it is one of the quickest ways to gain insight into how current cloud-based software is developed.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u26a1 QUICK ANSWER<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS Lambda is a serverless, pay-per-occurrence, compute service. Firstly, create an AWS account and log into the AWS Lambda console. From here, you can create and test an AWS Lambda function. You can then analyse the logs and metrics within Amazon CloudWatch.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Many people consider serverless to be an intangible concept before successfully deploying and observing your first AWS Lambda function. We will guide you through doing precisely this and show how to analyse logs and metrics. We will also show you how the AWS free tier and Amazon CloudWatch service can be utilised.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>In this article, you will learn:<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">What Is AWS Lambda and Why Serverless Computing Matters<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">How to Get Started with AWS Lambda<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run a Serverless \u201cHello, World!\u201d or \u201cHello Prwatech\u201d With AWS Lambda<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Monitor Your AWS Lambda Function With Amazon CloudWatch<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Clean Up Your AWS Lambda Function<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Real-World Examples of AWS Lambda in Action<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><b>What Is AWS Lambda and Why Serverless Computing Matters<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">AWS Lambda only executes code in response to certain events (for example, data being uploaded to Amazon S3 or an API call). You define the amount of memory and time-out period that should be allocated to your code. AWS then manages the underlying servers. Despite its name, servers are still employed. However, as a user you will never manage, configure or scale them. The AWS free tier includes 1 million function invocations and 400,000GB-seconds of processing power, so it is extremely cost effective to practise.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Contrasting traditional and AWS Lambda server management:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Aspect<\/b><\/td>\n<td><b>Traditional server (such as EC2)<\/b><\/td>\n<td><b>Lambda function<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Setup<\/span><\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">You launch and configure the instance\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><\/li>\n<\/ul>\n<\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">You upload code and set memory and timeout<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Scaling<\/span><\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">You add capacity yourself<\/span><\/li>\n<\/ul>\n<\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">Runs once per trigger and scales with the workload<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Billing<\/span><\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">Charged while the instance runs<\/span><\/li>\n<\/ul>\n<\/td>\n<td>\n<ul>\n<li><span style=\"font-weight: 400;\">Charged per request and run time<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2><b>How to Get Started with AWS Lambda<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Getting Started with AWS Lambda, Are you searching for the ideal platform to gain knowledge on how to get started with AWS Lambda? Or are you eagerly awaiting to undertake the advanced Certification Course at India\u2019s Leading AWS Training institute? In which case, you are on the Right Path.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Below is a Tutorial that will allow you to Understand in depth how to get started with AWS Lambda. Simply follow all the Tutorials provided by India\u2019s Leading Best AWS Training institute and become a Pro AWS Developer.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">First, create a Lambda function through the AWS Lambda console. Within a short period of time, you will then be able to both create and test a Lambda function. Further, you will be able to analyse logs, metrics and tracing data.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">In order to utilise AWS Lambda and further AWS services, you will require an AWS account. If you do not currently possess one, please visit amazon.com and click \u2018Create an AWS Account\u2019.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">As a best practice, further create an AWS Identity and Access Management (IAM) User with administrative privileges. Always use this user, rather than the root account, for all non-root related activity.<\/span><\/p>\n<h2><\/h2>\n<h2><b>Run a Serverless \u201cHello, World!\u201d or \u201cHello Prwatech\u201d With AWS Lambda<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Below we outline how to establish and execute a basic serverless function on AWS Lambda. We will also demonstrate how to create a \u2018Hello World\u2019 function via the AWS Lambda console.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">AWS Lambda is free tier enabled.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 1: Access AWS Lambda Console<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Open the AWS Management Console. Under the Compute category, click the AWS Lambda Console link.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Blueprints contain example code and can perform basic analysis. Typically a blueprint is used to analyse data from specific event sources. These may be AWS services such as Amazon S3 and Amazon DynamoDB, or even a self-developed application.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 2: Choose a Lambda Blueprint<\/b><\/p>\n<ol>\n<li><b>a)<\/b><span style=\"font-weight: 400;\"> Within the AWS Lambda console, click \u201cHow a Lambda function runs\u201d.<\/span><\/li>\n<\/ol>\n<p><b>Note:<\/b><span style=\"font-weight: 400;\"> This screen is only displayed if no functions have previously been manually created. Should you already have created functions, you will instead be shown the Lambda &gt; Functions page. Click \u2018Create a function\u2019 to move to the Create function page and then select blueprints.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12196 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-300x169.png\" alt=\"AWS Lambda dashboard showing how a Lambda function works, including event source, Lambda function execution, output, and the Create a Function option.\" width=\"541\" height=\"305\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png 1200w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><b>b) <\/b><span style=\"font-weight: 400;\">Click Blueprints.<\/span><\/li>\n<li><b>c)<\/b><span style=\"font-weight: 400;\"> Within the Filter box, enter \u2018hello-world-python\u2019 and click on the relevant blueprint of the same name.<\/span><\/li>\n<li><b>d) <\/b><span style=\"font-weight: 400;\">Click Configure.<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12195 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image10-300x169.png\" alt=\"AWS Lambda Create function page showing the Use a blueprint option and hello-world-python blueprint selection.\" width=\"547\" height=\"308\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image10-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image10-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image10-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image10.png 1200w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 3: Configure and create your AWS Lambda Function<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Alongside your code and supporting libraries, AWS Lambda functions can be configured. You can define the amount of processing power (such as memory) to allocate to your function, as well as the time-out and an IAM role. AWS Lambda uses this IAM role to execute your function on your behalf.<\/span><\/p>\n<ol>\n<li><b>a)<\/b><span style=\"font-weight: 400;\"> Now input Basic Information for your function.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><b>Basic Information:<\/b><\/p>\n<ul>\n<li aria-level=\"1\"><b>Function Name:<\/b><span style=\"font-weight: 400;\">You can name your Lambda function here. For this tutorial, <\/span><b>enter <\/b><b><i>hello-world-python<\/i><\/b><b>.<\/b><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>Execution Role:<\/b><span style=\"font-weight: 400;\"> You will create an IAM role (referred to as the execution role) with the necessary permissions that AWS Lambda can assume to invoke your Lambda function on your behalf. Select <\/span><b><i>Create a new role from template(s).<\/i><\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>Role name:<\/b><span style=\"font-weight: 400;\">Type into the text box lambda_basic_execution.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12194 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image13-300x169.png\" alt=\"AWS Lambda basic information settings showing function name, execution role selection and IAM role name configuration.\" width=\"540\" height=\"304\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image13-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image13-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image13-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image13.png 1200w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Lambda Function Code:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Within this area, you can examine the example Python code.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12193 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image14-300x169.png\" alt=\"AWS Lambda Python function code showing JSON import, Lambda handler definition, event processing and return statement.\" width=\"541\" height=\"305\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image14-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image14-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image14-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image14.png 1200w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><b>b)<\/b><span style=\"font-weight: 400;\"> Scroll to the bottom of the page and click \u2018Create Function\u2019.<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12192 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image3-300x169.png\" alt=\"AWS Lambda function creation page showing the sample Python code section and highlighted Create function button.\" width=\"536\" height=\"302\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image3-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image3-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image3-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image3.png 1200w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/p>\n<p><b>c)Runtime:<\/b><span style=\"font-weight: 400;\">At present, AWS Lambda allows you to programme functions in Java, Node.js, C#, Go and Python. For this tutorial we will continue to use Python 3.7.<\/span><\/p>\n<p><b>d)Handler:<\/b><span style=\"font-weight: 400;\">You can identify which method\/function within your code which should be executed by AWS Lambda. AWS Lambda provides event information to the handler for processing.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Within our example, AWS Lambda Function recognises this information and will pre-populate this as lambda_function.lambda_handler.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12191 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image4-300x169.png\" alt=\"AWS Lambda function configuration showing Python 3.7 runtime and lambda_function.lambda_handler handler settings.\" width=\"532\" height=\"300\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image4-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image4-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image4-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image4.png 1200w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>e)<\/b><span style=\"font-weight: 400;\">Further scroll down and then set memory, timeout and VPC parameters. For this tutorial, we will continue to use the default function settings.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12190 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image8-300x169.png\" alt=\"AWS Lambda basic settings showing memory allocation, function timeout and VPC network configuration.\" width=\"534\" height=\"301\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image8-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image8-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image8-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image8.png 1200w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 4: Execute and analyse your Lambda function<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Having accessed your hello-world-python function within the console, you can now test and analyse it.<\/span><\/p>\n<ol>\n<li><b>a) <\/b><span style=\"font-weight: 400;\">Click on the \u2018Configure Test Event\u2019 option from the \u2018Select a test event\u2026\u2019 dropdown menu.<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12189 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1-300x169.png\" alt=\"AWS Lambda Test tab showing the Configure test event option in the test event dropdown menu.\" width=\"536\" height=\"302\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1.png 1200w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/p>\n<ol>\n<li><b>b)<\/b><span style=\"font-weight: 400;\"> A test-event editor appears so that you can enter test event information.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u2666 Click on the \u2018Hello World\u2019 option from the list of sample test-event templates on the Input test event page.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Enter an event title such as<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u2666 Although you can alter values within the sample test-event JSON document, please do not modify its format. For this tutorial, amend value1 to say hello, world!.<\/span><\/p>\n<p><b>Click Create.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12188 alignnone\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image9-300x169.png\" alt=\"AWS Lambda Configure Test Event window showing Hello World template, event name, JSON payload and Create button.\" width=\"534\" height=\"301\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image9-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image9-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image9-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image9.png 1200w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li><b>c) <\/b><span style=\"font-weight: 400;\">Click Test.<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12187\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image18-300x169.png\" alt=\"Cloud function management console showing a saved HelloWorldEvent test event and the Test button for invoking a Python-based function.\" width=\"534\" height=\"301\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image18-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image18-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image18-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image18.png 1200w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<ol>\n<li><b>d)<\/b><span style=\"font-weight: 400;\"> Upon successful function execution, analyse the results shown within the console:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">\u2666 The \u2018Execution results\u2019 section demonstrates that the function was successfully executed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Within the \u2018Summary\u2019 section, you can analyse key information from the Log output.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u2666 The Log output section enables you to analyse the logs relating to the function execution.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12186\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image17-300x169.png\" alt=\"Cloud function execution results showing the function summary, execution duration, memory usage and log output.\" width=\"538\" height=\"303\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image17-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image17-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image17-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image17.png 1200w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><b>Monitor Your AWS Lambda Function With Amazon CloudWatch<\/b><\/h2>\n<p>&nbsp;<\/p>\n<p><b>Step 5: Analyse metrics<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS Lambda automatically analyses and reports metrics for your functions using Amazon CloudWatch. AWS Lambda automatically analyses how many times your functions are invoked, as well as analysing request-latency and error-occurrences. Corresponding metrics are then published.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12185\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image1-300x169.png\" alt=\"Cloud function test event showing successful function execution with multiple test runs and their respective execution times.\" width=\"543\" height=\"306\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image1-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image1-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image1-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image1.png 1200w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/p>\n<ol start=\"6\">\n<li><b>a) <\/b><span style=\"font-weight: 400;\">Repeatedly click on the Test button to further execute your Lambda function. Subsequently, you will be able to analyse the ensuing metrics as explained in step 6.<\/span><\/li>\n<li><b>b)<\/b><span style=\"font-weight: 400;\"> Click on the Monitoring tab to analyse results.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12184\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image6-300x169.png\" alt=\"Cloud function monitoring dashboard displaying performance metrics for function invocations, execution duration, error count, success rate and throttles.\" width=\"543\" height=\"306\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image6-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image6-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image6-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image6.png 1200w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><br \/>\n<\/span><\/li>\n<li><b>c) <\/b><span style=\"font-weight: 400;\">Scroll down to analyse the metrics in relation to your AWS Lambda function. As mentioned, AWS Lambda metrics are analysed using Amazon CloudWatch. These can furthermore be exploited to construct bespoke alerts.<\/span><\/li>\n<li><b>d) <\/b><span style=\"font-weight: 400;\">Within the Monitoring tab you can analyse the following 6 CloudWatch metrics: Number of invocations; Duration of invocations; Number of invocation errors; Number of throttled invocations; Age of iterator and; DLQ errors.<\/span><\/li>\n<li><b>e)<\/b><span style=\"font-weight: 400;\"> AWS Lambda operates on a pay-for-what-you-use basis. Once you surpass the AWS Lambda free-tier limits, you are charged according to the number of function invocations and the length of time that your code is executed for. For further details, please refer to the AWS Lambda Pricing page.<\/span><\/li>\n<\/ol>\n<h2><\/h2>\n<h2><b>Clean Up Your AWS Lambda Function<\/b><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>Step 6: Delete the Lambda Function<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Although there is no charge for maintaining your AWS Lambda function, it can easily be deleted using the AWS Lambda console. a) Click on Actions and then click Delete Function.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12183\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image11-300x169.png\" alt=\"Cloud function management console showing the Actions menu with the Delete function option highlighted in the Code tab.\" width=\"570\" height=\"321\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image11-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image11-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image11-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image11.png 1200w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p><b>Ahead of deleting your function<\/b><span style=\"font-weight: 400;\">, you can again edit the sample test event JSON. However, do not modify its format. For this tutorial, alter value1 to read <\/span><b>Hello, Prwatech! .<\/b><\/p>\n<p><span style=\"font-weight: 400;\">For this, first click on <\/span><b>select a test event<\/b><span style=\"font-weight: 400;\"> and then click on <\/span><b>configure event<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12181\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-300x169.png\" alt=\"Cloud function management console showing the Test tab with the Configure test event option for a Python-based function.\" width=\"568\" height=\"320\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image16.png 1200w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Then amend value1 to <\/span><b>\u2018Hello Prwatech\u2019 <\/b><span style=\"font-weight: 400;\">as shown below so that your function can output the desired result.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12179\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image19-300x169.png\" alt=\"Cloud function management console showing the Configure test event dialog with the Hello World event template, event name HelloWorldEvent, and a JSON test event containing the highlighted &quot;key1&quot;: &quot;hello, world!&quot; value.\" width=\"568\" height=\"320\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image19-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image19-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image19-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image19.png 1200w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12180\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image15-300x169.png\" alt=\"Configure a Hello World test event with a JSON payload containing the message &quot;Hello, Prwatech!&quot; in the Lambda console.\" width=\"568\" height=\"320\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image15-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image15-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image15-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image15.png 1200w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">When ready to delete your function, click on Actions and then click Delete<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12178\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image7-300x169.png\" alt=\"Cloud function management console showing the Actions dropdown menu for the hello-world-python function, with the Delete function option highlighted in red. The Test tab displays a successful execution result for the HelloWorldEvent test event.\" width=\"568\" height=\"320\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image7-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image7-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image7-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image7.png 1200w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>b)<\/b><span style=\"font-weight: 400;\"> Confirm that you wish to delete your function by clicking on Delete function.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12176\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image5-300x169.png\" alt=\"A confirmation dialog appears in the cloud function management console asking the user to confirm deletion of the hello-world-python function, with Cancel and Delete function buttons.\" width=\"568\" height=\"320\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image5-300x169.png 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image5-1024x576.png 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image5-768x432.png 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image5.png 1200w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><b>Congratulations!<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">You have successfully created your initial AWS Lambda function. This has marked your first foray into developing software without having to manage or maintain servers. AWS Lambda also effortlessly scales your software. It does this by executing your code in response to events and scaling accordingly to the extent of your workloads.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">I trust that you have now learnt how to create AWS Lambda functions and recognise how AWS Lambda facilitates code execution, without requiring consideration of servers.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>#<\/b><span style=\"font-weight: 400;\">Remember to seek assistance where required!<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><b>Real-World Examples of AWS Lambda in Action<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Although the console-based tutorial is relatively basic, the same components are used within live environments. Two Coca-Cola examples are provided below.<\/span><\/p>\n<p><b>Coca-Cola Freestyle.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The Coca-Cola team developed a mobile, hands-free dispensing function on their serverless architecture. They used AWS Lambda and Amazon API Gateway for the backend. According to the <a href=\"https:\/\/aws.amazon.com\/solutions\/case-studies\/coca-cola-freestyle-marketing\">AWS case study<\/a>, a prototype was developed within a week and the solution was deployed to 10,000 machines within just 150 days.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Coca-Cola Vending Pass.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">After a customer swiped their phone at a vending machine, Amazon SNS topics and AWS Lambda functions were used to call backend code which added points to the customer\u2019s record. Subsequently, AWS Step Functions was integrated so as to further optimise the design. Again, it is notable that often a single AWS Lambda function will evolve into a workflow comprising multiple functions.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><b>Conclusion<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You have now learnt about AWS Lambda and how to both develop and test functions within the AWS Lambda console. In addition, you have recognised where to analyse metrics for your functions (namely, within Amazon CloudWatch). Going forward, you should attach functions to genuine event sources, for example, S3 uploads and API calls. Then, observe the logs to ascertain what occurred. Incremental, iterative testing is highly valued within serverless environments.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><\/h2>\n<h2><b>Frequently Asked Questions<\/b><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>1. What is AWS Lambda used for?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">AWS Lambda analyses and processes data in response to events. It is thus suitable for analysing data uploads, operating back-end APIs, and for stream and scheduled automation. You upload code and then define what events should activate it. AWS executes your code and charges you solely for the number of function invocations and for the period of time that your code is executed for.<\/span><\/p>\n<h3><\/h3>\n<h3><b>2. Is AWS Lambda free to use?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">AWS Lambda offers a free tier, allowing 1 million function invocations and 400,000GB-seconds of processing power to be utilised each month. Additional usage is charged for on a per-invocation and per-GB-second basis. Furthermore, there is a separate cost for sending logs to Amazon CloudWatch. Before undertaking extensive testing therefore, please consult the pricing page.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>3. What is an AWS Lambda function?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">An AWS Lambda function comprises both code and settings. Settings may include: memory size; timeout and an IAM role. AWS will consequently create an environment, supply event data to your function and run your code. Results can then be outputted and logging can occur. You are billed for the time that your function runs for.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><b>4. How does serverless computing differ from using EC2?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">With EC2 you can rent virtual servers. You can configure these and also control when they are updated. With serverless, AWS controls the servers which automatically adjust depending on the situation. EC2 is good for hosting services that are constant or require long term availability. Lambda is great for conducting short, irregular tasks, meaning that there is no waste of funds due to poor usage.<\/span><\/p>\n<h3><\/h3>\n<h3><b>5. Which languages does Lambda support?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Lambda currently allows code to be run in Python, Node.js, Java, .NET and Ruby. Further languages can also be supported either by creating a custom runtime or using a custom container image. Unsupported languages are discontinued over time. Thus, it is advised that you check which runtimes AWS still support prior to beginning a new project.<\/span><\/p>\n<h3><\/h3>\n<h3><b>6. How long can a Lambda function run?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Whilst 15 minutes is the maximum time limit, by default this will timeout after only 3 seconds. Set this value marginally above your requirement. Subsequent work can also either be broken down (such as in AWS Step Functions) or moved on to a container based service.<\/span><\/p>\n<h3><\/h3>\n<h3><b>7. How do I monitor Lambda functions with Amazon CloudWatch?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Logs can also be sent to Amazon CloudWatch. It is then possible to view logs and analyse errors and throttling. You can then create alerting for monitoring. Logs can be analysed using the CloudWatch Logs Insights feature. A log group can be created and a log retention period set so that excessive logging is avoided and therefore unnecessary costs are not generated.<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<h3><\/h3>\n<h3><b>8. What is a cold start in Lambda?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">As well as launching and configuring the Lambda environment, there is an added delay for Lambda to fetch and configure your code. Warm requests do not have this issue. Smaller code and dependency files alongside accurately configured memory will also aid performance. Configure provisioned concurrency pre-launches environments so that they can be used immediately, providing fast performance.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS Lambda: Get Started with Serverless Computing Currently over 1.5 million customers utilize AWS Lambda. Each month, these customers cause tens of trillions of AWS Lambda function invocations. It is clear that many businesses are now adopting serverless. As a newcomer to AWS Lambda, it is one of the quickest ways to gain insight into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,1660],"tags":[1808,1806,1807,366,1804,1805],"class_list":["post-2125","post","type-post","status-publish","format-standard","hentry","category-aws","category-aws-lambda","tag-aws-lambda-tutorial-for-beginners","tag-building-your-first-aws-lambda-function","tag-create-a-serverless-function-with-aws-lambda","tag-get-started-with-aws-lambda","tag-run-a-serverless-hello","tag-world-with-aws-lambda"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless<\/title>\n<meta name=\"description\" content=\"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless\" \/>\n<meta property=\"og:description\" content=\"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-21T12:11:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-01T11:32:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/\",\"url\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/\",\"name\":\"Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-300x169.png\",\"datePublished\":\"2019-06-21T12:11:42+00:00\",\"dateModified\":\"2026-12-01T11:32:43+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png\",\"width\":1200,\"height\":675,\"caption\":\"AWS Lambda dashboard showing how a Lambda function works, including event source, Lambda function execution, output, and the Create a Function option.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Started With AWS Lambda\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless","description":"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/","og_locale":"en_US","og_type":"article","og_title":"Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless","og_description":"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.","og_url":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-06-21T12:11:42+00:00","article_modified_time":"2026-12-01T11:32:43+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png","type":"image\/png"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/","url":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/","name":"Get Started with AWS Lambda Tutorial \u2013 Introduction to Serverless","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12-300x169.png","datePublished":"2019-06-21T12:11:42+00:00","dateModified":"2026-12-01T11:32:43+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Discover how to get started with AWS Lambda. Create, test and analyse metrics for functions. Also, explore the free tier.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/image12.png","width":1200,"height":675,"caption":"AWS Lambda dashboard showing how a Lambda function works, including event source, Lambda function execution, output, and the Create a Function option."},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/aws\/aws-lambda\/get-started-with-aws-lambda\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Get Started With AWS Lambda"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=2125"}],"version-history":[{"count":26,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2125\/revisions"}],"predecessor-version":[{"id":2147,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2125\/revisions\/2147"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}