From 1ab38f03c90e3670c8255ea573b61c0ba7afc907 Mon Sep 17 00:00:00 2001 From: Costa Paraskevopoulos Date: Mon, 13 May 2024 21:26:49 +1000 Subject: [PATCH 1/2] Ignore terragrunt cache This excludes the common/default location from source control Docs: https://terragrunt.gruntwork.io/docs/features/caching/ --- Terraform.gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Terraform.gitignore b/Terraform.gitignore index 9b8a46e6..a4937147 100644 --- a/Terraform.gitignore +++ b/Terraform.gitignore @@ -32,3 +32,7 @@ override.tf.json # Ignore CLI configuration files .terraformrc terraform.rc + +# Ignore the default terragrunt cache directory +# https://terragrunt.gruntwork.io/docs/features/caching/ +.terragrunt-cache From 403cf39f224afb0c301b3e683a210a3272c03ad1 Mon Sep 17 00:00:00 2001 From: Costa Paraskevopoulos Date: Fri, 31 May 2024 19:23:32 +1000 Subject: [PATCH 2/2] Migrate terragrunt ignore to new template as suggested --- Terraform.gitignore | 4 ---- community/Terragrunt.gitignore | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 community/Terragrunt.gitignore diff --git a/Terraform.gitignore b/Terraform.gitignore index a4937147..9b8a46e6 100644 --- a/Terraform.gitignore +++ b/Terraform.gitignore @@ -32,7 +32,3 @@ override.tf.json # Ignore CLI configuration files .terraformrc terraform.rc - -# Ignore the default terragrunt cache directory -# https://terragrunt.gruntwork.io/docs/features/caching/ -.terragrunt-cache diff --git a/community/Terragrunt.gitignore b/community/Terragrunt.gitignore new file mode 100644 index 00000000..ea480863 --- /dev/null +++ b/community/Terragrunt.gitignore @@ -0,0 +1,3 @@ +# Ignore the default terragrunt cache directory +# https://terragrunt.gruntwork.io/docs/features/caching/ +.terragrunt-cache