gpt4 book ai didi

amazon-web-services - 是否有 .elasticbeanstalk/config.yml 配置选项的完整列表?

转载 作者:行者123 更新时间:2023-12-05 06:35:50 25 4
gpt4 key购买 nike

您能否使用此文件指定环境的所有选项?我在网上找不到列出所有可用选项的引用。我想设置的例子有:

  • 实例类型
  • 安全组
  • 负载均衡器设置(应用程序)

或者,是否有可以在 .ebextensions 配置文件中设置的所有设置的引用?我找到了点点滴滴,但找不到列出所有内容的东西。

最佳答案

对于实例类型和安全组等配置设置,我强烈建议查看 Cloudformation;作为原因的一个例子,假设将来您想要(或需要)提升您的实例类型。或者您可能需要更改安全组以允许您的应用程序和数据存储之间建立连接。您真的需要部署应用程序代码来做这些事情吗?根据我的经验,在 Cloudformation 中保留基础设施配置是最佳做法。

也就是说,您无法找到单个设置列表的原因如下:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html

The option_settings section of a configuration file defines values for configuration options. Configuration options let you configure your Elastic Beanstalk environment, the AWS resources in it, and the software that runs your application. Configuration files are only one of several ways to set configuration options.

The Resources section lets you further customize the resources in your application's environment, and define additional AWS resources beyond the functionality provided by configuration options. You can add and configure any resources supported by AWS CloudFormation, which Elastic Beanstalk uses to create environments.

The other sections of a configuration file (packages, sources, files, users, groups, commands, container_commands, and services) let you configure the EC2 instances that are launched in your environment. Whenever a server is launched in your environment, Elastic Beanstalk runs the operations defined in these sections to prepare the operating system and storage system for your application.

所以没有所有选项的列表,它们就像您找到的那样散落在各处。但总的来说,根据我的内存和这篇文档,主要有以下三个部分:

1.) option_settings(eb环境,一些资源配置)

2.) resources(进一步的资源配置)

3.) ec2-internal 特定设置

我个人只对#3 使用 ebextensions,例如我需要在每个 ec2 实例上设置的 Apache Web 服务器配置。资源/配置管理存在于 Cloudformation 中。

关于amazon-web-services - 是否有 .elasticbeanstalk/config.yml 配置选项的完整列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49482107/

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