.elasticbeanstalk/config.yml 是否有完整的配置选项列表?
Is there a full list of configuration options for .elasticbeanstalk/config.yml?
您能否使用此文件指定环境的所有选项?
我在网上找不到列出所有可用选项的参考。
我要设置的示例是:
- 实例类型
- 安全组
- 负载均衡器设置(应用程序)
或者,是否有可以在 .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 服务器配置。 Resource/configuration 管理层住在 Cloudformation。
您能否使用此文件指定环境的所有选项? 我在网上找不到列出所有可用选项的参考。 我要设置的示例是:
- 实例类型
- 安全组
- 负载均衡器设置(应用程序)
或者,是否有可以在 .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 服务器配置。 Resource/configuration 管理层住在 Cloudformation。