简体   繁体   English

从 aws cli 部署到 lambda edge function

[英]Deploy to lambda edge function from aws cli

I am in the process of automating our deploy for a Lambda Edge function using Octopus Deploy我正在使用 Octopus Deploy 自动部署 Lambda Edge function

I have added a step to deploy the latest js code to the function, and clear the cloudfront cache, which work great.我在function上添加了一个部署最新js代码的步骤,并清除了云端缓存,效果很好。 The issue I have is I need to use an aws cli command to deploy my function to the edge.我遇到的问题是我需要使用 aws cli 命令将我的 function 部署到边缘。 However I'm not sure how to do this.但是我不确定该怎么做。 If I was doing this in the console, I would use this:如果我在控制台中这样做,我会使用这个:

https://i.stack.imgur.com/s1mL5.png https://i.stack.imgur.com/s1mL5.png

I have looked at the AWS Lambda documentation but it doesn't seem clear on how to deploy an Edge function.我查看了 AWS Lambda 文档,但似乎不清楚如何部署 Edge function。

Can anyone advise please?有人可以建议吗?

The section Deploy to Lambda@Edge inside the AWS Lambda console calls the CloudFront API Update Distribution with the LambdaFunctionAssociations parameter. Deploy to Lambda@Edge部分使用 LambdaFunctionAssociations 参数调用 CloudFront API 更新分发。

https://docs.aws.amazon.com/cli/latest/reference/cloudfront/update-distribution.html https://docs.aws.amazon.com/cli/latest/reference/cloudfront/update-distribution.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何构建、package 和部署 AWS SAM lambda function 从 azure Devops CI/CD 管道到 AWS - how to build, package and deploy AWS SAM lambda function of python from azure Devops CI/CD pipeline to AWS 如何使用 AWS CLI 创建 AWS Lambda 函数? - How can I create an AWS Lambda function using the AWS CLI? 从 AWS CLI 下载 AWS Lambda source package as Zip - Download AWS Lambda source package as Zip from AWS CLI 由于“无效的 Lambda 函数”,AWS CDK 部署失败 - AWS CDK failing to deploy due to "Invalid Lambda Function" 来自 Lambda 的 AWS Cognito adminCreateUser,使用 Amplify CLI 创建 - AWS Cognito adminCreateUser from Lambda, created with Amplify CLI 如何在 Lambda function 控制台中调用 AWS cli 命令? - How to invoke AWS cli commands in Lambda function console? AWS 的部署时间长 lambda function 具有巨大的依赖性 - Long deploy time of AWS lambda function with huge dependencies 无服务器:无法使用部署命令在 AWS 上加载 lambda 函数 - Serverless: can't load lambda function on the AWS using deploy comand 如何将特定的 AWS Lambda function 部署到特定的阶段 - How can I deploy a specific AWS Lambda function to a specific Stage 我想在从 cli 调用时在 aws Lambda 中传递参数 - I want to pass parameters in aws Lambda while invoking from cli
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM