Ihre erste Lambda-Funktion
Schreiben, konfigurieren und deployen Sie eine einfache „Hello World“-Lambda-Funktion über die AWS-Konsole und sammeln Sie praktische Erfahrungen mit der Plattform
Ihre erste Lambda-Funktion ist eine kostenlose Serverless AWS Lambda Development-Lektion auf CoddyKit. Dies ist Lektion 3 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Serverless AWS Lambda Development-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Serverless AWS Lambda Development-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
Your First Lambda Function
Time to build! You will create and deploy your first Hello World Lambda right in the AWS console — your practical step into serverless.
Find Lambda in AWS Console
Log into the AWS console, search "Lambda" in the top bar, and select it to open the Lambda dashboard where all your functions live.
Start a New Lambda Function
On the dashboard, click Create function and choose "Author from scratch" to define a brand-new serverless function.
Name Your Function & Runtime
Set the basics: a unique Function name and a Runtime — the language your code runs in. We will use Python 3.9 here.
Lambda's Permissions: Execution Role
Your function needs an execution role (an IAM role) for permissions. Pick "Create a new role with basic Lambda permissions" to allow CloudWatch logs.
Code Your 'Hello World'
The console opens a code editor — replace the default with this simple Python Hello World handler.
import json
def lambda_handler(event, context):
# Log the event for debugging purposes
print(f"Received event: {event}")
# Return a simple greeting
return {
'statusCode': 200,
'body': json.dumps('Hello from your first Lambda!')
}Save & Deploy Your Function
After editing, click Deploy to save your changes and make the new version live. Skip this and the Lambda service keeps the old code.
Test Your Lambda Function
Open the Test tab and configure a test event — the hello-world template works — name it, then click Test to invoke your function and see results.
Check Logs for Output
After a test, results appear inline. For full output, including your print() statements, open CloudWatch Logs where Lambda sends its runtime logs.
Quick Check: Lambda Deployment
You've just deployed your first Lambda! Let's check your understanding of the essential steps.
Recap: Your First Lambda
Congrats! You created, configured, coded, deployed, and tested your first Lambda function — the foundational skill for serverless apps.
Häufig gestellte Fragen
Ist die Lektion „Ihre erste Lambda-Funktion“ kostenlos?
Ja — der vollständige Text von „Ihre erste Lambda-Funktion“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Serverless AWS Lambda Development-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Serverless AWS Lambda Development-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Ihre erste Lambda-Funktion“?
Schreiben, konfigurieren und deployen Sie eine einfache „Hello World“-Lambda-Funktion über die AWS-Konsole und sammeln Sie praktische Erfahrungen mit der Plattform Du übst Serverless AWS Lambda Development mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Serverless AWS Lambda Development zu starten?
Keine Vorkenntnisse erforderlich. Serverless AWS Lambda Development auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 3 von 4.
Wie lange dauert die Lektion „Ihre erste Lambda-Funktion“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Serverless AWS Lambda Development-Lektion Code schreiben und ausführen?
Ja. Jede Serverless AWS Lambda Development-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Was ist Serverless Computing?
- Erste Schritte mit AWS Lambda
- Ihre erste Lambda-Funktion
- Serverless-Preise und das kostenlose Kontingent