Terragrunt: Matching base_source_url in .hcl files #13401
Unanswered
syphernl
asked this question in
Request Help
Replies: 1 comment 7 replies
-
I think you need to put the full url into depName |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having some problems getting Renovate to pick up some "special" Terragrunt files.
Terragrunt Structure
Our Terragrunt structure (simplified) looks like:
In
_envcommon/vpc.hcl
we have a definition of the module and the version to use:Within the
staging/region/vpc/terragrunt.hcl
we refer to this value:Renovate configuration
However, as the default Terragrunt manager is looking for a source but gets an unresolved variable it doesn't treat this as an update.
The regex I have added to the Renovate regexManager:
The file is picked up by the regexManager:
But no matches are found and no versions are being updated either.
In an online regex tester I have resolves to the following:
git::git@gitlab.com:ORG/REPO/terraform-aws-components.git
modules/vpc
v0.2.0
Could it be that Renovate does not expect the
lookupName
to be an URL but expects something likeORG/REPO/terraform-aws-components
?I have also tried this
matchString
to no avail:'base_source_url\s*?=\s*?"git::git@gitlab.com:(?<lookupName>.*).git\/\/modules\/(?<depName>.*)\?ref=(?<currentValue>.*)"'
This one produces:
ORG/REPO/terraform-aws-components
vpc
v0.2.0
Beta Was this translation helpful? Give feedback.
All reactions