Skip to content

Instantly share code, notes, and snippets.

@mclavel
Last active May 24, 2018 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mclavel/ba6db153adfe8cba115b6300051b3a1c to your computer and use it in GitHub Desktop.
Save mclavel/ba6db153adfe8cba115b6300051b3a1c to your computer and use it in GitHub Desktop.
resource "random_string" "password" {
 length = 16
 special = true
}
resource "mysql_user" "root" {
 user = "root"
 host = "example.com"
 plaintext_password = "${random_string.password.result}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment