This module creates example resources for demonstration purposes
N/A
See the examples folder for examples of how to utilize this module with Terraform and Terragrunt.
N/A
terraform init
terraform plan
terraform apply| Name | Version |
|---|---|
| terraform | ~> 1.11.0 |
| aws | ~> 5.97.0 |
| null | ~> 3.2.4 |
| Name | Version |
|---|---|
| aws | 5.97.0 |
| null | 3.2.4 |
No modules.
| Name | Type |
|---|---|
| null_resource.foo | resource |
| aws_partition.current | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| example | Example variable | string |
"default value" |
no |
| Name | Description |
|---|---|
| example_value | Example variable |
| null_resource_id | An arbitrary value that changes each time the resource is replaced. |
| partition | AWS partition in which Terraform is working |
Code quality and security will be validated before merge requests are accepted.
These tools are used to ensure validation and standardization of Terraform deployments
For more information see - pre-commit-hooks-for-terraform
Trivy is used to scan Terraform configurations for potential security issues. The pre-commit hook is configured in the .pre-commit-config.yaml file using pre-commit-trivy:
repos:
- repo: https://github.com/mxab/pre-commit-trivy.git
rev: v0.15.0
hooks:
- id: trivyfs-docker
args:
- --skip-dirs
- ./tests
- . # scan path
- id: trivyconfig-docker
args:
- --skip-dirs
- ./tests
- . # scan pathThis configuration:
- Uses Docker to run trivy scans (no local installation needed)
- Performs both filesystem and configuration scanning
- Skips the
testsdirectory - Creates a local
.pre-commit-trivy-cachedirectory for caching
git checkout -b <branch name>
pre-commit autoupdate
pre-commit run -a
git commit -a -m 'Add new feature'
git push origin <branch name>Optionally run the following to automate the execution of pre-commit on every git commit.
pre-commit installCopyright (c) 2025
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.