You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/automation.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,14 @@ This is a snapshot of our automated checks at a glance.
89
89
90
90
## Lambda layer pipeline
91
91
92
-
We fetch the latest PyPi release, then build Python **3.8-3.12** for **x86_64** and **arm64** architectures, using QEMU emulation for arm64. We create **a single CDK Asset** with x86_64 and arm for each Python version to optimize deployment performance.
92
+
[Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/chapter-layers.html){target="_blank"} is a .zip file archive that can contain additional code, pre-packaged dependencies, data, or configuration files. It provides a way to efficiently include libraries and other resources in your Lambda functions, promoting code reusability and reducing deployment package sizes.
93
+
94
+
To build and deploy the Lambda Layers, we run a pipeline with the following steps:
95
+
96
+
* We fetch the latest PyPi release and use it as the source for our layer.
97
+
* We build Python versions ranging from **3.8 to 3.12** for x86_64 and arm64 architectures. This is necessary because we use pre-compiled libraries like **Pydantic** and **Cryptography**, which require specific Python versions for each layer.
98
+
* We provide layer distributions for both the **x86_64** and **arm64** architectures.
99
+
* For each Python version, we create a single CDK package containing both x86_64 and arm64 assets to optimize deployment performance.
93
100
94
101
Next, we deploy these CDK Assets to the beta account across all AWS regions. Once the beta deployment is complete, we run:
0 commit comments