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
For your function to access the container image in Amazon ECR, you can add `ecr:BatchGetImage` and `ecr:GetDownloadUrlForLayer` permissions to your Amazon ECR repository\. The following example shows the minumum policy:
38
+
For your function to access the container image in Amazon ECR, you can add `ecr:BatchGetImage` and `ecr:GetDownloadUrlForLayer` permissions to your Amazon ECR repository\. The following example shows the minimum policy:
@@ -19,20 +20,9 @@ You can create layers using the Lambda console, the Lambda API, AWS CloudFormati
19
20
20
21
When you create a layer, you must bundle all its content into a \.zip file archive\. You upload the \.zip file archive to your layer from Amazon Simple Storage Service \(Amazon S3\) or your local machine\. Lambda extracts the layer contents into the `/opt` directory when setting up the execution environment for the function\.
21
22
22
-
### Using the AWS CLI<aname="configuration-layers-zip-cli"></a>
23
-
24
-
You can create and upload a \.zip file for your layer using the Lambda console or the AWS Command Line Interface \(AWS CLI\)\. For language\-specific instructions, see the following topics\.
25
-
+[Deploy Node\.js Lambda functions with \.zip file archives](nodejs-package.md)
26
-
+[Deploy Python Lambda functions with \.zip file archives](python-package.md)
27
-
+[Deploy Ruby Lambda functions with \.zip file archives](ruby-package.md)
28
-
+[Deploy Java Lambda functions with \.zip or JAR file archives](java-package.md)
29
-
+[Deploy Go Lambda functions with \.zip file archives](golang-package.md)
30
-
+[Deploy C\# Lambda functions with \.zip file archives](csharp-package.md)
31
-
+[Deploy PowerShell Lambda functions with \.zip file archives](powershell-package.md)
32
-
33
23
## Compiling the \.zip file archive for your layer<aname="configuration-layers-compile"></a>
34
24
35
-
You build your layer code into a \.zip file archive using the same procedure as you would for a function\. If your layer includes any native code libraries, you must compile and build these libraries using a Linux development machine so that the binaries are compatible with [Amazon Linux](lambda-runtimes.md)\.
25
+
You build your layer code into a \.zip file archive using the same procedure as you would for a function deployment package\. If your layer includes any native code libraries, you must compile and build these libraries using a Linux development machine so that the binaries are compatible with [Amazon Linux](lambda-runtimes.md)\.
36
26
37
27
One way to ensure that you package libraries correctly for Lambda is to use [AWS Cloud9](http://aws.amazon.com/cloud9/)\. For more information, see [Using Lambda layers to simplify your development process](http://aws.amazon.com/blogs/compute/using-lambda-layers-to-simplify-your-development-process/) on the AWS Compute Blog\.
38
28
@@ -111,6 +101,17 @@ jq.zip
111
101
112
102
For more information about path settings in the Lambda execution environment, see [Defined runtime environment variables](configuration-envvars.md#configuration-envvars-runtime)\.
The cli\-binary\-format option is required if you are using AWS CLI version 2\. You can also configure this option in your [ AWS CLI config file](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)
189
+
The cli\-binary\-format option is required if you are using AWS CLI version 2\. You can also configure this option in your [ AWS CLI config file](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)\.
190
190
191
191
You should see the AWS CLI response in your command prompt:
0 commit comments