Technical questionAccepted answer
PostgreSQL on Elastic Beanstalk (Amazon Linux 2)
eagle28
Apr 10
0 views1
With former generation of Amazon Linux, all I needed to do is add the following in .ebextensions in order to use PostgreSQL:
packages:
yum:
postgresql93-devel: []
Now when I deploy on EB with the following platform: Python 3.7 running on 64bit Amazon Linux 2/3.0.0
I get the following error on deployment:
[ERROR] Error occurred during build: Yum does not have postgresql93-devel available for installation
Therefore it is impossible to deploy as I need to connect to a PostgreSQL database in RDS.
What config in .ebextensions do I need to do?
1 answer
Accepted answer · original discussion
eagle28
PermalinkAug 1
The following works:
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
jordanmPermalink
Apr 10
Amazon Linux 2 moved some packages to
amazon-linux-extras. That could be one of the things