MySQL: Installation & Configuration

The Pulumi MySQL provider uses the MySQL SDK to manage and provision resources.


The MySQL Atlas provider is available as a package in all Pulumi languages:

Configuring Credentials

Pulumi relies on the MySQL SDK to authenticate requests from your computer to MySQL. Your credentials are never sent to The Pulumi MySQL Provider needs to be configured with MySQL credentials before it can be used to manage resources.

In order to communicate your configuration details to Pulumi:

  1. Set the environment variables MYSQL_ENDPOINT and MYSQL_USERNAME:

  2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set mysql:endpoint XXXXXXXXXXXXXX
    $ pulumi config set mysql:username YYYYYYYYYYYYYY

If you are going to set mysql:password, please remember to pass --secret so that it is properly encrypted.The complete list of configuration parameters is in the MySQL provider README.