在亚马逊弹性魔豆(AWS EBS)你如何通过自定义的环境变量? [英] How do you pass custom environment variable on Amazon Elastic Beanstalk (AWS EBS)?

查看:226
本文介绍了在亚马逊弹性魔豆(AWS EBS)你如何通过自定义的环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在亚马逊弹性魔豆导语说:

The Amazon Elastic Beanstalk blurb says:

弹性魔豆让你打开引擎盖,并保留完整的控制......甚至通过弹性魔豆控制台传递环境变量。

Elastic Beanstalk lets you "open the hood" and retain full control ... even pass environment variables through the Elastic Beanstalk console.

http://aws.amazon.com/elasticbeanstalk/

如何除了一个在弹性魔豆配置通过其他环境变量?

How to pass other environment variables besides the one in the Elastic Beanstalk configuration?

推荐答案

作为抬起头来的人谁使用了 .ebextensions / *配置办法:现在你可以添加,编辑和删除的弹性魔豆Web界面的环境变量。

As a heads up to anyone who uses the .ebextensions/*.config way: nowadays you can add, edit and remove environment variables in the Elastic Beanstalk web interface.

变量是在配置→软件配置:

The variables are under Configuration → Software Configuration:

在创建 .ebextensions 的瓦尔像 Onema的回答仍然有效。

Creating the vars in .ebextensions like in Onema's answer still works.

它甚至可以是preferable,例如如果您将部署到后来另一个环境,怕忘了手动设置的,或者如果你是OK犯的值到源代码管理。我用这两者的混合。

It can even be preferable, e.g. if you will deploy to another environment later and are afraid of forgetting to manually set them, or if you are ok with committing the values to source control. I use a mix of both.

这篇关于在亚马逊弹性魔豆(AWS EBS)你如何通过自定义的环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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