{"id":17192,"date":"2022-12-28T03:58:13","date_gmt":"2022-12-28T03:58:13","guid":{"rendered":"http:\/\/639c8a35e972c6001d6cfaa8"},"modified":"2025-01-07T04:38:46","modified_gmt":"2025-01-07T03:38:46","slug":"easiest-gitlab-cicd-lambda-pipeline","status":"publish","type":"post","link":"https:\/\/dassiorleando.com\/fr\/easiest-gitlab-cicd-lambda-pipeline\/","title":{"rendered":"Easiest GitLab CI\/CD Lambda Pipeline"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p><strong>Lambda<\/strong> became very popular amongst modern Apps&#8217; architectures, it&#8217;s broadly used to create <strong>Cloud Functions<\/strong> on <strong>AWS<\/strong> public Cloud.<\/p>\n\n\n\n<p>This article will go over a simple way to create a <strong>CI\/CD<\/strong> pipeline for Lambda functions whose codes are hosted on <strong>GitLab<\/strong> with either <strong>ClaudiaJS<\/strong>,<strong> Chalice<\/strong> or the<strong> ServerlessFramework<\/strong> as an additional automation tool for their management.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The <strong>YouTube Channels<\/strong> in both English (En) and French (Fr) are now accessible, feel free to subscribe by clicking <a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\">here<\/a>.<\/p>\n<\/blockquote>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/www.youtube.com\/@numericaideas\/channels?sub_confirmation=1\" class=\"vlp-link\" title=\"Numerica Ideas\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/yt3.googleusercontent.com\/klwPa3fnccvxnvUjmfGmcdJDeX8J7BMbRraxiH69WeLx6qr3fQdxYSGN37vKE4jBCqGX5pZCgQ=s900-c-k-c0x00ffffff-no-rj\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">Numerica Ideas<\/div><div class=\"vlp-block-1 vlp-link-summary\">NumericaIdeas is a technical community that creates opportunities for IT professionals, where you\u2019ll secure your dream job, and indeed the group through which you can develop your hard and soft skills at your own pace. Our motto is \u201cDiscover, Learn, Build, &amp; Share\u201d \ud83d\ude80 \ud83d\udca1 La cha\u00eene est aussi disponi\u2026<\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"function-management\">Function Management<\/h2>\n\n\n\n<p>By managing our functions we mean operations that are performed quite frequently like function creation (in a new region) and deployments to push the newest versions of our code to the Cloud.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"claudiajs\">ClaudiaJS<\/h3>\n\n\n\n<p>For the sake of the demonstration, <strong>NodeJS<\/strong> is used as the runtime for our Lambda function and we&#8217;ll be using <a href=\"https:\/\/claudiajs.com\/\">ClaudiaJS<\/a> as the automation tool to quickly manage it on usual days but depending on the runtime any other tool will do.<\/p>\n\n\n\n<p>By this step, let&#8217;s assume you already have a Lambda function created using ClaudiaJS, or you can simply clone <a href=\"https:\/\/gitlab.com\/dassiorleando\/ni-microservice-nodejs-gitlabci\">ni-microservice-nodejs-gitlabci<\/a> (a lightweight copy of <a href=\"https:\/\/github.com\/numerica-ideas\/ni-microservice-nodejs\">numerica-ideas\/ni-microservice-nodejs<\/a>) which is powered by ClaudiaJS, the inception details of our sample microservice is being described in the following <a href=\"https:\/\/blog.numericaideas.com\/multipurpose-cloud-migration-nodejs\">article<\/a>.<\/p>\n\n\n\n<p>A few <strong>NPM scripts<\/strong> have been put in place in the <em>package.json<\/em> file to quickly manage the function by running some commands that perform the desired operations by using ClaudiaJS underneath:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>npm run create<\/code>: to create our lambda on the AWS side, to be done once after configuring the <em>environment variables<\/em> described below.<\/li>\n\n\n\n<li><code>npm run deploy:dev<\/code> or <code>npm run deploy:prod<\/code>: these scripts push a new version of the function respectively for <strong>development<\/strong> and <strong>production<\/strong> environments.<\/li>\n\n\n\n<li><code>npm test<\/code>: runs the unit tests that are part of the pipeline executions.<\/li>\n\n\n\n<li>The deployment flow being illustrated uses a private S3 bucket named <em>ni-deployments (to be changed in the package.json file)<\/em> that keeps the latest deployment artifact as new versions are shipped.<\/li>\n<\/ul>\n\n\n\n<p>The traditional <code>npm install<\/code> will always install dependencies in a NodeJS project as soon as the <a href=\"https:\/\/github.com\/numerica-ideas\/ni-microservice-nodejs\/blob\/master\/package.json\">package.json<\/a> file is provided.<\/p>\n\n\n\n<p>For a better separation of our environments, we opted to have two more files <strong>dev.json<\/strong> &amp; <strong>prod.json<\/strong> respectively for the <strong>development<\/strong> and <strong>production<\/strong> Lambda deployments, these are ignored by git as the default <strong>.env<\/strong> file used for traditional server deployments.<\/p>\n\n\n\n<p>Two <strong>private buckets<\/strong> should be created to have these saved differently since in a production setup it&#8217;s often designed that way to enable a more flexible and secured permissions management for users\/services:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Development<\/strong>: ni-variables-dev<\/li>\n\n\n\n<li><strong>Production<\/strong>: ni-variables-prod<\/li>\n<\/ul>\n\n\n\n<p>Once our environment JSON files are ready we can use the following commands to have these pushed to our S3 storage:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>npm run set-vars:dev<\/code><\/li>\n\n\n\n<li><code>npm run set-vars:prod<\/code><\/li>\n<\/ul>\n\n\n\n<p>The content of the production one (prod.json) could look like the one below, for the sake of the example we only have <strong>NODE_ENV<\/strong> and <strong>PORT<\/strong> variables:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/prod-json-env-file.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Production environment variables<\/figcaption><\/figure>\n\n\n\n<p>During the pipeline executions, our CI\/CD flow uses these files to pull the right variables depending on the environment, so the <strong>dev<\/strong> deployment script uses the commands <code>npm run get-vars:dev<\/code> to have the dev env variables (get-vars:prod for the production one).<\/p>\n\n\n\n<p>Let&#8217;s make sure to create the function on the <strong>AWS<\/strong> side using the <code>npm run create<\/code> command, which creates a <strong>claudia.json<\/strong> file and prints to the console like the following screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/lambda-function-creation.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Lambda function creation using &#8220;npm run create&#8221;<\/figcaption><\/figure>\n\n\n\n<p>For now, let&#8217;s limit ourselves to these three scripts since we should only cover the CI\/CD side and even to a minimal extent. This article is not about mastering ClaudiaJS tool, if you are looking at other possibilities that it provides feel free to take a look at the corresponding <a href=\"https:\/\/claudiajs.com\/documentation.html\">documentation<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"serverless-framework-chalice\">Serverless Framework \/ Chalice<\/h3>\n\n\n\n<p>ClaudiaJS does a <code>claudia update --version env<\/code> &nbsp;by using the <code>npm run deploy env<\/code> command, which is replicable regardless of the management tool being used.<\/p>\n\n\n\n<p>The same <strong>NPM<\/strong> deployment script will have <code>sls deploy --stage env<\/code> as value if the <a href=\"https:\/\/www.serverless.com\/framework\/docs\/getting-started\">ServerlessFramework<\/a> were used or even <code>chalice deploy --stage env<\/code> if <a href=\"https:\/\/aws.github.io\/chalice\/index.html\">Chalice<\/a> was at the center of a function created using the <strong>Python runtime<\/strong>.<\/p>\n\n\n\n<p><strong>Note<\/strong>: <code>env<\/code> represents the environment (profile) we are deploying to, it could be <u>dev<\/u>, <u>prod,<\/u> or anything else.<\/p>\n\n\n\n<p>Are you looking further? Feel free to read the following article if you are interested in boosting the performance of your Lambda function.<\/p>\n\n\n<div class=\"vlp-link-container vlp-layout-basic wp-block-visual-link-preview-link\"><a href=\"https:\/\/numericaideas.com\/blog\/lambda-performance-improvement-with-snapstart\/\" class=\"vlp-link\" title=\"Lambda Performance Improvement with SnapStart\" rel=\"nofollow\" target=\"_blank\"><\/a><div class=\"vlp-layout-zone-side\"><div class=\"vlp-block-2 vlp-link-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/NI-Lambda-SnapStart-1-min.png\" style=\"max-width: 150px; max-height: 150px\" \/><\/div><\/div><div class=\"vlp-layout-zone-main\"><div class=\"vlp-block-0 vlp-link-title\">Lambda Performance Improvement with SnapStart<\/div><div class=\"vlp-block-1 vlp-link-summary\">SnapStart is a performance optimization option that helps to reduce the initialization time of Lambda functions at no additional costs.<\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"ci-cd-pipelines\">CI\/CD Pipelines<\/h2>\n\n\n\n<p>It now become a <strong><u>common practice<\/u><\/strong> to keep the source code as close as possible to the CI\/CD provider for faster deliveries, and it happens that GitLab is doing both at the same time, so it&#8217;s possible to use it not only as a code hosting platform but also to automate <strong>build<\/strong>, <strong>test<\/strong> and <strong>deploy<\/strong> processes as part of the CI\/CD mechanism.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"setup\">Setup<\/h3>\n\n\n\n<p>Using <a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/\"><strong>GitLab CI\/CD<\/strong><\/a> is very simple as it&#8217;s done by creating the <code>.gitlab-ci.yml<\/code> configuration file that resides at the root (default location) of the repository you cloned a few steps ago, if it&#8217;s missing then no pipelines will run.<\/p>\n\n\n\n<p>Once created, GitLab detects it and an Application called <a href=\"https:\/\/docs.gitlab.com\/runner\/\">GitLab Runner<\/a> will run your pipelines&#8217; jobs as commits occur.<\/p>\n\n\n\n<p>From the official <a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/yaml\/gitlab_ci_yaml.html\">documentation page<\/a> that specifies how this configuration file should be created, it&#8217;s said that:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The scripts are grouped into <strong><strong>jobs<\/strong><\/strong>, and jobs run as part of a larger <strong><strong>pipeline<\/strong><\/strong>. You can group multiple <em>independent<\/em> jobs into <strong><strong>stages<\/strong><\/strong> that run in a defined order. The CI\/CD configuration needs at least one job that is <a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/jobs\/index.html#hide-jobs\">not hidden<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<p>In our case, three (3) stages (<strong>build<\/strong>, <strong>test<\/strong>, and <strong>deploy)<\/strong> have been created to perform our operations; in which we have <strong>dependencies, testing, dev_deployment, and prod_deployment <\/strong>Jobs<strong>.<\/strong><\/p>\n\n\n\n<p>Here&#8217;s how the<strong> Pipeline Architecture <\/strong>looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/deployment.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">GitLab CI\/CD Pipeline Architecture<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"build-stage\">Build Stage<\/h3>\n\n\n\n<p>First, we build the App by <strong>installing<\/strong> dependencies and <strong>compiling<\/strong> TypeScript files to JavaScript ones as follows:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">dependencies:\n  stage: build\n  script:\n    - npm install\n    - npm run build\n  artifacts:\n    paths:\n      - node_modules\/\n  only:\n  - master\n  - develop<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"test-stage\">Test Stage<\/h3>\n\n\n\n<p>Then, the unit tests are run using the <strong>AVA<\/strong> test runner abstracted by <code>npm test<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">testing:\n  stage: test\n  script: npm test\n  only:\n  - master\n  - develop<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deploy-stage\">Deploy Stage<\/h3>\n\n\n\n<p>Finally, the deployment happens depending on the branch involved. At the moment, we have two distinct deployment &nbsp;jobs respectively for <strong>develop<\/strong> and <strong>master<\/strong> branches while <strong>build<\/strong> and <strong>test<\/strong> ones are the same for both:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"># Development deployment job\ndev_deployment:\n  stage: deploy\n  only:\n  - develop\n  script:\n  - apt-get update -y\n  - curl \"https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\n  - unzip -u awscliv2.zip\n  - .\/aws\/install\n  - rm -rf awscliv2.zip\n  - aws --version\n  - npm run deploy:dev\n# Production deployment job\nprod_deployment:\n  stage: deploy\n  only:\n  - master\n  script:\n  - apt-get update -y\n  - curl \"https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\n  - unzip -u awscliv2.zip\n  - .\/aws\/install\n  - rm -rf awscliv2.zip\n  - aws --version\n  - npm run deploy:prod<\/pre>\n\n\n\n<p>Let&#8217;s note that these can be abstracted even more to centralize common tasks.<\/p>\n\n\n\n<p>The full configuration file is available on <a href=\"https:\/\/github.com\/numerica-ideas\/ni-microservice-nodejs\/blob\/master\/.gitlab-ci.yml\">GitHub<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"pipelines-executions\">Pipelines Executions<\/h3>\n\n\n\n<p>There are <a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/triggers\/#trigger-a-pipeline\">multiple options<\/a> to trigger pipeline executions, the most common is via <strong>Jobs<\/strong> created by actions made on the repository (commit, release\/tag &#8230; etc) which this article covers a few more lines down.<\/p>\n\n\n\n<p>Once pushed the first commit with the <strong>configuration file (.gitlab-ci.yml)<\/strong> in place, the pipeline was executed and a full summary was printed a few minutes later in the repository <a href=\"https:\/\/gitlab.com\/dassiorleando\/ni-microservice-nodejs-gitlabci\/-\/pipelines\">Pipelines<\/a> area, it looked like the following screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/gitlab-ci-failed-pipeline.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Failed pipeline due to missing AWS credentials<\/figcaption><\/figure>\n\n\n\n<p>As expected, the <strong>build (NPM dependencies installation and TypeScript compilation)<\/strong> and <strong>test (sample OK tests provided)<\/strong> stages succeeded while the <strong>deploy<\/strong> one failed; which is normal since we are deploying using ClaudiaJS (or any alternative) which communicates with AWS while GitLab doesn&#8217;t know yet how to interact with our AWS infrastructure which we dive deep on in the next section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"aws-credentials\">AWS Credentials<\/h2>\n\n\n\n<p>GitLab has predefined CI\/CD variables used by AWS tools for deployments and\/or resource management, from the repository settings you can define these variables.<\/p>\n\n\n\n<p>The UI is straightforward and looks like the below where we simply have to specify the right <strong>key<\/strong> and <strong>value<\/strong> in the first two inputs:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/define-aws-ci-variables.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Define AWS CI\/CD variables<\/figcaption><\/figure>\n\n\n\n<p>Let&#8217;s perform this multiple times to specify the <strong>AWS_ACCESS_KEY_ID<\/strong>, <strong>AWS_SECRET_ACCESS_KEY<\/strong> &amp; <strong>AWS_DEFAULT_REGION <\/strong>variables:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/aws-gitlabci-variables.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Manage AWS CI\/CD variables<\/figcaption><\/figure>\n\n\n\n<p>Once done, feel free to make a small change and then a commit to see the pipeline getting triggered once more, now we have successes for the <strong>build<\/strong>, <strong>test<\/strong>, and <strong>deploy<\/strong> stages as you can see:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/assets.numericaideas.com\/2022\/12\/successful-lambda-ci-build.png\" alt=\"Easiest GitLab CI\/CD Lambda Pipeline\"\/><figcaption class=\"wp-element-caption\">Successful Lambda pipeline build<\/figcaption><\/figure>\n\n\n\n<p>The <strong>Pipelines History<\/strong> is also available on this public GitLab Page for you to have a closer look at.<\/p>\n\n\n\n<p>Let&#8217;s note that the free plan of GitLab allows us <strong><a href=\"https:\/\/about.gitlab.com\/blog\/2020\/09\/01\/ci-minutes-update-free-users\/\">400 minutes<\/a><\/strong> of runner executions per month, while you are free to create your runners or take advantage of the SASS option by subscribing to an upper package. So it&#8217;s a good idea to always use a base Docker image that contains everything you need, since installing stuff manually will cost you pipeline minutes.<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>We have just started our journey to build a network of professionals to grow even more our free knowledge-sharing community that\u2019ll give you a chance to learn interesting things about topics like cloud computing, software development, and software architectures while keeping the door open to more opportunities.<\/p>\n\n\n\n<p>Does this speak to you? If <strong>YES<\/strong>, feel free to <a href=\"https:\/\/discord.numericaideas.com\">Join our Discord Server<\/a> to stay in touch with the community and be part of independently organized events.<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>For speed and quality purposes, it&#8217;s very important to consider it as a release practice to design a <strong>CI\/CD pipeline<\/strong> for your Apps&#8217; components, let&#8217;s note that the tinier\/segmented your components are the easier the pipelines will be and so for most of the cases you will not need a <strong>Release Manager\/Captain<\/strong> in your team anymore.<\/p>\n\n\n\n<p>Thanks for reading this article. Like, recommend, and share if you enjoyed it. Follow us on <a href=\"https:\/\/www.facebook.com\/numericaideas\" rel=\"nofollow\">Facebook<\/a>, <a href=\"https:\/\/twitter.com\/numericaideas\" rel=\"nofollow\">Twitter<\/a>, and <a href=\"https:\/\/www.linkedin.com\/company\/numericaideas\" rel=\"nofollow\">LinkedIn<\/a> for more content.<\/p>","protected":false},"excerpt":{"rendered":"<p>Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.<\/p>","protected":false},"author":2,"featured_media":18726,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,63,64,78],"tags":[62,76,38],"class_list":["post-17192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backend","category-cloud","category-devops","category-serverless","tag-aws","tag-gitlab-ci-cd","tag-nodejs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Easiest GitLab CI\/CD Lambda Pipeline<\/title>\n<meta name=\"description\" content=\"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Easiest GitLab CI\/CD Lambda Pipeline\" \/>\n<meta property=\"og:description\" content=\"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/\" \/>\n<meta property=\"og:site_name\" content=\"Orleando Dassi\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-28T03:58:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T03:38:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Orl\u00e9ando Dassi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:site\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Orl\u00e9ando Dassi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/\"},\"author\":{\"name\":\"Orl\u00e9ando Dassi\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"headline\":\"Easiest GitLab CI\/CD Lambda Pipeline\",\"datePublished\":\"2022-12-28T03:58:13+00:00\",\"dateModified\":\"2025-01-07T03:38:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/\"},\"wordCount\":1601,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png\",\"keywords\":[\"AWS\",\"GitLab CI\/CD\",\"NodeJS\"],\"articleSection\":[\"Backend\",\"Cloud\",\"DevOps\",\"Serverless\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/\",\"url\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/\",\"name\":\"Easiest GitLab CI\/CD Lambda Pipeline\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png\",\"datePublished\":\"2022-12-28T03:58:13+00:00\",\"dateModified\":\"2025-01-07T03:38:46+00:00\",\"description\":\"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.\",\"breadcrumb\":{\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png\",\"width\":1366,\"height\":768,\"caption\":\"Easiest GitLab CI\/CD Lambda Pipeline\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dassiorleando.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Easiest GitLab CI\/CD Lambda Pipeline\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dassiorleando.com\/#website\",\"url\":\"https:\/\/dassiorleando.com\/\",\"name\":\"Orleando Dassi\",\"description\":\"My personal portfolio and resume\",\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dassiorleando.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\",\"name\":\"Orl\u00e9ando Dassi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"width\":1643,\"height\":1747,\"caption\":\"Orl\u00e9ando Dassi\"},\"logo\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\"},\"description\":\"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.\",\"sameAs\":[\"https:\/\/dassiorleando.com\/\",\"https:\/\/www.instagram.com\/dassiorleando\/\",\"https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/\",\"https:\/\/x.com\/dassiorleando\",\"https:\/\/www.youtube.com\/@dassiorleando\"],\"url\":\"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Easiest GitLab CI\/CD Lambda Pipeline","description":"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.","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:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/","og_locale":"fr_CA","og_type":"article","og_title":"Easiest GitLab CI\/CD Lambda Pipeline","og_description":"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.","og_url":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/","og_site_name":"Orleando Dassi","article_published_time":"2022-12-28T03:58:13+00:00","article_modified_time":"2025-01-07T03:38:46+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png","type":"image\/png"}],"author":"Orl\u00e9ando Dassi","twitter_card":"summary_large_image","twitter_creator":"@dassiorleando","twitter_site":"@dassiorleando","twitter_misc":{"Written by":"Orl\u00e9ando Dassi","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#article","isPartOf":{"@id":"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/"},"author":{"name":"Orl\u00e9ando Dassi","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"headline":"Easiest GitLab CI\/CD Lambda Pipeline","datePublished":"2022-12-28T03:58:13+00:00","dateModified":"2025-01-07T03:38:46+00:00","mainEntityOfPage":{"@id":"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/"},"wordCount":1601,"commentCount":0,"publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png","keywords":["AWS","GitLab CI\/CD","NodeJS"],"articleSection":["Backend","Cloud","DevOps","Serverless"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dassiorleando.com\/easiest-gitlab-cicd-lambda-pipeline\/","url":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/","name":"Easiest GitLab CI\/CD Lambda Pipeline","isPartOf":{"@id":"https:\/\/dassiorleando.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage"},"image":{"@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png","datePublished":"2022-12-28T03:58:13+00:00","dateModified":"2025-01-07T03:38:46+00:00","description":"Quickly build, test, and deploy NodeJS and Python Lambda functions using GitLab CI\/CD with either ClaudiaJS, Chalice, or the Serverless framework.","breadcrumb":{"@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/"]}]},{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#primaryimage","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2022\/12\/Easiest-GitLab-CICD-Lambda-Pipeline-1-min.png","width":1366,"height":768,"caption":"Easiest GitLab CI\/CD Lambda Pipeline"},{"@type":"BreadcrumbList","@id":"https:\/\/numericaideas.com\/blog\/easiest-gitlab-cicd-lambda-pipeline\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dassiorleando.com\/"},{"@type":"ListItem","position":2,"name":"Easiest GitLab CI\/CD Lambda Pipeline"}]},{"@type":"WebSite","@id":"https:\/\/dassiorleando.com\/#website","url":"https:\/\/dassiorleando.com\/","name":"Orleando Dassi","description":"My personal portfolio and resume","publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dassiorleando.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":["Person","Organization"],"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e","name":"Orl\u00e9ando Dassi","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","width":1643,"height":1747,"caption":"Orl\u00e9ando Dassi"},"logo":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/"},"description":"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.","sameAs":["https:\/\/dassiorleando.com\/","https:\/\/www.instagram.com\/dassiorleando\/","https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/","https:\/\/x.com\/dassiorleando","https:\/\/www.youtube.com\/@dassiorleando"],"url":"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/"}]}},"_links":{"self":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/comments?post=17192"}],"version-history":[{"count":1,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17192\/revisions"}],"predecessor-version":[{"id":21673,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/17192\/revisions\/21673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media\/18726"}],"wp:attachment":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media?parent=17192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/categories?post=17192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/tags?post=17192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}