@@ -17,13 +17,6 @@ variable "aws_license_plate" {
17
17
type = string
18
18
}
19
19
20
- # DynamoDB configuration (replacing PostgreSQL variables)
21
- variable "dynamodb_table_name" {
22
- description = " Name of the DynamoDB table"
23
- type = string
24
- default = " "
25
- }
26
-
27
20
variable "subnet_app_a" {
28
21
description = " Value of the name tag for a subnet in the APP security group"
29
22
type = string
@@ -110,45 +103,8 @@ variable "is_public_api" {
110
103
variable "dynamodb_table_name" {
111
104
description = " The name of the DynamoDB table"
112
105
type = string
106
+ validation {
107
+ condition = length (var. dynamodb_table_name ) > 0
108
+ error_message = " The DynamoDB table name must not be empty."
109
+ }
113
110
}
114
-
115
- variable "dynamodb_read_capacity" {
116
- description = " The read capacity units for the DynamoDB table"
117
- type = number
118
- default = 5
119
- }
120
-
121
- variable "dynamodb_write_capacity" {
122
- description = " The write capacity units for the DynamoDB table"
123
- type = number
124
- default = 5
125
- }
126
-
127
- variable "dynamodb_partition_key" {
128
- description = " The partition key for the DynamoDB table"
129
- type = string
130
- }
131
-
132
- variable "dynamodb_sort_key" {
133
- description = " The sort key for the DynamoDB table (optional)"
134
- type = string
135
- default = " "
136
- }
137
-
138
- variable "dynamodb_billing_mode" {
139
- description = " The billing mode for the DynamoDB table. Can be PROVISIONED or PAY_PER_REQUEST."
140
- type = string
141
- default = " PROVISIONED"
142
- }
143
-
144
- variable "dynamodb_stream_enabled" {
145
- description = " Flag to enable DynamoDB Streams"
146
- type = bool
147
- default = false
148
- }
149
-
150
- variable "dynamodb_stream_view_type" {
151
- description = " The view type for the DynamoDB stream. Can be NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES, or KEYS_ONLY."
152
- type = string
153
- default = " NEW_IMAGE"
154
- }
0 commit comments