Skip to content

msashkin/aws-serverless-lohika-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-serverless-lohika-course

AWS Serverless Training Lohika Course

Serverless Quickstart

Quickstart

Create command

Serverless create a Java Maven app in a folder

serverless create --template aws-java-maven --path customFolderName

To configure AWS credentials used by Serverless

Docs

Define a different profile for Serverless in ~/.aws/credentials:

[profileName1]
aws_access_key_id=***************
aws_secret_access_key=***************

[serverless]
aws_access_key_id=***************
aws_secret_access_key=***************

Switch to a different AWS profile per project:

export AWS_PROFILE="serverless"

Now everything is set to execute all the serverless CLI options like sls deploy

Deploying Lambdas

serverless deploy
serverless deploy -f myFunction

Testing Lambdas

How to Test Serverless Applications

Local lambda invocation using a custom event

serverless invoke local -f myFunction -p myEvent.json

Remote lambda invocation using a custom event

serverless invoke -f myFunction -p myEvent.json

Investigating Internal Server Errors by using tailing logs

serverless logs -f myFunction --tail

About

AWS Serverless Lohika Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published