简体   繁体   English

从 VSCode 将 NodeJS 应用程序部署到 Elastic Beanstalk Docker 平台?

[英]Deploy NodeJS App to Elastic Beanstalk Docker Platform from VSCode?

I have an NodeJS app that I am deploying to AWS Elasticbeanstalk Docker Platform.我有一个要部署到 AWS Elasticbeanstalk Docker 平台的 NodeJS 应用程序。 For now, i just upload and deploy.zip file while logged in to AWS.现在,我只需在登录 AWS 时上传并部署.zip 文件。 I am wondering if there is a more efficient streamlined way to accomplish that directly from VSCode.我想知道是否有更有效的简化方法可以直接从 VSCode 完成。

Thanks in advance for any guidance.提前感谢您的任何指导。

There's a toolkit available from the extension marketplace: https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode扩展市场提供了一个工具包: https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode

Steps to install安装步骤

(Taken from their official site: https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-toolkit.html ) (取自他们的官方网站: https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/setup-toolkit.html

  1. Start the VS Code editor.启动 VS 代码编辑器。

  2. In the Activity Bar on the side of the VS Code editor, choose the Extensions icon.在 VS Code 编辑器一侧的 Activity Bar 中,选择 Extensions 图标。 This opens the Extensions view, which allows you to access the VS Code Marketplace.这将打开 Extensions 视图,允许您访问 VS Code Marketplace。

VS Code 活动栏中的扩展图标。

  1. In the search box for Extensions, search for AWS Toolkit for Visual Studio Code.在扩展的搜索框中,搜索 AWS Toolkit for Visual Studio Code。 Choose the entry to see its details in the right pane.选择条目以在右窗格中查看其详细信息。

  2. In the right pane, choose Install.在右窗格中,选择安装。

  3. Once installed, if you're prompted to restart the editor, choose Reload Required to finish installation.安装后,如果系统提示您重新启动编辑器,请选择 Reload Required 以完成安装。

After you install the Toolkit for VS Code, you should configure your credentials to enable you to access your AWS resources from within VS Code.安装 VS Code 工具包后,您应该配置您的凭证以使您能够从 VS Code 中访问您的 AWS 资源。

It appears you can easily deploy from VSCode after you install the extension.安装扩展后,您似乎可以轻松地从 VSCode 进行部署。

在此处输入图像描述

I know the screenshot demonstrates deployment of a SAM application but I'm assuming this extension also gives you the ability to easily deploy AWS Elastic Beanstalk Web/ NodeJS Apps too.我知道屏幕截图演示了 SAM 应用程序的部署,但我假设此扩展还使您能够轻松部署 AWS Elastic Beanstalk Web/NodeJS 应用程序。

https://aws.amazon.com/visualstudiocode/ contains all of the relevant information you need. https://aws.amazon.com/visualstudiocode/包含您需要的所有相关信息。

https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html is the user guide. https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html是用户指南。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM