Skip to content

Terraform provider used to communicate with MySQL through code

Notifications You must be signed in to change notification settings

Ashu-Soni/MySQL_Provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL Provider

MySQL is a relational database server. The MySQL provider exposes resources used to manage the configuration of resources in a MySQL server.

Use the navigation to the left to read about the available resources.

Example Usage

The following is a minimal example:

# Configure the MySQL provider
provider "sql" {
  endpoint = "localhost:3306"
  username = "app-user"
  password = "app-password"
}

# Create a Database
resource "sql_database" "first_database" {
  name = "my_first_database"
}

Argument Reference

The following arguments are supported:

  • 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 also be sourced from the MYSQL_ENDPOINT environment variable.
  • username - (Required) Username to use to authenticate with the server, can also be sourced from the MYSQL_USERNAME environment variable.
  • password - (Optional) Password for the given user, if that user has a password, can also be sourced from the MYSQL_PASSWORD environment variable.

Note

For detailed implementation of mysql terraform provider, refer this link.

About

Terraform provider used to communicate with MySQL through code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published