Elastic Beanstalk CLI, how do I create the environment with an RDS instance?

According to the aws docs here, it appears when I do an eb init on a project file, I should be prompted to create an RDS instance. when I run this, instead I only see:

~$ eb init

Select an application to use
1) eb-demo-php-simple-app
2) aws-eb-deploy
3) sb-test1
4) [ Create new Application ]
(default is 1): 4

Enter Application Name
(default is "eb-demo-php-simple-app2"):
Application eb-demo-php-simple-app2 has been created.

It appears you are using Docker. Is this correct?
(y/n): y
Do you want to set up SSH for your instances?
(y/n): y

Select a keypair.
1) ####
2) ####
3) ####
4) ####
5) ####
6) [ Create new KeyPair ]
(default is 6): 5


I’m using the PHP demo app from here that they provide to test out the scripts. Following the docs, I load up the EB instance, but it fails since it never sets up the RDS backend it requires.

  • How to parameterize Dockerfile?
  • Error deploying Play Framework on AWS Beanstalk Docker
  • Configure Postgres application users with Terraform for RDS
  • Kubernetes and vSphere, AWS
  • Angular 2 app deploy in a docker Container running on AWS
  • docker container in AWS VPC, good idea or not? [closed]
  • I assume the documentation is out of date, and the CLI no longer has this functionality. The old EB cli has ‘deprecated’ written all over it, so I’m not using that.

    How do I set up RDS with ELB CLI? Is it possible anymore?

  • How to store named docker volume with mysql data on external disk (mac os)?
  • Spark app unable to write to elasticsearch cluster running in docker
  • Sidekiq using the incorrect url for redis
  • CI: Should I run tests directly or through Docker container?
  • Combining interchangable docker applications
  • CrashLoopBackOff: Docker image not running on Kubernates ? (ImagePullBackOff)
  • One Solution collect form web for “Elastic Beanstalk CLI, how do I create the environment with an RDS instance?”

    You are looking at the docs for the older 2.x CLI but using the newer 3.x CLI (note the info text at the top of the doc you referenced) which acts a lot differently, see here.

    You can create an environment with a database by using

    eb create --database

    After running eb init.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.