{"id":2329,"date":"2021-03-11T13:18:32","date_gmt":"2021-03-11T06:18:32","guid":{"rendered":"https:\/\/vticloud.io\/?p=2329"},"modified":"2021-09-20T09:42:40","modified_gmt":"2021-09-20T02:42:40","slug":"gioi-thieu-dich-vu-aws-lambda-va-cach-cau-hinh-cho-nguoi-moi-bat-dau","status":"publish","type":"post","link":"https:\/\/vticloud.io\/en\/gioi-thieu-dich-vu-aws-lambda-va-cach-cau-hinh-cho-nguoi-moi-bat-dau\/","title":{"rendered":"An introduction to AWS Lambda and how to configure it for beginners"},"content":{"rendered":"<p><\/p>\n<p data-renderer-start-pos=\"1\">We&#8217;ve heard a lot about the term <strong data-renderer-mark=\"true\">&#8220;serverless,&#8221;<\/strong> how they work, and the benefits that your application brings. A serverless service in general will not require any server provision to run the application. When you run an application on serverless, users will not have to worry about setting up the operating system, patching, or extending the servers that you will have to consider when running your application on a physical server.<\/p>\n<p data-renderer-start-pos=\"442\">Recently, when it comes to serverless, it&#8217;s about AWS Lambda services. This is a provision-free serverless compute offering based on Amazon Web Services functions. In this article, VTI Cloud will introduce <strong data-renderer-mark=\"true\">AWS Lambda<\/strong>, including how it links to a serverless architecture, how to create it, and when to use it.<\/p>\n<h2 id=\"AWS-Lambda-l\u00e0-g\u00ec?\" data-renderer-start-pos=\"762\">What is AWS Lambda?<\/h2>\n<p><iframe src=\"\/\/www.youtube.com\/embed\/eOBq__h4OJ4\" width=\"562\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/p>\n<div class=\"ak-renderer-extension \" data-layout=\"default\">\n<div class=\"ak-renderer-extension-overflow-container\">\n<p data-pm-slice=\"1 1 []\"><span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/aws.amazon.com\/lambda\/\">AWS Lambda<\/a><\/span><\/p>\n<p data-renderer-start-pos=\"782\">is a serverless compute service of Amazon Web Services (AWS). AWS Lambda operates on the FaaS (Function-as-a-service) model. With AWS Lambda services, users, especially developers, won&#8217;t have to worry about managing and delivering zero administration, just focus on building applications!<\/p>\n<blockquote>\n<p data-renderer-start-pos=\"1144\">By simply uploading code to AWS Lambda, the service runs code, scales about the infrastructure to always ensure application performance and availability.<\/p>\n<\/blockquote>\n<p data-renderer-start-pos=\"1288\">Code running on AWS Lambda is called <strong data-renderer-mark=\"true\">lambda function.<\/strong> Currently, lambda function supports <strong data-renderer-mark=\"true\">the following programming languages: <\/strong><\/p>\n<ul>\n<li data-renderer-start-pos=\"1407\">Java<\/li>\n<li data-renderer-start-pos=\"1415\">Python<\/li>\n<li data-renderer-start-pos=\"1425\">C #<\/li>\n<li data-renderer-start-pos=\"1431\">Node.js<\/li>\n<li data-renderer-start-pos=\"1442\">Go<\/li>\n<li data-renderer-start-pos=\"1448\">PowerShell<\/li>\n<li data-renderer-start-pos=\"1462\">Ruby<\/li>\n<\/ul>\n<p data-renderer-start-pos=\"1470\">The function also provides <strong data-renderer-mark=\"true\">runtime API<\/strong>, which can be used to run functions written by other native programming languages.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2330\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/deep-dive-on-aws-lambda-vti-cloud.jpg\" alt=\"deep-dive-on-aws-lambda-vti-cloud\" width=\"638\" height=\"359\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/deep-dive-on-aws-lambda-vti-cloud.jpg 638w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/deep-dive-on-aws-lambda-vti-cloud-300x169.jpg 300w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p data-renderer-start-pos=\"1596\">To work with AWS Lambda, there is only one prerequisite; you must have an account on AWS from which you can access the AWS management console.<\/p>\n<blockquote>\n<p data-renderer-start-pos=\"1745\">Check out our guide to creating an account and using the AWS Free Tier to experience AWS Lambda services here:<span style=\"color: #ff9900;\"> <a style=\"color: #ff9900;\" href=\"https:\/\/vticloud.io\/en\/trai-nghiem-dien-toan-dam-may-voi-tai-khoan-aws-free-tier\/\">Experiencing cloud computing with AWS Free Tier account | VTI CLOUD<\/a><\/span><\/p>\n<\/blockquote>\n<h2 id=\"T\u00ednh-n\u0103ng-c\u1ee7a-AWS-Lambda\" data-renderer-start-pos=\"1933\">AWS Lambda Features<\/h2>\n<p data-renderer-start-pos=\"1959\">Here are some important features that VTI Cloud summarizes:<\/p>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"2039\">AWS Lambda easily scales infrastructure without any additional configurations. This service helps developers reduce operational work related to system infrastructure.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2210\">The service offers a variety of options such as Amazon S3 services, Amazon CloudWatch, Amazon DynamoDB, Amazon API Gateway, Amazon Kinesis, Amazon CodeCommit, and more to trigger events.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2399\">No upfront costs required. You pay only for the memory used by the lambda function and the minimum cost for the number of requests so AWS Lambda is quite cost-effective for users.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2603\">AWS Lambda uses AWS IAM to define all security roles and policies due to ensuring the security of users&#8217; applications.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"2739\">AWS Lambda also provides fault tolerance for services running code and functions. Users won&#8217;t need to worry about the downtime of the app.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"M\u1ed9t-s\u1ed1-use-case-th\u01b0\u1eddng-g\u1eb7p-c\u1ee7a-AWS-Lambda\" data-renderer-start-pos=\"2895\">Some common AWS Lambda use cases<\/h2>\n<p data-renderer-start-pos=\"2938\">Here are some use cases where AWS Lambda services have helped users thoroughly solve common problems:<\/p>\n<h3 id=\"1.-HTTP-API\" data-renderer-start-pos=\"3054\">1. HTTP API<\/h3>\n<p data-renderer-start-pos=\"3067\">Using AWS Lambda, you can integrate or deploy logical backends to the cloud and invoke functions with caution just by calling HTTP.<\/p>\n<p data-renderer-start-pos=\"3221\">When integrating Amazon API Gateway with AWS Lambda, not only will costs be minimized <em>(VTI Cloud will speak more detail in the next section)<\/em>, but users will also minimize the effort to operate servers as well as expand services.<\/p>\n<h3 id=\"2.-X\u1eed-l\u00fd-d\u1eef-li\u1ec7u\" data-renderer-start-pos=\"3446\">2. Data Processing\u00a0<\/h3>\n<p data-renderer-start-pos=\"3465\">For example, if an application handles a lot of data stored in Amazon DynamoDB, you can trigger Lambda functions whenever you write, update, or delete items in that table.<\/p>\n<p data-renderer-start-pos=\"3639\">These events trigger lambda functions that will process, analyze, and can push this data to other AWS services such as Amazon S3 to store results&#8230;<\/p>\n<p data-renderer-start-pos=\"3795\">In other words, users can create an entire data processing process by combining different AWS resources.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2352\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-processing-data.jpg\" alt=\"aws lambda processing data\" width=\"915\" height=\"300\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-processing-data.jpg 915w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-processing-data-300x98.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-processing-data-768x252.jpg 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/p>\n<h3 id=\"3.-X\u1eed-l\u00fd-t\u1ec7p-tin-th\u1eddi-gian-th\u1ef1c\" data-renderer-start-pos=\"3940\">3. Real-time file processing<\/h3>\n<p data-renderer-start-pos=\"3973\">Usually, CMS applications for content management always have the function of uploading images. This image will be saved on the Amazon S3 bucket. Aws Lambda can now be used to<strong data-renderer-mark=\"true\"> create an automated task.<\/strong><\/p>\n<p data-renderer-start-pos=\"4168\">For example, after uploading an <strong data-renderer-mark=\"true\">image, triggers <\/strong>to create another version of the shape with a lower resolution (thumbnails) and be at another bucket.<\/p>\n<blockquote>\n<p data-renderer-start-pos=\"4313\">AWS Lambda will help applications automatically in in-call logic on demand and only if it is really necessary. Reference: <a style=\"color: #ff9900;\" href=\"https:\/\/github.com\/aws-samples\/lambda-refarch-fileprocessing\">GitHub &#8211; aws-samples\/lambda-refarch-fileprocessing: Serverless Reference Architecture for Real-time File Processing<\/a><\/p>\n<\/blockquote>\n<h3 id=\"4.-X\u1eed-l\u00fd-lu\u1ed3ng-th\u1eddi-gian-th\u1ef1c\" data-renderer-start-pos=\"4542\">4. Real-time stream processing\u00a0<\/h3>\n<p data-renderer-start-pos=\"4574\">For applications with &#8220;tremendous&#8221; traffic, the system often uses AWS Lambda and Amazon Kinesis Stream services to process real-time streaming data for application tracking activities, or real-time studies of various data from metrics collect from many data sources such as clickstream websites, Payment transactions, Social media timeline, IT logs or Location-based tracking.<\/p>\n<blockquote>\n<p>Reference:<span style=\"color: #ff9900;\"> <a style=\"color: #ff9900;\" href=\"https:\/\/github.com\/aws-samples\/lambda-refarch-streamprocessing\">GitHub &#8211; aws-samples\/lambda-refarch-streamprocessing: Serverless Reference Architecture for Real-time Stream Processing<\/a><\/span><\/p>\n<\/blockquote>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2351\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/real-time-processing-data-with-aws-lambda.png\" alt=\"real time processing data with aws lambda\" width=\"768\" height=\"368\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/real-time-processing-data-with-aws-lambda.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/real-time-processing-data-with-aws-lambda-300x144.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<h2 data-pm-slice=\"1 1 []\">The service costs<\/h2>\n<p data-renderer-start-pos=\"5170\">With AWS Lambda, you pay only for what you use. You are charged based on the number <strong data-renderer-mark=\"true\">of requests<\/strong> for functions and <strong data-renderer-mark=\"true\">duration, <\/strong>code execution time.<\/p>\n<p data-renderer-start-pos=\"5332\">Duration is calculated from when the code is enforced to the time the execution is complete or terminate, rounded to the nearest 1ms. The cost will be based on the capacity of the layout allocated to the function.<\/p>\n<p data-renderer-start-pos=\"5508\">AWS Lambda free usage tier includes <strong data-renderer-mark=\"true\">1M free requests and 400,000 GB-s of calculated time per month.<\/strong> Below is the price list for the region Asia Pacific (Singapore) of this service.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2340\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event.png\" alt=\"\" width=\"1766\" height=\"602\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event.png 1766w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-300x102.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-1024x349.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-768x262.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-1536x524.png 1536w\" sizes=\"(max-width: 1766px) 100vw, 1766px\" \/> <img loading=\"lazy\" class=\"aligncenter size-full wp-image-2353\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/lambda-pricing.png\" alt=\"lambda pricing\" width=\"522\" height=\"596\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/lambda-pricing.png 522w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/lambda-pricing-263x300.png 263w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/p>\n<blockquote data-pm-slice=\"2 1 []\">\n<p>You can see more about AWS Lambda pricing here: <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/aws.amazon.com\/lambda\/pricing\">https:\/\/aws.amazon.com\/lambda\/pricing<\/a><\/span><\/p>\n<\/blockquote>\n<h2 id=\"C\u00e1ch-ho\u1ea1t-\u0111\u1ed9ng-c\u1ee7a-AWS-Lambda?\" data-renderer-start-pos=\"5794\">How does AWS Lambda work?<\/h2>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2354\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-features.png\" alt=\"aws lambda features\" width=\"951\" height=\"276\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-features.png 951w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-features-300x87.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-features-768x223.png 768w\" sizes=\"(max-width: 951px) 100vw, 951px\" \/><\/p>\n<p data-renderer-start-pos=\"5829\">To summarize how this service works, VTI Cloud aggregates into 02 main stages:<\/p>\n<ol class=\"ak-ol\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"5919\">First, you create a function and add basic information to the service, such as the programming language used in the function.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"6053\">Then you write your code on the lambda editor or upload the <span id=\"7177ced8-7e60-4cc8-91db-d5dd65e814b0\" data-renderer-mark=\"true\" data-mark-type=\"annotation\" data-mark-annotation-type=\"inlineComment\" data-id=\"7177ced8-7e60-4cc8-91db-d5dd65e814b0\">source code in<\/span> a zip file. When lambda code is uploaded, the service handles all capacity expansion, patching, and infrastructure administration.<\/p>\n<\/li>\n<\/ol>\n<p data-renderer-start-pos=\"6271\">Let&#8217;s dig deeper&#8230;<\/p>\n<h3 id=\"B\u01b0\u1edbc-1:-C\u00e1ch-t\u1ea1o-m\u1ed9t-AWS-Lambda-Function\" data-renderer-start-pos=\"6299\">Step 1: How to Create an AWS Lambda Function<\/h3>\n<p data-renderer-start-pos=\"6341\">VTI Cloud will for example create a simple game using lambda function in Node.js for this article.<\/p>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"6455\">Go to the AWS Management Console table, and in the search bar, type Lambda, click Lambda services.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2350\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-in-management-console.jpg\" alt=\"aws lambda in management console\" width=\"1142\" height=\"595\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-in-management-console.jpg 1142w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-in-management-console-300x156.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-in-management-console-1024x534.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-in-management-console-768x400.jpg 768w\" sizes=\"(max-width: 1142px) 100vw, 1142px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">The Function window will be open, select<strong data-renderer-mark=\"true\"> Create Function<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2349\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda.jpg\" alt=\"create function aws lambda\" width=\"1803\" height=\"281\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda.jpg 1803w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda-300x47.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda-1024x160.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda-768x120.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-aws-lambda-1536x239.jpg 1536w\" sizes=\"(max-width: 1803px) 100vw, 1803px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">You will get different options to create a function with their explanation. Since I&#8217;m creating it from scratch, I&#8217;ll choose <strong data-renderer-mark=\"true\">Author from Scratch.<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2348\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1.jpg\" alt=\"create function 1\" width=\"1793\" height=\"406\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1.jpg 1793w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1-300x68.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1-1024x232.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1-768x174.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-function-1-1536x348.jpg 1536w\" sizes=\"(max-width: 1793px) 100vw, 1793px\" \/><\/p>\n<ul class=\"ak-ul\" data-pm-slice=\"3 1 []\">\n<li>\n<p>Then you need to fill in some necessary information for this lambda function. Enter the function name and select the Node .js that you want to use for this function.<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"C\u00f3-04-ph\u01b0\u01a1ng-ph\u00e1p-khi-t\u1ea1o-function:\" data-renderer-start-pos=\"6937\">There are 04 methods when creating functions:<\/h4>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"6976\"><strong data-renderer-mark=\"true\">Author from scratch<\/strong> &#8211; Starts from a simple command like <code><span class=\"code\" data-renderer-mark=\"true\">print('Hello, world!')<\/span>.<\/code><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"7062\"><strong data-renderer-mark=\"true\">Use a blueprint<\/strong> &#8211; Allows you to build a lambda function using &#8220;blueprint&#8221;. Blueprint in this context means a pre-written piece of code (NodeJs and Python only) for common use cases, such as logging updates made to a DynamoDB table or activating a function when something is uploaded to the S3 bucket.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"7441\"><strong data-renderer-mark=\"true\">Container image <\/strong>&#8211; Use the available image container to deploy functions, using this method to take advantage of image containers from the previous project to save time creating new.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"7616\"><strong data-renderer-mark=\"true\">Browse serverless app repository<\/strong> &#8211; Allows you to deploy all sample applications from the AWS Serverless Application Repository. These packages can be provided by AWS or by the community.<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"AWS-Lambda-kh\u00f4ng-ph\u1ea3i-l\u00e0-m\u1ed9t-d\u1ecbch-v\u1ee5-global!\" data-renderer-start-pos=\"7806\">AWS Lambda is not a global service!<\/h4>\n<p data-renderer-start-pos=\"7852\">This means you have to change the region to where you want to implement Lambda function (depending on project requirements).<\/p>\n<p data-pm-slice=\"1 1 []\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2336\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/region-for-aws-lambda.jpg\" alt=\"region for aws lambda\" width=\"465\" height=\"827\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/region-for-aws-lambda.jpg 465w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/region-for-aws-lambda-169x300.jpg 169w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">You also need to choose an execution role. VTI Cloud will choose to create a new role option (role creation article for new people to understand). Then, click <strong data-renderer-mark=\"true\">Create Function.<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2347\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-role-aws-lambda.jpg\" alt=\"create role aws lambda\" width=\"1413\" height=\"773\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-role-aws-lambda.jpg 1413w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-role-aws-lambda-300x164.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-role-aws-lambda-1024x560.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/create-role-aws-lambda-768x420.jpg 768w\" sizes=\"(max-width: 1413px) 100vw, 1413px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 []\">Note that depending on the need to create functions in VPC cases that can be customized in the Advanced Settings section<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2346\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function.jpg\" alt=\"advanced setting create function\" width=\"1713\" height=\"588\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function.jpg 1713w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function-300x103.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function-1024x351.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function-768x264.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/advanced-setting-create-function-1536x527.jpg 1536w\" sizes=\"(max-width: 1713px) 100vw, 1713px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 []\">\n<p data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">You&#8217;ll receive a success message that the comment has been created. Click the Designer window to shrink it.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2345\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda.jpg\" alt=\"successfully create function lambda\" width=\"1816\" height=\"726\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda.jpg 1816w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda-300x120.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda-1024x409.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda-768x307.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/successfully-create-function-lambda-1536x614.jpg 1536w\" sizes=\"(max-width: 1816px) 100vw, 1816px\" \/><\/p>\n<h3 id=\"B\u01b0\u1edbc-2:-Upload-code-l\u00ean-AWS-Lambda-Function\" data-renderer-start-pos=\"8380\">Step 2: Upload code to AWS Lambda Function<\/h3>\n<ul class=\"ak-ul\">\n<li>\n<p>Below is the Function code window. Here will be where you upload your code, be it straight into this window (called AWS internal code editor), or upload as a zip file.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2342\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/upload-from-zip-or-s3.jpg\" alt=\"upload from zip or s3\" width=\"939\" height=\"284\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/upload-from-zip-or-s3.jpg 939w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/upload-from-zip-or-s3-300x91.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/upload-from-zip-or-s3-768x232.jpg 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">Here VTI Cloud is example code of the game &#8220;Dice&#8221;.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2344\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows.jpg\" alt=\"function code windows\" width=\"1721\" height=\"358\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows.jpg 1721w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows-300x62.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows-1024x213.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows-768x160.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/function-code-windows-1536x320.jpg 1536w\" sizes=\"(max-width: 1721px) 100vw, 1721px\" \/><\/p>\n<ul>\n<li>\n<p data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">Now click the Test button in the top right corner. You will get a pop-up window to configure the test event, enter the event name and click <strong data-renderer-mark=\"true\">Create<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2343\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/configure-test-event.jpg\" alt=\"configure test event\" width=\"820\" height=\"891\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/configure-test-event.jpg 820w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/configure-test-event-276x300.jpg 276w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/configure-test-event-768x834.jpg 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">Click Test to test the code &gt; Result to &#8220;5&#8221;.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2340\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event.png\" alt=\"test event\" width=\"1766\" height=\"602\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event.png 1766w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-300x102.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-1024x349.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-768x262.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/test-event-1536x524.png 1536w\" sizes=\"(max-width: 1766px) 100vw, 1766px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">Pulling upwards will have specific information about this test. Details such as request-id, duration, billed duration, resources configured &#8230; with log output available.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2341\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details.jpg\" alt=\"execution details\" width=\"1797\" height=\"817\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details.jpg 1797w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details-300x136.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details-1024x466.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details-768x349.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/execution-details-1536x698.jpg 1536w\" sizes=\"(max-width: 1797px) 100vw, 1797px\" \/><\/p>\n<ul>\n<li>In the Monitoring tab, the log and resource parameters of the AWS Lambda service used will be tracked, including Logs Insights generated by the Amazon CloudWatch service.<\/li>\n<\/ul>\n<blockquote>\n<p>You can review the Amazon CloudWatch service basics article here: <a class=\"sc-eTuwsz gEkkNE\" title=\"https:\/\/vticloud.io\/dinh-nghia-co-ban-ve-amazon-cloudwatch\/\" href=\"https:\/\/vticloud.io\/en\/dinh-nghia-co-ban-ve-amazon-cloudwatch\/\" data-renderer-mark=\"true\">Amazon CloudWatch basic definitions | VTI CLOUD<\/a><\/p>\n<\/blockquote>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2339\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function.png\" alt=\"monitor aws lambda function\" width=\"1784\" height=\"802\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function.png 1784w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function-300x135.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function-1024x460.png 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function-768x345.png 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/monitor-aws-lambda-function-1536x691.png 1536w\" sizes=\"(max-width: 1784px) 100vw, 1784px\" \/><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2338\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight-.jpg\" alt=\"cloudwatch logs insight\" width=\"1762\" height=\"742\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight-.jpg 1762w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight--300x126.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight--1024x431.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight--768x323.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insight--1536x647.jpg 1536w\" sizes=\"(max-width: 1762px) 100vw, 1762px\" \/><\/p>\n<ul>\n<li>\n<p data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">If you go inside the cloudwatch-generated log, you can see in detail what happened while running the lambda function, which is tracked by CloudWatch.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2337\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function.jpg\" alt=\"cloudwatch logs insights aws lambda function\" width=\"1592\" height=\"710\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function.jpg 1592w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function-300x134.jpg 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function-1024x457.jpg 1024w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function-768x343.jpg 768w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/cloudwatch-logs-insights-aws-lambda-function-1536x685.jpg 1536w\" sizes=\"(max-width: 1592px) 100vw, 1592px\" \/><\/p>\n<h2 id=\"C\u00e1ch-c\u1ea5u-h\u00ecnh-AWS-Lambda-v\u1edbi-d\u1ecbch-v\u1ee5-kh\u00e1c-c\u1ee7a-AWS\" data-renderer-start-pos=\"9535\">How to configure AWS Lambda with other AWS services<\/h2>\n<p data-renderer-start-pos=\"9586\">To run code in AWS Lambda, you need to enable lambda function with an external AWS service, which can call lambda function. For example, the service can be an S3 bucket.<\/p>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"9766\">Within milliseconds, lambda will be ready to automatically activate your function when an event occurs. AWS Lambda runs your code when the trigger event is in call. the service provides management and monitoring of servers for you.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"9993\">If your function requires a lot of processing power, the service will choose the instance type with more processing power and RAM, or if your lambda code is only executed in two seconds, the service will choose the lowest possible version, saving you money and time.<\/p>\n<\/li>\n<\/ul>\n<p data-renderer-start-pos=\"10259\">In this article, VTI Cloud will show you how to add API Gateway trigger with Lambda function.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2335\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway.png\" alt=\"aws lambda trigger api gateway\" width=\"880\" height=\"501\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway.png 880w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-300x171.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-768x437.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<ul class=\"ak-ul\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"10355\">Similar to the function creation instructed above, here VTI Cloud creates a function called<span class=\"code\" data-renderer-mark=\"true\"><code> trigger-with-api-gateway<\/code> for <\/span>demo.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"10485\">Click <code>add<\/code><span class=\"code\" data-renderer-mark=\"true\"><code>trigger<\/code> to select<\/span> API Gateway and create a new API.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2334\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-1.png\" alt=\"aws lambda trigger api gateway 1\" width=\"880\" height=\"872\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-1.png 880w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-1-300x297.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-1-150x150.png 150w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-1-768x761.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2333\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.png\" alt=\"aws lambda trigger api gateway 2\" width=\"880\" height=\"774\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.png 880w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2-300x264.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2-768x675.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"2 4 [&quot;bulletList&quot;,null]\">\n<p>You can choose between the <strong data-renderer-mark=\"true\">HTTP API and<\/strong> the REST <strong data-renderer-mark=\"true\">API.<\/strong> Then fill in the information by default. In the additional settings section, additional options can be selected.<\/p>\n<ul class=\"ak-ul\">\n<li>\n<p>Enable CORS in HTTP API:<span style=\"color: #ff9900;\"> <a style=\"color: #ff9900;\" href=\"https:\/\/docs.aws.amazon.com\/apigateway\/latest\/developerguide\/http-api-cors.html\">Configuring CORS for an HTTP API &#8211; Amazon API Gateway<\/a><\/span><\/p>\n<\/li>\n<li>\n<p>Enable CORS in REST API: <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/docs.aws.amazon.com\/apigateway\/latest\/developerguide\/how-to-cors.html\">Enabling CORS for a REST API resource &#8211; Amazon API Gateway<\/a><\/span><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2331\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.1.png\" alt=\"aws lambda trigger api gateway 2.1\" width=\"916\" height=\"762\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.1.png 916w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.1-300x250.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-2.1-768x639.png 768w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/p>\n<ul>\n<li data-pm-slice=\"1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]\">Once done, click <strong data-renderer-mark=\"true\">Add<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2332\" src=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-3.png\" alt=\"aws lambda trigger api gateway 3\" width=\"880\" height=\"517\" srcset=\"https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-3.png 880w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-3-300x176.png 300w, https:\/\/vticloud.io\/wp-content\/uploads\/2021\/03\/aws-lambda-trigger-api-gateway-3-768x451.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<p data-pm-slice=\"1 1 []\">&gt;&gt; API Endpoint will have the following form: <code><span class=\"code\" spellcheck=\"false\">https:\/\/RANDOM_STUFF.execute-api.REGION-NAME.amazonaws.com\/default\/MY_FUNCTION_NAME<\/span><\/code><\/p>\n<p>That&#8217;s it! It&#8217;s simple, isn&#8217;t it?<\/p>\n<h2 id=\"K\u1ebft-lu\u1eadn\" data-renderer-start-pos=\"11102\">Conclusion<\/h2>\n<p data-renderer-start-pos=\"11112\">For a developer, saving time to manage and operate your infrastructure system ensures that your application can scale, high availability is indeed precious. The AWS Lambda serverless service helps developers just focus on developing their applications without having to pay attention to their code-running infrastructure!<\/p>\n<h2>About VTI Cloud<\/h2>\n<p data-renderer-start-pos=\"6835\"><strong data-renderer-mark=\"true\">VTI Cloud<\/strong>\u00a0is an\u00a0<span style=\"color: #ff9900;\"><a class=\"sc-iELTvK jHUAie\" style=\"color: #ff9900;\" title=\"https:\/\/vticloud.io\/news_events\/vti-cloud-chinh-thuc-tro-thanh-advanced-consulting-partner-cua-aws\/\" href=\"https:\/\/vticloud.io\/news_events\/vti-cloud-chinh-thuc-tro-thanh-advanced-consulting-partner-cua-aws\/\" data-renderer-mark=\"true\">Advanced Consulting Partner<\/a>\u00a0<\/span>of AWS Vietnam with a team of over 50+ AWS certified solution engineers. With the desire to support customers in the journey of digital transformation and migration to the AWS cloud, VTI Cloud is proud to be a pioneer in consulting solutions, developing software, and deploying AWS infrastructure to customers<strong data-renderer-mark=\"true\">\u00a0in Vietnam<\/strong>\u00a0<strong data-renderer-mark=\"true\">and Japan.<\/strong><\/p>\n<p data-renderer-start-pos=\"7217\">Building safe, high-performance, flexible, and cost-effective architectures for customers is\u00a0<strong data-renderer-mark=\"true\">VTI Cloud\u2019s<\/strong>\u00a0leading mission in enterprise technology mission.<\/p>\n<\/div>\n<\/div>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve heard a lot about the term &#8220;serverless,&#8221; how they work, and the benefits that your application brings. A serverless service in general will not require any server provision to run the application. When you run an application on serverless, users will not have to worry about setting up the operating system, patching, or extending [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":2330,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[123,68,122],"_links":{"self":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/2329"}],"collection":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/comments?post=2329"}],"version-history":[{"count":1,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/2329\/revisions"}],"predecessor-version":[{"id":3161,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/posts\/2329\/revisions\/3161"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/media\/2330"}],"wp:attachment":[{"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/media?parent=2329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/categories?post=2329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vticloud.io\/en\/wp-json\/wp\/v2\/tags?post=2329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}