-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
154 lines (132 loc) · 4.24 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
variable "app_name" {
type = string
description = "Application name to name your Fargate API and other resources. Must be <= 28 characters."
validation {
condition = length(var.app_name) <= 28
error_message = "Must be <= 28 characters."
}
}
variable "image_uri" {
type = string
description = "The ECR Image URI containing the function's deployment package (conflicts with 'zip_file')"
default = null
}
variable "zip_filename" {
type = string
description = "File that contains your compiled or zipped source code."
default = null
}
variable "zip_handler" {
type = string
description = "Lambda event handler"
default = null
}
variable "zip_runtime" {
type = string
description = "Lambda runtime"
default = null
}
variable "environment_variables" {
type = map(string)
description = "A map that defines environment variables for the Lambda function."
default = null
}
variable "lambda_vpc_config" {
default = null
description = "Provide this to allow your function to access your VPC."
type = object({
security_group_ids = list(string)
subnet_ids = list(string)
})
}
variable "domain_url" {
type = string
description = "Custom domain URL for the API"
default = null
}
variable "hosted_zone" {
type = object({
name = string,
id = string
})
description = "Hosted Zone object to redirect to ALB. (Can pass in the aws_hosted_zone object). A and AAAA records created in this hosted zone."
}
variable "https_certificate_arn" {
type = string
description = "ARN of the HTTPS certificate of the hosted zone/domain."
}
variable "codedeploy_service_role_arn" {
type = string
description = "ARN of the IAM Role for the CodeDeploy to use to initiate new deployments. (usually the PowerBuilder Role)"
default = null
}
variable "codedeploy_test_listener_port" {
type = number
description = "The port for a codedeploy test listener. If provided CodeDeploy will use this port for test traffic on the new replacement set during the blue-green deployment process before shifting production traffic to the replacement set. Defaults to null"
default = null
}
variable "codedeploy_lifecycle_hooks" {
type = object({
BeforeAllowTraffic = string
AfterAllowTraffic = string
})
description = "Define Lambda Functions for CodeDeploy lifecycle event hooks. Or set this variable to null to not have any lifecycle hooks invoked. Defaults to null"
default = null
}
variable "codedeploy_appspec_filename" {
type = string
description = "Filename (including path) to use when outputting appspec json."
default = null
}
variable "vpc_id" {
type = string
description = "VPC ID to deploy Lambda API service."
}
variable "public_subnet_ids" {
type = list(string)
description = "List of subnet IDs for the ALB."
}
variable "tags" {
type = map(string)
description = "A map of AWS Tags to attach to each resource created"
default = {}
}
variable "role_permissions_boundary_arn" {
type = string
description = "IAM Role Permissions Boundary ARN"
}
variable "log_retention_in_days" {
type = number
description = "CloudWatch log group retention in days. Defaults to 7."
default = 7
}
variable "lambda_policies" {
type = list(string)
description = "List of IAM Policy ARNs to attach to the lambda role."
default = []
}
variable "lambda_layers" {
type = list(string)
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your function."
default = []
}
variable "timeout" {
type = number
description = "Timeout (in seconds) for lambda. Defaults to 3 (terraform default"
default = 3
}
variable "memory_size" {
type = number
description = "Memory Size of the lambda"
default = 128
}
variable "xray_enabled" {
type = bool
description = "Whether or not the X-Ray daemon should be created with the Lambda API."
default = false
}
variable "architecture" {
type = string
description = "Instruction set architecture for your Lambda function. Valid values are \"x86_64\" and \"arm64\". Default is \"x86_64\"."
default = "x86_64"
}