forked from druids/terraform-aws-asg-instance-refresh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
144 lines (121 loc) · 3.86 KB
/
variables.tf
File metadata and controls
144 lines (121 loc) · 3.86 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
variable "ami_ssm_parameter" {
default = "/aws/service/ecs/optimized-ami/amazon-linux-2/recommended"
description = "Name of SSM parameter containing the current AMI"
type = string
}
variable "ami_ssm_parameter_arm" {
default = "/aws/service/ecs/optimized-ami/amazon-linux-2/arm64/recommended"
description = "Name of SSM parameter containing the current AMI (ARM)"
type = string
}
variable "auto_scaling_group_is_arm_default" {
default = false
description = "Set to true if your ASG uses ARM instances in the default launch template"
type = string
}
variable "autoscaling_group_name" {
description = "Name of the auto scaling group to refresh"
type = string
}
variable "cloudwatch_event_rule_name" {
description = "Name of the CloudWatch Event Rule"
default = "ASGRefreshInstancesEventRule"
type = string
}
variable "cloudwatch_event_rule_schedule_expression" {
description = "Schedule expression for CloudWatch Event Rule"
default = "cron(0 0 * * ? *)"
type = string
}
variable "datadog_trace_enabled" {
description = "Sets DD_TRACE_ENABLED variable"
default = false
type = bool
}
variable "describe_instance_refreshes_max_records" {
description = "Page size for boto3 when calling autoscaling:DescribeInstanceRefreshes (max is 100)"
default = 100
type = number
}
variable "instance_refresh_instance_warmup" {
description = "Instance warmup time for instance refresh"
default = 300
type = number
}
variable "instance_refresh_min_healthy_percentage" {
description = "Minimum healthy percentage for instance refresh"
default = 90
type = number
}
variable "instance_refresh_skip_matching" {
description = "Skip matching instances for instance refresh"
default = false
type = bool
}
variable "launch_template_version_description" {
description = "Description of the new launch template version in Python's f-string format"
default = "Automated AMI refresh to \"{image_id}\""
type = string
}
variable "lambda_architecture" {
description = "Set CPU architecture for the Lambda function. Valid values are \"x86_64\" and \"arm64\"."
default = "x86_64"
type = string
}
variable "lambda_description" {
description = "Description of the Lambda function"
default = "Keeps ASG Launch Template updated with most recent AMI read from SSM Parameter"
type = string
}
variable "lambda_name" {
description = "Name of the Lambda function"
default = "ASGRefreshInstances"
type = string
}
variable "lambda_role_description" {
description = "Role description for the Lambda function"
default = ""
type = string
}
variable "lambda_role_name" {
description = "Role name for the Lambda function"
default = "ASGRefreshInstancesLambdaRole"
type = string
}
variable "lambda_timeout" {
description = "Timeout for Lambda function in seconds"
default = 60
type = number
}
variable "launch_templates_arns" {
description = "List of Launch Template ARNs to allow access to"
default = ["*"]
type = list(string)
}
variable "launch_template_source_version" {
description = "Source version for the new launch template"
default = "$Default"
type = string
}
variable "sentry_dsn" {
default = null
type = string
}
variable "sentry_environment" {
default = null
type = string
}
variable "sentry_lambda_layer_version" {
default = 11
type = number
}
variable "update_mixed_instances_policy_overriden_launch_templates" {
description = "If you do not want to also update launch templates that override the default launch template, set this to false"
default = true
type = bool
}
variable "lambda_runtime" {
description = "Lambda Function runtime"
type = string
default = "python3.11"
}