You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Partials and dependencies can currently be declared using relative paths. It does not seem to be possible to list remote repos/files as partials or dependencies. This would however be a very useful feature.
When using a remote (default) boilerplate template when running terragrunt scaffold or terragrunt catalog, any partials or dependencies have to be defined within the same repository.
Consider a boilerplate template file like this:
locals {
{{- template "locals" -}}
}
{{ template "terraform_config" }}
terraform {
source = "{{ .sourceUrl }}"
}
inputs = {
{{- if templateIsDefined "base_example" }} {{ template "base_example" }} {{end}}
# --------------------------------------------------------------------------------------------------------------------
# Required input variables
# --------------------------------------------------------------------------------------------------------------------
{{ range .requiredVariables }}
{{ .Name }} = {{ .DefaultValuePlaceholder }} # TODO: fill in value
# Description: {{ .Description }}
# Type: {{ .Type }}
{{ end }}
# --------------------------------------------------------------------------------------------------------------------
# Optional input variables with their default values
# Uncomment the ones which values you would like to change to anything other than what is listed below.
# --------------------------------------------------------------------------------------------------------------------
{{ range .optionalVariables }}
# {{ .Name }} = {{ .DefaultValue }} # Default value - only uncomment if this is not the desired value.
# Description: {{ .Description }}
# Type: {{ .Type }}
{{ end }}
}
Most of the templates/partials can reside in the same boilerplate template repository. However, the base_example - which in this case is aiming to provide a commonly used inputs example for developer guidance - should ideally live with the (remote) terraform module code. That way it's easier to maintain the inputs example when changes to the terraform module are made. That is, the example partial can live closer to the code its providing an example for.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Partials and dependencies can currently be declared using relative paths. It does not seem to be possible to list remote repos/files as partials or dependencies. This would however be a very useful feature.
Additional context
This request essentially relates to gruntwork-io/terragrunt#3658
When using a remote (default) boilerplate template when running
terragrunt scaffold
orterragrunt catalog
, any partials or dependencies have to be defined within the same repository.Consider a boilerplate template file like this:
Most of the templates/partials can reside in the same boilerplate template repository. However, the
base_example
- which in this case is aiming to provide a commonly used inputs example for developer guidance - should ideally live with the (remote) terraform module code. That way it's easier to maintain the inputs example when changes to the terraform module are made. That is, the example partial can live closer to the code its providing an example for.The text was updated successfully, but these errors were encountered: