Aws lambda 如何从exist lambda函数下载serverless.yml

Aws lambda 如何从exist lambda函数下载serverless.yml,aws-lambda,serverless-framework,aws-serverless,Aws Lambda,Serverless Framework,Aws Serverless,我是aws lambda新手。 我需要使用npm在本地pc上部署。 我已经使用控制台创建了lambda函数并上传了层 我需要所有lambda文件,例如serverless.yml模板文件。。。。但我不知道如何将这些文件从aws下载到本地pc 请帮助我。您也可以尝试使用scp命令 scp-i/directory/to/abc.pemuser@ec2-xxx xxx xxx xxx.compute-1.amazonaws.com:path/to/file/your/local/directory/f

我是aws lambda新手。
我需要使用npm在本地pc上部署。
我已经使用控制台创建了lambda函数并上传了层

我需要所有lambda文件,例如serverless.yml模板文件。。。。但我不知道如何将这些文件从aws下载到本地pc


请帮助我。

您也可以尝试使用scp命令

scp-i/directory/to/abc.pemuser@ec2-xxx xxx xxx xxx.compute-1.amazonaws.com:path/to/file/your/local/directory/files/to/download

abc.pem是计算机的关键

您也可以尝试使用密码


scpuser@ec2-xxx xxx xxx xxx.compute-1.amazonaws.com:path/to/file/your/local/directory/files/to/download

您也可以尝试使用scp命令

scp-i/directory/to/abc.pemuser@ec2-xxx xxx xxx xxx.compute-1.amazonaws.com:path/to/file/your/local/directory/files/to/download

abc.pem是计算机的关键

您也可以尝试使用密码

scpuser@ec2-xxx xxx xxx xxx.compute-1.amazonaws.com:path/to/file/your/local/directory/files/to/download