Camaleon-cms on AWS Elastic Beanstalk + AWS RDS + postgres
1. Create AWS account
2. Create an service-role
3. Install eb cli
4. Create a RDS postgres database
5. Add the gem in your Gemfile
gem 'pg'
gem 'puma'
6. Install the gem
bundle install
7. Generate bundle packages to faster deploy
bundle package
8. Configure elastic beanstalk
$ eb init
Response to questions
To answer the question "Select a platform version" input 1) Ruby 2.2 (Puma)
$ eb create master-env --service-role SERVICE_ROLE_NAME_CREATED_ON_POINT_2
9. Configure env variables
eb setenv SECRET_KEY_BASE=
eb setenv DATABASE_HOST=
eb setenv DATABASE_USERNAME=
eb setenv DATABASE_PASSWORD=
It's possible multiline: eb setenv SECRET_KEY_BASE=foo DATABASE_HOST=bar
10. Open camaleon-cms
$ eb open
Notes:
It's important configure the security groups between RDS and Elastic Beanstalk.
References