fix: Correct variable types to improve dynamic check correctness (#2133)

This commit is contained in:
Bryant Biggs
2022-07-01 07:53:43 -04:00
committed by GitHub
parent f34670cf0b
commit 2d7701c3b0
7 changed files with 103 additions and 103 deletions

View File

@@ -135,55 +135,55 @@ variable "block_device_mappings" {
variable "capacity_reservation_specification" {
description = "Targeting for EC2 capacity reservations"
type = any
default = null
default = {}
}
variable "cpu_options" {
description = "The CPU options for the instance"
type = map(string)
default = null
default = {}
}
variable "credit_specification" {
description = "Customize the credit specification of the instance"
type = map(string)
default = null
default = {}
}
variable "elastic_gpu_specifications" {
description = "The elastic GPU to attach to the instance"
type = map(string)
default = null
default = {}
}
variable "elastic_inference_accelerator" {
description = "Configuration block containing an Elastic Inference Accelerator to attach to the instance"
type = map(string)
default = null
default = {}
}
variable "enclave_options" {
description = "Enable Nitro Enclaves on launched instances"
type = map(string)
default = null
default = {}
}
variable "hibernation_options" {
description = "The hibernation options for the instance"
type = map(string)
default = null
default = {}
}
variable "instance_market_options" {
description = "The market (purchasing) option for the instance"
type = any
default = null
default = {}
}
variable "license_specifications" {
description = "A list of license specifications to associate with"
type = map(string)
default = null
default = {}
}
variable "network_interfaces" {
@@ -195,7 +195,7 @@ variable "network_interfaces" {
variable "placement" {
description = "The placement of the instance"
type = map(string)
default = null
default = {}
}
variable "ebs_optimized" {
@@ -389,13 +389,13 @@ variable "force_delete" {
variable "termination_policies" {
description = "A list of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are `OldestInstance`, `NewestInstance`, `OldestLaunchConfiguration`, `ClosestToNextInstanceHour`, `OldestLaunchTemplate`, `AllocationStrategy`, `Default`"
type = list(string)
default = null
default = []
}
variable "suspended_processes" {
description = "A list of processes to suspend for the Auto Scaling Group. The allowed values are `Launch`, `Terminate`, `HealthCheck`, `ReplaceUnhealthy`, `AZRebalance`, `AlarmNotification`, `ScheduledActions`, `AddToLoadBalancer`. Note that if you suspend either the `Launch` or `Terminate` process types, it can prevent your Auto Scaling Group from functioning properly"
type = list(string)
default = null
default = []
}
variable "max_instance_lifetime" {
@@ -407,7 +407,7 @@ variable "max_instance_lifetime" {
variable "enabled_metrics" {
description = "A list of metrics to collect. The allowed values are `GroupDesiredCapacity`, `GroupInServiceCapacity`, `GroupPendingCapacity`, `GroupMinSize`, `GroupMaxSize`, `GroupInServiceInstances`, `GroupPendingInstances`, `GroupStandbyInstances`, `GroupStandbyCapacity`, `GroupTerminatingCapacity`, `GroupTerminatingInstances`, `GroupTotalCapacity`, `GroupTotalInstances`"
type = list(string)
default = null
default = []
}
variable "metrics_granularity" {
@@ -431,7 +431,7 @@ variable "initial_lifecycle_hooks" {
variable "instance_refresh" {
description = "If this block is configured, start an Instance Refresh when this Auto Scaling Group is updated"
type = any
default = null
default = {}
}
variable "use_mixed_instances_policy" {
@@ -449,7 +449,7 @@ variable "mixed_instances_policy" {
variable "warm_pool" {
description = "If this block is configured, add a Warm Pool to the specified Auto Scaling group"
type = any
default = null
default = {}
}
variable "delete_timeout" {