-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
107 lines (88 loc) · 2.73 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
## GENERAL
###########
variable "namespace" {
type = string
description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
}
variable "stage" {
default = "nuke"
type = string
description = "The environment that this infrastrcuture is being deployed to e.g. dev, stage, or prod"
}
variable "name" {
default = "bomber"
type = string
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "environment" {
type = string
default = ""
description = "Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT'"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
}
variable "region" {
type = string
description = "The AWS Region to deploy these resources to."
}
variable "schedule_expression" {
default = "rate(24 hours)"
type = string
description = "The expression to determine the schedule on which to invoke the bomber. Useful information @ https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html."
}
variable "log_retention_in_days" {
default = 30
type = number
description = "The number of days to retain the bomber task logs."
}
## NETWORK
###########
variable "availability_zones" {
type = list(string)
description = "List of Availability Zones where subnets will be created."
}
variable "vpc_cidr_block" {
default = "10.0.0.0/16"
type = string
description = "The CIDR block used for the VPC network."
}
variable "nat_gateway_enabled" {
default = false
type = bool
description = "Whether to enable NAT Gateways. If false, then the application uses NAT Instances, which are much cheaper."
}
## ECS
#######
variable "command" {
default = ["-c", "/home/aws-nuke/nuke-config.yml", "--force", "--force-sleep", "3"]
type = list(string)
description = "The CMD to execute on the ECS container. Override this to actually execute the nuke."
}
variable "container_memory" {
default = 512
type = number
description = "The container's memory for the bomber task."
}
variable "container_memory_reservation" {
default = 512
type = number
description = "The container's memory reservation for the bomber task."
}
variable "container_cpu" {
default = 256
type = number
description = "The container's CPU for the bomber task."
}