forked from sysdiglabs/terraform-aws-secure-for-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
122 lines (97 loc) · 3.7 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
#---------------------------------
# optionals - with defaults
#---------------------------------
#
# cloudtrail configuration
#
variable "cloudtrail_sns_arn" {
type = string
default = "create"
description = "ARN of a pre-existing cloudtrail_sns. If defaulted, a new cloudtrail will be created. If specified, sysdig deployment account and region must match with the specified SNS"
}
variable "cloudtrail_is_multi_region_trail" {
type = bool
default = true
description = "true/false whether cloudtrail will ingest multiregional events"
}
variable "cloudtrail_kms_enable" {
type = bool
default = true
description = "true/false whether cloudtrail delivered events to S3 should persist encrypted"
}
#
# ecs, security group, vpc
#
variable "ecs_cluster_name" {
type = string
default = "create"
description = "Name of a pre-existing ECS (elastic container service) cluster. If defaulted, a new ECS cluster/VPC/Security Group will be created. If specified all three parameters `ecs_cluster_name`, `ecs_vpc_id` and `ecs_vpc_subnets_private_ids` are required."
}
variable "ecs_vpc_id" {
type = string
default = "create"
description = "ID of the VPC where the workload is to be deployed. If defaulted a new VPC will be created. If specified all three parameters `ecs_cluster_name`, `ecs_vpc_id` and `ecs_vpc_subnets_private_ids` are required"
}
variable "ecs_vpc_subnets_private_ids" {
type = list(string)
default = []
description = "List of VPC subnets where workload is to be deployed. If defaulted new subnets will be created within the VPC. A minimum of two subnets is suggested. If specified all three parameters `ecs_cluster_name`, `ecs_vpc_id` and `ecs_vpc_subnets_private_ids` are required."
}
variable "ecs_vpc_region_azs" {
type = list(string)
description = "List of Availability Zones for ECS VPC creation. e.g.: [\"apne1-az1\", \"apne1-az2\"]. If defaulted, two of the default 'aws_availability_zones' datasource will be taken"
default = []
}
# Configure CPU and memory in pairs.
# See: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
variable "ecs_task_cpu" {
type = string
description = "Amount of CPU (in CPU units) to reserve for cloud-connector task"
default = "256"
}
variable "ecs_task_memory" {
type = string
description = "Amount of memory (in megabytes) to reserve for cloud-connector task"
default = "512"
}
#
# scanning configuration
#
variable "deploy_image_scanning_ecr" {
type = bool
description = "true/false whether to deploy the image scanning on ECR pushed images"
default = false
}
variable "deploy_image_scanning_ecs" {
type = bool
description = "true/false whether to deploy the image scanning on ECS running images"
default = false
}
#
# benchmark configuration
#
variable "deploy_benchmark" {
type = bool
description = "Whether to deploy or not the cloud benchmarking"
default = true
}
variable "benchmark_regions" {
type = list(string)
description = "List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default."
default = []
}
#
# general
#
variable "name" {
type = string
description = "Name to be assigned to all child resources. A suffix may be added internally when required. Use default value unless you need to install multiple instances"
default = "sfc"
}
variable "tags" {
type = map(string)
description = "sysdig secure-for-cloud tags. always include 'product' default tag for resource-group proper functioning"
default = {
"product" = "sysdig-secure-for-cloud"
}
}