-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
90 lines (77 loc) · 2.33 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# AWS region where resources will be created
variable "region" {
description = "The AWS region where resources will be created"
type = string
}
# List of subnet IDs for the RDS DB subnet group
variable "subnet_ids" {
description = "List of subnet IDs for the RDS DB subnet group"
type = list(string)
}
# Family of the DB parameter group
variable "db_parameter_family" {
description = "The family of the DB parameter group"
type = string
default = "postgres16" # Specify a default value if needed
}
# Name of the DB subnet group
variable "db_subnet_group_name" {
description = "Name of the DB subnet group"
type = string
default = "rds-db-subnet-group"
}
# Identifier for the RDS instance
variable "db_instance_identifier" {
description = "The identifier for the RDS instance"
type = string
}
# Instance class for the RDS instance
variable "db_instance_class" {
description = "The class of the RDS instance"
type = string
default = "db.t3.micro"
}
# Database engine to be used for the RDS instance
variable "db_engine" {
description = "The database engine for the RDS instance"
type = string
default = "postgres"
}
# Database engine version for the RDS instance
variable "db_engine_version" {
description = "The version of the database engine"
type = string
default = "16.3"
}
# Allocated storage (in GB) for the RDS instance
variable "db_allocated_storage" {
description = "The allocated storage for the RDS instance (in GB)"
type = number
}
# Database name
variable "db_name" {
description = "The name of the database"
type = string
}
# Username for the database
variable "db_username" {
description = "The username for the database"
type = string
}
# Whether the database should be publicly accessible
variable "db_publicly_accessible" {
description = "Indicates if the database should be publicly accessible"
type = bool
default = false
}
# Whether to skip the final snapshot when deleting the database
variable "db_skip_final_snapshot" {
description = "Whether to skip the final snapshot when deleting the database"
type = bool
default = true
}
# Tag name for the RDS instance
variable "tags" {
description = "A map of tags to apply to all resources"
type = map(any)
}