Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Expert AWS Development

You're reading from   Expert AWS Development Efficiently develop, deploy, and manage your enterprise apps on the Amazon Web Services platform

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788477581
Length 408 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Atul Mistry Atul Mistry
Author Profile Icon Atul Mistry
Atul Mistry
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. AWS Tools and SDKs FREE CHAPTER 2. Integrating Applications with AWS Services 3. Continuous Integration and Continuous Deployment Workflow 4. CI/CD in AWS Part 1 – CodeCommit, CodeBuild, and Testing 5. CI/CD in AWS Part 2 – CodeDeploy, CodePipeline, and CodeStar 6. User Authentication with AWS Cognito 7. Evaluating the Best Architecture 8. Traditional Web Hosting – Amazon EC2 and Elastic Load Balancing 9. Amazon EC2 Container Service 10. Amazon Lambda – AWS Serverless Architecture 11. Other Books You May Enjoy

Lambda and Lambda@Edge advanced topics and best practices


In Chapter 7, Evaluating the Best Architecture, we learnt about AWS Lambda basics. Here, we will discuss advanced topics and best practices about AWS Lambda and AWS Lambda@Edge.

The following sections provide advanced features to build Lambda applications:

  • Environment variables
  • Dead letter queues (DLQ)

Environment variables

Environment variables are key-value pairs. You can create and modify them from function configuration using the AWS Lambda Management Console, AWS Lambda CLI, or AWS Lambda SDK. For key-value pairs, AWS Lambda makes these available from the Lambda function code, which is using standard APIs. These APIs can support any language, such as Node.js functions, which is using process.env.

Lambda functions enable environment variables to pass settings dynamically to the libraries and function code without any code being changed. Libraries can use environment variables to know which directory to install files to, where to store...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime