-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
62 lines (60 loc) · 1.43 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
/* required */
variable "apigw_name" {
description = "Apigateway's name"
}
variable "s3_bucket" {
description = "S3 bucket's name where lambda app artifact exists"
}
variable "s3_key" {
description = "S3 object key's name where lambda app artifact exists"
}
variable "function_name" {
description = "Lambda function's name"
}
variable "lambda_role" {
description = "Lambda function's execution role"
}
/* optional */
variable "http_method" {
description = "API Gateway's http method"
default = "ANY"
}
variable "integration_http_method" {
description = "Integration http method"
default = "POST"
}
variable "stage_name" {
description = "Stage name"
default = "test"
}
variable "handler" {
description = "Lambda function's handler name"
default = "main"
}
variable "timeout" {
description = "The timeout of the lambda function"
default = 200
}
variable "memory_size" {
description = "The memory size of the lambda function"
default = 512
}
variable "runtime" {
description = "The runtime of the lambda function"
default = "go1.x"
}
variable "env_vars" {
description = "The environment variables of the lambda function"
type = map(string)
default = {
ENV = "test"
}
}
variable "subnet_ids" {
description = "If you want to use vpc lambda,required"
default = null
}
variable "security_group_ids" {
description = "If you want to use vpc lambda,required"
default = null
}