2022-05-13 02:27:52 +00:00
|
|
|
# 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?
|
2022-07-27 20:13:11 +00:00
|
|
|
# connection_url = "{{username}}:{{password}}@tcp(mysql-server.service.consul:3306)"
|
2022-05-13 02:27:52 +00:00
|
|
|
# username = ""
|
|
|
|
# password = ""
|
|
|
|
# }
|
|
|
|
# }
|