<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sriram Narasimhan</title>
    <description>The latest articles on DEV Community by Sriram Narasimhan (@sriramn78).</description>
    <link>https://dev.to/sriramn78</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F119866%2Fafd8972c-eaae-43df-a3c0-99b085a6b71e.jpg</url>
      <title>DEV Community: Sriram Narasimhan</title>
      <link>https://dev.to/sriramn78</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sriramn78"/>
    <language>en</language>
    <item>
      <title>AWS Lambda, The CLI Way (cookbook)</title>
      <dc:creator>Sriram Narasimhan</dc:creator>
      <pubDate>Tue, 31 Dec 2019 09:09:59 +0000</pubDate>
      <link>https://dev.to/sriramn78/aws-lambda-the-cli-way-cookbook-5ed9</link>
      <guid>https://dev.to/sriramn78/aws-lambda-the-cli-way-cookbook-5ed9</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/nsriram"&gt;
        nsriram
      &lt;/a&gt; / &lt;a href="https://github.com/nsriram/lambda-the-cli-way"&gt;
        lambda-the-cli-way
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      AWS Lambda using CLI, an introductory cookbook
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
AWS Lambda the CLI Way&lt;/h1&gt;
&lt;p&gt;The objective of this tutorial is to understand AWS Lambda in-depth, beyond executing functions, using CLI
This tutorial walks through setting up AWS CLI, dependencies for AWS Lambda, getting your first Lambda function running
many of its important features &amp;amp; finally integrating with other AWS services. AWS CLI (Command Line Interface) will be
the primary medium of demonstrating all these examples.&lt;/p&gt;

&lt;h2&gt;
Target Audience&lt;/h2&gt;

&lt;p&gt;Target audience for this tutorial series are developers comfortable using AWS CLI
A little background understanding of serverless will help.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note : The tutorial will not discuss examples using the AWS website UI (or) with AWS SDK.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
Tutorials&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/01-serverless-introduction.md"&gt;Serverless Introduction&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/02-aws-cli-installation.md"&gt;Prerequisites and Setup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/03-iam-account-setup.md"&gt;IAM Account For Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/04-hello-world-your-first-lambda.md"&gt;Hello World - Your First Lambda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/05-view-lambda-logs.md"&gt;View Lambda Logs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/06-packaging-lambda-with-dependencies.md"&gt;Packaging With Dependencies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/07-lambda-layers.md"&gt;Lambda Layers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/08-version-lambda.md"&gt;Version Lambda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/09-managing-lambda.md"&gt;Managing Lambda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/10-integrate-with-s3.md"&gt;Integrate with S3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/11-integrate-with-kinesis.md"&gt;Integrate with Kinesis&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/12-integrate-with-dynamodb.md"&gt;Integrate with DynamoDB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/13-integrate-with-api-gateway.md"&gt;Integrate with APIGateway&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/14-sam-cli.md"&gt;SAM CLI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/nsriram/lambda-the-cli-way/master/Readme.md/docs/15-teardown.md"&gt;Tear down&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Let's&lt;/strong&gt;…&lt;/p&gt;
&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/nsriram/lambda-the-cli-way"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
 

</description>
      <category>aws</category>
      <category>awslambda</category>
      <category>serverless</category>
      <category>node</category>
    </item>
    <item>
      <title>Lambda Layers for NodeJS - An Example</title>
      <dc:creator>Sriram Narasimhan</dc:creator>
      <pubDate>Wed, 05 Dec 2018 14:46:39 +0000</pubDate>
      <link>https://dev.to/sriramn78/lambda-layers-for-nodejs---an-example-ilb</link>
      <guid>https://dev.to/sriramn78/lambda-layers-for-nodejs---an-example-ilb</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/nsriram" rel="noopener noreferrer"&gt;
        nsriram
      &lt;/a&gt; / &lt;a href="https://github.com/nsriram/aws-lambda-layer-example" rel="noopener noreferrer"&gt;
        aws-lambda-layer-example
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      aws lambda layer example
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Lambda Layers for NodeJS - An Example&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;This article outlines the steps involved in building a node js lambda using lambda layers for library dependencies, using &lt;a href="https://github.com/aws/aws-cli" rel="noopener noreferrer"&gt;AWS CLI&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The example will build a lambda function that will return current time using &lt;a href="https://github.com/moment/moment/" rel="noopener noreferrer"&gt;momentjs&lt;/a&gt; library. The lambda will not bundle &lt;a href="https://github.com/moment/moment/" rel="noopener noreferrer"&gt;momentjs&lt;/a&gt; via &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;node_modules&lt;/code&gt;, but will use &lt;a href="https://github.com/moment/moment/" rel="noopener noreferrer"&gt;momentjs&lt;/a&gt; via lambda layers.&lt;/p&gt;

&lt;p&gt;Following are assumed to be available on your computer.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://aws.amazon.com" rel="nofollow noopener noreferrer"&gt;AWS&lt;/a&gt; Account&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html" rel="nofollow noopener noreferrer"&gt;IAM Role&lt;/a&gt; to manage and execute lambda functions&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/aws/aws-cli" rel="noopener noreferrer"&gt;AWS CLI&lt;/a&gt; version &lt;strong&gt;1.16.69&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;1 : Create and publish momentjs lambda layer.&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;What is a lambda layer
&lt;strong&gt;(Source: AWS Docs)&lt;/strong&gt; : A layer is a ZIP archive that contains libraries, a custom runtime, or other dependencies. With layers, you can use libraries in your function without needing to include them in your deployment package.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;1.1 Create an empty nodejs project.&lt;/h3&gt;

&lt;/div&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;
&lt;pre class="notranslate"&gt;&lt;code&gt;&amp;gt; cd ~
&amp;gt; mkdir momentjs-lambda-layer
&amp;gt; cd&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/nsriram/aws-lambda-layer-example" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



</description>
      <category>aws</category>
      <category>awslambda</category>
      <category>serverless</category>
      <category>node</category>
    </item>
  </channel>
</rss>
