Reputation: 646
i want to use ElasticBeanstalk with the predefined configuration "Node.js" and "64bit Amazon Linux 2014.09 v1.0.9". The problem is that my NodeJS application use gm which need GraphicsMagick, but GrpahicsMagick isn't installed on the predefined configuration! Is it possible to tell Amazon AWS to install missing package after bootstrap and before deploying of my NodeJS application? Which other possibilities I have?
Upvotes: 1
Views: 1027
Reputation: 1557
A different solution which should work as well. Create a package.config
in .ebextensions
directory. And state:
commands:
01-command:
command: yum install -y [option flags] GraphicsMagick
Thanks to this answer: How to install GraphicsMagick on Elastic Beanstalk
Upvotes: 0
Reputation: 419
As stated here I'd recommend you to put the .config file inside a .ebextensions directory at the top level of your project.
Upvotes: 0
Reputation: 646
Ok, I think i found the answer. Create a file .config in .elasticbeanstalk folder and add following lines packages:
yum:
ImageMagick: []
So AWS install the package on each ec2 node. customize-containers-format-packages
Upvotes: 1