Skip to content

Commit 8e76075

Browse files
committed
updated terragrunt.hcl
1 parent a22e65a commit 8e76075

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

terragrunt.hcl

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,24 @@
2929
#
3030
# It will find the latest tag release and create a tagged source entry and the inputs{} entries for the specific module
3131

32+
# Terragrunt finds the path to this terragrunt.hcl config file via this order of precedence:
33+
#
34+
# --terragrunt-config
35+
# $TERRAGRUNT_CONFIG
36+
# $PWD
37+
3238
terraform {
39+
40+
# source your remote module with a couple variables, so you can reuse the code with only this tiny stub
41+
#
42+
# the double slash before //app denotes a sub-directory relative to the root of the package:
43+
#
44+
# https://developer.hashicorp.com/terraform/language/modules/sources#modules-in-package-sub-directories
45+
#
46+
source = "github.com:HariSekhon/Terraform.git//app?ref=v0.0.1"
47+
# tfr:/// == tfr://registry.terraform.io/
48+
#source = "tfr:///terraform-aws-modules/vpc/aws?version=3.5.0"
49+
3350
# avoid having to remember to provide -var-file=... args every time to Terraform by specifying them like so
3451
extra_arguments "common_vars" {
3552
#commands = ["plan", "apply"]
@@ -108,23 +125,9 @@ include "root" {
108125
path = find_in_parent_folders()
109126
}
110127

111-
# Terragrunt finds the path to its config file via this order of precedence:
112-
#
113-
# --terragrunt-config
114-
# $TERRAGRUNT_CONFIG
115-
# $PWD
116-
117128
# ============================================================================ #
118129

119-
terraform {
120-
# source your remote module with a couple variables, so you can reuse the code with only this tiny stub
121-
source =
122-
# the double slash before //app denotes a sub-directory relative to the root of the package:
123-
#
124-
# https://developer.hashicorp.com/terraform/language/modules/sources#modules-in-package-sub-directories
125-
#
126-
"github.com:HariSekhon/Terraform.git//app?ref=v0.0.1"
127-
}
130+
128131
# each input becomes an 'export TF_VAR_...' environment variable passed to Terraform
129132
inputs = {
130133
instance_count = 10
@@ -133,12 +136,6 @@ inputs = {
133136

134137
# ============================================================================ #
135138

136-
# tfr:/// == tfr://registry.terraform.io/
137-
138-
terraform {
139-
source = "tfr:///terraform-aws-modules/vpc/aws?version=3.5.0"
140-
}
141-
142139
# generate a provider.tf file with the below contents
143140
generate "provider" {
144141
path = "provider.tf"

0 commit comments

Comments
 (0)