gpt4 book ai didi

amazon-web-services - 使用 AWS Elastic BeanStalk 进行部署的详细信息

转载 作者:行者123 更新时间:2023-12-01 03:17:12 25 4
gpt4 key购买 nike

我正在尝试使用来自 AWS 的 Elastic Beanstalk 部署我的 Spring Boot 微服务。它提供了用于部署的预配置环境。我有一台带有 80 GB 的 EBS(免费套餐选项)的 Ubuntu 机器。我有些疑惑。我加分

  • 当我使用 Elastic Beanstalk 进行部署时,它实际部署在哪里?在我的 EBS 存储中?或者属于 AWS 的任何其他空间?
  • 是否可以在不创建 EC2 实例的情况下部署任何内容?如果可能的话,那么它究竟会占据什么物理空间呢?
  • 当我部署我的微服务时,我选择了 Tomcat 选项。所以在盒子下面有一句话说Java Tomcat服务器环境是在Amazon Linux之类的。我有 Ubuntu 机器;如果 Beanstalk 使用我的 EC2 实例,那么为什么它会显示与 Amazon Linux 2017 相关的消息?因为我的机器是 Ubuntu?
  • 我发现文档说 BeanStalk 不收费。付款将根据我们选择的 AWS 资源进行。那么我如何将这一点与我的第三点联系起来呢?
  • 最佳答案

    我将从 #4 Elastic Beanstalk 开始,这是一项您无需付费的服务,只是您消耗的资源,例如 EC2、EBS、ELB。

    在部署 Elastic Beanstalk 应用程序时,您可以选择所需的 Tomcat 版本以及 Linux 版本

  • 64 位 Amazon Linux 2017.09 v2.7.2 运行 Tomcat 8 Java 8
  • 64 位 Amazon Linux 2017.09 v2.7.2 运行 Tomcat 7 Java 7
  • 64 位 Amazon Linux 2017.09 v2.7.2 运行 Tomcat 7 Java 6

  • https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html#concepts.platforms.java

    #1 - 它正在部署到 EC2 上的环境,这就是您提供的平台中有一个 AMI 的原因。

    When you launch an environment, you choose a platform configuration. We update platform configurations periodically to provide performance improvements and new features. You can update your environment to the latest platform configuration at any time.



    https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.ec2.html

    #2 你可以在 Docker 上部署你的应用程序,但仍然需要 EC2 主机来运行,你可以管理它们,或者你可以使用多容器平台,将它们配置到 ECS 。
    https://docs.aws.amazon.com/elasticbeanstalk/latest
    /dg/create_deploy_docker.html

    #3 Elastic Beanstalk 喜欢将资源置于其控制之下,当您配置环境时,它将配置所需的资源,无需在 Elastic beanstalk 之外配置机器。
    您可以创建一个 custom platform如果你也想基于 Ubuntu。

    Note

    Modify the resources in your environment only by using Elastic Beanstalk. If you modify resources using another service's console, CLI commands, or SDKs, Elastic Beanstalk won't be able to accurately monitor the state of those resources, and you won't be able to save the configuration or reliably recreate the environment. Out-of band-changes can also cause issues when terminating an environment.



    Some other points about Elastic Beanstalk from a great answer on Stack Overlfow

    关于amazon-web-services - 使用 AWS Elastic BeanStalk 进行部署的详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48083101/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com