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

Add more params: datapoints_to_alarm and actions_enabled #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

przemyslaw-elias
Copy link

@betabandido Can you please take a look?

We need to set some more params on aws_cloudwatch_metric_alarm.

Copy link
Member

@betabandido betabandido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR. And sorry for the late response. I have added a comment with a small change request.

@@ -8,6 +8,11 @@ variable "default_evaluation_periods" {
default = 2
}

variable "default_datapoints_to_alarm" {
description = "The default amount of datapoints to alarm."
default = 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While true is the default value for actions_enabled, it seems there is no default value for datapoints_to_alarm. The AWS UI seems to set this value to 1 by default.

I think we can set the default to null here, just in case users don't want to override this value. In that case AWS will set whatever value they have defined as default.

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

Successfully merging this pull request may close these issues.

2 participants