Skip to content

unobravo/pulumi-mysql

Repository files navigation

Actions Status NPM version PkgGoDev Static Badge License

MySQL Resource Provider

The MySQL resource provider for Pulumi lets you manage MySQL resources in your cloud programs. To use this package, please install the Pulumi CLI first.

Installing

This package is available in many languages in the standard packaging formats.

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install @unobravo/pulumi-mysql

or yarn:

$ yarn add @unobravo/pulumi-mysql

Python

To use from Python, install using pip:

$ pip install git+https://github.com/unobravo/[email protected]#subdirectory=sdk/python

Note

NOT PUBLISHED ON PyPI

Go

To use from Go, use go get to grab the latest version of the library

$ go get github.com/unobravo/pulumi-mysql/sdk

.NET

Warning

NOT PUBLISHED

Configuration

The following configuration points are available:

  • mysql:endpoint (required) - The address of the MySQL server to use. Most often a "hostname:port" pair, but may also be an absolute path to a Unix socket when the host OS is Unix-compatible. Can be set via MYSQL_ENDPOINT environment variable.
  • mysql:username (required) - Username to use to authenticate with the server. Can be set via MYSQL_USERNAME environment variable.
  • mysql:password - (optional) Password for the given user, if that user has a password. Can be set via MYSQL_PASSWORD environment variable.
  • mysql:tls - (optional) The TLS configuration. One of false, true, or skip-verify. Defaults to false. Can be set via MYSQL_TLS_CONFIG environment variable.
  • mysql:proxy - (Optional) Proxy socks url, can also be sourced from ALL_PROXY or all_proxy environment variables.

Reasons

This provider bridges petoju/terraform-provider-mysql to Pulumi

Currently the official pulumi-mysql uses the hashicorp/terraform-provider-mysql which has been archived in 2021. Based on this issue, Pulumi is still investigating the migration from an archived terraform provider to a community fork.

Reference

For further information on the resources supported by the Terraform provider, please visit the documentation.