Skip to content

Commit 3483b9a

Browse files
authored
Merge pull request #2 from tomarv2/develop
Develop
2 parents 92877e5 + e28dddf commit 3483b9a

File tree

6 files changed

+23
-30
lines changed

6 files changed

+23
-30
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.48.0
3+
rev: v1.60.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_tflint
77
args:
88
- '--args=--only=terraform_deprecated_interpolation'
99
- '--args=--only=terraform_deprecated_index'
10+
- '--args=--only=terraform_unused_declarations'
1011
- '--args=--only=terraform_comment_syntax'
1112
- '--args=--only=terraform_documented_outputs'
1213
- '--args=--only=terraform_documented_variables'
1314
- '--args=--only=terraform_typed_variables'
1415
- '--args=--only=terraform_module_pinned_source'
1516
- '--args=--only=terraform_naming_convention'
1617
- '--args=--only=terraform_required_providers'
18+
- '--args=--only=terraform_standard_module_structure'
1719
- '--args=--only=terraform_workspace_remote'
1820

1921
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: v3.2.0
22+
rev: v4.1.0
2123
hooks:
2224
- id: trailing-whitespace
23-
- id: check-merge-conflict
2425
- id: end-of-file-fixer
26+
- id: check-docstring-first
2527
- id: check-yaml
28+
- id: debug-statements
29+
- id: double-quote-string-fixer
30+
- id: name-tests-test
31+
- id: requirements-txt-fixer
2632

2733
- repo: https://github.com/bridgecrewio/checkov.git
28-
rev: '2.0.531'
34+
rev: '2.0.914'
2935
hooks:
3036
- id: checkov
3137
verbose: true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,18 @@ No modules.
122122
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | aws region to deploy resources | `string` | `"us-west-2"` | no |
123123
| <a name="input_branch"></a> [branch](#input\_branch) | branch to use for cicd | `string` | `"main"` | no |
124124
| <a name="input_custom_input"></a> [custom\_input](#input\_custom\_input) | custom input to be included in generated events | `map(any)` | `null` | no |
125-
| <a name="input_deploy_event_rule"></a> [deploy\_event\_rule](#input\_deploy\_event\_rule) | feature flag, true or false | `bool` | `true` | no |
126-
| <a name="input_deploy_event_target"></a> [deploy\_event\_target](#input\_deploy\_event\_target) | feature flag, true or false | `bool` | `true` | no |
125+
| <a name="input_deploy_event_rule"></a> [deploy\_event\_rule](#input\_deploy\_event\_rule) | Feature flag, true or false | `bool` | `true` | no |
126+
| <a name="input_deploy_event_target"></a> [deploy\_event\_target](#input\_deploy\_event\_target) | Feature flag, true or false | `bool` | `true` | no |
127127
| <a name="input_description"></a> [description](#input\_description) | description for the cloudwatch event | `string` | `null` | no |
128128
| <a name="input_name"></a> [name](#input\_name) | Cloudwatch event rule name | `string` | `null` | no |
129-
| <a name="input_prjid"></a> [prjid](#input\_prjid) | (Required) Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply' | `string` | n/a | yes |
130-
| <a name="input_profile_to_use"></a> [profile\_to\_use](#input\_profile\_to\_use) | Getting values from ~/.aws/credentials | `string` | `"default"` | no |
129+
| <a name="input_prjid"></a> [prjid](#input\_prjid) | Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply' | `string` | n/a | yes |
130+
| <a name="input_profile"></a> [profile\_to\_use](#input\_profile\_to\_use) | Getting values from ~/.aws/credentials | `string` | `"default"` | no |
131131
| <a name="input_schedule"></a> [schedule](#input\_schedule) | schedule for the cloudwatch event | `string` | `"rate(1 day)"` | no |
132132
| <a name="input_service_role"></a> [service\_role](#input\_service\_role) | service role to be used by cicd | `string` | `null` | no |
133133
| <a name="input_suffix"></a> [suffix](#input\_suffix) | suffix to be added to cloudwatch rule name | `string` | `"rule"` | no |
134134
| <a name="input_target_arn"></a> [target\_arn](#input\_target\_arn) | target arn | `string` | n/a | yes |
135135
| <a name="input_target_name"></a> [target\_name](#input\_target\_name) | Cloudwatch target name | `string` | `null` | no |
136-
| <a name="input_teamid"></a> [teamid](#input\_teamid) | (Required) Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply' | `string` | n/a | yes |
136+
| <a name="input_teamid"></a> [teamid](#input\_teamid) | Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply' | `string` | n/a | yes |
137137
| <a name="input_timeout"></a> [timeout](#input\_timeout) | timeout for cloudwatch event | `number` | `60` | no |
138138

139139
## Outputs

examples/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ terraform {
22
required_version = ">= 1.0.1"
33
required_providers {
44
aws = {
5-
version = ">= 3.63"
5+
version = "~> 3.63"
66
}
77
}
88
}
99

1010
provider "aws" {
1111
region = "us-west-2"
12-
profile = "<aws profile to use>"
1312
}
1413

1514
module "cloudwatch_event" {

examples/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
variable "teamid" {
2-
description = "(Required) Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply'"
2+
description = "Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply'"
33
type = string
44
}
55

66
variable "prjid" {
7-
description = "(Required) Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply'"
7+
description = "Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply'"
88
type = string
99
}

variables.tf

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
variable "teamid" {
2-
description = "(Required) Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply'"
2+
description = "Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply'"
33
type = string
44
}
55

66
variable "prjid" {
7-
description = "(Required) Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply'"
7+
description = "Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply'"
88
type = string
99
}
1010

@@ -38,31 +38,19 @@ variable "timeout" {
3838
type = number
3939
}
4040

41-
variable "profile_to_use" {
42-
description = "Getting values from ~/.aws/credentials"
43-
default = "default"
44-
type = string
45-
}
46-
47-
variable "aws_region" {
48-
description = "aws region to deploy resources"
49-
default = "us-west-2"
50-
type = string
51-
}
52-
5341
variable "target_arn" {
5442
description = "target arn"
5543
type = string
5644
}
5745

5846
variable "deploy_event_target" {
59-
description = "feature flag, true or false"
47+
description = "Feature flag, true or false"
6048
default = true
6149
type = bool
6250
}
6351

6452
variable "deploy_event_rule" {
65-
description = "feature flag, true or false"
53+
description = "Feature flag, true or false"
6654
default = true
6755
type = bool
6856
}

versions.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 = ">= 3.63"
5+
version = "~> 3.63"
66
}
77
}
88
}

0 commit comments

Comments
 (0)