Skip to content

Commit 0a529b7

Browse files
authored
Initial commit
0 parents  commit 0a529b7

16 files changed

+911
-0
lines changed

.github/workflows/tflint.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
types: [opened, synchronize]
7+
8+
jobs:
9+
tflint:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
name: Checkout source code
19+
20+
- uses: actions/cache@v4
21+
name: Cache plugin dir
22+
with:
23+
path: ~/.tflint.d/plugins
24+
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
25+
26+
- uses: terraform-linters/setup-tflint@v4
27+
name: Setup TFLint
28+
29+
- name: Show version
30+
run: tflint --version
31+
32+
- name: Init TFLint
33+
run: tflint --init
34+
35+
- name: Run TFLint
36+
run: tflint -f compact

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Local .terraform directories
2+
**/.terraform/*
3+
.terraform.lock.hcl
4+
5+
# .tfstate files
6+
*.tfstate
7+
*.tfstate.*
8+
9+
# Crash log files
10+
crash.log
11+
12+
# IDE files
13+
.idea
14+
15+
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
16+
# .tfvars files are managed as part of configuration and so should be included in
17+
# version control.
18+
#
19+
# example.tfvars
20+
21+
# Ignore override files as they are usually used to override resources locally and so
22+
# are not checked in
23+
override.tf
24+
override.tf.json
25+
*_override.tf
26+
*_override.tf.json

.terraform-docs.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Refs: https://github.com/terraform-docs/terraform-docs
2+
formatter: "" # this is required
3+
4+
version: ""
5+
6+
header-from: main.tf
7+
footer-from: ""
8+
9+
recursive:
10+
enabled: false
11+
path: modules
12+
13+
sections:
14+
hide: []
15+
show: []
16+
17+
content: |-
18+
{{ .Providers }}
19+
20+
{{ .Requirements }}
21+
22+
{{ .Inputs }}
23+
24+
{{ .Outputs }}
25+
26+
{{ .Resources }}
27+
28+
{{ .Modules }}
29+
30+
{{ .Footer }}
31+
32+
output:
33+
file: ""
34+
mode: inject
35+
template: |-
36+
<!-- BEGIN_TF_DOCS -->
37+
{{ .Content }}
38+
<!-- END_TF_DOCS -->
39+
40+
output-values:
41+
enabled: false
42+
from: ""
43+
44+
sort:
45+
enabled: true
46+
by: name
47+
48+
settings:
49+
anchor: true
50+
color: true
51+
default: true
52+
description: false
53+
escape: true
54+
hide-empty: false
55+
html: true
56+
indent: 2
57+
lockfile: true
58+
read-comments: true
59+
required: true
60+
sensitive: true
61+
type: true

.tflint.hcl

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
config {
2+
varfile = ["examples/test.tfvars"]
3+
}
4+
5+
rule "terraform_unused_declarations" {
6+
enabled = true
7+
}
8+
9+
rule "terraform_comment_syntax" {
10+
enabled = true
11+
}
12+
13+
rule "terraform_deprecated_index" {
14+
enabled = true
15+
}
16+
17+
rule "terraform_deprecated_interpolation" {
18+
enabled = true
19+
}
20+
21+
rule "terraform_module_pinned_source" {
22+
enabled = true
23+
}
24+
25+
rule "terraform_naming_convention" {
26+
enabled = true
27+
}
28+
29+
rule "terraform_standard_module_structure" {
30+
enabled = true
31+
}
32+
33+
rule "terraform_typed_variables" {
34+
enabled = true
35+
}
36+
37+
rule "terraform_unused_required_providers" {
38+
enabled = true
39+
}

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres
7+
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8+
9+
## [Unreleased]
10+

0 commit comments

Comments
 (0)