Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "random_string" "password" {
- length = 16
- special = true
- }
- resource "mysql_user" "root" {
- user = "root"
- host = "example.com"
- plaintext_password = "${sha256(bcrypt(random_string.password.result))}"
- }
Add Comment
Please, Sign In to add comment