Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify structure of module variables #26

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}