content
Subscribe Quiz

Lambda function

by KAUSTUBH SHARMA on Sept. 14, 2021, 1:09 a.m. with 756 views

AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers.

ENVIRONMENT VARIABLES FOR LAMBDA FUNCTION

Environment variables are key-value pairs that you create and modify as part of your function configuration, using either the AWS Lambda Console, the AWS Lambda CLI, or the AWS Lambda SDK.

 

Environment variables for Lambda functions enable you to

  • dynamically pass settings to your function code and libraries, without making changes to your code. 
  • Help libraries know what directory to install files in, where to store outputs, store connection and logging settings, and more.

 

ENCRYPTION AT REST 

  • Lambda always encrypts files that you upload to Lambda, including deployment packages and layer archives. 
  • Lambda always encrypts environment variables at rest.
  • By default, Lambda uses an AWS KMS key that Lambda creates in your account to encrypt your environment variables. This AWS managed key is named aws/lambda.
  • If you want you can configure Lambda to use a customer-managed key instead of the default AWS managed key to encrypt your environment variables.

 

ENCRYPTION AT TRANSIT

  • Lambda API endpoints only support secure connections over HTTPS.
  • When managing Lambda resources with AWS Management Console, AWS SDK, or the Lambda API ---> all communication is encrypted with Transport Layer Security (TLS).
  • When connecting function to a file system, Lambda uses encryption in transit for all connections.
  • When you use environment variables, you can enable console encryption helpers to use client-side encryption to protect the environment variables in transit.

 

TRIGGERS FOR LAMBDA FUNCTION

Below AWS services can be used as triggers for Lambda function:

  • API gateway
  • AWS IoT
  • Alexa Skills Kit
  • Alexa Smart Home
  • Apache Kafka
  • ALB
  • CloudFront
  • CW Logs
  • CodeCommit
  • Cognito Sync Trigger
  • DynamoDB
  • EventBridge(CloudWatch Events)
  • Kinesis
  • MQ
  • MSK
  • S3
  • SNS
  • SQS

It also supports some third-party services.

Learn more this through Video on -YouTube