This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
107 lines (89 loc) · 2.76 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
variable "service_name" {
default = "batcave-status"
type = string
description = "Name of the serverless service"
}
variable "vpc_id" {
type = string
description = "VPC ID where the lambda will execute"
}
variable "private_subnets" {
type = list(any)
description = "List of subnet ids where the lambda will execute"
}
variable "frontend_subnets" {
type = list(any)
description = "List of subnet ids to house the front-end of this lambda (such as Shared subnet or Transport subnet)"
}
variable "base_domain" {
type = string
description = "The base domain of the services the lambda should be requesting to. eg: 'batcave.internal.cms.gov'"
}
variable "create_custom_domain" {
type = bool
default = false
description = "Optionally create a custom domain for this serverless service"
}
variable "iam_role_path" {
default = "/delegatedadmin/developer/"
type = string
}
variable "iam_role_permissions_boundary" {
default = ""
type = string
}
variable "route53_zone_type" {
default = "private"
type = string
description = "Optionally create DNS records, and lookup either 'private' or 'public' r53 zone"
}
variable "custom_subdomain" {
default = "status"
type = string
description = "Subdomain for the optionally created dns records"
}
variable "lambda_path" {
description = "Path to the lambda code"
default = "lambda"
type = string
}
variable "lambda_runtime" {
description = "The runtime environment to use for this lambda (e.g. 'python3.9' or 'nodejs16.x')"
default = "nodejs16.x"
type = string
}
variable "lambda_handler" {
description = "The entry point of the lambda (i.e. the fully qualified name of the function to be invoked: file-or-module-name.function-name)"
type = string
}
variable "lambda_environment" {
description = "Environment variables used by the lambda function."
type = map(string)
default = null
}
variable "lambda_timeout" {
description = "The number of seconds the lambda will be allowed to execute before timing out"
type = number
# AWS Default for newly created Lambdas
default = 3
}
variable "ingress_prefix_lists" {
description = "List of prefix lists to attach to ALB Security Group"
default = []
type = list(any)
}
variable "ingress_cidrs" {
description = "List of CIDR Blocks to attach to ALB Security Group"
default = ["10.0.0.0/8"]
type = list(any)
}
variable "alb_access_logs" {
description = "Map of aws_lb access_log config"
default = {}
type = map(any)
}
variable "ingress_sgs" {
description = "A list of security groups in which https ingress rules will be created"
type = list(string)
default = []
}