Hello,
starting with Terraform 1.15 I am having issues with downloading modules, e.g. when running terraform init:
$ terraform init -upgrade
Initializing the backend...
Upgrading modules...
Downloading gitlab.haufedev.systems/search-blueprints/oidc/aws 0.0.3 for oidc_svc-gitlab...
- oidc_svc-gitlab in .terraform\modules\oidc_svc-gitlab
Downloading gitlab.haufedev.systems/search-blueprints/kms/aws 0.0.3 for kms...
- kms in .terraform\modules\kms
Downloading gitlab.haufedev.systems/search-blueprints/ecr-setup/aws 0.0.3 for ecr_setup...
- ecr_setup in .terraform\modules\ecr_setup
Downloading gitlab.haufedev.systems/search-blueprints/s3/aws 0.0.3 for s3...
- s3 in .terraform\modules\s3
Downloading gitlab.haufedev.systems/search-blueprints/ecr/aws 0.0.3 for preprocessing_repository...
- preprocessing_repository in .terraform\modules\preprocessing_repository
Downloading gitlab.haufedev.systems/search-blueprints/ecr/aws 0.0.3 for mcp_service_repository...
- mcp_service_repository in .terraform\modules\mcp_service_repository
- network in ..\modules\network
- secrets_manager in ..\modules\secrets
Downloading gitlab.haufedev.systems/search-blueprints/ecs/aws 0.0.3 for ecs...
- ecs in .terraform\modules\ecs
- alb in ..\modules\alb
Downloading gitlab.haufedev.systems/search-blueprints/ai-search/azure 0.0.3 for ai_search...
- ai_search in .terraform\modules\ai_search
Downloading registry.terraform.io/terraform-aws-modules/secrets-manager/aws 2.1.0 for secrets_manager.artifactory_auth_secret...
Downloading registry.terraform.io/terraform-aws-modules/ecs/aws 7.3.0 for ecs.ecs_cluster...
Downloading registry.terraform.io/terraform-aws-modules/alb/aws 10.5.1 for alb.alb...
Downloading registry.terraform.io/terraform-aws-modules/secrets-manager/aws 2.1.0 for secrets_manager.aws_secrets_manager...
╷
│ Error: Failed to download module
│
│ on ..\modules\alb\main-alb.tf line 4:
│ 4: module "alb" {
│
│ Could not download module "alb" (..\modules\alb\main-alb.tf:4) source code from
│ "git::https://github.com/terraform-aws-modules/terraform-aws-alb?ref=6c6e48c10d450d01cf6715346e926df0b858efc2": error downloading
│ 'https://github.com/terraform-aws-modules/terraform-aws-alb?ref=6c6e48c10d450d01cf6715346e926df0b858efc2': invalid ref:
│ "6c6e48c10d450d01cf6715346e926df0b858efc2".
╵
╷
│ Error: Failed to download module
│
│ on ..\modules\secrets\main-auth.tf line 5:
│ 5: module "artifactory_auth_secret" {
│
│ Could not download module "artifactory_auth_secret" (..\modules\secrets\main-auth.tf:5) source code from
│ "git::https://github.com/terraform-aws-modules/terraform-aws-secrets-manager?ref=d03382d3ec9c12b849fbbe35b770eaa047f7bbea": error downloading
│ 'https://github.com/terraform-aws-modules/terraform-aws-secrets-manager?ref=d03382d3ec9c12b849fbbe35b770eaa047f7bbea': invalid ref:
│ "d03382d3ec9c12b849fbbe35b770eaa047f7bbea".
╵
╷
│ Error: Failed to download module
│
│ on ..\modules\secrets\main-service.tf line 70:
│ 70: module "aws_secrets_manager" {
│
│ Could not download module "aws_secrets_manager" (..\modules\secrets\main-service.tf:70) source code from
│ "git::https://github.com/terraform-aws-modules/terraform-aws-secrets-manager?ref=d03382d3ec9c12b849fbbe35b770eaa047f7bbea": error downloading
│ 'https://github.com/terraform-aws-modules/terraform-aws-secrets-manager?ref=d03382d3ec9c12b849fbbe35b770eaa047f7bbea': invalid ref:
│ "d03382d3ec9c12b849fbbe35b770eaa047f7bbea".
╵
╷
│ Error: Failed to download module
│
│ on .terraform\modules\ecs\main.tf line 9:
│ 9: module "ecs_cluster" {
│
│ Could not download module "ecs_cluster" (.terraform\modules\ecs\main.tf:9) source code from
│ "git::https://github.com/terraform-aws-modules/terraform-aws-ecs?ref=ccb33d7cb7b3ed23d116e94d8c1e6a7aa8f44139": error downloading
│ 'https://github.com/terraform-aws-modules/terraform-aws-ecs?ref=ccb33d7cb7b3ed23d116e94d8c1e6a7aa8f44139': invalid ref:
│ "ccb33d7cb7b3ed23d116e94d8c1e6a7aa8f44139".
╵
It is working without problem with terraform version 1.14.8. Any idea how to track the reason for this error down is appreciated.
I am running terraform on Windows, if that matters.
Thanks in advance!