Skip to content
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

Curl 404 error downloading lamda.zip artifact #39

Open
marlovil opened this issue Nov 18, 2021 · 1 comment
Open

Curl 404 error downloading lamda.zip artifact #39

marlovil opened this issue Nov 18, 2021 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@marlovil
Copy link

Describe the Bug

From yesterday, we are getting this error:

Error: failed to execute "curl": curl: (22) The requested URL returned error: 404 

  on .terraform/modules/lambda-elasticsearch-logs-cleanup.artifact/main.tf line 1, in data "external" "curl":
   1: data "external" "curl" {

If we enable TF_LOG=DEBUG we can see this:

2021/11/17 12:00:29 [DEBUG] ReferenceTransformer: "module.lambda-elasticsearch-logs-cleanup[0].module.artifact.data.template_file.url[0]" references: []
2021/11/17 12:00:29 [WARN] Provider "registry.terraform.io/hashicorp/template" produced an unexpected new value for module.lambda-elasticsearch-logs-cleanup[0].module.artifact.data.template_file.url[0].
      - .rendered: was cty.StringVal("https://artifacts.cloudposse.com/terraform-aws-lambda-elasticsearch-cleanup/20f9b1fd94e4b5f808d9ed51fec5a60094fce49b/lambda.zip"), but now cty.StringVal("https://artifacts.cloudposse.com/terraform-aws-lambda-elasticsearch-cleanup/5b2d34b7a97d386cdf76691b5952c30b31c9a39e/lambda.zip")
      - .id: was cty.StringVal("ab6aa662215a10b692c7a657849e815b43d07d9fdc0324927c75004323d96e7e"), but now cty.StringVal("22dd58a23ba0d8516e44975edf035e16fd8eb7876b81977de63fc182e4b42de1")

This URL:

https://artifacts.cloudposse.com/terraform-aws-lambda-elasticsearch-cleanup/5b2d34b7a97d386cdf76691b5952c30b31c9a39e/lambda.zip

returns 404.

We are using 0.12.3 module version. We tried to upgrade to the last recent release (0.12.4) but we are getting the same error.

Steps to Reproduce

Simply run a terraform plan

Environment (please complete the following information):

  • Terraform 0.14.10
  • Module version 0.12.3 and 0.12.4

Additional Context

This problem started just yesterday. Maybe some thing is broken with the latest release?

@marlovil marlovil added the bug 🐛 An issue with the system label Nov 18, 2021
@marlovil
Copy link
Author

marlovil commented Nov 24, 2021

We've found a workaround.

Instead of pinning the module version using:
version = "~> 0.12.3"
We've pinned the exact version:
version = "0.12.3"

Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant