I found the post How to associate an existing RDS instance to an Elastic Beanstalk environment? and tried to associate my existing RDS instance to Elastic Beanstalk by following it:
- First, creating a manual snapshot from my existing RDS instance, called
existing-rds-to-elasticbeanstalk
(check), notice it's storage size of 20 GB: - Then, going into the EB App Environment Configuration > Database and choosing it (check);
At this point the values of the lower section are set by default and storage size is set to 5 GB (can not be changed, mysql engine version also wrong):
So I only give it a password, then click [Save] and [Apply]. I get the following deployment error:
Creating RDS database: ... failed Reason: Invalid storage size for engine name mysql and storage type gp2: 5
The question is how to actually make this process work. Amazon's documentation doesn't help.