I've got a Terraform module like this:
module "helloworld" {
source = "../service"
}
and ../service contains:
resource "aws_cloudwatch_metric_alarm" "cpu_max" {
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "2"
... etc
}
How do you override the service variables comparison_operator and evaluation_periods in your module?
E.g. to set cpu_max to 4 is it as simple as aws_cloudwatch_metric_alarm .cpu_max.evaluation_periods = 4 in your module?