Learn To Deploy AWS Lambda Functions with Ease in JetBrains Rider

By admin
The

AWS Toolkit
ORG

plugin for JetBrains

Rider
PRODUCT

makes it easier to develop, debug, and deploy serverless applications with

AWS
ORG

right from your IDE. Let’s learn how to quickly create and update standalone

AWS Lambda Functions
PRODUCT

to the

AWS
ORG

infrastructure.

The

AWS Toolkit
ORG

plugin for JetBrains

Rider
PRODUCT

makes it easier to develop, debug, and deploy serverless applications with

AWS
ORG

right from your IDE.

In this blog post, let’s learn how to quickly create and update standalone

AWS Lambda Functions
PRODUCT

to the

AWS
ORG

infrastructure.

This article is sponsored by

AWS
ORG

and is part of my AWS Series.

Deploy New Lambda Function From Rider

To create a new

Lambda Function
ORG

in

AWS Infrastructure
ORG

from JetBrains

Rider IDE
PRODUCT

, navigate to

the AWS Toolkit → Lambda
ORG

.

Right-click on the Lambda section for the option to ‘Create new

AWS Lambda’
ORG

function, as shown in the screenshot below.

Create new

AWS Lambda Function
ORG

using

the AWS Toolkit
ORG

in JetBrains

Rider
PRODUCT

.

Selecting the ‘Create new

AWS Lambda’
ORG

option, prompts up a new ‘Create Function’ dialog in JetBrains

Rider IDE
PRODUCT

.

This requires the information to create the new

Lambda Function
ORG

. Specify the Name and Description for the new

Lambda
PRODUCT

function.

For the

Handler
ORG

, specify

the Lambda Function Entry
ORG

point.

The

Handler
ORG

string is of the format

ASSEMBLY::TYPE::METHOD
ORG

where

Assembly
ORG

is the name of the handler function assembly; Type is the full name of the handler type including the

Namespace
ORG

, and

Method
PERSON

is the name of the function handler.

This needs to be a valid string, if not it will show an error.

Create and deploy new

Lambda Function for JetBrains
ORG


Rider IDE

PRODUCT

Configure the remaining settings as required for your

Lambda Function
ORG

.

For the IAM Role, you can select an existing Role, or create a new Role using the

Create
ORG

button.

We need to specify an

S3
ORG

bucket to upload the

Lambda
PRODUCT

function code for the

SAM
ORG

CLI to upload the

Lambda
ORG

package to deploy to

AWS
ORG

.

Select ‘Create Function’ to create and deploy a new

Lambda Function
ORG

.

Lambda Function Gutter Icons in Rider

JetBrains

Rider
PRODUCT

also provides an option to deploy a Lambda Function right from the Function definition in the class file.

To enable this, go to Settings → Tools → AWS → Lambda option and enable the ‘Show gutter icons for all potential

AWS Lambda
ORG

handlers’ option as shown below.

Show gutter icons for all potential

AWS Lambda
ORG

handlers in the JetBrains

Rider IDE
PRODUCT

.

This enables a special icon next to all potential

Lambda Function
ORG

handler methods.

As shown below, there is a special

Lambda
NORP

icon that shows up next to our

Lambda Function Handler
ORG

entry point.

JetBrains Rider Gutter option to interact with

Lambda Function
ORG

handler.

Selecting that gives you the option to

Run, Debug
ORG

, and also Create/Deploy a new

AWS Lambda Function
ORG

. You can use this as well to open

the Create Lambda Function
ORG

dialog which we used earlier.

You can see the list of

Lambda Functions
ORG

existing under your

AWS Account
ORG

, under the AWS Toolkit → Lambda section.

To update the code or configuration for an existing

Lambda
PRODUCT

function, right-click on the appropriate function and choose the ‘Update Function configuration’ or

‘Update Function Code’
WORK_OF_ART

option.

Update existing

Lambda Function
ORG

from JetBrains

Rider
PRODUCT

, by right click on an existing

Lambda Function
ORG

. You can update the configuration or upload new code changes using this option.

This prompts for the

Handler
ORG

name and also the

S3
ORG

bucket to use to upload the code changes.

The

Lambda
PRODUCT

package is built again, uploaded and deployed to

AWS
ORG

.

Update Lambda function code for an existing function using JetBrains

Rider IDE
PRODUCT

.

This makes it easy to create and update

Lambda Functions
ORG

from within the JetBrains IDE.