FEATURES PRICING ABOUT DOCS LOGIN

google_sql_user

Creates a new Google SQL User on a Google SQL User Instance. For more information, see the official documentation, or the JSON API.

Example Usage

Example creating a SQL User.

resource "google_sql_database_instance" "master" {
  name = "master-instance"

  settings {
    tier = "D0"
  }
}

resource "google_sql_user" "users" {
  name     = "me"
  instance = "${google_sql_database_instance.master.name}"
  host     = "me.com"
}

Argument Reference

The following arguments are supported:


Attributes Reference

Only the arguments listed above are exposed as attributes.


See the source of this document at Terraform.io

REQUEST A DEMO