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.

  • Persistent mysql data from docker container
  • Mount specific EBS volume to Docker under AWS beanstalk
  • AWS latency spike during fix hours
  • Docker for AWS and Selenium Grid - Connection refused / No route to host (Host unreachable)
  • How to understand Amazon ECS cluster
  • Secure distribution of private keys to Docker on CoreOS
  • 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?

  • Docker on Amazon Linux AMI
  • How to export/save an entire Docker container/image
  • Docker-machine host env on multiple computers?
  • What use cases of Docker on real projects
  • Correct way to access url/api endpoints of other docker containers in the same docker network?
  • When would I use `--interactive` without `--tty` in a Docker container?
  • 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.