-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.tf
More file actions
52 lines (44 loc) · 1.13 KB
/
Copy pathvariable.tf
File metadata and controls
52 lines (44 loc) · 1.13 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
# Locals Files
locals {
project_name = "homework-rest-api"
stage_name = "prod"
py_function_name = "${local.project_name}-py"
js_function_name = "${local.project_name}-js"
# The manged rule set for my waf fules
waf_managed_rules = [
{
name = "AWSManagedRulesKnownBadInputsRuleSet"
metric_name = "bad_inputs"
priority = 1
},
{
name = "AWSManagedRulesCommonRuleSet"
metric_name = "common_rule_set"
priority = 2
},
{
name = "AWSManagedRulesSQLiRuleSet"
metric_name = "sql_injection_rule_set"
priority = 3
}
]
}
variable "aws_region" {
description = "AWS region to deploy into"
type = string
default = "us-east-1"
}
variable "function_name" {
description = "Name of the Lambda function"
type = string
default = "my-basic-lambda-java"
}
variable "function_name1" {
description = "Name of the Lambda function"
type = string
default = "my-basic-lambda-python"
}
variable "alert_email" {
description = "Email address that receives CloudWatch alarm notifications"
type = string
}