@@ -15,7 +15,7 @@ variable "memory_optimization_container_memory" {
1515 description = " Memory allocation per ECS container in MB. Optimized based on monitoring data showing 800MB average usage with 950MB peaks."
1616 type = number
1717 default = 2048
18-
18+
1919 validation {
2020 condition = var. memory_optimization_container_memory >= 512 && var. memory_optimization_container_memory <= 4096
2121 error_message = " Container memory must be between 512MB and 4GB."
@@ -26,7 +26,7 @@ variable "memory_optimization_container_count" {
2626 description = " Number of ECS service instances for load distribution"
2727 type = number
2828 default = 3
29-
29+
3030 validation {
3131 condition = var. memory_optimization_container_count >= 1 && var. memory_optimization_container_count <= 50
3232 error_message = " Container count must be between 1 and 50."
@@ -49,8 +49,8 @@ variable "enable_message_size_breach_demo" {
4949variable "message_size_breach_max_size" {
5050 description = " Maximum message size for SQS queue in bytes. 25KB (25600) is safe, 100KB (102400) will break Lambda batch processing. Based on AWS Lambda async payload limit of 256KB."
5151 type = number
52- default = 25600 # 25KB - safe default
53-
52+ default = 25600 # 25KB - safe default
53+
5454 validation {
5555 condition = var. message_size_breach_max_size >= 1024 && var. message_size_breach_max_size <= 1048576
5656 error_message = " Message size must be between 1KB and 1MB for this demo. Reference: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html"
@@ -61,7 +61,7 @@ variable "message_size_breach_batch_size" {
6161 description = " Number of messages to process in each Lambda batch. Combined with max_message_size, this determines total payload size"
6262 type = number
6363 default = 10
64-
64+
6565 validation {
6666 condition = var. message_size_breach_batch_size >= 1 && var. message_size_breach_batch_size <= 10
6767 error_message = " Batch size must be between 1 and 10 messages."
@@ -72,7 +72,7 @@ variable "message_size_breach_lambda_timeout" {
7272 description = " Lambda function timeout in seconds"
7373 type = number
7474 default = 180
75-
75+
7676 validation {
7777 condition = var. message_size_breach_lambda_timeout >= 30 && var. message_size_breach_lambda_timeout <= 900
7878 error_message = " Lambda timeout must be between 30 and 900 seconds."
@@ -83,7 +83,7 @@ variable "message_size_breach_lambda_memory" {
8383 description = " Lambda function memory allocation in MB"
8484 type = number
8585 default = 1024
86-
86+
8787 validation {
8888 condition = var. message_size_breach_lambda_memory >= 128 && var. message_size_breach_lambda_memory <= 10240
8989 error_message = " Lambda memory must be between 128 and 10240 MB."
@@ -94,7 +94,7 @@ variable "message_size_breach_retention_days" {
9494 description = " CloudWatch log retention period in days"
9595 type = number
9696 default = 14
97-
97+
9898 validation {
9999 condition = var. message_size_breach_retention_days >= 1 && var. message_size_breach_retention_days <= 3653
100100 error_message = " Retention days must be between 1 and 3653 days."
0 commit comments