2👍
✅
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-rds.html
In your case I woould try going for
- Configure your Amazon RDS DB security group to allow access from the Amazon EC2 security group used by your Elastic Beanstalk
application
part
Update:
don’t forget to backslash variables values like RDS_PASSWORD in os environment. Eg export RDS_PASSWORD="pa$$word"
should become export RDS_PASSWORD="pa\$\$word"
to do this go to;
on ssh ec2 instance and go to file
/opt/python/current
. This dir has one app directory which holds the django app and an env file. “nano env” and it shows lot of export statements go to the RDS_PASSWORD line and add the blackslash pass to it.
export RDS_PASSWORD=”pa\$\$word”. Save the file.
Then restart the app on aws and it works like a charm.
Source:stackexchange.com