-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
variables-deprecated.tf
52 lines (49 loc) · 1.87 KB
/
variables-deprecated.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
variable "cluster_autoscaler_enabled" {
type = bool
description = <<-EOT
OBSOLETE. Used to add support for the Kubernetes Cluster Autoscaler, but additional support is no longer needed.
EOT
default = null
}
output "WARNING_cluster_autoscaler_enabled" {
description = "WARNING"
value = var.cluster_autoscaler_enabled == null ? null : "WARNING: variable `cluster_autoscaler_enabled` is obsolete and has been ignored."
}
variable "block_device_mappings" {
type = list(any)
description = <<-EOT
DEPRECATED: Use `block_device_map` instead.
List of block device mappings for the launch template.
Each list element is an object with a `device_name` key and
any keys supported by the `ebs` block of `launch_template`.
EOT
# See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#ebs
default = null
/* default was:
[{
device_name = "/dev/xvda"
volume_size = 20
volume_type = "gp2"
encrypted = true
delete_on_termination = true
}]
*/
}
locals {
block_device_map = var.block_device_mappings == null ? var.block_device_map : {
for mapping in var.block_device_mappings : mapping.device_name => {
no_device = null
virtual_name = null
ebs = {
delete_on_termination = lookup(mapping, "delete_on_termination", null)
encrypted = lookup(mapping, "encrypted", null)
iops = lookup(mapping, "iops", null)
kms_key_id = lookup(mapping, "kms_key_id", null)
snapshot_id = lookup(mapping, "snapshot_id", null)
throughput = lookup(mapping, "throughput", null)
volume_size = lookup(mapping, "volume_size", null)
volume_type = lookup(mapping, "volume_type", null)
}
}
}
}