Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi Docker Elastic Beanstalk: upload .ebextensions

Is it possible to deploy .ebextensions to Multi-Docker Elastic Beanstalk?

I use a Dockerrun.aws.json file to upload my App and everything works fine. I want to setup logs to stream to Cloudwatch. I should do that using .ebextensions. However, I don't know how to attach .ebextensions if I upload in web browser (AWS console) just only Dockerrun.aws.json (not .zip or .war).

  1. How can I deploy also .ebxetensions to Multi Docker Elastic Beanstalk?
  2. ... or is it any other way to setup what logs should be streamed to Cloudwatch Logs?
like image 854
nicq Avatar asked Feb 14 '17 11:02

nicq


People also ask

Does Elastic Beanstalk allow multiple Docker containers?

In order to get the most out of Docker, Elastic Beanstalk lets you create an environment where your Amazon EC2 instances run multiple Docker containers side by side.

What is .ebextensions folder?

ebextensions ) to your web application's source code to configure your environment and customize the AWS resources that it contains. Configuration files are YAML- or JSON-formatted documents with a . config file extension that you place in a folder named . ebextensions and deploy in your application source bundle.


1 Answers

You should create a zip archive that contains both Dockerrun.aws.json and .ebextensions directory with any configuration files that you require.

Elastic Beanstalk will find Dockerrun.aws.json file from the archive.

This is covered in AWS' Multicontainer Docker tutorial.

like image 56
Olli Avatar answered Oct 23 '22 05:10

Olli