Skill 1.2.5

Integrate Lambda functions with AWS services

Key Concepts

Services invoke Lambda synchronously (API Gateway, ALB, Cognito triggers), asynchronously (S3, SNS, EventBridge) or through event source mappings that poll (SQS, Kinesis, DynamoDB Streams, MSK). Push-based services need permission in the function's resource-based policy, while event source mappings need permission in the function's execution role to read from the source.

When the function calls other services, such as writing to DynamoDB or publishing to SNS, those permissions belong in the execution role. Lambda function URLs give a function its own HTTPS endpoint without API Gateway, which suits simple webhooks.