Erste Schritte mit AWS Lambda
Lernen Sie, sich in der AWS Management Console zurechtzufinden, die erforderlichen IAM-Berechtigungen einzurichten und die grundlegenden Bestandteile einer Lambda-Funktion zu verstehen
Erste Schritte mit AWS Lambda ist eine kostenlose Serverless AWS Lambda Development-Lektion auf CoddyKit. Dies ist Lektion 2 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.
Welcome to AWS Lambda!
Time for AWS Lambda, the serverless compute service that runs your code without any servers. You will find it in the console and learn its building blocks.
Finding Lambda in the Console
The AWS Management Console is your web interface for AWS. Search "Lambda" in the top bar and open it to reach the service dashboard.
Permissions: Why Lambda Needs Them
Your Lambda function is a tiny worker that needs permission to do anything useful. AWS controls this with IAM, granting your function an IAM role.
Understanding IAM Roles
An IAM Role is a permission set you assign to your function — a job description. Its trust policy says who can use it; its permissions policy says what it can do.
Creating a Lambda Execution Role
Every Lambda gets an execution role. The most basic one attaches AWSLambdaBasicExecutionRole so your function can write logs to CloudWatch.
Anatomy of a Lambda Function
A Lambda function is your code plus a few settings: a Runtime (the language), a Handler (the entry method), plus Memory and Timeout.
Runtime: Your Code's Engine
The Runtime tells Lambda which language environment to spin up when an event fires. Write in Java, pick a Java runtime like Java 17.
The Handler: Your Code's Entry Point
The Handler is the exact method Lambda invokes when your function is triggered — your logic's starting line. Here, Lambda calls handleRequest.
package com.example;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
// This class represents your Lambda function
public class MyFirstLambda implements RequestHandler<String, String> {
// The 'handleRequest' method is your function's entry point
@Override
public String handleRequest(String input, Context context) {
// Lambda's logger for output
context.getLogger().log("Received input: " + input);
String output = "Hello from Lambda, " + input + "!";
return output;
}
}Memory & Timeout Settings
Two settings shape speed and cost: Memory (more memory means more CPU and bandwidth) and Timeout (the max seconds before Lambda stops the run).
Quick Check!
Let's test your understanding of Lambda's foundational concepts.
Recap & Next Steps
Nice work! You found Lambda in the console and met IAM roles, runtime, handler, memory, and timeout. Next: deploy a real Hello World function.
Häufig gestellte Fragen
Ist die Lektion „Erste Schritte mit AWS Lambda“ kostenlos?
Ja — der vollständige Text von „Erste Schritte mit AWS Lambda“ 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 „Erste Schritte mit AWS Lambda“?
Lernen Sie, sich in der AWS Management Console zurechtzufinden, die erforderlichen IAM-Berechtigungen einzurichten und die grundlegenden Bestandteile einer Lambda-Funktion zu verstehen 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 2 von 4.
Wie lange dauert die Lektion „Erste Schritte mit AWS Lambda“?
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