forked from cloudposse/terraform-aws-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
58 lines (49 loc) · 1.88 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
variable "create_iam_role" {
description = "Flag to indicate whether an IAM Role should be created to grant the proper permissions for AWS Config"
type = bool
default = false
}
variable "iam_role_arn" {
description = <<-DOC
The ARN for an IAM Role AWS Config uses to make read or write requests to the delivery channel and to describe the
AWS resources associated with the account. This is only used if create_iam_role is false.
If you want to use an existing IAM Role, set the value of this to the ARN of the existing topic and set
create_iam_role to false.
DOC
default = null
type = string
}
variable "assessment_duration" {
type = string
description = "The max duration of the Inspector assessment run in seconds"
default = "3600" # 1 hour
}
variable "assessment_event_subscription" {
type = map(object({
event = string
topic_arn = string
}))
description = "Configures sending notifications about a specified assessment template event to a designated SNS topic"
default = {}
}
variable "schedule_expression" {
type = string
description = <<-DOC
An AWS Schedule Expression to indicate how often the scheduled event shoud run.
For more information see:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
DOC
default = "rate(7 days)"
}
variable "event_rule_description" {
type = string
description = "A description of the CloudWatch event rule"
default = "Trigger an AWS Inspector Assessment"
}
variable "enabled_rules" {
type = list(string)
description = <<-DOC
A list of AWS Inspector rules that should run on a periodic basis.
Valid values are `cve`, `cis`, `nr`, `sbp` which map to the appropriate [Inspector rule arns by region](https://docs.aws.amazon.com/inspector/latest/userguide/inspector_rules-arns.html).
DOC
}