Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a CLI command to attach a AWS Layer to my Lambda?

If I have the Version ARN of a layer, is there a CLI command that I can use to in my Jenkins that will attach the layer to my lambdas function? I am new to using AWS and Jenkins so I have no idea where to begin with this problem.

Thanks!

like image 867
Jimmy Jo Avatar asked Sep 13 '25 09:09

Jimmy Jo


1 Answers

There is an example of associating a function with a layer in the AWS documentation:

$ aws lambda update-function-configuration --function-name my-function \
    --layers arn:aws:lambda:us-east-2:123456789012:layer:my-layer:3 \
             arn:aws:lambda:us-east-2:210987654321:layer:their-layer:2
like image 161
Ashaman Kingpin Avatar answered Sep 16 '25 01:09

Ashaman Kingpin