I'm trying to run a flask application which has pandas
dependency. Without having python-devel installed, pandas cannot be installed. So first I need to install gcc-c++ and python devel according to this thread: 'gcc' failed during pandas build on AWS Elastic Beanstalk
Now, my .elasticbeanstalk/config.yml
looks like:
branch-defaults:
default:
environment: flask-env
group_suffix: null
global:
application_name: flask-sample-app
branch: null
default_ec2_keyname: flask-sample-app
default_platform: Python 3.4
default_region: eu-west-1
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: null
repository: null
sc: null
workspace_type: Application
packages:
yum:
gcc-c++: []
python-devel: []
But after successful eb deploy
command, I connect to it via eb ssh
and see that it wasn't installed. Is my config.yml correct?
packages
section looks like it's using three-space indents while the other sections are using two-space indents...might be a problem. You can also look at/var/log/eb-activity.log
to see if there are any informative log messages. – Brianeb deploy
should be all that's needed. Can you post your/var/log/eb-activity.log
? – Brian