“Aws Lambda: Missing export menu” 可以翻译为 “Aws Lambda:缺少导出菜单”。

huangapple go评论57阅读模式
英文:

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?

“Aws Lambda: Missing export menu” 可以翻译为 “Aws Lambda:缺少导出菜单”。

答案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

huangapple
  • 本文由 发表于 2023年6月29日 20:26:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76581049.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定