From 1d17498b4249d2170f46085588102f9ec0441993 Mon Sep 17 00:00:00 2001 From: Bobby DeVeaux Date: Fri, 6 Sep 2024 09:35:48 +0100 Subject: [PATCH] Updating provider and vars --- modules/rds/basic_postgres_database/providers.tf | 10 +++++----- modules/rds/basic_postgres_database/variables.tf | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/rds/basic_postgres_database/providers.tf b/modules/rds/basic_postgres_database/providers.tf index 0a535f6..f8e3695 100644 --- a/modules/rds/basic_postgres_database/providers.tf +++ b/modules/rds/basic_postgres_database/providers.tf @@ -4,7 +4,7 @@ terraform { source = "hashicorp/aws" version = "~> 5.0" } - mysql = { + postgres = { source = "cyrilgdn/postgresql" version = "~> 1.22" } @@ -14,10 +14,10 @@ terraform { } provider "postgres" { - host = var.postgres_endpoint - port = var.postgres_port - username = var.postgres_username - password = var.postgres_password + host = var.endpoint + port = var.port + username = var.username + password = var.password } diff --git a/modules/rds/basic_postgres_database/variables.tf b/modules/rds/basic_postgres_database/variables.tf index a9571da..877e8af 100644 --- a/modules/rds/basic_postgres_database/variables.tf +++ b/modules/rds/basic_postgres_database/variables.tf @@ -18,20 +18,20 @@ variable "database_name" { type = string } -variable "postgres_endpoint" { +variable "endpoint" { type = string } -variable "postgres_port" { +variable "port" { type = string } -variable "postgres_username" { +variable "username" { type = string sensitive = true } -variable "postgres_password" { +variable "password" { type = string sensitive = true }