Michael
Michael

Reputation: 13924

Installing Packages in Elastic Beanstalk (Libffi)

I am trying to set up a Flask application on Elastic Beanstalk. One of the dependencies is cffi. When I look at the error logs I get the same error as in this question: Package libffi was not found in the pkg-config search path. This answer says that libffi needs to installed through a more general package config file for linux packages. So I have the following config file:

packages: 
  yum:
    python-dev: []
    python-matplotlib: [] 
    libffi-devel: []

However, I am still getting the same error. The config file is named 01run.config and is in .ebextensions/01run.config. How do I check whether these packages are being installed / get them to install?

Upvotes: 2

Views: 737

Answers (1)

Michael
Michael

Reputation: 13924

Note that eb init creates a .elasticbeanstalk folder, but it does not create an .ebextensions folder. It was not processing the config file because despite what I wrote I actually had the config file in .elasticbeanstalk rather than .ebextensions.

Upvotes: 3

Related Questions