TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Deploy Docker Image to AWS Elastic Beanstalk

81 点作者 yefim大约 9 年前

8 条评论

TheGRS大约 9 年前
So I had an observation about AWS scripting that I&#x27;d like to share. I&#x27;ve been working on some AWS scripts lately for both personal projects and stuff we deploy at work, which means that I often use 2 sets of credentials.<p>A lot of people on Github&#x2F;SO seem to like to set their AWS credentials as env variables in their scripts. I was doing this myself (since it seemed like the established pattern), but then found out aws cli has a --profile option. You store everything in the ~&#x2F;.aws&#x2F;credentials file instead of on an env variable and simply switch the profile you use when executing the script.<p>This works better for me when managing multiple credentials and doesn&#x27;t allow the off-chance of uploading my credentials to a remote git repo. I was curious if people just didn&#x27;t know about this option or if setting your credentials within the script is preferred for some reason.
评论 #11688588 未加载
评论 #11687939 未加载
评论 #11688570 未加载
madeofpalk大约 9 年前
Elastic Beanstalk is fantastic.<p>It&#x27;s a really nice mix of not having to worry about the granular infra of Heroku, but still having control of things where you want. It makes setting up auto scaling incredibly easy.<p>We have a lot of services running on Elastic Beanstalk and have had a lot of success with it.
评论 #11687951 未加载
philip1209大约 9 年前
We use a script that more or less looks like this at Staffjoy. It took many hours at the AWS loft to get it working. I just commented some code we use to confirm that a deploy succeeded and blocks until it does.
dustingetz大约 9 年前
How do people detect errors? I run 5 beanstalk environments right now and they randomly fail and i&#x27;m not really sure if it&#x27;s my fault or if beanstalk isn&#x27;t reliable in certain configurations or what.
评论 #11689144 未加载
nhumrich大约 9 年前
I noticed you use the aws CLI instead of the eb-cli. Any reason for that? This is an incredibly easy task with the eb cli
评论 #11688162 未加载
sillypog大约 9 年前
At Bleacher Report we use a Ruby app called Gantree to manage this process. It pulls in appropriate ebextensions for the deploy by taking a convention over configuration approach, deriving the correct extensions from the stack name.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;feelobot&#x2F;gantree" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;feelobot&#x2F;gantree</a>
评论 #11687593 未加载
评论 #11687572 未加载
rocky1138大约 9 年前
Why not just use Docker Cloud (formally Tutum) ?
评论 #11687834 未加载
hepta大约 9 年前
In what ways is this different from ECS? It&#x27;s strange to me that you can do the same thing in slightly different ways.
评论 #11697638 未加载