Use Elasticcache with Elasticbeanstalk


This article describes how to use Elasticcache with Elasticbeanstalk.


🐡 Prepare Elasticcache

  • (1) Go to Elasticcache Console
  • (2) Create new instance(Redis/Memcached) on Elasticcache
  • (3) Create security group for the instance and configure it to use the instance by Elasticbeanstalk security group

😎 Confirmation

You should confirm to connect the Elasticcache from Elasticbeanstalk instance.

# local
$ eb ssh

# Elasticbeanstalk instance
$ sudo su -
$ cd /tmp
$ yum install -y git
$ git clone http://github.com/antirez/redis.git
$ cd redis && git checkout 3.2 # Please set newest Redis version
$ make redis-cli
$ cd src
$ ./redis-cli -h ELASTICCACHE_ENDPOINT -p ELASTICCACHE_PORT
#=> ELASTICCACHE_ENDPOINT > ... <= successful!< span>

Happy Hacking!

🍮 Special Thanks

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!