Skip to content

Commit d4fac7f

Browse files
committed
Sync from management repo
1 parent 3bcdcdf commit d4fac7f

File tree

5 files changed

+28
-43
lines changed

5 files changed

+28
-43
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: 7 additions & 21 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)
@@ -89,39 +89,25 @@ tf -c=aws destroy -var='teamid=foo' -var='prjid=bar'
8989
<!-- BEGIN_TF_DOCS -->
9090
## Requirements
9191

92-
| Name | Version |
93-
|------|---------|
94-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.1 |
95-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.35 |
92+
No requirements.
9693

9794
## Providers
9895

99-
| Name | Version |
100-
|------|---------|
101-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.35 |
96+
No providers.
10297

10398
## Modules
10499

105100
No modules.
106101

107102
## Resources
108103

109-
| Name | Type |
110-
|------|------|
111-
| [aws_cloudwatch_event_rule.event_rule](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule) | resource |
112-
| [aws_cloudwatch_event_target.event_target_input_type](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) | resource |
104+
No resources.
113105

114106
## Inputs
115107

116-
| Name | Description | Type | Default | Required |
117-
|------|-------------|------|---------|:--------:|
118-
| <a name="input_config"></a> [config](#input\_config) | Cloudwatch event configuration | `map(any)` | `{}` | no |
119-
| <a name="input_extra_tags"></a> [extra\_tags](#input\_extra\_tags) | Additional tags to associate | `map(string)` | `{}` | no |
108+
No inputs.
120109

121110
## Outputs
122111

123-
| Name | Description |
124-
|------|-------------|
125-
| <a name="output_event_rule_arn"></a> [event\_rule\_arn](#output\_event\_rule\_arn) | The cloudwatch event rule ARN |
126-
| <a name="output_event_target_arn"></a> [event\_target\_arn](#output\_event\_target\_arn) | The cloudwatch event target ARN |
112+
No outputs.
127113
<!-- END_TF_DOCS -->

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)