Skip to content

Commit 43ce1e0

Browse files
niroz89wayne-root
andauthored
Bump versions and update outdated files (#4)
* Bump versions and update outdated files * Update values.yaml * Fix format --------- Co-authored-by: wayne-root <[email protected]>
1 parent 148a434 commit 43ce1e0

File tree

8 files changed

+277
-24
lines changed

8 files changed

+277
-24
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: terraform-ci
22
on:
33
pull_request:
4-
push:
5-
branches:
6-
- main
4+
permissions:
5+
actions: read
6+
checks: read
7+
contents: read
8+
pull-requests: write
9+
security-events: write
710
jobs:
811
ci:
9-
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@main
12+
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
1013
with:
1114
upload_sarif: true

.pre-commit-config.yaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,37 @@ repos:
22
- repo: https://github.com/gruntwork-io/pre-commit
33
rev: v0.1.17
44
hooks:
5-
- id: terraform-fmt
6-
- id: terraform-validate
7-
- id: tflint
8-
args:
9-
- "--module"
10-
- "--config=.tflint.hcl"
11-
- id: markdown-link-check
125
- id: shellcheck
136

7+
- repo: https://github.com/tcort/markdown-link-check
8+
rev: v3.9.3
9+
hooks:
10+
- id: markdown-link-check
11+
args:
12+
- "--config=mlc_config.json"
13+
1414
- repo: https://github.com/antonbabenko/pre-commit-terraform
15-
rev: v1.64.0
15+
rev: v1.72.2
1616
hooks:
17+
- id: terraform_fmt
18+
- id: terraform_providers_lock
19+
args:
20+
- --args=-platform=linux_amd64
21+
- id: terraform_validate
22+
- id: terraform_tflint
23+
args:
24+
- --args=--module
25+
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
1726
- id: terraform_docs
1827
args:
19-
- "--args=--lockfile=false"
28+
- --args=--config=.terraform-docs.yaml
2029
- id: terraform_tfsec
2130
args:
2231
- --args=--exclude-downloaded-modules
23-
- id: checkov
32+
- id: terraform_checkov
33+
2434
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.1.0
35+
rev: v4.2.0
2636
hooks:
2737
# Git style
2838
- id: check-added-large-files

.terraform-docs.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
formatter: "markdown table"
2+
3+
output:
4+
file: "README.md"
5+
mode: inject
6+
template: |-
7+
<!-- BEGIN_TF_DOCS -->
8+
{{ .Content }}
9+
<!-- END_TF_DOCS -->
10+
settings:
11+
lockfile: false

.tflint.hcl

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
plugin "aws" {
2+
enabled = true
3+
version = "0.24.1"
4+
source = "github.com/terraform-linters/tflint-ruleset-aws"
5+
}
6+
7+
rule "terraform_deprecated_interpolation" {
8+
enabled = true
9+
}
10+
11+
rule "terraform_documented_outputs" {
12+
enabled = true
13+
}
14+
15+
rule "terraform_documented_variables" {
16+
enabled = true
17+
}
18+
19+
rule "terraform_module_pinned_source" {
20+
enabled = true
21+
}
22+
23+
rule "terraform_typed_variables" {
24+
enabled = true
25+
}
26+
27+
rule "terraform_required_version" {
28+
enabled = false
29+
}
30+
31+
rule "terraform_required_providers" {
32+
enabled = true
33+
}
34+
35+
rule "terraform_standard_module_structure" {
36+
enabled = false
37+
}
38+
39+
rule "terraform_unused_declarations" {
40+
enabled = true
41+
}
42+
43+
rule "terraform_unused_required_providers" {
44+
enabled = true
45+
}
46+
47+
rule "terraform_naming_convention" {
48+
enabled = true
49+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ to a Kubernetes Cluster.
2424

2525
| Name | Source | Version |
2626
|------|--------|---------|
27-
| <a name="module_lb_controller_role"></a> [lb\_controller\_role](#module\_lb\_controller\_role) | terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks | ~> 4.21.1 |
27+
| <a name="module_lb_controller_role"></a> [lb\_controller\_role](#module\_lb\_controller\_role) | terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks | ~> 5.27.0 |
2828

2929
## Resources
3030

@@ -43,7 +43,7 @@ to a Kubernetes Cluster.
4343
| <a name="input_chart_namespace"></a> [chart\_namespace](#input\_chart\_namespace) | Namespace to install the chart into | `string` | `"kube-system"` | no |
4444
| <a name="input_chart_repository"></a> [chart\_repository](#input\_chart\_repository) | Helm repository for the chart | `string` | `"https://aws.github.io/eks-charts"` | no |
4545
| <a name="input_chart_timeout"></a> [chart\_timeout](#input\_chart\_timeout) | Timeout to wait for the Chart to be deployed. | `number` | `300` | no |
46-
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of Chart to install. Set to empty to install the latest version | `string` | `"1.4.4"` | no |
46+
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of Chart to install. Set to empty to install the latest version | `string` | `"1.5.4"` | no |
4747
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of Kubernetes Cluster | `string` | n/a | yes |
4848
| <a name="input_cluster_tag_check"></a> [cluster\_tag\_check](#input\_cluster\_tag\_check) | Enable or disable subnet tag check | `bool` | `false` | no |
4949
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | Default tags to apply to all AWS resources managed by this controller | `map(string)` | `{}` | no |

iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module "lb_controller_role" {
22
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
3-
version = "~> 4.21.1"
3+
version = "~> 5.27.0"
44

55
role_name_prefix = coalesce(var.iam_role_name, "${var.cluster_name}-lb-")
66
role_description = "EKS Cluster ${var.cluster_name} LoadBalancer Controller"

0 commit comments

Comments
 (0)