-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraform init
does not recognize the most recent version of a registry.terraform.io hosted module
#36674
Comments
Hi @jwadolowski, Thanks for filing the issue! I have a feeling this is somehow related to the CDN cache, because I don't see any reason the particular Terraform version is involved. Terraform v1.11.1 and main work from the CLI, and curl can fetch the versions from the cli and within the distributed docker image. It will take some debugging to see why the combination of Terraform version and docker image isn't seeing 0.97.0, but we also should have a new release soon which may be able to give us another data point. |
Hi @jbardin, CDN cache glitch was my very first thought as well, but it was surprisingly consistent, no matter what location I connected from (it may or may not matter in this case, it all depends how your CDN was configured). I tried
There was a common denominator for all of them:
The eye-striking thing is the As far as I can see the request initiated by
Here's
In comparison to the original request, the All in all, it seems that your CDN configuration takes both For some reason, the CDN object that maps to
|
The bottom line is that most likely, the new version of Terraform will fix the issue (new Since
Of course, it may happen that more objects got cached this way, but would it be possible to invalidate |
Thanks for taking the time to debug that @jwadolowski! That makes total sense; in my quick triage I used v0.11.1 to test the code, but I didn't bother to set the release version for the local build, so the We'll check with the registry team and see if they can sort out the caching discrepancy. Thanks! |
Terraform Version
Terraform Configuration Files
N/A
Debug Output
Expected Behavior
At the time of writing,
0.97.0
is the most recent version of thecloudposse/cloudfront-s3-cdn/aws
module, therefore it should be downloaded.Actual Behavior
Terraform
1.11.1
claims the latest available version of thecloudposse/cloudfront-s3-cdn/aws
module is0.96.2
, while both1.11.0
and1.10.5
correctly recognize0.97.0
as the most recent one.Steps to Reproduce
main.tf
1.11.1
to init the working directory1.11.0
1.10.5
Additional Context
1.11.1
0.97.0
of the module was released yesterday: https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/releases/tag/v0.97.00.97.0
does show up in the API response0.97.0
(the latest) and0.96.2
(previous version) look nearly identical from API perspective (all the required fields are present):References
No response
Generative AI / LLM assisted development?
N/A
The text was updated successfully, but these errors were encountered: