简体   繁体   English

Elastic Beanstalk AWS 中的环境与应用程序

[英]Environment vs. application in Elastic Beanstalk AWS

I recently started using AWS EBS and was confused as to what environment and application is and what is the difference?我最近开始使用 AWS EBS,对什么是环境和应用程序以及有什么区别感到困惑?

Could I use environment to have a development testing and production environment and then have several applications in each environment?我可以使用 environment 来拥有一个development testingproduction环境,然后在每个环境中都有几个应用程序吗?

Thanks!谢谢!

Quoting the docs :引用文档

  • Application: An Elastic Beanstalk application is a logical collection of Elastic Beanstalk components, including environments, versions, and environment configurations.应用程序:Elastic Beanstalk 应用程序是 Elastic Beanstalk 组件的逻辑集合,包括环境、版本和环境配置。 In Elastic Beanstalk an application is conceptually similar to a folder .在 Elastic Beanstalk 中,应用程序在概念上类似于文件夹

  • Environment: An environment is a collection of AWS resources running an application version.环境:环境是运行应用程序版本的 AWS 资源的集合 Each environment runs only one application version at a time, however, you can run the same application version or different application versions in many environments simultaneously.每个环境一次只运行一个应用程序版本,但是,您可以在多个环境中同时运行相同的应用程序版本或不同的应用程序版本。

Back to your question:回到你的问题:

Could I use environment to have a development testing and production environment and then have several applications in each environment?我可以使用 environment 来拥有一个开发测试和生产环境,然后在每个环境中都有几个应用程序吗?

No. Its the other way around.不,它反过来。 One application can have multiple environments .一个应用程序可以有多个环境

For example.例如。 If you application is called: my-first-web-application , then you could have three independent environments in it:如果您的应用程序被称为: my-first-web-application ,那么您可以在其中拥有三个独立的环境:

  • prod - environment stable serving real life requests, running stable version of my-first-web-application code base. prod - 环境稳定,服务于现实生活中的请求,运行稳定版本的my-first-web-application代码库。
  • dev - development environment when you develop and tests new version of your my-first-web-application code base. dev - 开发和测试新版本的my-first-web-application代码库时的开发环境。
  • staging - final testing of a new version of your app, before it gets put into production environment. staging - 在将应用程序的新版本投入生产环境之前对其进行最终测试。

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

相关问题 网站(相对于Web应用程序)必需的AWS Elastic Beanstalk? - AWS Elastic Beanstalk necessary for Websites (vs. web apps)? 终止 AWS Elastic Beanstalk 环境 - Terminating AWS Elastic Beanstalk environment 开发环境和AWS elastic beanstalk - Development environment and AWS elastic beanstalk 为Rails应用程序创建AWS Elastic Beanstalk环境时出错 - Error while creating AWS Elastic Beanstalk Environment for Rails Application AWS Elastic Beanstalk:环境和应用程序之间有什么区别? - AWS Elastic Beanstalk: What is the difference between environment and application? React 应用程序具有暂存环境并在 AWS Elastic BeanStalk 上使用 Docker 进行部署 - React Application to have a staging environment and deploying with Docker on AWS Elastic BeanStalk 在EB应用程序级别覆盖的AWS Elastic Beanstalk环境变量 - AWS Elastic Beanstalk environment variables overriding at the EB application level AWS Elastic Beanstalk的应用程序见解 - Application Insights with AWS Elastic Beanstalk 使用 AWS Elastic Beanstalk 进行应用程序日志记录 - Application logging with AWS Elastic Beanstalk 在AWS Elastic Beanstalk上更新应用程序 - updating application on AWS elastic beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM