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.

  • AWS ECS Docker - nginx: [emerg] host not found in upstream
  • Installing CPhalcon on an AWS Docker image
  • Starting Docker Daemon Through Ansible
  • How to do container rollbacks using a multi docker configuration on elasticbeanstalk
  • User-data script not executed when starting EC2 instance from AWS CLI
  • How to parameterize Dockerfile?
  • 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?

  • View logs for all docker containers simultaneously
  • Why am I unable to run django migrations via the 'docker-compose run web' command?
  • Managing Spring Cloud Dataflow Server logs
  • Starting container as a non-root user vs starting as root and then downgrade to non-root
  • How do apply Puppet class locally
  • Go & Docker: I'm able to run a go web server when using stdlib, when I use custom packages errors occur
  • 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.