Scale up & down your Beanstalk environment according to a schedule

Beanstalk launched long time ago support for scaling your environment according to a defined schedule. For some unknown reasons, we discovered this feature is known by very few people. We use it in 2 scenarios: To scale up one environment when we expect a high load To completely close our staging environments out of office […]

Simple script we use to connect to Beanstalk host

The title of this post is self explanatory and it explains perfectly what we want to share today with you: a basic script we have in our home directory and we use it each time we want to ssh on a host from a Beanstalk environment. The script is: #!/bin/sh RANDOM=$$$(date +%s) PEM_FILE=${*: -1} hosts=”” […]

Don’t touch AWS resources you haven’t created!

In this blog post we want to share with you a golden rule we have confirmed recently: don’t touch resources created by other services. Or to be more concrete about our today subject: don’t touch S3 buckets that appear in your console, but which have been created by other services. AWS S3 is one of […]

Sharing Beanstalk applications between different AWS accounts

An essential good practice is to have distinct AWS accounts for testing and running code into production. This approach increases the costs transparency, offers a better security, and decreases the chances to occur a human error on production environments, so apparently anyone should apply it. But a trivial setup lack could stop to use it. […]

How to set system properties for a Lambda function written in Java

AWS Lambda, like other environments, doesn’t make accessible the command line used to start the Java virtual machine. Thus, it’s a little bit more complicated to add the running options to your application or the input parameters, specified as environment variable, or, preferable, system properties. More details about these 2 concepts are available in the […]

Running an application with different code versions

There are circumstances like deploying a critical code change into production or running an AB test when running the same application with different code versions is a need. Is this possible when your application is running in Elastic Beanstalk? By default, not, but there is a work around that we’ll describe below. The classic way […]

Client Configuration tips and tricks (2)

After we went through the most important moments through the history of AWS, we presented several methods about how to adjust configuration settings for an AWS client. In this post, we’ll continue on the same line and we’ll discuss about how to handle failed requests. We know it sounds like a boring topic, we know […]