Skip to content

Commit

Permalink
Merge pull request #26 from babbel/unify-variables
Browse files Browse the repository at this point in the history
Unify structure of module variables
  • Loading branch information
jansiwy authored Sep 23, 2024
2 parents 08d2c99 + d39acff commit 2eb4a05
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
variable "database_name" {
type = string

description = "Name of the database on to be used in the `DATABASE_URL`."
description = <<EOS
Name of the database on to be used in the `DATABASE_URL`.
EOS
}

variable "db_instance" {
Expand All @@ -10,22 +12,27 @@ variable "db_instance" {
password = string
username = string
})

default = null

description = "Database instance to be used in the `DATABASE_URL`."
description = <<EOS
Database instance to be used in the `DATABASE_URL`.
EOS
}

variable "name_prefix" {
type = string

description = "Name prefix for the SecretsManager. The full name will be $${var.name_prefix}.database_url."
description = <<EOS
Name prefix for the SecretsManager. The full name will be $${var.name_prefix}.database_url.
EOS
}

variable "protocol" {
type = string

description = "Protocol to be used in the `DATABASE_URL`."
description = <<EOS
Protocol to be used in the `DATABASE_URL`.
EOS
}

variable "rds_cluster" {
Expand All @@ -34,15 +41,18 @@ variable "rds_cluster" {
master_password = string
endpoint = string
})

default = null

description = "Database cluster to be used in the `DATABASE_URL`."
description = <<EOS
Database cluster to be used in the `DATABASE_URL`.
EOS
}

variable "tags" {
type = map(string)
default = {}

description = "Tags which will be assigned to all resources."
description = <<EOS
Map of tags assigned to all AWS resources created by this module.
EOS
}

0 comments on commit 2eb4a05

Please sign in to comment.