Skip to content

Commit

Permalink
feat(terraform): enable terragrunt
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Jun 20, 2024
1 parent 274c863 commit 1681558
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 8 deletions.
6 changes: 3 additions & 3 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Blank
# Terraform

Simple blank project. If unsure, use this one
Terraform project with Terragrunt enabled

```shell
make blank
make terraform
```
5 changes: 3 additions & 2 deletions terraform/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"project_name": null,
"description": "A blank project for getting started",
"author": "Simon Emms <simon@simonemms.com>"
"description": "A Terraform project with Terragrunt enabled",
"author": "Simon Emms <simon@simonemms.com>",
"module_name": null
}
1 change: 1 addition & 0 deletions terraform/{{ cookiecutter.project_name }}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Thumbs.db
**/.terraform/*
*.tfstate
*.tfstate.*
**/.terragrunt-cache/*
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ repos:
- id: terraform-docs-go
args:
- markdown
- infrastructure
- .
- --recursive
- --recursive-include-main=false
- --output-file=README.md
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.91.0"
Expand All @@ -52,4 +54,4 @@ repos:
- --args=-recursive
- id: terraform_tflint
- id: terraform_trivy
- id: terraform_validate
- id: terragrunt_validate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Infrastructure
# {{ cookiecutter.module_name }}

<!-- BEGIN_TF_DOCS -->
<!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
source = "../../../modules/${basename(get_terragrunt_dir())}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
source = "../../../modules/${basename(get_terragrunt_dir())}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
source = "../../../modules/${basename(get_terragrunt_dir())}"
}
Empty file.

0 comments on commit 1681558

Please sign in to comment.