Unable to download the module. This was working earlier in the day. Anyone else hitting this?
Initializing modules...
Downloading terraform-aws-modules/eks/aws 7.0.1 for eks...
Error: Failed to download module
Could not download module "eks" (eks-cluster.tf:110) source code from
"https://api.github.com/repos/terraform-aws-modules/terraform-aws-eks/tarball/v7.0.1//*?archive=tar.gz":
Error opening a gzip reader for /tmp/getter059103677/archive: EOF.
Error: Failed to download module
Could not download module "eks" (eks-cluster.tf:110) source code from
"https://api.github.com/repos/terraform-aws-modules/terraform-aws-eks/tarball/v7.0.1//*?archive=tar.gz":
Error opening a gzip reader for /tmp/getter059103677/archive: EOF.
See above
Yes, we've just started seeing the same issue.
I am seeing this issue as well
Try to update to Terraform v0.12.19
I hit the same issue; was on Terraform v0.12.13.
Terraform v0.12.19 works for me.
Is there any explanation of how this was able to break?
Why is it that a locked Terraform version (v0.12.13) and a locked module version (7.0.1) wasn't sufficient to protect the reproducibility of my build? What changed?
Here are required versions for Terraform and providers https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/versions.tf
Here what changed https://github.com/terraform-aws-modules/terraform-aws-eks/pull/617.
Closing this issue. Feel free to re-open it if needed.
@barryib We are trying to download 6.0.2 version of module and failing with same error
@barryib - Sorry, that doesn't satisfy - did you read my comment above that this module is broken with Terraform v0.12.13?
The link in your comment says that >v0.12.9 is required but that means my invocation with v0.12.13 should work, and it doesn't.
@barryib - To add on to what @jemc pointed out v7.01 has the following required versions: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v7.0.1/versions.tf
Also it seems #617 was a result of the managed node groups which wasn't even a part of the v7.0.1 release.
Additionally, please note the other context from my comment - this same combination of Terraform version (v0.12.13) and module version (7.0.1) was working in our CI/CD pipeline earlier today, and for weeks prior.
My comment asking about what could have changed is holding in constant the two ostensibly immutable artifacts of terraform version and module version.
I have the same question as @jemc. We version our modules and this broke without any subsequent updates.
My comment asking about what could have changed is holding in constant the two ostensibly immutable artifacts of terraform version and module version.
How can we protect ourselves from this in the future?
I answer it with this in mind Terraform version: 0.12.6 from the issue environment details.
Beside of that, I see that there is a bug fix in Terraform 0.12.19 saying :
command/init: Fix an issue with via an update to go-getter where modules would fail to download from the registry (#23792)
Here is the initial issue https://github.com/hashicorp/terraform/issues/23721
@jemc Is that satisfy you ?
@barryib We weren't seeing the issue with 0.12.8 yesterday and just started happening today so instead of fix the issue in 0.12.9 I think it got broken further somehow.
Please share your terraform scripts and output in debug mode.
@barryib can we open the issuse. Its seems we are failing even for 0.12.16
This is coming from Terraform core and the registry. Modules don't act in the init (service discovery, module downloading, backend initialization, etc.). All those operations are done by Terraform itself. If it works in some versions of Terraform, it should work for all of them or its a bug in Terraform side and from this module. https://www.terraform.io/docs/commands/init.html
Furthermore, the Terraform Registry is a repository maintained by Hashicorp. We only push tgz when we add git tags. https://www.terraform.io/docs/registry/modules/publish.html. And when you try to int in debug, you can see all version available :
2020/01/09 23:11:15 [DEBUG] found available version "6.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "5.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "4.0.2" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "5.1.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "7.0.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "8.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "6.0.2" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "7.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "6.0.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.1.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.2.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.3.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.7.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.3.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "4.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.2.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "2.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "3.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.8.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.2.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "4.0.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.3.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.6.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "0.1.1" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "0.2.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.5.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.4.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.0.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "0.1.0" for terraform-aws-modules/eks/aws
2020/01/09 23:11:15 [DEBUG] found available version "1.1.0" for terraform-aws-modules/eks/aws
You can check it from the registry service discovery https://registry.terraform.io/v1/modules/terraform-aws-modules/eks/aws/versions.
So please upgrade to 0.12.19 or open an issue (or ask in hashicorp/terraform#23721) what's went wrong. I think this module is not the best place for this issue.
hi All,
getting the same error;
Could not download module "vpc" (main.tf:11) source code from
"git::https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.64.0":
error downloading
'https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.64.0': git
must be available and on the PATH.
i am using terraform v 0.13.5..Could you please help as I can't dowload any module not just this one,,
Most helpful comment
@barryib - Sorry, that doesn't satisfy - did you read my comment above that this module is broken with Terraform
v0.12.13?The link in your comment says that
>v0.12.9is required but that means my invocation withv0.12.13should work, and it doesn't.