AWS cli elasticbeanstalk

How to create rds db with aws cli for elastic beanstalk?

aws elasticbeanstalk create-environment

I managed to get the team to create a new resilient beanstalk environment, but it did not create rds db for me. Is there something I need to set up?

+4
source share
1 answer

When invoking the endpoint, create-environmentyou can also specify an option --option-settings, as shown in the documentation .

All options options can be found on this page . In particular, find the section aws:rds:dbinstanceto see specific RDS.

An example JSON configuration might look like this:

[
    {
        "Namespace": "aws:rds:dbinstance",
        "OptionName": "DBName",
        "Value": "my-database"
    },
    {
        "Namespace": "aws:rds:dbinstance",
        "OptionName": "Engine",
        "Value": "mysql"
    },
    {
        "Namespace": "aws:rds:dbinstance",
        "OptionName": "MasterUsername",
        "Value": "user"
    },
    {
        "Namespace": "aws:rds:dbinstance",
        "OptionName": "MasterUserPassword",
        "Value": "hunter2"
    },
    {
        "Namespace": "aws:rds:dbinstance",
        "OptionName": "DBInstanceClass",
        "Value": "db.m1.small"
    }
    // ...
]
+4
source

All Articles