Update : file variables
Some checks failed
terraform validation / Terraform (push) Failing after 13s
Some checks failed
terraform validation / Terraform (push) Failing after 13s
This commit is contained in:
parent
0479b634bc
commit
c08635a7b9
@ -12,3 +12,9 @@ terraform {
|
||||
}
|
||||
required_version = ">= 1.7.5"
|
||||
}
|
||||
provider "vault" {
|
||||
address = var.vault_url
|
||||
skip_child_token = true
|
||||
skip_tls_verify = true
|
||||
token = var.vault_token
|
||||
}
|
2
user.tf
2
user.tf
@ -7,7 +7,7 @@ locals {
|
||||
}
|
||||
|
||||
resource "random_password" "user_password" {
|
||||
length = 12
|
||||
length = 20
|
||||
}
|
||||
|
||||
resource "google_sql_user" "user" {
|
||||
|
17
variables.tf
17
variables.tf
@ -2,6 +2,7 @@ variable "instance_name" {
|
||||
description = "the name of the database instance to create"
|
||||
type = string
|
||||
sensitive = true
|
||||
default = "demo"
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
@ -30,4 +31,18 @@ variable "database_user_name" {
|
||||
type = string
|
||||
sensitive = true
|
||||
default = "administrator"
|
||||
}
|
||||
}
|
||||
|
||||
variable "vault_url" {
|
||||
description = "URL du serveur Vault"
|
||||
type = string
|
||||
sensitive = true
|
||||
default = "https://vault.tips-of-mine.com"
|
||||
}
|
||||
|
||||
variable "vault_token" {
|
||||
description = "Token d'acces"
|
||||
type = string
|
||||
sensitive = true
|
||||
default = "hvs.BUXBydP1Iy6leqNIo2wx478p"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user