Update : file variables
Some checks failed
terraform validation / Terraform (push) Failing after 13s

This commit is contained in:
Hubert Cornet 2025-01-18 20:42:22 +01:00
parent 0479b634bc
commit c08635a7b9
3 changed files with 23 additions and 2 deletions

View File

@ -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
}

View File

@ -7,7 +7,7 @@ locals {
}
resource "random_password" "user_password" {
length = 12
length = 20
}
resource "google_sql_user" "user" {

View File

@ -2,6 +2,7 @@ variable "instance_name" {
description = "the name of the database instance to create"
type = string
sensitive = true
default = "demo"
}
variable "region" {
@ -31,3 +32,17 @@ variable "database_user_name" {
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"
}