-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
68 lines (55 loc) · 1.69 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
data "aws_caller_identity" "current" {}
locals {
account_id = data.aws_caller_identity.current.account_id
}
variable "create_bucket" {
default = true
description = "Create S3 bucket to receive VPC flow logs? `vpcflowlog_bucket` must be specified if this is false."
type = bool
}
variable "create_kms_key" {
default = true
description = "Create KMS key to encrypt flow logs? `vpcflowlog_kms_key` must be specified if this is false."
type = bool
}
variable "kms_alias" {
default = "vpcflowlog_key"
description = "KMS Key Alias for VPC flow log KMS key"
type = string
}
variable "log_to_cloudwatch" {
default = true
description = "Should VPC flow logs be written to CloudWatch Logs"
type = bool
}
variable "log_to_s3" {
default = true
description = "Should VPC flow logs be written to S3"
type = bool
}
variable "logging_bucket" {
default = ""
description = "S3 bucket to send request logs to the VPC flow log bucket to (required if `create_bucket` is true)"
type = string
}
variable "region" {
description = "Region VPC flow logs will be sent to"
type = string
}
variable "tags" {
default = {}
description = "Tags to include on resources that support it"
type = map(string)
}
variable "vpc_ids" {
description = "List of VPCs to enable flow logging for"
type = list(string)
}
variable "vpcflowlog_bucket" {
default = ""
description = "S3 bucket to receive VPC flow logs (required it `create_bucket` is false)"
}
variable "vpcflowlog_kms_key" {
default = ""
description = "KMS key to use for VPC flow log encryption (required it `create_kms_key` is false)"
}