英文:
Aws Lambda: Missing export menu
问题
I am working on AWS Lambda and trying to export a selected function, but it does not show the export function menu in a particular region. In other regions, it shows the export function menu.
I wonder how and what changes should be made to have the export function menu?
英文:
I am working on aws lambda and trying to export a selected function but it does not show export function menu in a particular region. In other regions it shows export function menu.
I wonder how and what changes should be made to have export function menu?
答案1
得分: 1
不是所有AWS控制台的所有区域都支持通过AWS控制台导出函数。您可以尝试使用AWS CLI,然后执行lambda get-function
命令。
aws lambda get-function --function-name my-function --query 'Code.Location'
这个CLI命令将返回一个预签名的S3 URL,可用于下载函数的代码库的zip文件。
如果您正在处理具有容器配置的函数,您将能够从与您的函数关联的容器注册表中下载容器。
# 用您函数的镜像URI替换这个URI
docker pull aws_account_id.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest
英文:
It seems that not all AWS consoles on all regions support exporting of functions via AWS consoles. You may try using AWS CLI instead and issue the lambda get-function
command.
aws lambda get-function --function-name my-function --query 'Code.Location'
This CLI command will respond with a pre-signed S3 url that could be used to download to retrieve the function's codebase in a zip file.
If you are dealing with a function with container configuration, you will be able to download the container from the container registry associated with your function.
# Replace the URI with your function's image URI
docker pull aws_account_id.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论