[英]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?如果我有一个层的版本 ARN,是否有一个 CLI 命令可以在我的 Jenkins 中使用,它将层附加到我的 lambdas function? I am new to using AWS and Jenkins so I have no idea where to begin with this problem.
我是使用 AWS 和 Jenkins 的新手,所以我不知道从哪里开始解决这个问题。
Thanks!谢谢!
There is an example of associating a function with a layer in the AWS documentation : AWS 文档中有一个将 function 与层关联的示例:
$ 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.