-
Notifications
You must be signed in to change notification settings - Fork 8
/
vars.tf
128 lines (92 loc) · 2.58 KB
/
vars.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# variable "aws_account_id" {
# description = "AWS Account ID"
# type = string
# }
variable "aws_region" {
description = "AWS region for all resources"
type = string
default = "us-east-1"
}
variable "producer_ecr_repo" {
description = "ECR repository name for producer function"
type = string
}
variable "consumer_ecr_repo" {
description = "ECR repository name for consumer function"
type = string
}
variable "lambda_bucket" {
description = "Bucket for all lambda archives"
type = string
default = "temp-lambda-archive-bucket"
}
variable "default_tags" {
type = map
description = "Default tags to apply to all resources"
default = {}
}
variable "producer_lambda_function_name" {
description = "Name of the producer lambda function"
type = string
default = "producer-lambda-function"
}
variable "producer_api_gateway_name" {
description = "Name of the producer api gateway"
type = string
default = "producer-api-gateway"
}
variable "producer_lambda_source_path" {
description = "Path to the producer lambda source"
type = string
default = "./producer_function"
}
variable "producer_lambda_runtime" {
description = "Runtime for the producer lambda"
type = string
default = "python3.8"
}
variable "producer_lambda_handler" {
description = "Handler for the producer lambda"
type = string
default = "producer_function.lambda_handler"
}
variable "producer_apigateway_stage_name" {
description = "Name of the API gateway stage for the producer lambda"
type = string
default = "prod"
}
variable "producer_invocation_route_key" {
description = "Route key for the producer lambda"
type = string
default = "POST /queue"
}
variable "consumer_lambda_function_name" {
description = "Name of the consumer lambda"
type = string
default = "consumer-lambda-function"
}
variable "consumer_lambda_runtime" {
description = "Runtime for the consumer lambda"
type = string
default = "python3.8"
}
variable "consumer_lambda_handler" {
description = "Handler for the consumer lambda"
type = string
default = "consumer_function.lambda_handler"
}
variable "consumer_lambda_source_path" {
description = "Path to the consumer lambda source"
type = string
default = "./consumer_function"
}
variable "queue_name" {
description = "Name of the queue"
type = string
default = "producer-consumer-queue"
}
variable "consumer_timeout_seconds" {
description = "Timeout for the consumer lambda"
type = number
default = 900
}