29
29
#
30
30
# It will find the latest tag release and create a tagged source entry and the inputs{} entries for the specific module
31
31
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
+
32
38
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
+
33
50
# avoid having to remember to provide -var-file=... args every time to Terraform by specifying them like so
34
51
extra_arguments "common_vars" {
35
52
# commands = ["plan", "apply"]
@@ -108,23 +125,9 @@ include "root" {
108
125
path = find_in_parent_folders ()
109
126
}
110
127
111
- # Terragrunt finds the path to its config file via this order of precedence:
112
- #
113
- # --terragrunt-config
114
- # $TERRAGRUNT_CONFIG
115
- # $PWD
116
-
117
128
# ============================================================================ #
118
129
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
+
128
131
# each input becomes an 'export TF_VAR_...' environment variable passed to Terraform
129
132
inputs = {
130
133
instance_count = 10
@@ -133,12 +136,6 @@ inputs = {
133
136
134
137
# ============================================================================ #
135
138
136
- # tfr:/// == tfr://registry.terraform.io/
137
-
138
- terraform {
139
- source = " tfr:///terraform-aws-modules/vpc/aws?version=3.5.0"
140
- }
141
-
142
139
# generate a provider.tf file with the below contents
143
140
generate "provider" {
144
141
path = " provider.tf"
0 commit comments