From bef5f848963e894b13e2b90bfd17611ebcae404a Mon Sep 17 00:00:00 2001 From: medasravanthi <150466318+medasravanthi@users.noreply.github.com> Date: Mon, 15 Jan 2024 07:53:25 +0530 Subject: [PATCH] Update variables.tf --- project-rds/variables.tf | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/project-rds/variables.tf b/project-rds/variables.tf index 2aaf09c..2776102 100644 --- a/project-rds/variables.tf +++ b/project-rds/variables.tf @@ -2,29 +2,37 @@ variable "main_allocated_storage"{ type = number +default = "20" } variable "main_db_engine"{ -type = number +type = string +default = "MYSQL" } variable "main_db_instance_class"{ -type = number +type = srting +default = "db.t2.micro" } variable "main_db_username" { type = string +default = "admin" } variable "parameter_group_name" { - type = string + type = string +default = "default.mysql8.0" } variable "password " { type = string +default = "baby.sravs" } variable "main_db_version" { type = string +default = "8.0.35" } #################replica############## variable "replica_instance_class" { type = string +default = "db.t2.micro" } @@ -35,26 +43,32 @@ variable "replica_count" { variable "rds_replica_azs" { type = list(string) - default = [] + default = ["eu-west-2c"] } variable "sg_vpc_id" { type = string +default = "" } variable "sg_ingress_from_port" { type = number +default = "80" } variable "sg_ingress_to_port" { type = number +default = "3306" } variable "cidr"{ type = list(string) +default = ["0.0.0.0/0"] } variable "sg_protocol" { type = string +default = "tcp" } variable "sg_name" { type = string -} \ No newline at end of file +default = "name" +}