Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect defaults for ecs_alarms_cpu_utilization_high #40

Open
stormmore opened this issue Jan 6, 2020 · 1 comment
Open

Incorrect defaults for ecs_alarms_cpu_utilization_high #40

stormmore opened this issue Jan 6, 2020 · 1 comment

Comments

@stormmore
Copy link

Any of the action variables should default to [""] otherwise even if you set alb_groupd_alarms_enabled = false you will get errors about empty list of strings:

variable "ecs_alarms_cpu_utilization_high_alarm_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on CPU Utilization High Alarm action"
default = []
}
variable "ecs_alarms_cpu_utilization_high_ok_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on CPU Utilization High OK action"
default = []
}
variable "ecs_alarms_cpu_utilization_low_threshold" {
type = number
description = "The minimum percentage of CPU utilization average"
default = 20
}
variable "ecs_alarms_cpu_utilization_low_evaluation_periods" {
type = number
description = "Number of periods to evaluate for the alarm"
default = 1
}
variable "ecs_alarms_cpu_utilization_low_period" {
type = number
description = "Duration in seconds to evaluate for the alarm"
default = 300
}
variable "ecs_alarms_cpu_utilization_low_alarm_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on CPU Utilization Low Alarm action"
default = []
}
variable "ecs_alarms_cpu_utilization_low_ok_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on CPU Utilization Low OK action"
default = []
}
variable "ecs_alarms_memory_utilization_high_threshold" {
type = number
description = "The maximum percentage of Memory utilization average"
default = 80
}
variable "ecs_alarms_memory_utilization_high_evaluation_periods" {
type = number
description = "Number of periods to evaluate for the alarm"
default = 1
}
variable "ecs_alarms_memory_utilization_high_period" {
type = number
description = "Duration in seconds to evaluate for the alarm"
default = 300
}
variable "ecs_alarms_memory_utilization_high_alarm_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization High Alarm action"
default = []
}
variable "ecs_alarms_memory_utilization_high_ok_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization High OK action"
default = []
}
variable "ecs_alarms_memory_utilization_low_threshold" {
type = number
description = "The minimum percentage of Memory utilization average"
default = 20
}
variable "ecs_alarms_memory_utilization_low_evaluation_periods" {
type = number
description = "Number of periods to evaluate for the alarm"
default = 1
}
variable "ecs_alarms_memory_utilization_low_period" {
type = number
description = "Duration in seconds to evaluate for the alarm"
default = 300
}
variable "ecs_alarms_memory_utilization_low_alarm_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low Alarm action"
default = []
}
variable "ecs_alarms_memory_utilization_low_ok_actions" {
type = list(string)
description = "A list of ARNs (i.e. SNS Topic ARN) to notify on Memory Utilization Low OK action"
default = []
}

Sorry don't have time right now to fix, test and pr.

@jamengual
Copy link
Contributor

Out tests are passing so I do not think we are experiencing the same issue, have you looked at the new updates? @stormmore

@nitrocode nitrocode changed the title Incorrect Default Values Incorrect defaults for ecs_alarms_cpu_utilization_high Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants