Update terraform modules version into terragrunt .hcl files from Terraform Module Registry deployed in private gitlab. #32097
Replies: 1 comment
-
Fixed, I had 401 error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
SelfHosted Gitlab
Please tell us more about your question or problem
I have a problem with the version of Terraform modules not being updated in the Terragrunt .hcl files. Specifically, I receive the following error:
However, at the same time, I have access to this path in GitLab, and it is described in the usage manual:
module "my_module_name" { source = "gitlab.example.dev/infra/google-logging-metric/local" version = "1.1.0" }
Here are my configuration files:
terragrunt.hcl
`locals {
project_id = read_terragrunt_config(find_in_parent_folders(".global.hcl")).locals.project_id
}
terraform {
source = "tfr://gitlab.autodoc.dev/infra/google-logging-metric/local?version=1.1.0"
}
include {
path = find_in_parent_folders()
}
inputs = {
project_id = local.project_id
name = "secret_manager_errors"
filter = "some_filter"
metric_descriptor = {
metric_kind = "DELTA"
value_type = "INT64"
}
}
renovate.json
{"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabledManagers": ["terragrunt"],
"packageRules": [
{
"matchDatasources": ["terraform"],
"versioning": "hashicorp",
"enabled": true,
"matchPackageNames": ["/^gitlab\.exemple\.dev/./"]
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["(^|/)terragrunt\.hcl$"],
"matchStrings": [
"source\s=\s*"tfr://(?.?)/(?.+?)/(?.+?)(?:/.+?)?\?version=(?.?)""
],
"datasourceTemplate": "terraform-module",
"depNameTemplate": "{{org}}/{{name}}",
"packageNameTemplate": "{{org}}/{{name}}"
}
]
}`
Renovate have access to repository with module ( do there semantic release )
Please help me figure out what the problem is.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions