18 lines
415 B
Terraform
18 lines
415 B
Terraform
|
# resource "vault_mount" "db" {
|
||
|
# path = "database"
|
||
|
# type = "database"
|
||
|
# }
|
||
|
#
|
||
|
# resource "vault_database_secret_backend_connection" "mysql" {
|
||
|
# backend = vault_mount.db.path
|
||
|
# name = "mysql"
|
||
|
# allowed_roles = ["accessdb"]
|
||
|
#
|
||
|
# mysql {
|
||
|
# # How to give access here?
|
||
|
# connection_url = "{{username}}:{{password}}@tcp(localhost:3306)"
|
||
|
# username = ""
|
||
|
# password = ""
|
||
|
# }
|
||
|
# }
|