Skip to content

Commit d5cbd96

Browse files
committed
feat: initial import
0 parents  commit d5cbd96

File tree

18 files changed

+449
-0
lines changed

18 files changed

+449
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
max_line_length = 80
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = 0
14+
trim_trailing_whitespace = false
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug
11+
12+
<!-- A clear and concise description of what the bug is. -->
13+
14+
## Versions
15+
16+
<!-- Provide the versions of terraform, the AWS provider and this module you're using -->
17+
18+
- Terraform:
19+
- Provider:
20+
- Module:
21+
22+
## Reproduction
23+
24+
<!-- Steps to reproduce the behavior: -->
25+
26+
## Expected behavior
27+
28+
<!-- A clear and concise description of what you expected to happen. -->
29+
30+
## Actual behavior
31+
32+
<!-- A clear and concise description of what actually happened. -->
33+
34+
## Additional context
35+
36+
<!-- Add any other context about the problem here. -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Is your feature request related to a problem? Please describe.
11+
12+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
13+
14+
## Describe the solution you'd like
15+
16+
<!-- A clear and concise description of what you want to happen. -->
17+
18+
## Describe alternatives you've considered
19+
20+
<!-- Optional. A clear and concise description of any alternative solutions or features you've considered. -->
21+
22+
## Additional context
23+
24+
<!-- Add any other context or screenshots about the feature request here. -->

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
pre-commit-checks:
9+
name: Pre-commit checks
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Terraform min/max versions
15+
id: minMax
16+
uses: clowdhaus/[email protected]
17+
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
18+
uses: clowdhaus/terraform-composite-actions/[email protected]
19+
with:
20+
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
21+
terraform-docs-version: v0.16.0
22+
validate-examples:
23+
name: Validate examples
24+
runs-on: ubuntu-latest
25+
defaults:
26+
run:
27+
shell: bash
28+
working-directory: examples
29+
steps:
30+
- uses: hashicorp/setup-terraform@v1
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
- name: Check examples
34+
env:
35+
EXAMPLES: simple
36+
run: |
37+
for EXAMPLE in ${EXAMPLES}
38+
do
39+
echo "Validating $EXAMPLE"...
40+
cd $EXAMPLE && terraform init && terraform validate && cd -
41+
done
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: google-github-actions/release-please-action@v3
11+
with:
12+
release-type: terraform-module

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.terraform.lock.hcl
2+
3+
#####################
4+
# Default gitignore #
5+
#####################
6+
7+
# Local .terraform directories
8+
**/.terraform/*
9+
10+
# .tfstate files
11+
*.tfstate
12+
*.tfstate.*
13+
14+
# Crash log files
15+
crash.log
16+
17+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
18+
# password, private keys, and other secrets. These should not be part of version
19+
# control as they are data points which are potentially sensitive and subject
20+
# to change depending on the environment.
21+
#
22+
*.tfvars
23+
24+
# Ignore override files as they are usually used to override resources locally and so
25+
# are not checked in
26+
override.tf
27+
override.tf.json
28+
*_override.tf
29+
*_override.tf.json
30+
31+
# Include override files you do wish to add to version control using negated pattern
32+
#
33+
# !example_override.tf
34+
35+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
36+
# example: *tfplan*
37+
38+
# Ignore CLI configuration files
39+
.terraformrc
40+
terraform.rc

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/antonbabenko/pre-commit-terraform
3+
rev: v1.76.0
4+
hooks:
5+
- id: terraform_fmt
6+
- id: terraform_docs
7+
args:
8+
- --args=--config=.terraform-docs.yml
9+
- id: terraform_tflint
10+
exclude: "test/"
11+
args:
12+
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl

.terraform-docs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
formatter: "markdown table"
2+
3+
sections:
4+
show:
5+
- requirements
6+
- providers
7+
- inputs
8+
- outputs
9+
10+
sort:
11+
enabled: true
12+
by: required
13+
14+
settings:
15+
default: false
16+
lockfile: false

.tflint.hcl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
config {
2+
module = false
3+
force = false
4+
disabled_by_default = false
5+
}
6+
7+
rule "terraform_deprecated_interpolation" {
8+
enabled = true
9+
}
10+
11+
rule "terraform_deprecated_index" {
12+
enabled = true
13+
}
14+
15+
rule "terraform_unused_declarations" {
16+
enabled = true
17+
}
18+
19+
rule "terraform_comment_syntax" {
20+
enabled = true
21+
}
22+
23+
rule "terraform_documented_outputs" {
24+
enabled = true
25+
}
26+
27+
rule "terraform_documented_variables" {
28+
enabled = true
29+
}
30+
31+
rule "terraform_typed_variables" {
32+
enabled = true
33+
}
34+
35+
rule "terraform_module_pinned_source" {
36+
enabled = true
37+
}
38+
39+
rule "terraform_required_version" {
40+
enabled = true
41+
}
42+
43+
rule "terraform_required_providers" {
44+
enabled = true
45+
}
46+
47+
rule "terraform_standard_module_structure" {
48+
enabled = true
49+
}
50+
51+
rule "terraform_workspace_remote" {
52+
enabled = true
53+
}

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)