terraform-provider-mysqlexec

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 3 Imported by: 0

README

MySQLExec

Motivation

During my everyday work my team and I had to execute custom SQL query on MySql server. MySQL provider does not allow executing custom SQL commands on the server.

I've decided to create custom provider for both enterprise use and for fun.

I know well that Terraform is a tool for infrastructure provisioning, not creating data structures. This custom provider was created mostly out of curiosity and necessity for single use case.

Usage

This provider is mostly based on MySQL provider.

First compile the provider by running:

go build .

Then copy it to example directory, and fill up missing values.

cp terraform-provider-mysqlexec example/
cd example/

Now initialize providers in example directory and execute apply

terraform init
terraform apply

That's all, you should see the changes done by your custom script.

Both direct query and one stored in file can be used with this provider. See example for more details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL