File tree Expand file tree Collapse file tree 8 files changed +759
-0
lines changed
Expand file tree Collapse file tree 8 files changed +759
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ # Terragrunt configuration for testing catalog config override behavior
2+ catalog {
3+ urls = [" ../with-shell-and-hooks" ]
4+ no_shell = true
5+ no_hooks = true
6+ }
Original file line number Diff line number Diff line change 1+ variables :
2+ - name : TestVariable
3+ description : A test variable
4+ type : string
5+ default : " test-value"
6+
7+ hooks :
8+ before :
9+ - command : echo "BEFORE_HOOK_EXECUTED"
10+ description : " Test hook that should execute before rendering"
11+ after :
12+ - command : echo "AFTER_HOOK_EXECUTED"
13+ description : " Test hook that should execute after rendering"
Original file line number Diff line number Diff line change 1+ # Test template with hooks
2+ terraform {
3+ source = " git::https://github.com/gruntwork-io/terragrunt.git//test/fixtures/inputs?ref=v0.53.8"
4+ }
5+
6+ inputs = {
7+ test_var = " {{ .TestVariable }}"
8+ }
Original file line number Diff line number Diff line change 1+ variables :
2+ - name : TestVariable
3+ description : A test variable
4+ type : string
5+ default : " test-value"
6+
7+ hooks :
8+ before :
9+ - command : echo "BEFORE_HOOK_EXECUTED"
10+ description : " Test hook before rendering"
11+ after :
12+ - command : echo "AFTER_HOOK_EXECUTED"
13+ description : " Test hook after rendering"
Original file line number Diff line number Diff line change 1+ # Test template with both shell template functions and hooks
2+ terraform {
3+ source = " git::https://github.com/gruntwork-io/terragrunt.git//test/fixtures/inputs?ref=v0.53.8"
4+ }
5+
6+ inputs = {
7+ test_var = " {{ .TestVariable }}"
8+ # This uses the shell template function
9+ current_user = " {{ shell " whoami" }}"
10+ timestamp = " {{ shell " date +% s" }}"
11+ }
Original file line number Diff line number Diff line change 1+ variables :
2+ - name : TestVariable
3+ description : A test variable
4+ type : string
5+ default : " test-value"
Original file line number Diff line number Diff line change 1+ # Test template with shell template function
2+ terraform {
3+ source = " git::https://github.com/gruntwork-io/terragrunt.git//test/fixtures/inputs?ref=v0.53.8"
4+ }
5+
6+ inputs = {
7+ test_var = " {{ .TestVariable }}"
8+ # This should execute a shell command when NoShell = false
9+ current_date = " {{ shell " date +% Y-% m-% d" }}"
10+ # This should execute another shell command
11+ whoami = " {{ shell " whoami" }}"
12+ }
You can’t perform that action at this time.
0 commit comments