You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy using Terraform Cloud (just discovered Windows isn't supported) but I'm getting this error:
Error: Error in function call
on .terraform/modules/tf_next/main.tf line 67, in resource "aws_lambda_function" "this":
67: source_code_hash = filebase64sha256("${local.config_dir}/${lookup(each.value, "filename", "")}")
├────────────────
│ while calling filebase64sha256(path)
│ each.value is object with 4 attributes
│ local.config_dir is "./.next-tf"
Call to function "filebase64sha256" failed: open
.next-tf/lambdas\__NEXT_PAGE_LAMBDA_0.zip: no such file or directory.
The .next-tf folder is in the root of my project, and its lambdas subfolder does have __NEXT_PAGE_LAMBDA_0.zip.
I get this error whether I include !**/.next-tf/** in my .terraformignore or not.
The README says I should “upload the build output from the tf-next task”, but this instruction is unclear to me. I don't see where I can upload anything on Terraform Cloud.
I'm not using basePath, but I am using baseUrl, not sure if this matters.
Any guidance would be appreciated.
Local: Terraform v1.3.4 on windows_amd64
Terraform Cloud: Terraform v1.3.4 on linux_amd64
tf-next: ^0.13.2
The text was updated successfully, but these errors were encountered:
C0D3-BL00D3D
changed the title
.next-tf/lambdas\__NEXT_PAGE_LAMBDA_0.zip: no such file or directory
Cannot deploy - .next-tf/lambdas\__NEXT_PAGE_LAMBDA_0.zip: no such file or directory
Nov 8, 2022
I'm trying to deploy using Terraform Cloud (just discovered Windows isn't supported) but I'm getting this error:
The
.next-tf
folder is in the root of my project, and itslambdas
subfolder does have__NEXT_PAGE_LAMBDA_0.zip
.I get this error whether I include
!**/.next-tf/**
in my.terraformignore
or not.The
README
says I should “upload the build output from the tf-next task”, but this instruction is unclear to me. I don't see where I can upload anything on Terraform Cloud.I'm not using
basePath
, but I am usingbaseUrl
, not sure if this matters.Any guidance would be appreciated.
Local: Terraform v1.3.4 on windows_amd64
Terraform Cloud: Terraform v1.3.4 on linux_amd64
tf-next: ^0.13.2
The text was updated successfully, but these errors were encountered: