forked from lfalorni/terraform-aws-lambda-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
130 lines (107 loc) · 2.9 KB
/
variables.tf
File metadata and controls
130 lines (107 loc) · 2.9 KB
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
129
130
# GLOBAL VARIABLES
variable "common_tags" {
type = "map"
description = "a list of tags set on the different resources"
default = {}
}
variable "stage" {
type = "string"
description = "The deploy environment in [prod, dev, preprod]"
}
variable "app_id" {
type = "string"
description = "The id of the application"
}
variable "app_name" {
type = "string"
description = "The name of the application"
}
# PROVIDER VARIABLES
variable "aws_region" {
type = "string"
description = "The aws region where the infrastructure is hosted"
default = "eu-central-1"
}
variable "backend_s3_bucket" {
type = "string"
description = "The bucket where the lambda is deployed on."
}
variable "backend_s3_key" {
type = "string"
description = "The key pointing to the lambda on the backend_s3_bucket"
}
variable "security_account_arn" {
type = "string"
description = "The security account arn"
}
variable "default_account_arn" {
type = "string"
description = "The security account arn"
}
variable "certificate_domain" {
type = "string"
description = "the domain certificate for cloudfront"
}
variable "graphql_domain" {
type = "string"
description = "the graphql api gateway"
}
variable "graphql_binary_media_types" {
type = list(string)
description = "binary media types given to graphql api gateway"
default = null
}
variable "alternate_graphql_domain" {
type = "string"
description = "the graphql api gateway domain not managed by terraform"
}
variable "backend_lambda_filename" {
type = "string"
description = "the path to the lambda.zip file"
}
variable "lambda_logs_to_kibana_name" {
type = "string"
description = "name of the lambda to log in kibana"
}
variable "logs_to_kibana_subscription_filter_name" {
type = "string"
description = "the kibana subscription filter name"
}
variable "vpc" {
type = "map"
description = "expected subnet_ids => [] and security_group_ids => []"
}
variable "secret_managers" {
type = "list"
description = "list of the secret manager the lambda can read"
default = []
}
variable "environment" {
type = "map"
description = "key value map of environment variables to give to the lambda"
}
variable "lambda_handler" {
type = string
description = "the lambda handler"
default = "index.handler"
}
variable "lambda_runtime" {
type = string
description = "the lambda runtime"
default = "nodejs10.x"
}
variable "lambda_timeout" {
type = number
description = "the lambda timeout"
default = 6
}
variable "lambda_memory_size" {
type = number
description = "the lambda memory_size"
default = 1024
}
variable "lambda_publish" {
type = bool
description = "whether or not a new version of the lambda is published"
default = false
}