Add postgresql provider

This commit is contained in:
Tobias Reisinger 2024-09-28 01:59:53 +02:00
parent feab7c6ed8
commit 43baf205dc
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
12 changed files with 221 additions and 107 deletions

14
main.tf
View file

@ -8,6 +8,10 @@ terraform {
source = "ovh/ovh"
version = "~> 0.48"
}
postgresql = {
source = "cyrilgdn/postgresql"
version = "~> 1.23"
}
scaleway = {
source = "scaleway/scaleway"
version = "~> 2.43"
@ -48,6 +52,16 @@ provider "ovh" {
consumer_key = "${var.ovh_consumer_key}"
}
provider "postgresql" {
host = "${var.postgresql_host}"
port = "${var.postgresql_port}"
database = "postgres"
username = "${var.postgresql_username}"
password = "${var.postgresql_password}"
sslmode = "verify-full"
connect_timeout = 15
}
provider "scaleway" {
organization_id = "${var.scaleway_organization_id}"
project_id = "${var.scaleway_project_id}"