Create a Hello World Lambda Function
Beginner Mode
Start your terminal to use beginner mode.
Scenario
Your team needs a simple Lambda function for a greeting microservice.
Task
Create a Lambda function named
hello-functionthat:- Takes a
namefield from the event input - Returns the string
Hello <name>(e.g. input{"name": "World"}returns"Hello World") - Uses the pre-created IAM role
lambda-execution-role
- Takes a
Invoke the function with
{"name": "World"}and verify it returns"Hello World"
Note: You can use Python (python) or Node.js (nodejs) as the runtime. You can use either the AWS Management Console or AWS CLI to complete this task.
AWS Console Environment
Launch an AWS environment to solve this challenge.
Adobe