-
Notifications
You must be signed in to change notification settings - Fork 54
/
variables.tf
65 lines (54 loc) · 2.27 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
variable "schedule_expression" {
default = "cron(5 * * * ? *)"
description = "the aws cloudwatch event rule scheule expression that specifies when the scheduler runs. Default is 5 minuts past the hour. for debugging use 'rate(5 minutes)'. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html"
}
variable "tag" {
default = "schedule"
description = "the tag name used on the EC2 or RDS instance to contain the schedule json string for the instance."
}
variable "schedule_tag_force" {
type = string
default = "false"
description = "Whether to force the EC2 or RDS instance to have the default schedule tag is no schedule tag exists for the instance."
}
variable "permissions_boundary" {
type = string
default = ""
description = "AWS IAM Permissions Boundary ARN to be attached to the IAM Role"
}
variable "exclude" {
default = ""
description = "common separated list of EC2 and RDS instance ids to exclude from scheduling."
}
variable "default" {
default = "{\"mon\": {\"start\": 7, \"stop\": 20},\"tue\": {\"start\": 7, \"stop\": 20},\"wed\": {\"start\": 7, \"stop\": 20},\"thu\": {\"start\": 7, \"stop\": 20}, \"fri\": {\"start\": 7, \"stop\": 20}}"
description = "the default schedule tag containing json schedule information to add to instance when schedule_tag_force set to true."
}
variable "time" {
default = "gmt"
description = "timezone to use for scheduler. Can be 'local', 'gmt' or an Olson timezone from https://gist.github.com/ykessler/3349954. default is 'gmt'. local time is for the AWS region."
}
variable "ec2_schedule" {
type = string
default = "true"
description = "Whether to do scheduling for EC2 instances."
}
variable "rds_schedule" {
type = string
default = "true"
description = "Whether to do scheduling for RDS instances."
}
variable "security_group_ids" {
type = list(string)
default = []
description = "list of the vpc security groups to run lambda scheduler in."
}
variable "subnet_ids" {
type = list(string)
default = []
description = "list of subnet_ids that the scheduler runs in."
}
variable "resource_name_prefix" {
default = ""
description = "a prefix to apply to resource names created by this module."
}