[{"data":1,"prerenderedAt":2815},["ShallowReactive",2],{"/blog/serverless-js-project-template":3,"navigation-en-us":2067,"banner-en-us":2505,"footer-en-us":2513,"blog-post-authors-en-us-Mike Greiling":2758,"blog-related-posts-en-us-serverless-js-project-template":2771,"blog-share-wrapper-en-us":2795,"next-steps-en-us":2805},{"id":4,"title":5,"authors":6,"body":8,"category":2046,"date":2047,"description":2048,"extension":2049,"externalUrl":2050,"faq":2050,"featured":2051,"heroImage":2052,"hidePromo":2051,"meta":2053,"navigation":1238,"path":2054,"seo":2055,"slug":2059,"stem":2060,"tags":2061,"template":2065,"updatedDate":2050,"__hash__":2066},"blogPosts/en-us/blog/serverless-js-project-template.md","Starting a serverless JS project with GitLab",[7],"Mike Greiling",{"type":9,"value":10,"toc":2039},"minimark",[11,21,24,29,38,45,48,52,55,64,70,73,79,82,88,91,962,991,997,1000,1003,1009,1012,1018,1021,1025,1033,1039,1042,1048,1059,1063,1072,1079,1085,1094,1100,1103,1109,1115,1119,1122,1125,1132,1292,1299,1861,1868,2002,2009,2012,2018,2021,2035],[12,13,14,15,20],"p",{},"If you've been working in web development these past few years than you've no doubt heard about ",[16,17,19],"a",{"href":18},"/topics/serverless/","serverless"," FaaS solutions like AWS Lambda or Knative. The idea boils down to writing code as a set of discrete functions that can be triggered by events. All worries about provisioning server nodes, scaling them, managing your back-end stack, and many other operational tasks are abstracted away. Moreover, it often results in massive cost savings as compute resources are provisioned on-demand. As this paradigm is growing in maturity and popularity, many tools have been created to make the process even easier and there has never been a better time to try it out for yourself.",[12,22,23],{},"To demonstrate how easy it is to get started with FaaS in GitLab, we've now added a project template to get you up and running even faster. If you're interested in wading into the serverless waters without running a single command in your terminal, follow along and try it yourself! All that is needed for this example is a free GitLab account and an AWS account.",[25,26,28],"h3",{"id":27},"_1-creating-a-project","1. Creating a project",[12,30,31,32,37],{},"To start off, let's create a project with our new serverless template. Open up the ",[16,33,36],{"href":34,"rel":35},"https://gitlab.com/projects/new",[],"new project"," page and select the \"Create from template\" tab. Then scroll down and select the \"Serverless Framework/JS\" template.",[12,39,40],{},[41,42],"img",{"alt":43,"src":44},"Step 1","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399008/blog/Content%20Images/serverless-js-project-template/step-1.1.jpg",[12,46,47],{},"Give your project a name and select \"Create project\"",[25,49,51],{"id":50},"_2-configuring-your-aws-credentials","2. Configuring your AWS credentials",[12,53,54],{},"Now that we have our GitLab project complete with a boilerplate serverless application, it's time to give it access credentials to AWS so we can deploy it.",[12,56,57,58,63],{},"Open up the AWS console, sign in, and navigate to the ",[16,59,62],{"href":60,"rel":61},"https://console.aws.amazon.com/iam/home",[],"IAM section",". Here you can select \"Users\" in the left-hand column, and create a new user using the \"Add user\" button at the top of the list.",[12,65,66],{},[41,67],{"alt":68,"src":69},"Step 2-1","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399008/blog/Content%20Images/serverless-js-project-template/step-2.1.jpg",[12,71,72],{},"Give your user a name like \"gitlab-serverless\" and make sure to select the \"Programatic access\" checkbox before clicking on \"Next\".",[12,74,75],{},[41,76],{"alt":77,"src":78},"Step 2-2","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399010/blog/Content%20Images/serverless-js-project-template/step-2.2.jpg",[12,80,81],{},"Now we need to give this user the appropriate permissions to deploy serverless functions. On the \"Permissions\" page select \"Attach existing policies directly\" and then click the \"Create policy\" button. This will open a new window.",[12,83,84],{},[41,85],{"alt":86,"src":87},"Step 2-3","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399010/blog/Content%20Images/serverless-js-project-template/step-2.3.jpg",[12,89,90],{},"Here you'll need to select the \"JSON\" tab and paste the following policy statement:",[92,93,98],"pre",{"className":94,"code":95,"language":96,"meta":97,"style":97},"language-json shiki shiki-themes github-light","{\n  \"Statement\": [\n    {\n      \"Action\": [\n        \"apigateway:*\",\n        \"cloudformation:CancelUpdateStack\",\n        \"cloudformation:ContinueUpdateRollback\",\n        \"cloudformation:CreateChangeSet\",\n        \"cloudformation:CreateStack\",\n        \"cloudformation:CreateUploadBucket\",\n        \"cloudformation:DeleteStack\",\n        \"cloudformation:Describe*\",\n        \"cloudformation:EstimateTemplateCost\",\n        \"cloudformation:ExecuteChangeSet\",\n        \"cloudformation:Get*\",\n        \"cloudformation:List*\",\n        \"cloudformation:PreviewStackUpdate\",\n        \"cloudformation:UpdateStack\",\n        \"cloudformation:UpdateTerminationProtection\",\n        \"cloudformation:ValidateTemplate\",\n        \"dynamodb:CreateTable\",\n        \"dynamodb:DeleteTable\",\n        \"dynamodb:DescribeTable\",\n        \"ec2:AttachInternetGateway\",\n        \"ec2:AuthorizeSecurityGroupIngress\",\n        \"ec2:CreateInternetGateway\",\n        \"ec2:CreateNetworkAcl\",\n        \"ec2:CreateNetworkAclEntry\",\n        \"ec2:CreateRouteTable\",\n        \"ec2:CreateSecurityGroup\",\n        \"ec2:CreateSubnet\",\n        \"ec2:CreateTags\",\n        \"ec2:CreateVpc\",\n        \"ec2:DeleteInternetGateway\",\n        \"ec2:DeleteNetworkAcl\",\n        \"ec2:DeleteNetworkAclEntry\",\n        \"ec2:DeleteRouteTable\",\n        \"ec2:DeleteSecurityGroup\",\n        \"ec2:DeleteSubnet\",\n        \"ec2:DeleteVpc\",\n        \"ec2:Describe*\",\n        \"ec2:DetachInternetGateway\",\n        \"ec2:ModifyVpcAttribute\",\n        \"events:DeleteRule\",\n        \"events:DescribeRule\",\n        \"events:ListRuleNamesByTarget\",\n        \"events:ListRules\",\n        \"events:ListTargetsByRule\",\n        \"events:PutRule\",\n        \"events:PutTargets\",\n        \"events:RemoveTargets\",\n        \"iam:CreateRole\",\n        \"iam:DeleteRole\",\n        \"iam:DeleteRolePolicy\",\n        \"iam:GetRole\",\n        \"iam:PassRole\",\n        \"iam:PutRolePolicy\",\n        \"iot:CreateTopicRule\",\n        \"iot:DeleteTopicRule\",\n        \"iot:DisableTopicRule\",\n        \"iot:EnableTopicRule\",\n        \"iot:ReplaceTopicRule\",\n        \"kinesis:CreateStream\",\n        \"kinesis:DeleteStream\",\n        \"kinesis:DescribeStream\",\n        \"lambda:*\",\n        \"logs:CreateLogGroup\",\n        \"logs:DeleteLogGroup\",\n        \"logs:DescribeLogGroups\",\n        \"logs:DescribeLogStreams\",\n        \"logs:FilterLogEvents\",\n        \"logs:GetLogEvents\",\n        \"s3:CreateBucket\",\n        \"s3:DeleteBucket\",\n        \"s3:DeleteBucketPolicy\",\n        \"s3:DeleteObject\",\n        \"s3:DeleteObjectVersion\",\n        \"s3:GetObject\",\n        \"s3:GetObjectVersion\",\n        \"s3:ListAllMyBuckets\",\n        \"s3:ListBucket\",\n        \"s3:PutBucketNotification\",\n        \"s3:PutBucketPolicy\",\n        \"s3:PutBucketTagging\",\n        \"s3:PutBucketWebsite\",\n        \"s3:PutEncryptionConfiguration\",\n        \"s3:PutObject\",\n        \"sns:CreateTopic\",\n        \"sns:DeleteTopic\",\n        \"sns:GetSubscriptionAttributes\",\n        \"sns:GetTopicAttributes\",\n        \"sns:ListSubscriptions\",\n        \"sns:ListSubscriptionsByTopic\",\n        \"sns:ListTopics\",\n        \"sns:SetSubscriptionAttributes\",\n        \"sns:SetTopicAttributes\",\n        \"sns:Subscribe\",\n        \"sns:Unsubscribe\",\n        \"states:CreateStateMachine\",\n        \"states:DeleteStateMachine\"\n      ],\n      \"Effect\": \"Allow\",\n      \"Resource\": \"*\"\n    }\n  ],\n  \"Version\": \"2012-10-17\"\n}\n","json","",[99,100,101,110,120,126,134,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,416,424,432,440,448,456,464,472,480,488,496,504,512,520,528,536,544,552,560,568,576,584,592,600,608,616,624,632,640,648,656,664,672,680,688,696,704,712,720,728,736,744,752,760,768,776,784,792,800,808,816,824,832,840,848,856,864,872,880,888,896,902,908,922,933,939,945,956],"code",{"__ignoreMap":97},[102,103,106],"span",{"class":104,"line":105},"line",1,[102,107,109],{"class":108},"sgsFI","{\n",[102,111,113,117],{"class":104,"line":112},2,[102,114,116],{"class":115},"sYu0t","  \"Statement\"",[102,118,119],{"class":108},": [\n",[102,121,123],{"class":104,"line":122},3,[102,124,125],{"class":108},"    {\n",[102,127,129,132],{"class":104,"line":128},4,[102,130,131],{"class":115},"      \"Action\"",[102,133,119],{"class":108},[102,135,137,141],{"class":104,"line":136},5,[102,138,140],{"class":139},"sYBdl","        \"apigateway:*\"",[102,142,143],{"class":108},",\n",[102,145,147,150],{"class":104,"line":146},6,[102,148,149],{"class":139},"        \"cloudformation:CancelUpdateStack\"",[102,151,143],{"class":108},[102,153,155,158],{"class":104,"line":154},7,[102,156,157],{"class":139},"        \"cloudformation:ContinueUpdateRollback\"",[102,159,143],{"class":108},[102,161,163,166],{"class":104,"line":162},8,[102,164,165],{"class":139},"        \"cloudformation:CreateChangeSet\"",[102,167,143],{"class":108},[102,169,171,174],{"class":104,"line":170},9,[102,172,173],{"class":139},"        \"cloudformation:CreateStack\"",[102,175,143],{"class":108},[102,177,179,182],{"class":104,"line":178},10,[102,180,181],{"class":139},"        \"cloudformation:CreateUploadBucket\"",[102,183,143],{"class":108},[102,185,187,190],{"class":104,"line":186},11,[102,188,189],{"class":139},"        \"cloudformation:DeleteStack\"",[102,191,143],{"class":108},[102,193,195,198],{"class":104,"line":194},12,[102,196,197],{"class":139},"        \"cloudformation:Describe*\"",[102,199,143],{"class":108},[102,201,203,206],{"class":104,"line":202},13,[102,204,205],{"class":139},"        \"cloudformation:EstimateTemplateCost\"",[102,207,143],{"class":108},[102,209,211,214],{"class":104,"line":210},14,[102,212,213],{"class":139},"        \"cloudformation:ExecuteChangeSet\"",[102,215,143],{"class":108},[102,217,219,222],{"class":104,"line":218},15,[102,220,221],{"class":139},"        \"cloudformation:Get*\"",[102,223,143],{"class":108},[102,225,227,230],{"class":104,"line":226},16,[102,228,229],{"class":139},"        \"cloudformation:List*\"",[102,231,143],{"class":108},[102,233,235,238],{"class":104,"line":234},17,[102,236,237],{"class":139},"        \"cloudformation:PreviewStackUpdate\"",[102,239,143],{"class":108},[102,241,243,246],{"class":104,"line":242},18,[102,244,245],{"class":139},"        \"cloudformation:UpdateStack\"",[102,247,143],{"class":108},[102,249,251,254],{"class":104,"line":250},19,[102,252,253],{"class":139},"        \"cloudformation:UpdateTerminationProtection\"",[102,255,143],{"class":108},[102,257,259,262],{"class":104,"line":258},20,[102,260,261],{"class":139},"        \"cloudformation:ValidateTemplate\"",[102,263,143],{"class":108},[102,265,267,270],{"class":104,"line":266},21,[102,268,269],{"class":139},"        \"dynamodb:CreateTable\"",[102,271,143],{"class":108},[102,273,275,278],{"class":104,"line":274},22,[102,276,277],{"class":139},"        \"dynamodb:DeleteTable\"",[102,279,143],{"class":108},[102,281,283,286],{"class":104,"line":282},23,[102,284,285],{"class":139},"        \"dynamodb:DescribeTable\"",[102,287,143],{"class":108},[102,289,291,294],{"class":104,"line":290},24,[102,292,293],{"class":139},"        \"ec2:AttachInternetGateway\"",[102,295,143],{"class":108},[102,297,299,302],{"class":104,"line":298},25,[102,300,301],{"class":139},"        \"ec2:AuthorizeSecurityGroupIngress\"",[102,303,143],{"class":108},[102,305,307,310],{"class":104,"line":306},26,[102,308,309],{"class":139},"        \"ec2:CreateInternetGateway\"",[102,311,143],{"class":108},[102,313,315,318],{"class":104,"line":314},27,[102,316,317],{"class":139},"        \"ec2:CreateNetworkAcl\"",[102,319,143],{"class":108},[102,321,323,326],{"class":104,"line":322},28,[102,324,325],{"class":139},"        \"ec2:CreateNetworkAclEntry\"",[102,327,143],{"class":108},[102,329,331,334],{"class":104,"line":330},29,[102,332,333],{"class":139},"        \"ec2:CreateRouteTable\"",[102,335,143],{"class":108},[102,337,339,342],{"class":104,"line":338},30,[102,340,341],{"class":139},"        \"ec2:CreateSecurityGroup\"",[102,343,143],{"class":108},[102,345,347,350],{"class":104,"line":346},31,[102,348,349],{"class":139},"        \"ec2:CreateSubnet\"",[102,351,143],{"class":108},[102,353,355,358],{"class":104,"line":354},32,[102,356,357],{"class":139},"        \"ec2:CreateTags\"",[102,359,143],{"class":108},[102,361,363,366],{"class":104,"line":362},33,[102,364,365],{"class":139},"        \"ec2:CreateVpc\"",[102,367,143],{"class":108},[102,369,371,374],{"class":104,"line":370},34,[102,372,373],{"class":139},"        \"ec2:DeleteInternetGateway\"",[102,375,143],{"class":108},[102,377,379,382],{"class":104,"line":378},35,[102,380,381],{"class":139},"        \"ec2:DeleteNetworkAcl\"",[102,383,143],{"class":108},[102,385,387,390],{"class":104,"line":386},36,[102,388,389],{"class":139},"        \"ec2:DeleteNetworkAclEntry\"",[102,391,143],{"class":108},[102,393,395,398],{"class":104,"line":394},37,[102,396,397],{"class":139},"        \"ec2:DeleteRouteTable\"",[102,399,143],{"class":108},[102,401,403,406],{"class":104,"line":402},38,[102,404,405],{"class":139},"        \"ec2:DeleteSecurityGroup\"",[102,407,143],{"class":108},[102,409,411,414],{"class":104,"line":410},39,[102,412,413],{"class":139},"        \"ec2:DeleteSubnet\"",[102,415,143],{"class":108},[102,417,419,422],{"class":104,"line":418},40,[102,420,421],{"class":139},"        \"ec2:DeleteVpc\"",[102,423,143],{"class":108},[102,425,427,430],{"class":104,"line":426},41,[102,428,429],{"class":139},"        \"ec2:Describe*\"",[102,431,143],{"class":108},[102,433,435,438],{"class":104,"line":434},42,[102,436,437],{"class":139},"        \"ec2:DetachInternetGateway\"",[102,439,143],{"class":108},[102,441,443,446],{"class":104,"line":442},43,[102,444,445],{"class":139},"        \"ec2:ModifyVpcAttribute\"",[102,447,143],{"class":108},[102,449,451,454],{"class":104,"line":450},44,[102,452,453],{"class":139},"        \"events:DeleteRule\"",[102,455,143],{"class":108},[102,457,459,462],{"class":104,"line":458},45,[102,460,461],{"class":139},"        \"events:DescribeRule\"",[102,463,143],{"class":108},[102,465,467,470],{"class":104,"line":466},46,[102,468,469],{"class":139},"        \"events:ListRuleNamesByTarget\"",[102,471,143],{"class":108},[102,473,475,478],{"class":104,"line":474},47,[102,476,477],{"class":139},"        \"events:ListRules\"",[102,479,143],{"class":108},[102,481,483,486],{"class":104,"line":482},48,[102,484,485],{"class":139},"        \"events:ListTargetsByRule\"",[102,487,143],{"class":108},[102,489,491,494],{"class":104,"line":490},49,[102,492,493],{"class":139},"        \"events:PutRule\"",[102,495,143],{"class":108},[102,497,499,502],{"class":104,"line":498},50,[102,500,501],{"class":139},"        \"events:PutTargets\"",[102,503,143],{"class":108},[102,505,507,510],{"class":104,"line":506},51,[102,508,509],{"class":139},"        \"events:RemoveTargets\"",[102,511,143],{"class":108},[102,513,515,518],{"class":104,"line":514},52,[102,516,517],{"class":139},"        \"iam:CreateRole\"",[102,519,143],{"class":108},[102,521,523,526],{"class":104,"line":522},53,[102,524,525],{"class":139},"        \"iam:DeleteRole\"",[102,527,143],{"class":108},[102,529,531,534],{"class":104,"line":530},54,[102,532,533],{"class":139},"        \"iam:DeleteRolePolicy\"",[102,535,143],{"class":108},[102,537,539,542],{"class":104,"line":538},55,[102,540,541],{"class":139},"        \"iam:GetRole\"",[102,543,143],{"class":108},[102,545,547,550],{"class":104,"line":546},56,[102,548,549],{"class":139},"        \"iam:PassRole\"",[102,551,143],{"class":108},[102,553,555,558],{"class":104,"line":554},57,[102,556,557],{"class":139},"        \"iam:PutRolePolicy\"",[102,559,143],{"class":108},[102,561,563,566],{"class":104,"line":562},58,[102,564,565],{"class":139},"        \"iot:CreateTopicRule\"",[102,567,143],{"class":108},[102,569,571,574],{"class":104,"line":570},59,[102,572,573],{"class":139},"        \"iot:DeleteTopicRule\"",[102,575,143],{"class":108},[102,577,579,582],{"class":104,"line":578},60,[102,580,581],{"class":139},"        \"iot:DisableTopicRule\"",[102,583,143],{"class":108},[102,585,587,590],{"class":104,"line":586},61,[102,588,589],{"class":139},"        \"iot:EnableTopicRule\"",[102,591,143],{"class":108},[102,593,595,598],{"class":104,"line":594},62,[102,596,597],{"class":139},"        \"iot:ReplaceTopicRule\"",[102,599,143],{"class":108},[102,601,603,606],{"class":104,"line":602},63,[102,604,605],{"class":139},"        \"kinesis:CreateStream\"",[102,607,143],{"class":108},[102,609,611,614],{"class":104,"line":610},64,[102,612,613],{"class":139},"        \"kinesis:DeleteStream\"",[102,615,143],{"class":108},[102,617,619,622],{"class":104,"line":618},65,[102,620,621],{"class":139},"        \"kinesis:DescribeStream\"",[102,623,143],{"class":108},[102,625,627,630],{"class":104,"line":626},66,[102,628,629],{"class":139},"        \"lambda:*\"",[102,631,143],{"class":108},[102,633,635,638],{"class":104,"line":634},67,[102,636,637],{"class":139},"        \"logs:CreateLogGroup\"",[102,639,143],{"class":108},[102,641,643,646],{"class":104,"line":642},68,[102,644,645],{"class":139},"        \"logs:DeleteLogGroup\"",[102,647,143],{"class":108},[102,649,651,654],{"class":104,"line":650},69,[102,652,653],{"class":139},"        \"logs:DescribeLogGroups\"",[102,655,143],{"class":108},[102,657,659,662],{"class":104,"line":658},70,[102,660,661],{"class":139},"        \"logs:DescribeLogStreams\"",[102,663,143],{"class":108},[102,665,667,670],{"class":104,"line":666},71,[102,668,669],{"class":139},"        \"logs:FilterLogEvents\"",[102,671,143],{"class":108},[102,673,675,678],{"class":104,"line":674},72,[102,676,677],{"class":139},"        \"logs:GetLogEvents\"",[102,679,143],{"class":108},[102,681,683,686],{"class":104,"line":682},73,[102,684,685],{"class":139},"        \"s3:CreateBucket\"",[102,687,143],{"class":108},[102,689,691,694],{"class":104,"line":690},74,[102,692,693],{"class":139},"        \"s3:DeleteBucket\"",[102,695,143],{"class":108},[102,697,699,702],{"class":104,"line":698},75,[102,700,701],{"class":139},"        \"s3:DeleteBucketPolicy\"",[102,703,143],{"class":108},[102,705,707,710],{"class":104,"line":706},76,[102,708,709],{"class":139},"        \"s3:DeleteObject\"",[102,711,143],{"class":108},[102,713,715,718],{"class":104,"line":714},77,[102,716,717],{"class":139},"        \"s3:DeleteObjectVersion\"",[102,719,143],{"class":108},[102,721,723,726],{"class":104,"line":722},78,[102,724,725],{"class":139},"        \"s3:GetObject\"",[102,727,143],{"class":108},[102,729,731,734],{"class":104,"line":730},79,[102,732,733],{"class":139},"        \"s3:GetObjectVersion\"",[102,735,143],{"class":108},[102,737,739,742],{"class":104,"line":738},80,[102,740,741],{"class":139},"        \"s3:ListAllMyBuckets\"",[102,743,143],{"class":108},[102,745,747,750],{"class":104,"line":746},81,[102,748,749],{"class":139},"        \"s3:ListBucket\"",[102,751,143],{"class":108},[102,753,755,758],{"class":104,"line":754},82,[102,756,757],{"class":139},"        \"s3:PutBucketNotification\"",[102,759,143],{"class":108},[102,761,763,766],{"class":104,"line":762},83,[102,764,765],{"class":139},"        \"s3:PutBucketPolicy\"",[102,767,143],{"class":108},[102,769,771,774],{"class":104,"line":770},84,[102,772,773],{"class":139},"        \"s3:PutBucketTagging\"",[102,775,143],{"class":108},[102,777,779,782],{"class":104,"line":778},85,[102,780,781],{"class":139},"        \"s3:PutBucketWebsite\"",[102,783,143],{"class":108},[102,785,787,790],{"class":104,"line":786},86,[102,788,789],{"class":139},"        \"s3:PutEncryptionConfiguration\"",[102,791,143],{"class":108},[102,793,795,798],{"class":104,"line":794},87,[102,796,797],{"class":139},"        \"s3:PutObject\"",[102,799,143],{"class":108},[102,801,803,806],{"class":104,"line":802},88,[102,804,805],{"class":139},"        \"sns:CreateTopic\"",[102,807,143],{"class":108},[102,809,811,814],{"class":104,"line":810},89,[102,812,813],{"class":139},"        \"sns:DeleteTopic\"",[102,815,143],{"class":108},[102,817,819,822],{"class":104,"line":818},90,[102,820,821],{"class":139},"        \"sns:GetSubscriptionAttributes\"",[102,823,143],{"class":108},[102,825,827,830],{"class":104,"line":826},91,[102,828,829],{"class":139},"        \"sns:GetTopicAttributes\"",[102,831,143],{"class":108},[102,833,835,838],{"class":104,"line":834},92,[102,836,837],{"class":139},"        \"sns:ListSubscriptions\"",[102,839,143],{"class":108},[102,841,843,846],{"class":104,"line":842},93,[102,844,845],{"class":139},"        \"sns:ListSubscriptionsByTopic\"",[102,847,143],{"class":108},[102,849,851,854],{"class":104,"line":850},94,[102,852,853],{"class":139},"        \"sns:ListTopics\"",[102,855,143],{"class":108},[102,857,859,862],{"class":104,"line":858},95,[102,860,861],{"class":139},"        \"sns:SetSubscriptionAttributes\"",[102,863,143],{"class":108},[102,865,867,870],{"class":104,"line":866},96,[102,868,869],{"class":139},"        \"sns:SetTopicAttributes\"",[102,871,143],{"class":108},[102,873,875,878],{"class":104,"line":874},97,[102,876,877],{"class":139},"        \"sns:Subscribe\"",[102,879,143],{"class":108},[102,881,883,886],{"class":104,"line":882},98,[102,884,885],{"class":139},"        \"sns:Unsubscribe\"",[102,887,143],{"class":108},[102,889,891,894],{"class":104,"line":890},99,[102,892,893],{"class":139},"        \"states:CreateStateMachine\"",[102,895,143],{"class":108},[102,897,899],{"class":104,"line":898},100,[102,900,901],{"class":139},"        \"states:DeleteStateMachine\"\n",[102,903,905],{"class":104,"line":904},101,[102,906,907],{"class":108},"      ],\n",[102,909,911,914,917,920],{"class":104,"line":910},102,[102,912,913],{"class":115},"      \"Effect\"",[102,915,916],{"class":108},": ",[102,918,919],{"class":139},"\"Allow\"",[102,921,143],{"class":108},[102,923,925,928,930],{"class":104,"line":924},103,[102,926,927],{"class":115},"      \"Resource\"",[102,929,916],{"class":108},[102,931,932],{"class":139},"\"*\"\n",[102,934,936],{"class":104,"line":935},104,[102,937,938],{"class":108},"    }\n",[102,940,942],{"class":104,"line":941},105,[102,943,944],{"class":108},"  ],\n",[102,946,948,951,953],{"class":104,"line":947},106,[102,949,950],{"class":115},"  \"Version\"",[102,952,916],{"class":108},[102,954,955],{"class":139},"\"2012-10-17\"\n",[102,957,959],{"class":104,"line":958},107,[102,960,961],{"class":108},"}\n",[963,964,965],"blockquote",{},[12,966,967,968,972,973,976,977,976,980,976,983,986,987,990],{},"Note: This policy is an example that encompasses pretty much everything the Serverless framework ",[969,970,971],"em",{},"might"," need on AWS, but much of it not likely to be used. You may wish to restrict this policy to fit your needs and security requirements. At minimum, the serverless credentials will need access to the ",[99,974,975],{},"cloudformation",", ",[99,978,979],{},"iam",[99,981,982],{},"lambda",[99,984,985],{},"logs",", and ",[99,988,989],{},"s3"," functions specified above.",[12,992,993],{},[41,994],{"alt":995,"src":996},"Step 2-4","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399011/blog/Content%20Images/serverless-js-project-template/step-2.4.jpg",[12,998,999],{},"Click \"Review Policy\" and you'll need to give this policy a name. I've used \"GitLabServerlessPolicy\". Then click \"Create policy\".",[12,1001,1002],{},"After this is done, return to your \"Add user\" tab and search for the policy you just created (you may need to hit the \"refresh\" icon on the right). Check the box next to this policy and select the \"Next\" button.",[12,1004,1005],{},[41,1006],{"alt":1007,"src":1008},"Step 2-5","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399011/blog/Content%20Images/serverless-js-project-template/step-2.5.jpg",[12,1010,1011],{},"Proceed to add tags or skip straight to the review. The final page should resemble the following:",[12,1013,1014],{},[41,1015],{"alt":1016,"src":1017},"Step 2-6","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399011/blog/Content%20Images/serverless-js-project-template/step-2.6.jpg",[12,1019,1020],{},"After clicking \"Create user\" you should finally be presented with a page that shows you your access credentials for this new AWS user account. Select \"show\" next to the \"secret access key\" and copy both this and the access key ID someplace for safe keeping.",[25,1022,1024],{"id":1023},"_3-entering-your-aws-credentials","3. Entering your AWS credentials",[12,1026,1027,1028,1032],{},"Returning back to GitLab, we'll need to enter these two credentials into our project's ",[16,1029,1031],{"href":1030},"/topics/ci-cd/","CI/CD settings",". Select \"Settings -> CI/CD\" in the left-hand menu.",[12,1034,1035],{},[41,1036],{"alt":1037,"src":1038},"Step 3-1","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399011/blog/Content%20Images/serverless-js-project-template/step-3.1.jpg",[12,1040,1041],{},"On this page, we need to expand the Variables section and enter our AWS credentials:",[12,1043,1044],{},[41,1045],{"alt":1046,"src":1047},"Step 3-2","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399012/blog/Content%20Images/serverless-js-project-template/step-3.2.jpg",[12,1049,1050,1051,1054,1055,1058],{},"Use ",[99,1052,1053],{},"AWS_ACCESS_KEY_ID"," and ",[99,1056,1057],{},"AWS_SECRET_ACCESS_KEY"," as the keys for the two values you copied from AWS in the previous step. Don't forget to click \"Save variables\".",[25,1060,1062],{"id":1061},"_4-deploying-your-first-aws-lambda-function","4. Deploying your first AWS Lambda function.",[12,1064,1065,1066,1071],{},"Now it's time to deploy your serverless project. If you're doing this on gitlab.com you've already got access to a GitLab runner with 2,000 free CI pipeline minutes, if not you'll need to ",[16,1067,1070],{"href":1068,"rel":1069},"https://docs.gitlab.com/runner/#install-gitlab-runner",[],"configure a runner yourself",".",[12,1073,1074,1075,1078],{},"Go to \"CI/CD -> Pipelines\" in the left-hand menu and click the \"Run Pipeline\" button. For fun, let's enter an environment variable with the key ",[99,1076,1077],{},"A_VARIABLE"," and give it whatever value you want. This will be usable by our deployed function.",[12,1080,1081],{},[41,1082],{"alt":1083,"src":1084},"Step 4-1","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399013/blog/Content%20Images/serverless-js-project-template/step-4.1.jpg",[12,1086,1087,1088,1093],{},"Select \"Run Pipeline\" and you should see your jobs start running. This project template has tests which will automatically run every time you run a pipeline. Once those are complete, the \"production\" job will deploy your code to AWS Lambda and finally it will produce a landing page on ",[16,1089,1092],{"href":1090,"rel":1091},"https://docs.gitlab.com/user/project/pages/",[],"GitLab Pages",". After just a few minutes this process should complete and you can visit \"Settings -> Pages\" to see a link to the URL where your GitLab project has been deployed. (It may take a few minutes before this URL is accessible the first time you make a deployment).",[12,1095,1096],{},[41,1097],{"alt":1098,"src":1099},"Step 4-2","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399014/blog/Content%20Images/serverless-js-project-template/step-4.2.jpg",[12,1101,1102],{},"When you visit this page, here's what you'll see:",[12,1104,1105],{},[41,1106],{"alt":1107,"src":1108},"Step 4 Result","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399014/blog/Content%20Images/serverless-js-project-template/step-4.3.gif",[12,1110,1111,1112,1114],{},"You can enter an input value and click \"run function\". This input is sent to your serverless function which then responds and the response is printed under \"Function Output:\". Note that the environment value we provided using the ",[99,1113,1077],{}," key is present as well.",[25,1116,1118],{"id":1117},"_5-making-changes","5. Making Changes",[12,1120,1121],{},"Now that we have a working AWS serverless project, let's try to make our own function. How about a simple calculator?",[12,1123,1124],{},"Open up the Web IDE and let's make the following changes:",[12,1126,1127,1128,1131],{},"Within ",[99,1129,1130],{},"src/handler.js"," add the following function:",[92,1133,1137],{"className":1134,"code":1135,"language":1136,"meta":97,"style":97},"language-javascript shiki shiki-themes github-light","module.exports.add = async function(event) {\n  const A = Number(event.queryStringParameters.A);\n  const B = Number(event.queryStringParameters.B);\n  const result = A + B;\n\n  return {\n    statusCode: 200,\n    headers: {\n      \"Access-Control-Allow-Origin\": \"*\"\n    },\n    body: result\n  };\n};\n","javascript",[99,1138,1139,1175,1197,1215,1234,1240,1248,1258,1263,1272,1277,1282,1287],{"__ignoreMap":97},[102,1140,1141,1144,1146,1149,1151,1155,1159,1162,1165,1168,1172],{"class":104,"line":105},[102,1142,1143],{"class":115},"module",[102,1145,1071],{"class":108},[102,1147,1148],{"class":115},"exports",[102,1150,1071],{"class":108},[102,1152,1154],{"class":1153},"s7eDp","add",[102,1156,1158],{"class":1157},"sD7c4"," =",[102,1160,1161],{"class":1157}," async",[102,1163,1164],{"class":1157}," function",[102,1166,1167],{"class":108},"(",[102,1169,1171],{"class":1170},"sqxcx","event",[102,1173,1174],{"class":108},") {\n",[102,1176,1177,1180,1183,1185,1188,1191,1194],{"class":104,"line":112},[102,1178,1179],{"class":1157},"  const",[102,1181,1182],{"class":115}," A",[102,1184,1158],{"class":1157},[102,1186,1187],{"class":1153}," Number",[102,1189,1190],{"class":108},"(event.queryStringParameters.",[102,1192,1193],{"class":115},"A",[102,1195,1196],{"class":108},");\n",[102,1198,1199,1201,1204,1206,1208,1210,1213],{"class":104,"line":122},[102,1200,1179],{"class":1157},[102,1202,1203],{"class":115}," B",[102,1205,1158],{"class":1157},[102,1207,1187],{"class":1153},[102,1209,1190],{"class":108},[102,1211,1212],{"class":115},"B",[102,1214,1196],{"class":108},[102,1216,1217,1219,1222,1224,1226,1229,1231],{"class":104,"line":128},[102,1218,1179],{"class":1157},[102,1220,1221],{"class":115}," result",[102,1223,1158],{"class":1157},[102,1225,1182],{"class":115},[102,1227,1228],{"class":1157}," +",[102,1230,1203],{"class":115},[102,1232,1233],{"class":108},";\n",[102,1235,1236],{"class":104,"line":136},[102,1237,1239],{"emptyLinePlaceholder":1238},true,"\n",[102,1241,1242,1245],{"class":104,"line":146},[102,1243,1244],{"class":1157},"  return",[102,1246,1247],{"class":108}," {\n",[102,1249,1250,1253,1256],{"class":104,"line":154},[102,1251,1252],{"class":108},"    statusCode: ",[102,1254,1255],{"class":115},"200",[102,1257,143],{"class":108},[102,1259,1260],{"class":104,"line":162},[102,1261,1262],{"class":108},"    headers: {\n",[102,1264,1265,1268,1270],{"class":104,"line":170},[102,1266,1267],{"class":139},"      \"Access-Control-Allow-Origin\"",[102,1269,916],{"class":108},[102,1271,932],{"class":139},[102,1273,1274],{"class":104,"line":178},[102,1275,1276],{"class":108},"    },\n",[102,1278,1279],{"class":104,"line":186},[102,1280,1281],{"class":108},"    body: result\n",[102,1283,1284],{"class":104,"line":194},[102,1285,1286],{"class":108},"  };\n",[102,1288,1289],{"class":104,"line":202},[102,1290,1291],{"class":108},"};\n",[12,1293,1294,1295,1298],{},"Then open ",[99,1296,1297],{},"public/index.html"," and replace it with:",[92,1300,1304],{"className":1301,"code":1302,"language":1303,"meta":97,"style":97},"language-html shiki shiki-themes github-light","\u003C!DOCTYPE html>\n\u003Chtml>\n  \u003Chead>\n    \u003Ctitle>GitLab Serverless Framework example\u003C/title>\n  \u003C/head>\n  \u003Cbody>\n    \u003Ch3>Add two values:\u003C/h3>\n    \u003Clabel>A: \u003Cinput type=\"text\" id=\"inputA\" placeholder=\"0\" name=\"A\"/>\u003C/label>\n    \u003Clabel>B: \u003Cinput type=\"text\" id=\"inputB\" placeholder=\"0\" name=\"B\"/>\u003C/label>\n    \u003Cstrong>=\u003C/strong>\n    \u003Cspan id=\"functionOutput\">?\u003C/span>\n    \u003Cbr />\n    \u003Cbutton>Calculate!\u003C/button>\n\n    \u003Cscript>\n      fetch(\"./stack.json\").then(response => {\n        response.json().then(myJson => {\n          const functionUrl = myJson.ServiceEndpoint + \"/add\";\n          const inputA = document.querySelector(\"#inputA\");\n          const inputB = document.querySelector(\"#inputB\");\n          const output = document.querySelector(\"#functionOutput\");\n\n          document.querySelector(\"button\").addEventListener(\"click\", () => {\n            const A = Number(inputA.value);\n            const B = Number(inputB.value);\n\n            fetch(functionUrl + \"?A=\" + A + \"&B=\" + B)\n              .then(response => response.text())\n              .then(result => (output.textContent = result));\n          });\n        });\n      });\n    \u003C/script>\n  \u003C/body>\n\u003C/html>\n","html",[99,1305,1306,1321,1330,1340,1355,1364,1373,1386,1439,1482,1496,1516,1526,1540,1544,1553,1579,1600,1621,1643,1663,1683,1687,1717,1731,1744,1748,1777,1799,1820,1825,1830,1835,1844,1852],{"__ignoreMap":97},[102,1307,1308,1311,1315,1318],{"class":104,"line":105},[102,1309,1310],{"class":108},"\u003C!",[102,1312,1314],{"class":1313},"shJU0","DOCTYPE",[102,1316,1317],{"class":1153}," html",[102,1319,1320],{"class":108},">\n",[102,1322,1323,1326,1328],{"class":104,"line":112},[102,1324,1325],{"class":108},"\u003C",[102,1327,1303],{"class":1313},[102,1329,1320],{"class":108},[102,1331,1332,1335,1338],{"class":104,"line":122},[102,1333,1334],{"class":108},"  \u003C",[102,1336,1337],{"class":1313},"head",[102,1339,1320],{"class":108},[102,1341,1342,1345,1348,1351,1353],{"class":104,"line":128},[102,1343,1344],{"class":108},"    \u003C",[102,1346,1347],{"class":1313},"title",[102,1349,1350],{"class":108},">GitLab Serverless Framework example\u003C/",[102,1352,1347],{"class":1313},[102,1354,1320],{"class":108},[102,1356,1357,1360,1362],{"class":104,"line":136},[102,1358,1359],{"class":108},"  \u003C/",[102,1361,1337],{"class":1313},[102,1363,1320],{"class":108},[102,1365,1366,1368,1371],{"class":104,"line":146},[102,1367,1334],{"class":108},[102,1369,1370],{"class":1313},"body",[102,1372,1320],{"class":108},[102,1374,1375,1377,1379,1382,1384],{"class":104,"line":154},[102,1376,1344],{"class":108},[102,1378,25],{"class":1313},[102,1380,1381],{"class":108},">Add two values:\u003C/",[102,1383,25],{"class":1313},[102,1385,1320],{"class":108},[102,1387,1388,1390,1393,1396,1399,1402,1405,1408,1411,1413,1416,1419,1421,1424,1427,1429,1432,1435,1437],{"class":104,"line":162},[102,1389,1344],{"class":108},[102,1391,1392],{"class":1313},"label",[102,1394,1395],{"class":108},">A: \u003C",[102,1397,1398],{"class":1313},"input",[102,1400,1401],{"class":1153}," type",[102,1403,1404],{"class":108},"=",[102,1406,1407],{"class":139},"\"text\"",[102,1409,1410],{"class":1153}," id",[102,1412,1404],{"class":108},[102,1414,1415],{"class":139},"\"inputA\"",[102,1417,1418],{"class":1153}," placeholder",[102,1420,1404],{"class":108},[102,1422,1423],{"class":139},"\"0\"",[102,1425,1426],{"class":1153}," name",[102,1428,1404],{"class":108},[102,1430,1431],{"class":139},"\"A\"",[102,1433,1434],{"class":108},"/>\u003C/",[102,1436,1392],{"class":1313},[102,1438,1320],{"class":108},[102,1440,1441,1443,1445,1448,1450,1452,1454,1456,1458,1460,1463,1465,1467,1469,1471,1473,1476,1478,1480],{"class":104,"line":170},[102,1442,1344],{"class":108},[102,1444,1392],{"class":1313},[102,1446,1447],{"class":108},">B: \u003C",[102,1449,1398],{"class":1313},[102,1451,1401],{"class":1153},[102,1453,1404],{"class":108},[102,1455,1407],{"class":139},[102,1457,1410],{"class":1153},[102,1459,1404],{"class":108},[102,1461,1462],{"class":139},"\"inputB\"",[102,1464,1418],{"class":1153},[102,1466,1404],{"class":108},[102,1468,1423],{"class":139},[102,1470,1426],{"class":1153},[102,1472,1404],{"class":108},[102,1474,1475],{"class":139},"\"B\"",[102,1477,1434],{"class":108},[102,1479,1392],{"class":1313},[102,1481,1320],{"class":108},[102,1483,1484,1486,1489,1492,1494],{"class":104,"line":178},[102,1485,1344],{"class":108},[102,1487,1488],{"class":1313},"strong",[102,1490,1491],{"class":108},">=\u003C/",[102,1493,1488],{"class":1313},[102,1495,1320],{"class":108},[102,1497,1498,1500,1502,1504,1506,1509,1512,1514],{"class":104,"line":186},[102,1499,1344],{"class":108},[102,1501,102],{"class":1313},[102,1503,1410],{"class":1153},[102,1505,1404],{"class":108},[102,1507,1508],{"class":139},"\"functionOutput\"",[102,1510,1511],{"class":108},">?\u003C/",[102,1513,102],{"class":1313},[102,1515,1320],{"class":108},[102,1517,1518,1520,1523],{"class":104,"line":194},[102,1519,1344],{"class":108},[102,1521,1522],{"class":1313},"br",[102,1524,1525],{"class":108}," />\n",[102,1527,1528,1530,1533,1536,1538],{"class":104,"line":202},[102,1529,1344],{"class":108},[102,1531,1532],{"class":1313},"button",[102,1534,1535],{"class":108},">Calculate!\u003C/",[102,1537,1532],{"class":1313},[102,1539,1320],{"class":108},[102,1541,1542],{"class":104,"line":210},[102,1543,1239],{"emptyLinePlaceholder":1238},[102,1545,1546,1548,1551],{"class":104,"line":218},[102,1547,1344],{"class":108},[102,1549,1550],{"class":1313},"script",[102,1552,1320],{"class":108},[102,1554,1555,1558,1560,1563,1566,1569,1571,1574,1577],{"class":104,"line":226},[102,1556,1557],{"class":1153},"      fetch",[102,1559,1167],{"class":108},[102,1561,1562],{"class":139},"\"./stack.json\"",[102,1564,1565],{"class":108},").",[102,1567,1568],{"class":1153},"then",[102,1570,1167],{"class":108},[102,1572,1573],{"class":1170},"response",[102,1575,1576],{"class":1157}," =>",[102,1578,1247],{"class":108},[102,1580,1581,1584,1586,1589,1591,1593,1596,1598],{"class":104,"line":234},[102,1582,1583],{"class":108},"        response.",[102,1585,96],{"class":1153},[102,1587,1588],{"class":108},"().",[102,1590,1568],{"class":1153},[102,1592,1167],{"class":108},[102,1594,1595],{"class":1170},"myJson",[102,1597,1576],{"class":1157},[102,1599,1247],{"class":108},[102,1601,1602,1605,1608,1610,1613,1616,1619],{"class":104,"line":242},[102,1603,1604],{"class":1157},"          const",[102,1606,1607],{"class":115}," functionUrl",[102,1609,1158],{"class":1157},[102,1611,1612],{"class":108}," myJson.ServiceEndpoint ",[102,1614,1615],{"class":1157},"+",[102,1617,1618],{"class":139}," \"/add\"",[102,1620,1233],{"class":108},[102,1622,1623,1625,1628,1630,1633,1636,1638,1641],{"class":104,"line":250},[102,1624,1604],{"class":1157},[102,1626,1627],{"class":115}," inputA",[102,1629,1158],{"class":1157},[102,1631,1632],{"class":108}," document.",[102,1634,1635],{"class":1153},"querySelector",[102,1637,1167],{"class":108},[102,1639,1640],{"class":139},"\"#inputA\"",[102,1642,1196],{"class":108},[102,1644,1645,1647,1650,1652,1654,1656,1658,1661],{"class":104,"line":258},[102,1646,1604],{"class":1157},[102,1648,1649],{"class":115}," inputB",[102,1651,1158],{"class":1157},[102,1653,1632],{"class":108},[102,1655,1635],{"class":1153},[102,1657,1167],{"class":108},[102,1659,1660],{"class":139},"\"#inputB\"",[102,1662,1196],{"class":108},[102,1664,1665,1667,1670,1672,1674,1676,1678,1681],{"class":104,"line":266},[102,1666,1604],{"class":1157},[102,1668,1669],{"class":115}," output",[102,1671,1158],{"class":1157},[102,1673,1632],{"class":108},[102,1675,1635],{"class":1153},[102,1677,1167],{"class":108},[102,1679,1680],{"class":139},"\"#functionOutput\"",[102,1682,1196],{"class":108},[102,1684,1685],{"class":104,"line":274},[102,1686,1239],{"emptyLinePlaceholder":1238},[102,1688,1689,1692,1694,1696,1699,1701,1704,1706,1709,1712,1715],{"class":104,"line":282},[102,1690,1691],{"class":108},"          document.",[102,1693,1635],{"class":1153},[102,1695,1167],{"class":108},[102,1697,1698],{"class":139},"\"button\"",[102,1700,1565],{"class":108},[102,1702,1703],{"class":1153},"addEventListener",[102,1705,1167],{"class":108},[102,1707,1708],{"class":139},"\"click\"",[102,1710,1711],{"class":108},", () ",[102,1713,1714],{"class":1157},"=>",[102,1716,1247],{"class":108},[102,1718,1719,1722,1724,1726,1728],{"class":104,"line":290},[102,1720,1721],{"class":1157},"            const",[102,1723,1182],{"class":115},[102,1725,1158],{"class":1157},[102,1727,1187],{"class":1153},[102,1729,1730],{"class":108},"(inputA.value);\n",[102,1732,1733,1735,1737,1739,1741],{"class":104,"line":298},[102,1734,1721],{"class":1157},[102,1736,1203],{"class":115},[102,1738,1158],{"class":1157},[102,1740,1187],{"class":1153},[102,1742,1743],{"class":108},"(inputB.value);\n",[102,1745,1746],{"class":104,"line":306},[102,1747,1239],{"emptyLinePlaceholder":1238},[102,1749,1750,1753,1756,1758,1761,1763,1765,1767,1770,1772,1774],{"class":104,"line":314},[102,1751,1752],{"class":1153},"            fetch",[102,1754,1755],{"class":108},"(functionUrl ",[102,1757,1615],{"class":1157},[102,1759,1760],{"class":139}," \"?A=\"",[102,1762,1228],{"class":1157},[102,1764,1182],{"class":115},[102,1766,1228],{"class":1157},[102,1768,1769],{"class":139}," \"&B=\"",[102,1771,1228],{"class":1157},[102,1773,1203],{"class":115},[102,1775,1776],{"class":108},")\n",[102,1778,1779,1782,1784,1786,1788,1790,1793,1796],{"class":104,"line":322},[102,1780,1781],{"class":108},"              .",[102,1783,1568],{"class":1153},[102,1785,1167],{"class":108},[102,1787,1573],{"class":1170},[102,1789,1576],{"class":1157},[102,1791,1792],{"class":108}," response.",[102,1794,1795],{"class":1153},"text",[102,1797,1798],{"class":108},"())\n",[102,1800,1801,1803,1805,1807,1810,1812,1815,1817],{"class":104,"line":330},[102,1802,1781],{"class":108},[102,1804,1568],{"class":1153},[102,1806,1167],{"class":108},[102,1808,1809],{"class":1170},"result",[102,1811,1576],{"class":1157},[102,1813,1814],{"class":108}," (output.textContent ",[102,1816,1404],{"class":1157},[102,1818,1819],{"class":108}," result));\n",[102,1821,1822],{"class":104,"line":338},[102,1823,1824],{"class":108},"          });\n",[102,1826,1827],{"class":104,"line":346},[102,1828,1829],{"class":108},"        });\n",[102,1831,1832],{"class":104,"line":354},[102,1833,1834],{"class":108},"      });\n",[102,1836,1837,1840,1842],{"class":104,"line":362},[102,1838,1839],{"class":108},"    \u003C/",[102,1841,1550],{"class":1313},[102,1843,1320],{"class":108},[102,1845,1846,1848,1850],{"class":104,"line":370},[102,1847,1359],{"class":108},[102,1849,1370],{"class":1313},[102,1851,1320],{"class":108},[102,1853,1854,1857,1859],{"class":104,"line":378},[102,1855,1856],{"class":108},"\u003C/",[102,1858,1303],{"class":1313},[102,1860,1320],{"class":108},[12,1862,1863,1864,1867],{},"Lastly, open ",[99,1865,1866],{},"serverless.yml"," and add an \"add\" function entry below our \"hello\" function like so:",[92,1869,1873],{"className":1870,"code":1871,"language":1872,"meta":97,"style":97},"language-yml shiki shiki-themes github-light","functions:\n  hello:\n    handler: src/handler.hello\n    events:\n      - http:\n          path: hello\n          method: get\n          cors: true\n  add:\n    handler: src/handler.add\n    events:\n      - http:\n          path: add\n          method: get\n          cors: true\n\n","yml",[99,1874,1875,1883,1890,1900,1907,1917,1927,1937,1947,1954,1963,1969,1977,1986,1994],{"__ignoreMap":97},[102,1876,1877,1880],{"class":104,"line":105},[102,1878,1879],{"class":1313},"functions",[102,1881,1882],{"class":108},":\n",[102,1884,1885,1888],{"class":104,"line":112},[102,1886,1887],{"class":1313},"  hello",[102,1889,1882],{"class":108},[102,1891,1892,1895,1897],{"class":104,"line":122},[102,1893,1894],{"class":1313},"    handler",[102,1896,916],{"class":108},[102,1898,1899],{"class":139},"src/handler.hello\n",[102,1901,1902,1905],{"class":104,"line":128},[102,1903,1904],{"class":1313},"    events",[102,1906,1882],{"class":108},[102,1908,1909,1912,1915],{"class":104,"line":136},[102,1910,1911],{"class":108},"      - ",[102,1913,1914],{"class":1313},"http",[102,1916,1882],{"class":108},[102,1918,1919,1922,1924],{"class":104,"line":146},[102,1920,1921],{"class":1313},"          path",[102,1923,916],{"class":108},[102,1925,1926],{"class":139},"hello\n",[102,1928,1929,1932,1934],{"class":104,"line":154},[102,1930,1931],{"class":1313},"          method",[102,1933,916],{"class":108},[102,1935,1936],{"class":139},"get\n",[102,1938,1939,1942,1944],{"class":104,"line":162},[102,1940,1941],{"class":1313},"          cors",[102,1943,916],{"class":108},[102,1945,1946],{"class":115},"true\n",[102,1948,1949,1952],{"class":104,"line":170},[102,1950,1951],{"class":1313},"  add",[102,1953,1882],{"class":108},[102,1955,1956,1958,1960],{"class":104,"line":178},[102,1957,1894],{"class":1313},[102,1959,916],{"class":108},[102,1961,1962],{"class":139},"src/handler.add\n",[102,1964,1965,1967],{"class":104,"line":186},[102,1966,1904],{"class":1313},[102,1968,1882],{"class":108},[102,1970,1971,1973,1975],{"class":104,"line":194},[102,1972,1911],{"class":108},[102,1974,1914],{"class":1313},[102,1976,1882],{"class":108},[102,1978,1979,1981,1983],{"class":104,"line":202},[102,1980,1921],{"class":1313},[102,1982,916],{"class":108},[102,1984,1985],{"class":139},"add\n",[102,1987,1988,1990,1992],{"class":104,"line":210},[102,1989,1931],{"class":1313},[102,1991,916],{"class":108},[102,1993,1936],{"class":139},[102,1995,1996,1998,2000],{"class":104,"line":218},[102,1997,1941],{"class":1313},[102,1999,916],{"class":108},[102,2001,1946],{"class":115},[12,2003,2004,2005,2008],{},"Stage and commit these changes directly to the ",[99,2006,2007],{},"master"," branch. This will have triggered a new pipeline automatically. You can visit \"CI/CD -> Pipelines\" and watch it run.",[12,2010,2011],{},"Once the deployment is complete, our project page should look like this:",[12,2013,2014],{},[41,2015],{"alt":2016,"src":2017},"Step 5 Result","https://res.cloudinary.com/about-gitlab-com/image/upload/v1782399015/blog/Content%20Images/serverless-js-project-template/step-5.1.gif",[12,2019,2020],{},"Voilà, we've just created our own serverless function and deployed it without a single terminal command. There's a lot more you can do from here, but this should be a good place to get started. Happy coding!",[12,2022,2023,2024,2029,2030],{},"Cover image by ",[16,2025,2028],{"href":2026,"rel":2027},"https://unsplash.com/@kaushikpanchal",[],"Kaushik Panchal"," on ",[16,2031,2034],{"href":2032,"rel":2033},"https://unsplash.com/",[],"Unsplash",[2036,2037,2038],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sqxcx, html code.shiki .sqxcx{--shiki-default:#E36209}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}",{"title":97,"searchDepth":112,"depth":112,"links":2040},[2041,2042,2043,2044,2045],{"id":27,"depth":122,"text":28},{"id":50,"depth":122,"text":51},{"id":1023,"depth":122,"text":1024},{"id":1061,"depth":122,"text":1062},{"id":1117,"depth":122,"text":1118},"unfiltered","2020-01-14","Introduction to the new serverless JS project template at GitLab","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749680997/Blog/Hero%20Images/clouds-cover.jpg",{},"/en-us/blog/serverless-js-project-template",{"title":5,"description":2048,"ogTitle":5,"ogDescription":2048,"noIndex":2051,"ogImage":2052,"ogUrl":2056,"ogSiteName":2057,"ogType":2058,"canonicalUrls":2056},"https://about.gitlab.com/blog/serverless-js-project-template","https://about.gitlab.com","article","serverless-js-project-template","en-us/blog/serverless-js-project-template",[2062,2063,2064],"integrations","features","cloud native","BlogPost","Vv23Zst2aShkP4CHETdBDXSWCjRLrQHKilQMu5NpGx0",{"logo":2068,"freeTrial":2073,"sales":2078,"login":2083,"items":2088,"search":2424,"minimal":2456,"duo":2475,"switchNav":2484,"pricingDeployment":2495},{"config":2069},{"href":2070,"dataGaName":2071,"dataGaLocation":2072},"/","gitlab logo","header",{"text":2074,"config":2075},"Get free trial",{"href":2076,"dataGaName":2077,"dataGaLocation":2072},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":2079,"config":2080},"Request a demo",{"href":2081,"dataGaName":2082,"dataGaLocation":2072},"/request-a-demo/","sales",{"text":2084,"config":2085},"Sign in",{"href":2086,"dataGaName":2087,"dataGaLocation":2072},"https://gitlab.com/users/sign_in/","sign in",[2089,2175,2263,2268,2348,2402],{"text":2090,"left":1238,"config":2091,"menu":2093},"Platform",{"dataNavLevelOne":2092},"platform",{"type":2094,"link":2095,"columns":2099,"feature":2164},"lists",{"text":2096,"config":2097},"Explore the Platform",{"href":2098,"dataGaName":2092,"dataGaLocation":2072},"/platform/",[2100,2123,2146],{"title":2101,"items":2102},"DevOps",[2103,2108,2113,2118],{"text":2104,"config":2105},"CI/CD",{"href":2106,"dataGaLocation":2072,"dataGaName":2107},"/solutions/continuous-integration/","ci/cd",{"text":2109,"config":2110},"Source Code Management",{"href":2111,"dataGaLocation":2072,"dataGaName":2112},"/solutions/source-code-management/","source code management",{"text":2114,"config":2115},"Agile Delivery",{"href":2116,"dataGaLocation":2072,"dataGaName":2117},"/solutions/agile-delivery/","agile delivery",{"text":2119,"config":2120},"Artifact Management",{"href":2121,"dataGaLocation":2072,"dataGaName":2122},"/artifact-central/","artifact management",{"title":2124,"items":2125},"Security & Governance",[2126,2131,2136,2141],{"text":2127,"config":2128},"Application Security Testing",{"href":2129,"dataGaLocation":2072,"dataGaName":2130},"/solutions/application-security-testing/","application security testing",{"text":2132,"config":2133},"Governance & Compliance",{"href":2134,"dataGaLocation":2072,"dataGaName":2135},"/solutions/software-compliance/","governance and compliance",{"text":2137,"config":2138},"Secrets Management",{"href":2139,"dataGaLocation":2072,"dataGaName":2140},"/gitlab-secrets-manager/","secrets management",{"text":2142,"config":2143},"Supply Chain Security",{"href":2144,"dataGaLocation":2072,"dataGaName":2145},"/solutions/supply-chain/","supply chain security",{"title":2147,"items":2148},"Agentic AI & Context",[2149,2154,2159],{"text":2150,"config":2151},"Duo Agent Platform",{"href":2152,"dataGaLocation":2072,"dataGaName":2153},"/gitlab-duo-agent-platform/","duo agent platform",{"text":2155,"config":2156},"Orbit Context Graph",{"href":2157,"dataGaLocation":2072,"dataGaName":2158},"/gitlab-orbit/","orbit",{"text":2160,"config":2161},"Visibility & Measurement",{"href":2162,"dataGaLocation":2072,"dataGaName":2163},"/solutions/visibility-measurement/","visibility and measurement",{"config":2165,"title":2168,"text":2169,"link":2170},{"background":2166,"textColor":2167},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":2171,"config":2172},"Read the announcement",{"href":2173,"dataGaName":2174,"dataGaLocation":2072},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":2176,"left":1238,"config":2177,"menu":2179},"Solutions",{"dataNavLevelOne":2178},"solutions",{"type":2094,"link":2180,"columns":2184,"feature":2254},{"text":2181,"config":2182},"View all Solutions",{"href":2183,"dataGaName":2178,"dataGaLocation":2072},"/solutions/",[2185,2203,2221],{"title":2186,"items":2187},"Outcomes",[2188,2193,2198],{"text":2189,"config":2190},"DevOps Modernization",{"href":2191,"dataGaLocation":2072,"dataGaName":2192},"/assessments/devops-modernization-assessment/","devops modernization",{"text":2194,"config":2195},"Security Modernization",{"href":2196,"dataGaLocation":2072,"dataGaName":2197},"/assessments/security-modernization-assessment/","security modernization",{"text":2199,"config":2200},"AI Modernization",{"href":2201,"dataGaLocation":2072,"dataGaName":2202},"/assessments/ai-modernization-assessment/","ai modernization",{"title":2204,"items":2205},"By size",[2206,2211,2216],{"text":2207,"config":2208},"Enterprise",{"href":2209,"dataGaLocation":2072,"dataGaName":2210},"/enterprise/","enterprise",{"text":2212,"config":2213},"Small Business",{"href":2214,"dataGaLocation":2072,"dataGaName":2215},"/small-business/","small business",{"text":2217,"config":2218},"Startups",{"href":2219,"dataGaLocation":2072,"dataGaName":2220},"/solutions/startups/","startups",{"title":2222,"items":2223},"Industries",[2224,2229,2234,2239,2244,2249],{"text":2225,"config":2226},"Financial Services",{"href":2227,"dataGaLocation":2072,"dataGaName":2228},"/solutions/finance/","financial services",{"text":2230,"config":2231},"Public Sector",{"href":2232,"dataGaLocation":2072,"dataGaName":2233},"/solutions/public-sector/","public sector",{"text":2235,"config":2236},"Telecommunications",{"href":2237,"dataGaLocation":2072,"dataGaName":2238},"/solutions/telecommunications/","telecommunications",{"text":2240,"config":2241},"Automotive",{"href":2242,"dataGaLocation":2072,"dataGaName":2243},"/solutions/automotive/","automotive",{"text":2245,"config":2246},"Education",{"href":2247,"dataGaLocation":2072,"dataGaName":2248},"/solutions/education/","education",{"text":2250,"config":2251},"Aerospace",{"href":2252,"dataGaLocation":2072,"dataGaName":2253},"/solutions/aerospace/","aerospace",{"config":2255,"title":2256,"text":2257,"link":2258},{"background":2166,"textColor":2167},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":2259,"config":2260},"Explore the standard",{"href":2261,"dataGaName":2262,"dataGaLocation":2072},"/gitlab-security-standard/","gitlab security standard",{"text":2264,"config":2265},"Pricing",{"href":2266,"dataGaName":2267,"dataGaLocation":2072,"dataNavLevelOne":2267},"/pricing/","pricing",{"text":2269,"config":2270,"menu":2272},"Resources",{"dataNavLevelOne":2271},"resources",{"type":2094,"link":2273,"columns":2277,"feature":2339},{"text":2274,"config":2275},"View all resources",{"href":2276,"dataGaName":2271,"dataGaLocation":2072},"/resources/",[2278,2311],{"title":2279,"items":2280},"Discover",[2281,2286,2291,2296,2301,2306],{"text":2282,"config":2283},"Docs",{"href":2284,"dataGaName":2285,"dataGaLocation":2072},"https://docs.gitlab.com/","docs",{"text":2287,"config":2288},"University",{"href":2289,"dataGaName":2290,"dataGaLocation":2072},"https://university.gitlab.com/","university",{"text":2292,"config":2293},"Demo Series",{"href":2294,"dataGaName":2295,"dataGaLocation":2072},"/gitlab-technical-demo-series/","demo series",{"text":2297,"config":2298},"Demo Hub",{"href":2299,"dataGaName":2300,"dataGaLocation":2072},"/demo-hub/","demo hub",{"text":2302,"config":2303},"Services",{"href":2304,"dataGaName":2305,"dataGaLocation":2072},"/services/","services",{"text":2307,"config":2308},"Well Architected",{"href":2309,"dataGaName":2310,"dataGaLocation":2072},"/resources/well-architected/","well architected",{"title":2312,"items":2313},"Connect",[2314,2319,2324,2329,2334],{"text":2315,"config":2316},"Blog",{"href":2317,"dataGaName":2318,"dataGaLocation":2072},"/blog/","blog",{"text":2320,"config":2321},"Community",{"href":2322,"dataGaName":2323,"dataGaLocation":2072},"/community/","community",{"text":2325,"config":2326},"Customers",{"href":2327,"dataGaName":2328,"dataGaLocation":2072},"/customers/","customers",{"text":2330,"config":2331},"Partners",{"href":2332,"dataGaName":2333,"dataGaLocation":2072},"/partners/","partners",{"text":2335,"config":2336},"Events",{"href":2337,"dataGaName":2338,"dataGaLocation":2072},"/events/","events",{"config":2340,"title":2341,"text":2342,"link":2343},{"background":2166,"textColor":2167},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":2344,"config":2345},"Read the latest",{"href":2346,"dataGaName":2347,"dataGaLocation":2072},"/whats-new/","whats new",{"text":2349,"config":2350,"menu":2352},"Company",{"dataNavLevelOne":2351},"company",{"type":2094,"columns":2353},[2354],{"items":2355},[2356,2361,2367,2372,2377,2382,2387,2392,2397],{"text":2357,"config":2358},"About",{"href":2359,"dataGaName":2360,"dataGaLocation":2072},"/company/","about",{"text":2362,"config":2363,"footerGa":2366},"Jobs",{"href":2364,"dataGaName":2365,"dataGaLocation":2072},"/jobs/","jobs",{"dataGaName":2365},{"text":2368,"config":2369},"Press",{"href":2370,"dataGaName":2371,"dataGaLocation":2072},"/press/","press",{"text":2373,"config":2374},"Handbook",{"href":2375,"dataGaName":2376,"dataGaLocation":2072},"https://handbook.gitlab.com/","handbook",{"text":2378,"config":2379},"Leadership",{"href":2380,"dataGaName":2381,"dataGaLocation":2072},"/company/team/e-group/","leadership",{"text":2383,"config":2384},"Investor relations",{"href":2385,"dataGaName":2386,"dataGaLocation":2072},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":2388,"config":2389},"Trust Center",{"href":2390,"dataGaName":2391,"dataGaLocation":2072},"/security/","trust center",{"text":2393,"config":2394},"AI Transparency Center",{"href":2395,"dataGaName":2396,"dataGaLocation":2072},"/ai-transparency-center/","ai transparency center",{"text":2398,"config":2399},"Newsletter",{"href":2400,"dataGaName":2401,"dataGaLocation":2072},"/company/contact/#contact-forms","newsletter",{"text":2403,"config":2404,"menu":2405},"Contact us",{"dataNavLevelOne":2351},{"type":2094,"columns":2406},[2407],{"items":2408},[2409,2414,2419],{"text":2410,"config":2411},"Talk to sales",{"href":2412,"dataGaName":2413,"dataGaLocation":2072},"/sales/","talk to sales",{"text":2415,"config":2416},"Support portal",{"href":2417,"dataGaName":2418,"dataGaLocation":2072},"https://support.gitlab.com/hc/en-us","support portal",{"text":2420,"config":2421},"Customer portal",{"href":2422,"dataGaName":2423,"dataGaLocation":2072},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":2425,"login":2426,"suggestions":2433},"Close",{"text":2427,"link":2428},"To search repositories and projects, login to",{"text":2429,"config":2430},"gitlab.com",{"href":2086,"dataGaName":2431,"dataGaLocation":2432},"search login","search",{"text":2434,"default":2435},"Suggestions",[2436,2439,2442,2444,2448,2452],{"text":2437,"config":2438},"GitLab Duo Agent Platform",{"href":2152,"dataGaName":2437,"dataGaLocation":2432},{"text":2440,"config":2441},"Code Suggestions (AI)",{"href":2152,"dataGaName":2440,"dataGaLocation":2432},{"text":2104,"config":2443},{"href":2106,"dataGaName":2104,"dataGaLocation":2432},{"text":2445,"config":2446},"GitLab on AWS",{"href":2447,"dataGaName":2445,"dataGaLocation":2432},"/partners/technology-partners/aws/",{"text":2449,"config":2450},"GitLab on Google Cloud",{"href":2451,"dataGaName":2449,"dataGaLocation":2432},"/partners/technology-partners/google-cloud-platform/",{"text":2453,"config":2454},"Why GitLab?",{"href":2455,"dataGaName":2453,"dataGaLocation":2432},"/why-gitlab/",{"freeTrial":2457,"mobileIcon":2462,"desktopIcon":2467,"secondaryButton":2470},{"text":2458,"config":2459},"Start free trial",{"href":2460,"dataGaName":2077,"dataGaLocation":2461},"https://gitlab.com/-/trials/new/","nav",{"altText":2463,"config":2464},"Gitlab Icon",{"src":2465,"dataGaName":2466,"dataGaLocation":2461},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":2463,"config":2468},{"src":2469,"dataGaName":2466,"dataGaLocation":2461},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":2471,"config":2472},"Get Started",{"href":2473,"dataGaName":2474,"dataGaLocation":2461},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":2476,"mobileIcon":2480,"desktopIcon":2482},{"text":2477,"config":2478},"Learn more about GitLab Duo",{"href":2152,"dataGaName":2479,"dataGaLocation":2461},"gitlab duo",{"altText":2463,"config":2481},{"src":2465,"dataGaName":2466,"dataGaLocation":2461},{"altText":2463,"config":2483},{"src":2469,"dataGaName":2466,"dataGaLocation":2461},{"button":2485,"mobileIcon":2490,"desktopIcon":2492},{"text":2486,"config":2487},"/switch",{"href":2488,"dataGaName":2489,"dataGaLocation":2461},"#contact","switch",{"altText":2463,"config":2491},{"src":2465,"dataGaName":2466,"dataGaLocation":2461},{"altText":2463,"config":2493},{"src":2494,"dataGaName":2466,"dataGaLocation":2461},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":2496,"mobileIcon":2501,"desktopIcon":2503},{"text":2497,"config":2498},"Back to pricing",{"href":2266,"dataGaName":2499,"dataGaLocation":2461,"icon":2500},"back to pricing","GoBack",{"altText":2463,"config":2502},{"src":2465,"dataGaName":2466,"dataGaLocation":2461},{"altText":2463,"config":2504},{"src":2469,"dataGaName":2466,"dataGaLocation":2461},{"title":2506,"button":2507,"config":2511},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":2171,"config":2508},{"href":2173,"dataGaName":2509,"dataGaLocation":2510},"orbit-ga-banner","global-banner",{"layout":2512,"disabled":2051},"release",{"data":2514},{"text":2515,"config":2516,"items":2521,"minimal":2747},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":2517,"facebook":2518,"youtube":2519,"linkedin":2520},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[2522,2570,2627,2674,2715],{"title":2264,"links":2523,"subMenu":2539},[2524,2529,2534],{"text":2525,"config":2526},"View plans",{"href":2266,"dataGaName":2527,"dataGaLocation":2528},"view plans","footer",{"text":2530,"config":2531},"Why Premium?",{"href":2532,"dataGaName":2533,"dataGaLocation":2528},"/pricing/premium/","why premium",{"text":2535,"config":2536},"Why Ultimate?",{"href":2537,"dataGaName":2538,"dataGaLocation":2528},"/pricing/ultimate/","why ultimate",[2540],{"title":2541,"links":2542},"Contact Us",[2543,2546,2548,2550,2555,2560,2565],{"text":2544,"config":2545},"Contact sales",{"href":2412,"dataGaName":2082,"dataGaLocation":2528},{"text":2415,"config":2547},{"href":2417,"dataGaName":2418,"dataGaLocation":2528},{"text":2420,"config":2549},{"href":2422,"dataGaName":2423,"dataGaLocation":2528},{"text":2551,"config":2552},"Status",{"href":2553,"dataGaName":2554,"dataGaLocation":2528},"https://status.gitlab.com/","status",{"text":2556,"config":2557},"Terms of use",{"href":2558,"dataGaName":2559,"dataGaLocation":2528},"/terms/","terms of use",{"text":2561,"config":2562},"Privacy statement",{"href":2563,"dataGaName":2564,"dataGaLocation":2528},"/privacy/","privacy statement",{"text":2566,"config":2567},"Cookie preferences",{"dataGaName":2568,"dataGaLocation":2528,"id":2569,"isOneTrustButton":1238},"cookie preferences","ot-sdk-btn",{"title":2090,"links":2571,"subMenu":2587},[2572,2575,2577,2579,2581,2583],{"text":2573,"config":2574},"Explore the platform",{"href":2098,"dataGaName":2092,"dataGaLocation":2528},{"text":2150,"config":2576},{"href":2152,"dataGaName":2153,"dataGaLocation":2528},{"text":2104,"config":2578},{"href":2106,"dataGaName":2107,"dataGaLocation":2528},{"text":2155,"config":2580},{"href":2157,"dataGaName":2158,"dataGaLocation":2528},{"text":2137,"config":2582},{"href":2139,"dataGaName":2140,"dataGaLocation":2528},{"text":2584,"config":2585},"Why GitLab",{"href":2455,"dataGaName":2586,"dataGaLocation":2528},"why gitlab",[2588],{"title":2589,"links":2590},"Topics",[2591,2594,2599,2603,2608,2613,2617,2622],{"text":2104,"config":2592},{"href":1030,"dataGaName":2593,"dataGaLocation":2528},"cicd",{"text":2595,"config":2596},"GitOps",{"href":2597,"dataGaName":2598,"dataGaLocation":2528},"/topics/gitops/","gitops",{"text":2101,"config":2600},{"href":2601,"dataGaName":2602,"dataGaLocation":2528},"/topics/devops/","devops",{"text":2604,"config":2605},"Version Control",{"href":2606,"dataGaName":2607,"dataGaLocation":2528},"/topics/version-control/","version control",{"text":2609,"config":2610},"DevSecOps",{"href":2611,"dataGaName":2612,"dataGaLocation":2528},"/topics/devsecops/","devsecops",{"text":2614,"config":2615},"Cloud Native",{"href":2616,"dataGaName":2064,"dataGaLocation":2528},"/topics/cloud-native/",{"text":2618,"config":2619},"AI for Coding",{"href":2620,"dataGaName":2621,"dataGaLocation":2528},"/topics/devops/ai-for-coding/","ai for coding",{"text":2623,"config":2624},"Agentic AI",{"href":2625,"dataGaName":2626,"dataGaLocation":2528},"/topics/agentic-ai/","agentic ai",{"title":2176,"links":2628},[2629,2632,2635,2638,2641,2644,2646,2648,2650,2652,2654,2657,2659,2662,2666,2670],{"text":2630,"config":2631},"DevOps modernization",{"href":2191,"dataGaName":2192,"dataGaLocation":2528},{"text":2633,"config":2634},"Security modernization",{"href":2196,"dataGaName":2197,"dataGaLocation":2528},{"text":2636,"config":2637},"AI modernization",{"href":2201,"dataGaName":2202,"dataGaLocation":2528},{"text":2639,"config":2640},"Financial services",{"href":2227,"dataGaName":2228,"dataGaLocation":2528},{"text":2642,"config":2643},"Public sector",{"href":2232,"dataGaName":2233,"dataGaLocation":2528},{"text":2235,"config":2645},{"href":2237,"dataGaName":2238,"dataGaLocation":2528},{"text":2240,"config":2647},{"href":2242,"dataGaName":2243,"dataGaLocation":2528},{"text":2245,"config":2649},{"href":2247,"dataGaName":2248,"dataGaLocation":2528},{"text":2250,"config":2651},{"href":2252,"dataGaName":2253,"dataGaLocation":2528},{"text":2207,"config":2653},{"href":2209,"dataGaName":2210,"dataGaLocation":2528},{"text":2655,"config":2656},"Small business",{"href":2214,"dataGaName":2215,"dataGaLocation":2528},{"text":2217,"config":2658},{"href":2219,"dataGaName":2220,"dataGaLocation":2528},{"text":2595,"config":2660},{"href":2661,"dataGaName":2598,"dataGaLocation":2528},"/solutions/gitops/",{"text":2663,"config":2664},"Software composition analysis",{"href":2144,"dataGaName":2665,"dataGaLocation":2528},"software composition analysis",{"text":2667,"config":2668},"Value stream management",{"href":2162,"dataGaName":2669,"dataGaLocation":2528},"value stream management",{"text":2671,"config":2672},"All solutions",{"href":2183,"dataGaName":2673,"dataGaLocation":2528},"all solutions",{"title":2269,"links":2675},[2676,2681,2686,2688,2690,2692,2694,2696,2698,2700,2702,2704,2706,2708,2711],{"text":2677,"config":2678},"Install",{"href":2679,"dataGaName":2680,"dataGaLocation":2528},"/install/","install",{"text":2682,"config":2683},"Quick start guides",{"href":2684,"dataGaName":2685,"dataGaLocation":2528},"/get-started/","quick setup checklists",{"text":2282,"config":2687},{"href":2284,"dataGaName":2285,"dataGaLocation":2528},{"text":2287,"config":2689},{"href":2289,"dataGaName":2290,"dataGaLocation":2528},{"text":2292,"config":2691},{"href":2294,"dataGaName":2295,"dataGaLocation":2528},{"text":2297,"config":2693},{"href":2299,"dataGaName":2300,"dataGaLocation":2528},{"text":2302,"config":2695},{"href":2304,"dataGaName":2305,"dataGaLocation":2528},{"text":2315,"config":2697},{"href":2317,"dataGaName":2318,"dataGaLocation":2528},{"text":2320,"config":2699},{"href":2322,"dataGaName":2323,"dataGaLocation":2528},{"text":2325,"config":2701},{"href":2327,"dataGaName":2328,"dataGaLocation":2528},{"text":2330,"config":2703},{"href":2332,"dataGaName":2333,"dataGaLocation":2528},{"text":2335,"config":2705},{"href":2337,"dataGaName":2338,"dataGaLocation":2528},{"text":2398,"config":2707},{"href":2400,"dataGaName":2401,"dataGaLocation":2528},{"text":2709,"config":2710},"What's new",{"href":2346,"dataGaName":2347,"dataGaLocation":2528},{"text":2712,"config":2713},"All resources",{"href":2276,"dataGaName":2714,"dataGaLocation":2528},"all resources",{"title":2349,"links":2716},[2717,2719,2721,2723,2725,2727,2729,2731,2733,2737,2742],{"text":2357,"config":2718},{"href":2359,"dataGaName":2351,"dataGaLocation":2528},{"text":2362,"config":2720},{"href":2364,"dataGaName":2365,"dataGaLocation":2528},{"text":2368,"config":2722},{"href":2370,"dataGaName":2371,"dataGaLocation":2528},{"text":2373,"config":2724},{"href":2375,"dataGaName":2376,"dataGaLocation":2528},{"text":2378,"config":2726},{"href":2380,"dataGaName":2381,"dataGaLocation":2528},{"text":2383,"config":2728},{"href":2385,"dataGaName":2386,"dataGaLocation":2528},{"text":2388,"config":2730},{"href":2390,"dataGaName":2391,"dataGaLocation":2528},{"text":2393,"config":2732},{"href":2395,"dataGaName":2396,"dataGaLocation":2528},{"text":2734,"config":2735},"Sustainability",{"href":2736,"dataGaName":2734,"dataGaLocation":2528},"/sustainability/",{"text":2738,"config":2739},"Diversity, inclusion and belonging (DIB)",{"href":2740,"dataGaName":2741,"dataGaLocation":2528},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2743,"config":2744},"Modern Slavery Transparency Statement",{"href":2745,"dataGaName":2746,"dataGaLocation":2528},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2748},[2749,2752,2755],{"text":2750,"config":2751},"Terms",{"href":2558,"dataGaName":2559,"dataGaLocation":2528},{"text":2753,"config":2754},"Cookies",{"dataGaName":2568,"dataGaLocation":2528,"id":2569,"isOneTrustButton":1238},{"text":2756,"config":2757},"Privacy",{"href":2563,"dataGaName":2564,"dataGaLocation":2528},[2759],{"id":2760,"title":7,"body":2050,"config":2761,"content":2763,"description":2050,"extension":1872,"meta":2766,"navigation":1238,"path":2767,"seo":2768,"stem":2769,"__hash__":2770},"blogAuthors/en-us/blog/authors/mike-greiling.yml",{"template":2762},"BlogAuthor",{"name":7,"config":2764},{"headshot":97,"ctfId":2765},"mikegreiling",{},"/en-us/blog/authors/mike-greiling",{},"en-us/blog/authors/mike-greiling","l18WTAPRoXYgxjFyTbaTBYl0PyN18S0Rc815wzobnyY",[2772,2780,2788],{"title":2773,"description":2774,"heroImage":2775,"category":2046,"date":2776,"authors":2777,"slug":2779,"externalUrl":2050},"CEO Shadow Takeaways from Jacie","Recap of my experience in the CEO Shadow Program.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749664102/Blog/Hero%20Images/gitlab-values-cover.png","2021-05-18",[2778],"Jacie Bandur","ceo-shadow-recap",{"title":2781,"description":2782,"heroImage":2783,"category":2046,"date":2784,"authors":2785,"slug":2787,"externalUrl":2050},"Why I love contributing to GitLab","Making small meaningful changes is what it's all about.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749679501/Blog/Hero%20Images/new-feature.png","2021-05-11",[2786],"Austin Regnery","why-i-love-contributing-to-gitlab",{"title":2789,"description":2790,"heroImage":2791,"category":2046,"date":2784,"authors":2792,"slug":2794,"externalUrl":2050},"Placebo Lines on the Pipeline Graph","Have you noticed the connecting lines missing on your pipelines lately? Here's why","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749679507/Blog/Hero%20Images/ci-cd.png",[2793],"Sam Beckham","placebo-lines-on-the-pipeline-graph",{"header":2796,"text":2797,"button":2801,"disclaimer":2804},"Start your free\n\n30-day GitLab trial\n",[2798,2799,2800],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":2074,"config":2802},{"href":2803,"dataGaName":2077,"dataGaLocation":2318},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":2806,"blurb":2807,"button":2808,"secondaryButton":2813},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2809,"config":2810},"Get your free trial",{"href":2811,"dataGaName":2077,"dataGaLocation":2812},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":2544,"config":2814},{"href":2412,"dataGaName":2082,"dataGaLocation":2812},1794911792256]