Last active
May 24, 2018 04:01
-
-
Save mclavel/ba6db153adfe8cba115b6300051b3a1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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