TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Deploy Docker Image to AWS Elastic Beanstalk

81 pointsby yefimabout 9 years ago

8 comments

TheGRSabout 9 years ago
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 未加载
madeofpalkabout 9 years ago
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 未加载
philip1209about 9 years ago
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.
dustingetzabout 9 years ago
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 未加载
nhumrichabout 9 years ago
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 未加载
sillypogabout 9 years ago
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 未加载
rocky1138about 9 years ago
Why not just use Docker Cloud (formally Tutum) ?
评论 #11687834 未加载
heptaabout 9 years ago
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 未加载