Skip to content

Commit 8dd8161

Browse files
feat: Add support for period in metric_query_block (#53)
Co-authored-by: magreenbaum <magreenbaum> Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent ba797d0 commit 8dd8161

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

examples/fixtures/aws_lambda_function/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ resource "aws_lambda_function" "this" {
6060
role = aws_iam_role.lambda.arn
6161
handler = "index.lambda_handler"
6262
source_code_hash = data.archive_file.lambda.output_base64sha256
63-
runtime = "python3.6"
63+
runtime = "python3.9"
6464
}

modules/metric-alarm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
| Name | Version |
77
|------|---------|
88
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
9-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
9+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
15+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.59 |
1616

1717
## Modules
1818

modules/metric-alarm/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ resource "aws_cloudwatch_metric_alarm" "this" {
3636
label = lookup(metric_query.value, "label", null)
3737
return_data = lookup(metric_query.value, "return_data", null)
3838
expression = lookup(metric_query.value, "expression", null)
39+
period = lookup(metric_query.value, "period", null)
3940

4041
dynamic "metric" {
4142
for_each = lookup(metric_query.value, "metric", [])

modules/metric-alarm/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.0"
7+
version = ">= 4.59"
88
}
99
}
1010
}

modules/metric-alarms-by-multiple-dimensions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
| Name | Version |
77
|------|---------|
88
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
9-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
9+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
15+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.59 |
1616

1717
## Modules
1818

modules/metric-alarms-by-multiple-dimensions/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ resource "aws_cloudwatch_metric_alarm" "this" {
3535
label = lookup(metric_query.value, "label", null)
3636
return_data = lookup(metric_query.value, "return_data", null)
3737
expression = lookup(metric_query.value, "expression", null)
38+
period = lookup(metric_query.value, "period", null)
3839

3940
dynamic "metric" {
4041
for_each = lookup(metric_query.value, "metric", [])

modules/metric-alarms-by-multiple-dimensions/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.0"
7+
version = ">= 4.59"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)