How to Deploy Lambdas from one code base?

ThomasTaylor

After doing some brief research, I'm receiving conflicting answers regarding best practices for the AWS lambda service. I'm writing a few microservices for my company that will automate the steps for adding clients to our various services: creating api keys, uploading documents to a repo, sending an email, etc.

I have copied and pasted my code for 3 lambdas now (only changing around a few variable values), but, before I start doing this for all of them, I wanted to request if anyone had an easier method. I do know about the ProxyIntegration, where I could use the same lambda for similar requests and differentiate them by their resource paths; however, is there an easier way I could "map" the lambdas to shared code?

I was thinking about using an S3 Object to hold the code, then change the variables by environment variables (which could very well work), but does anyone have any other recommendations or obvious solutions I'm not realizing?

Thanks!

Mark B

There is a very recent feature called Lambda Layers that specifically allows you to share code between AWS Lambda functions.

You would build the common code as a library and deploy it as a Layer. Then each individual Lambda function would include that Layer.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How can I avoid overwriting dynamodb from two lambdas?

分類Dev

How to create multi module project in maven ? so that all the code base of child projects can be in parent one

分類Dev

Deploy Code from GitLab Repository to Azure Web App using PowerShell

分類Dev

How to make a C++ class that inherits from only one of two base classes at compile time?

分類Dev

Pulumi: How to configure ECS service for a CODE_DEPLOY controller

分類Dev

Jupyter: How can you pretty-print many data frames from the code in one cell?

分類Dev

How to (properly) Deploy MongoDB on Kubernetes and Access it from Another Pod/Job?

分類Dev

Copy from one temp table to another temp table on condition base?

分類Dev

How to simplify the code and combine switch into one function?

分類Dev

Deploy app from CircleCI with

分類Dev

How to get the code from file?

分類Dev

How to make 2 spring projects share the same code base

分類Dev

How can i use celery with different code base in API and workers

分類Dev

How to get the base directory in visual studio code snippet?

分類Dev

How to execute a batch script from an anaconda virtual environment (not from base)?

分類Dev

webadmin deploy to azure from github

分類Dev

How to return one and only one value from a PowerShell function?

分類Dev

How to read data one by one from files into matlab

分類Dev

How to describe One To One relationships from Django ORM in SqlAlchemy?

分類Dev

How to override one method from Rails Framework?

分類Dev

How to use connection from one class into another

分類Dev

How to pass data from one view to the next

分類Dev

How to copy text from one textbox to Label

分類Dev

How to pass value from one dialog to another

分類Dev

How to pass the variable from one component to another

分類Dev

How to create pandas matrix from one column

分類Dev

How to assign value from one hashset to another?

分類Dev

How to submit a number from one page to another

分類Dev

How to copy the content from one cell to another

Related 関連記事

  1. 1

    How can I avoid overwriting dynamodb from two lambdas?

  2. 2

    How to create multi module project in maven ? so that all the code base of child projects can be in parent one

  3. 3

    Deploy Code from GitLab Repository to Azure Web App using PowerShell

  4. 4

    How to make a C++ class that inherits from only one of two base classes at compile time?

  5. 5

    Pulumi: How to configure ECS service for a CODE_DEPLOY controller

  6. 6

    Jupyter: How can you pretty-print many data frames from the code in one cell?

  7. 7

    How to (properly) Deploy MongoDB on Kubernetes and Access it from Another Pod/Job?

  8. 8

    Copy from one temp table to another temp table on condition base?

  9. 9

    How to simplify the code and combine switch into one function?

  10. 10

    Deploy app from CircleCI with

  11. 11

    How to get the code from file?

  12. 12

    How to make 2 spring projects share the same code base

  13. 13

    How can i use celery with different code base in API and workers

  14. 14

    How to get the base directory in visual studio code snippet?

  15. 15

    How to execute a batch script from an anaconda virtual environment (not from base)?

  16. 16

    webadmin deploy to azure from github

  17. 17

    How to return one and only one value from a PowerShell function?

  18. 18

    How to read data one by one from files into matlab

  19. 19

    How to describe One To One relationships from Django ORM in SqlAlchemy?

  20. 20

    How to override one method from Rails Framework?

  21. 21

    How to use connection from one class into another

  22. 22

    How to pass data from one view to the next

  23. 23

    How to copy text from one textbox to Label

  24. 24

    How to pass value from one dialog to another

  25. 25

    How to pass the variable from one component to another

  26. 26

    How to create pandas matrix from one column

  27. 27

    How to assign value from one hashset to another?

  28. 28

    How to submit a number from one page to another

  29. 29

    How to copy the content from one cell to another

ホットタグ

アーカイブ