MySQL Setup
The Pulumi MySQL provider uses the MySQL SDK to manage and provision resources.
Pulumi relies on the MySQL SDK to authenticate requests from your computer to MySQL. Your credentials are never sent to pulumi.com.
The Pulumi MySQL Provider needs to be configured with MySQL credentials before it can be used to manage resources.
Configuring Credentials
In order to communicate your configuration details to Pulumi:
Set the environment variables
MYSQL_ENDPOINT
andMYSQL_USERNAME
:$ export MYSQL_ENDPOINT=XXXXXXXXXXXXXX $ export MYSQL_USERNAME=YYYYYYYYYYYYYY
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. A full set
of configuration parameters can be found listed on the Project README.