How to fix invalid Elastic Beanstalk configuration / deployments

Posted by Matt Bryson on 25-Sep-2017 10:45:06

Recently some of our Elastic Beanstalk deployments suddenly started failing. It turns out it was a change to EB's configuration validation which caused some misleading error messages.

Read More

Topics: AWS, Deployment, EB (Elastic Beanstalk), Elasticbenastalk

iDetailAid at AWS Summit London

Posted by Matt Bryson on 29-Jun-2017 16:03:49

Yesterday, iDetailAid attended the Amazon Web Services (AWS) Summit in London's ExCeL centre, along with 6,000 other customers and partners of Amazon.

Read More

Topics: AWS, Technology, News

Failed to deploy elasticbeanstalk application? "Unsuccessful command execution on instance id(s) 'i-********'. Aborting the operation."

Posted by Matt Bryson on 19-Oct-2015 11:20:03

Sometimes EB fails to deploy and times out with a generic error:

Unsuccessful command execution on instance id(s) 'i-********'. Aborting the operation.

As of yet there is no clean way to get out of this, but here are the top 3 ways that we have got it to work - depending on your needs...

Read More

Topics: EC2, AWS, Deployment, EB (Elastic Beanstalk), Elasticbenastalk

Support for Korean / Chinese / Japanese characters in PhantomJS

Posted by Matt Bryson on 22-Jun-2015 12:52:26

We use PhantomJS to auto generate images of user generated content. All was fine, until we entered the Asian markets.
It was not the usual black squares issue that you can get with Phantom, it just had spaces where the Korean characters should have been.

The font itself was loading fine, as Latin characters were in the correct type face.

After following lots of posts about installing font support packs on linux, and non of them working, I finally got it running on Centos with groupinstall for yum

sudo yum groupinstall "Korean Support" "Chinese Support" "Japanese Support"
Read More

Topics: PhantomJS, AWS, yum, CentOS, EB (Elastic Beanstalk), Linux

CSS failing to apply from S3 hosted files (uploaded with transmit)

Posted by Matt Bryson on 26-May-2015 12:14:33

Had a very odd issue with CSS files being loaded, but the css not being applied (and any @imports not loading either).

Read More

Topics: CSS, AWS, S3

How to get Git SHA in an Elastic Beanstalk App (and set other dynamic env vars at deployment)

Posted by Matt Bryson on 18-May-2015 08:57:28

As part of our deployment process, we include the short git SHA as a build number against our SemVer version number.

We wanted this available in our application UI to help identify running versions. Easy I thought, Beanstalk sets this as the Version Label when deploying, so we should be able to access that from the environment vars in PHP.

Unfortunately not, this is one of the many EB values you cant easily get to. After a lot of failed attempts, here is how we managed it as a one-liner in the .ebextensions

Read More

Topics: PHP, EC2, AWS, Deployment, EB (Elastic Beanstalk), Apache

Compiling phantomJS 2.0 for AWS EC2 linux image

Posted by Matt Bryson on 17-Apr-2015 11:30:08

Back in Feb I wrote about how to compile phantomJS 2.0.0 for linux, using centOS as the build machine. However, the resulting bin files are not portable across all linux distros, hence why the official binaries aren't out yet.

If you need to run phantomJS on one of the AWS machine images, here is how we compiled it on AWS.

Read More

Topics: PhantomJS, EC2, AWS, CentOS, Linux, Bash

Shellshock Bash Bug : How to patch Bash on AWS EC2 deployed with Elastic Beanstalk

Posted by Matt Bryson on 26-Sep-2014 10:18:02

In response to the ShellShock bug, we tried to patch all our AWS EC2 servers following this security bulletin... but it didn't work.

Turns out that the instructions in the AWS bulletin don't apply to Elastic Beanstalk deployed servers. After some searching, we found the answer.

Read More

Topics: EC2, AWS, yum, CentOS, EB (Elastic Beanstalk), Linux, Bash, Apache

Push to multiple AWS accounts with elastic beanstalk

Posted by Matt Bryson on 11-Sep-2014 19:59:59

UPDATE : EB Cli tools v3 now supports multiple aws profiles

AWS makes it very simple to push to different environments of an application, but what if you need to push to a completely separate AWS account?

It's not really possible, but you can shoehorn it with the following set up....

Read More

Topics: AWS, Deployment, EB (Elastic Beanstalk)

AWS Elastic Beanstalk Deployment Command Timeouts (and request logs fails...)

Posted by Matt Bryson on 09-Sep-2014 15:09:02

If your AWS EB deployment suddenly started failing with the following:

Update environment operation is complete, but with command timeouts. Try increasing the timeout period. For more information, see troubleshooting documentation.

And you find that trying to pull the logs also fails, it might be the same issue we recently had.

Read More

Topics: EC2, AWS, EB (Elastic Beanstalk)