我该如何去创造弹性魔豆的配置文件? [英] How do I go about creating Elastic Beanstalk configuration files?

查看:216
本文介绍了我该如何去创造弹性魔豆的配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找咨询一下,我应该如何处理产生弹性魔豆配置文件的问题。

  1. 如何去构建一个弹性魔豆的配置文件?
  2. 我怎么知道该怎么包括或不包括?
  3. 请我使用模板引用或者他们通常由配置工具生成的?
解决方案

您可以修改以多种方式弹性魔豆环境的配置。 一种方法是将一个文件夹的名称 .ebextensions 您的应用程序源代码的zip内。在这个文件夹,你可以有一个的.config 扩展一个或多个文件。文件将在他们的名字的字母顺序进行处理。这些文件是使用YAML语法格式。 这些文件使您可以控制​​大量的配置选项,为您青苗环境。

页解释了各种东西,你使用ebextensions可以配置(假设你在Linux环境下)。你可以阅读有关在Windows 这里。在这个页面,你会发现在你的环境中如何配置不同部分的信息是可以控制的,例如:您可以在您的实例安装软件包,您可以创建文件,可以在部署过程中对您的情况下运行shell命令,你可以控制你的环境等的设置。

您也可以控制 option_settings 使用这些配置文件的环境。你可以阅读更多的细节什么的支持选项设置这里

您还可以修改的AWS资源,如负载均衡,自动缩放团体等性质由魔豆创建,也可以创建新的资源,如使用ebextensions DynamoDB表。关于如何创建或修改的资源文件是href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources.html" rel="nofollow">此处提供

I am looking for advice about how I should approach the problem of creating Elastic Beanstalk configuration files.

  1. How do I go about constructing an Elastic Beanstalk configuration files?
  2. How do I know what to include or not include?
  3. Do I construct it by hand using the template reference or are they typically generated by a configuration tool?

解决方案

You can modify the configuration of Elastic Beanstalk environments in multiple ways. One way is to place a folder with the name .ebextensions inside your app source zip. Inside this folder you can have one or more files with a .config extension. Files will be processed in the alphabetical order of their name. These files are formatted using YAML syntax. These files allow you to control lots of configuration options for your beanstalk environments.

This page explains various things you can configure using ebextensions (assuming you are on a linux environment). You can read about ebextensions on Windows here. On this page you will find information on how different parts of your environment configuration can be controlled, e.g. you can install packages on your instances, you can create files, you can run shell commands on your instances during deployment, you can control settings of your environment etc.

You can also control option_settings for your environment using these config files. You can read more details about what option settings are supported here.

You can also modify properties of AWS resources like load balancer, auto scaling groups etc. created by beanstalk or you can create new resources like DynamoDB tables using ebextensions. Documentation on how to create or modify resources is available here.

这篇关于我该如何去创造弹性魔豆的配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆