{"id":2051,"date":"2022-12-22T07:47:06","date_gmt":"2022-12-22T07:47:06","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=2051"},"modified":"2022-12-22T07:53:19","modified_gmt":"2022-12-22T07:53:19","slug":"configure-lambda-run-vpc","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/","title":{"rendered":"How to configure Lambda to run within VPC"},"content":{"rendered":"<p data-renderer-start-pos=\"1\"><span>If you want to run AWS Lambda functions within a virtual private cloud (VPC), you&#8217;ll need to configure your Lambda function and VPC resources accordingly. This process can be a bit involved, so we have this\u00a0 great guide on how to do it.<\/span><\/p>\n<h3 data-renderer-start-pos=\"1\">AWS Lambda<\/h3>\n<ul>\n<li data-renderer-start-pos=\"1\"><strong>Lambda<\/strong> is a <strong>serverless<\/strong> service. But what is <strong>serverless<\/strong> and why does it have that name?<\/li>\n<li data-renderer-start-pos=\"1\"><strong>Serverless<\/strong> does not means it has no servers. But means that <strong>no need to manage any servers by customers<\/strong><em><strong>.<\/strong><\/em> Cloud service providers are manage the servers by themselves.<\/li>\n<li data-renderer-start-pos=\"1\">We can run scheduled jobs with serverless computing. So it will runs in the scheduled times only.<\/li>\n<li data-renderer-start-pos=\"1\"><strong>Lambda<\/strong> is one of the product under the serverless computing offered by <strong>AWS<\/strong>. Using Lambda we can run our application with the time we preferred.<\/li>\n<li data-renderer-start-pos=\"1\">If we want to run an application, only responsible is writing code. Then run the code and managing servers are taken care by the cloud providers.<\/li>\n<li data-renderer-start-pos=\"1\">Using Lambda is a best cost effective way. You only pay what you use.<\/li>\n<\/ul>\n<h3 data-renderer-start-pos=\"409\">VPC (virtual private cloud)<\/h3>\n<ul>\n<li data-renderer-start-pos=\"409\">VPC helps you to run Amazon resources into a virtual network and also its a secure and isolated private cloud hosted within a public cloud.<\/li>\n<li data-renderer-start-pos=\"409\">Using VPC we can create a private network in Public cloud service.<\/li>\n<\/ul>\n<p data-renderer-start-pos=\"657\"><strong data-renderer-mark=\"true\"><\/strong>In this article we Adding VPC to an existing lambda function. This will allow lambda function to perform tasks with the private resources, which are inside the same VPC.<\/p>\n<blockquote>\n<p data-renderer-start-pos=\"657\">Also Read: Best Practices on <a href=\"https:\/\/www.easydeploy.io\/blog\/aws-lambda-best-practices\/\" target=\"_blank\" rel=\"noopener\">AWS Lambda<\/a><\/p>\n<\/blockquote>\n<h2><strong>Add policy to existing lambda function role<\/strong><\/h2>\n<ul>\n<li data-renderer-start-pos=\"865\">This will provides minimum permissions for a Lambda function to execute while accessing a resource within a <strong>VPC <em>&#8211; create, describe, delete network interfaces<\/em><\/strong> and <em><strong>write permissions<\/strong> <\/em>to <strong>Cloud Watch Logs<\/strong>.<\/li>\n<li data-renderer-start-pos=\"1066\">Click on your lambda function \u2192 <strong data-renderer-mark=\"true\">configuration <\/strong>section \u2192 click your existing lambda function <strong data-renderer-mark=\"true\">role \u2192 <\/strong>click <strong data-renderer-mark=\"true\">add permission \u2192 attach policies \u2192 <\/strong>search and select \u201c<strong data-renderer-mark=\"true\">AWSLambdaVPCAccessExecutionRole<\/strong>\u201d \u2192 \u2192 click <strong data-renderer-mark=\"true\">Attach policies<\/strong><\/li>\n<\/ul>\n<p data-renderer-start-pos=\"1066\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5.webp\" alt=\"Attach VPC with Existing Lambda executionRole\" width=\"1650\" height=\"788\" class=\"aligncenter wp-image-2238 size-full\" title=\"Attach VPC with Existing Lambda executionRole\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5.webp 1650w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5-300x143.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5-1024x489.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5-768x367.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/1-5-1536x734.webp 1536w\" sizes=\"(max-width: 1650px) 100vw, 1650px\" \/><\/p>\n<p data-renderer-start-pos=\"1066\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3.webp\" alt=\"Attach VPC with Existing Lambda policy\" width=\"1848\" height=\"722\" class=\"aligncenter wp-image-2239 size-full\" title=\"Attach VPC with Existing Lambda policy\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3.webp 1848w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3-300x117.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3-1024x400.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3-768x300.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/2-3-1536x600.webp 1536w\" sizes=\"(max-width: 1848px) 100vw, 1848px\" \/><\/p>\n<p data-renderer-start-pos=\"1066\"><span>Now we have successfully attached additional policy to our <a href=\"https:\/\/aws.amazon.com\/lambda\/\" target=\"_blank\" rel=\"nofollow noopener\">lambda function<\/a> , so that our lambda function will have permission to access private resources too.<\/span><\/p>\n<h2 id=\"Attach-VPC-to-lambda\" data-renderer-start-pos=\"1469\"><strong data-renderer-mark=\"true\">Attach VPC to lambda<\/strong><\/h2>\n<p data-renderer-start-pos=\"1492\">Here we want to select our <strong data-renderer-mark=\"true\">VPC <\/strong>, and (<strong data-renderer-mark=\"true\">subnets, security group<\/strong>) which was created under the same VPC.<\/p>\n<p data-renderer-start-pos=\"1594\">Go back to our lambda function, under <strong data-renderer-mark=\"true\">configuration<\/strong> section \u2192 click <strong data-renderer-mark=\"true\">VPC \u2192 <\/strong>click <strong data-renderer-mark=\"true\">Edit \u2192 <\/strong>now add the appropriate <strong data-renderer-mark=\"true\">VPC, subnets , security group \u2192 <\/strong>click <strong data-renderer-mark=\"true\">save <\/strong><\/p>\n<div data-layout=\"center\" data-node-type=\"mediaSingle\" class=\"rich-media-item mediaSingleView-content-wrap image-center css-1mzi1es\">\n<div class=\"css-1akb5ff\">\n<div data-context-id=\"2597716027\" data-type=\"file\" data-node-type=\"media\" data-width=\"1431\" data-height=\"586\" data-id=\"cc862f75-c0b9-4e19-a4d8-2ffe003becb0\" data-collection=\"contentId-2597716027\" data-file-name=\"image-20221208-062158.png\" data-file-size=\"51941\" data-file-mime-type=\"image\/png\" data-alt=\"\">\n<div id=\"newFileExperienceWrapper\" class=\"new-file-experience-wrapper css-1ccs1yl\" data-testid=\"media-card-view\">\n<div class=\"media-file-card-view css-1yn77bd\" data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-062158.png\" data-test-progress=\"1\"><img decoding=\"async\" data-testid=\"media-image\" alt=\"\" src=\"https:\/\/catchpenguins.atlassian.net\/2a0db2ef-8ba8-4322-b1f2-91e27ff88558#media-blob-url=true&amp;id=cc862f75-c0b9-4e19-a4d8-2ffe003becb0&amp;collection=contentId-2597716027&amp;contextId=2597716027&amp;mimeType=image%2Fpng&amp;name=image-20221208-062158.png&amp;size=51941&amp;width=1431&amp;height=586&amp;alt=\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3.webp\" alt=\"Attach VPC with Existing Lambda config-vpc\" width=\"1789\" height=\"733\" class=\"aligncenter wp-image-2240 size-full\" title=\"Attach VPC with Existing Lambda config-vpc\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3.webp 1789w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3-300x123.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3-1024x420.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3-768x315.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/3-3-1536x629.webp 1536w\" sizes=\"(max-width: 1789px) 100vw, 1789px\" \/><\/div>\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-062158.png\" data-test-progress=\"1\">Here I choose <strong>default VPC<\/strong> and subnets which are associated with that VPC. You can choose any manually created VPC.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p data-renderer-start-pos=\"1066\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/4-3.webp\" alt=\"Attach VPC with Existing Lambda vpcSelection\" width=\"1414\" height=\"787\" class=\"aligncenter wp-image-2241 size-full\" title=\"Attach VPC with Existing Lambda vpcSelection\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/4-3.webp 1414w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/4-3-300x167.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/4-3-1024x570.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/4-3-768x427.webp 768w\" sizes=\"(max-width: 1414px) 100vw, 1414px\" \/><\/p>\n<p data-renderer-start-pos=\"1066\"><span>It will take few minutes to update the changes , just wait until it shows popup message as \u201c<\/span><strong data-renderer-mark=\"true\">Successfully updated the function sample<\/strong><span>\u201d like the below screenshot.<\/span><\/p>\n<p data-renderer-start-pos=\"1066\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/5-3.webp\" alt=\"Attach VPC with Existing Lambda vpc-success-notify\" width=\"1453\" height=\"662\" class=\"aligncenter wp-image-2242 size-full\" title=\"Attach VPC with Existing Lambda vpc-success-notify\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/5-3.webp 1453w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/5-3-300x137.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/5-3-1024x467.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/5-3-768x350.webp 768w\" sizes=\"(max-width: 1453px) 100vw, 1453px\" \/><\/p>\n<p data-renderer-start-pos=\"1919\">we have successfully completed the <strong>VPC<\/strong> attachment with lambda function, now we can also create a <strong>new version<\/strong> from this function with required name.<\/p>\n<h2 data-renderer-start-pos=\"1919\"><strong>Update Lambda to New\u00a0 Version<\/strong><\/h2>\n<p>Create a <strong>new version is required<\/strong>. Because we just move our Lambda function from <strong>Public network<\/strong> to <strong>Private network.<\/strong><\/p>\n<p data-renderer-start-pos=\"2068\">click <strong data-renderer-mark=\"true\">Actions \u2192 Publish new version \u2192 <\/strong>enter the name for new version \u2192 click <strong data-renderer-mark=\"true\">Publish<\/strong><\/p>\n<p data-renderer-start-pos=\"2068\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3.webp\" alt=\"Attach VPC with Existing Lambda version-config\" width=\"1775\" height=\"623\" class=\"aligncenter wp-image-2244 size-full\" title=\"Attach VPC with Existing Lambda version-config\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3.webp 1775w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3-300x105.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3-1024x359.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3-768x270.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/6-3-1536x539.webp 1536w\" sizes=\"(max-width: 1775px) 100vw, 1775px\" \/><\/p>\n<p data-renderer-start-pos=\"2068\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/7-3.webp\" alt=\"Attach VPC with Existing Lambda publish\" width=\"1329\" height=\"645\" class=\"aligncenter wp-image-2245 size-full\" title=\"Attach VPC with Existing Lambda publish\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/7-3.webp 1329w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/7-3-300x146.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/7-3-1024x497.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/7-3-768x373.webp 768w\" sizes=\"(max-width: 1329px) 100vw, 1329px\" \/><\/p>\n<p data-renderer-start-pos=\"2160\">Now we will get success notification.<\/p>\n<div data-layout=\"center\" data-node-type=\"mediaSingle\" class=\"rich-media-item mediaSingleView-content-wrap image-center css-1mzi1es\">\n<div class=\"css-17k7se1\">\n<div data-context-id=\"2597716027\" data-type=\"file\" data-node-type=\"media\" data-width=\"1442\" data-height=\"533\" data-id=\"6ac6458d-2a4c-4b7c-b643-dd399a5fe707\" data-collection=\"contentId-2597716027\" data-file-name=\"image-20221208-070204.png\" data-file-size=\"67621\" data-file-mime-type=\"image\/png\" data-alt=\"\">\n<div id=\"newFileExperienceWrapper\" class=\"new-file-experience-wrapper css-equw16\" data-testid=\"media-card-view\">\n<div class=\"media-file-card-view css-1yn77bd\" data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\"><img decoding=\"async\" data-testid=\"media-image\" alt=\"\" src=\"https:\/\/catchpenguins.atlassian.net\/06ea3147-c2eb-48f9-8761-127b341f3cdc#media-blob-url=true&amp;id=6ac6458d-2a4c-4b7c-b643-dd399a5fe707&amp;collection=contentId-2597716027&amp;contextId=2597716027&amp;mimeType=image%2Fpng&amp;name=image-20221208-070204.png&amp;size=67621&amp;width=1442&amp;height=533&amp;alt=\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3.webp\" alt=\"Attach VPC with Existing Lambda version-success-notify\" width=\"1802\" height=\"666\" class=\"aligncenter wp-image-2246 size-full\" title=\"Attach VPC with Existing Lambda version-success-notify\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3.webp 1802w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3-300x111.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3-1024x378.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3-768x284.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/8-3-1536x568.webp 1536w\" sizes=\"(max-width: 1802px) 100vw, 1802px\" \/><\/div>\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\">We can see our <strong>latest version<\/strong> under <strong>version<\/strong> section.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/9-3.webp\" alt=\"Attach VPC with Existing Lambda version-location\" width=\"1376\" height=\"755\" class=\"aligncenter wp-image-2247 size-full\" title=\"Attach VPC with Existing Lambda version-location\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/9-3.webp 1376w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/9-3-300x165.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/9-3-1024x562.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/9-3-768x421.webp 768w\" sizes=\"(max-width: 1376px) 100vw, 1376px\" \/><\/div>\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\">\n<div data-layout=\"center\" data-node-type=\"mediaSingle\" class=\"rich-media-item mediaSingleView-content-wrap image-center css-1mzi1es\">\n<div class=\"css-17k7se1\">\n<div data-context-id=\"2597716027\" data-type=\"file\" data-node-type=\"media\" data-width=\"1442\" data-height=\"533\" data-id=\"6ac6458d-2a4c-4b7c-b643-dd399a5fe707\" data-collection=\"contentId-2597716027\" data-file-name=\"image-20221208-070204.png\" data-file-size=\"67621\" data-file-mime-type=\"image\/png\" data-alt=\"\">\n<div id=\"newFileExperienceWrapper\" class=\"new-file-experience-wrapper css-equw16\" data-testid=\"media-card-view\">\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div data-testid=\"media-file-card-view\" data-test-status=\"complete\" data-test-media-name=\"image-20221208-070204.png\" data-test-progress=\"1\">\n<p>Now our Lambda function will run only inside the VPC. And it can communicate with the other private resources anything inside the same VPC.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you want to run AWS Lambda functions within a virtual private cloud (VPC), you&#8217;ll need to configure your Lambda function and VPC resources accordingly. This process can be a bit involved, so we have this\u00a0 great guide on how to do it. AWS Lambda Lambda is a serverless service. But what is serverless and [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":2384,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to configure Lambda to run within VPC - easydeploy<\/title>\n<meta name=\"description\" content=\"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure Lambda to run within VPC - easydeploy\" \/>\n<meta property=\"og:description\" content=\"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-22T07:47:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-22T07:53:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Baskar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Baskar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\"},\"author\":{\"name\":\"Baskar\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57\"},\"headline\":\"How to configure Lambda to run within VPC\",\"datePublished\":\"2022-12-22T07:47:06+00:00\",\"dateModified\":\"2022-12-22T07:53:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\"},\"wordCount\":534,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp\",\"articleSection\":[\"Amazon Web Services\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\",\"name\":\"How to configure Lambda to run within VPC - easydeploy\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp\",\"datePublished\":\"2022-12-22T07:47:06+00:00\",\"dateModified\":\"2022-12-22T07:53:19+00:00\",\"description\":\"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp\",\"width\":1280,\"height\":720,\"caption\":\"run lambda within vpc\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure Lambda to run within VPC\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57\",\"name\":\"Baskar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g\",\"caption\":\"Baskar\"},\"description\":\"Junior DevOPs Engineer, working @ Easydeploy Technologies Pvt Ltd, Coimbatore, with 1 year of experience, and currently Doing server configurations by automation using Ansible &amp; building strong AWS resources using Terraform, and creating a containerized application using Docker.\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/baskar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to configure Lambda to run within VPC - easydeploy","description":"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!","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:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/","og_locale":"en_GB","og_type":"article","og_title":"How to configure Lambda to run within VPC - easydeploy","og_description":"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!","og_url":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/","og_site_name":"easydeploy.io","article_published_time":"2022-12-22T07:47:06+00:00","article_modified_time":"2022-12-22T07:53:19+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp","type":"image\/webp"}],"author":"Baskar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Baskar","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/"},"author":{"name":"Baskar","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57"},"headline":"How to configure Lambda to run within VPC","datePublished":"2022-12-22T07:47:06+00:00","dateModified":"2022-12-22T07:53:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/"},"wordCount":534,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp","articleSection":["Amazon Web Services"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/","url":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/","name":"How to configure Lambda to run within VPC - easydeploy","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp","datePublished":"2022-12-22T07:47:06+00:00","dateModified":"2022-12-22T07:53:19+00:00","description":"Learn on how to configure AWS Lambda functions within a virtual private cloud (VPC) by this article. Explore AWS Lambda function!","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/12\/Easy-deploy-How-to-attach-Lambda-run-within-a-VPC.webp","width":1280,"height":720,"caption":"run lambda within vpc"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/configure-lambda-run-vpc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"How to configure Lambda to run within VPC"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57","name":"Baskar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g","caption":"Baskar"},"description":"Junior DevOPs Engineer, working @ Easydeploy Technologies Pvt Ltd, Coimbatore, with 1 year of experience, and currently Doing server configurations by automation using Ansible &amp; building strong AWS resources using Terraform, and creating a containerized application using Docker.","url":"https:\/\/www.easydeploy.io\/blog\/author\/baskar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/2051"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=2051"}],"version-history":[{"count":16,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions"}],"predecessor-version":[{"id":2388,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions\/2388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/2384"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=2051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=2051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=2051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}