Skip to content

Commit 6fd8c3a

Browse files
authored
Merge pull request #10 from tomarv2/develop
Sync from management repo
2 parents 11acf7e + 68de4c9 commit 6fd8c3a

File tree

5 files changed

+25
-26
lines changed

5 files changed

+25
-26
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.76.0
3+
rev: v1.77.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_tflint
77
args:
8-
- '--args=--only=terraform_deprecated_interpolation'
9-
- '--args=--only=terraform_deprecated_index'
10-
- '--args=--only=terraform_unused_declarations'
11-
- '--args=--only=terraform_comment_syntax'
12-
- '--args=--only=terraform_documented_outputs'
13-
- '--args=--only=terraform_documented_variables'
14-
- '--args=--only=terraform_typed_variables'
15-
#- '--args=--only=terraform_module_pinned_source'
16-
- '--args=--only=terraform_naming_convention'
17-
- '--args=--only=terraform_required_providers'
18-
- '--args=--only=terraform_standard_module_structure'
19-
- '--args=--only=terraform_workspace_remote'
8+
- "--args=--only=terraform_deprecated_interpolation"
9+
- "--args=--only=terraform_deprecated_index"
10+
- "--args=--only=terraform_unused_declarations"
11+
- "--args=--only=terraform_comment_syntax"
12+
- "--args=--only=terraform_documented_outputs"
13+
- "--args=--only=terraform_documented_variables"
14+
- "--args=--only=terraform_typed_variables"
15+
- "--args=--only=terraform_naming_convention"
16+
- "--args=--only=terraform_required_providers"
17+
- "--args=--only=terraform_standard_module_structure"
18+
- "--args=--only=terraform_workspace_remote"
2019

2120
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.3.0
21+
rev: v4.4.0
2322
hooks:
2423
- id: trailing-whitespace
2524
- id: end-of-file-fixer
@@ -31,8 +30,8 @@ repos:
3130
- id: requirements-txt-fixer
3231

3332
- repo: https://github.com/bridgecrewio/checkov.git
34-
rev: '2.1.280'
33+
rev: "2.1.280"
3534
hooks:
36-
- id: checkov
37-
verbose: true
38-
args: [-d, '.', --framework, 'terraform']
35+
- id: checkov
36+
verbose: true
37+
args: [-d, ".", --framework, "terraform"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<img src="https://img.shields.io/github/commit-activity/m/tomarv2/terraform-aws-cloudwatch-events" /></a>
1010
<a href="https://stackoverflow.com/users/6679867/tomarv2" alt="Stack Exchange reputation">
1111
<img src="https://img.shields.io/stackexchange/stackoverflow/r/6679867"></a>
12-
<a href="https://twitter.com/intent/follow?screen_name=varuntomar2019" alt="follow on Twitter">
13-
<img src="https://img.shields.io/twitter/follow/varuntomar2019?style=social&logo=twitter"></a>
12+
<a href="https://twitter.com/intent/follow?screen_name=tomar_v2" alt="follow on Twitter">
13+
<img src="https://img.shields.io/twitter/follow/tomar_v2?style=social&logo=twitter"></a>
1414
</p>
1515

1616
## Terraform module for [AWS CloudWatch Events](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html)
@@ -92,13 +92,13 @@ tf -c=aws destroy -var='teamid=foo' -var='prjid=bar'
9292
| Name | Version |
9393
|------|---------|
9494
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.1 |
95-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.35 |
95+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.61 |
9696

9797
## Providers
9898

9999
| Name | Version |
100100
|------|---------|
101-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.35 |
101+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.61 |
102102

103103
## Modules
104104

examples/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 1.0.1"
33
required_providers {
44
aws = {
5-
version = "~> 4.35"
5+
version = "~> 4.61"
66
}
77
}
88
}

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_cloudwatch_event_rule" "event_rule" {
2-
for_each = var.config != null ? var.config : {}
2+
for_each = var.config
33

44
name = each.key
55
description = try(each.value.description, "Terraform managed")
@@ -10,7 +10,7 @@ resource "aws_cloudwatch_event_rule" "event_rule" {
1010
}
1111

1212
resource "aws_cloudwatch_event_target" "event_target_input_type" {
13-
for_each = var.config != null ? var.config : {}
13+
for_each = var.config
1414

1515
target_id = each.key
1616
rule = join("", [for rule in aws_cloudwatch_event_rule.event_rule : rule.id])

providers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 1.0.1"
33
required_providers {
44
aws = {
5-
version = "~> 4.35"
5+
version = "~> 4.61"
66
}
77
}
88
}

0 commit comments

Comments
 (0)