arun-gupta.github.io

IntelliJ and AWS Toolkit Demo Script

Pre-reqs

IntelliJ IDEA 2018.3.5 (Community Edition)
Build #IC-183.5912.21, built on February 26, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6

Install SAM CLI

Needs SAM CLI 0.13.0

brew install aws-sam-cli

or

brew upgrade aws-sam-cli

Check the version:

sam --version
SAM CLI, version 0.14.1

Setup Plugin

Create New Application

Create Lambda Function

Invoke Lambda Function Locally

This uses SAM Local CLI.

Debug Lambda Function Locally

This uses SAM Local CLI.

Invoke Lambda Function Remotely

This uses AWS SDK.

Invoke Lambda Function Using CloudFormation

This uses CloudFormation.