1. Packages
  2. MySQL
  3. Installation & Configuration
MySQL v3.2.3 published on Tuesday, Feb 27, 2024 by Pulumi

MySQL: Installation & Configuration

mysql logo
MySQL v3.2.3 published on Tuesday, Feb 27, 2024 by Pulumi

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

    Installation

    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 pulumi.com. 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:

      $ export MYSQL_ENDPOINT=XXXXXXXXXXXXXX
      $ export MYSQL_USERNAME=YYYYYYYYYYYYYY
      
    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.

    mysql logo
    MySQL v3.2.3 published on Tuesday, Feb 27, 2024 by Pulumi