gray-airplane-38353
05/09/2025, 6:19 PMFileArchive
object.
Somehow an errant "\" char is being introduced in my string:
var fullPathToLambdaCode = Path.GetFullPath(lambdaFunctionCodePath);
Log.Info($"Full path, being passed to FileArchive: [{fullPathToLambdaCode}].");
var codeArchive = new FileArchive(fullPathToLambdaCode);
Here's the output from that code:
Full path, being passed to FileArchive: [/Users/tonyb/Work/DevOps.Lambda.Source/CSharp/Template-Lambda-Code/Template-Publish].
error: couldn't read archive path '/Users/tonyb/Work/DevOps.Lambda.Source/CSharp\Template-Lambda-Code/Template-Publish': stat /Users/tonyb/Work/DevOps.Lambda.Source/CSharp\Template-Lambda-Code/Template-Publish: no such file or directory
Whereis that "*\*" coming from?
NOTE: The path /Users/tonyb/Work/DevOps.Lambda.Source/CSharp\Template-Lambda-Code\Template-Publish
DOES EXIST, and there's files there, AND permissions are ok (I can read the file - I created them, after all).echoing-dinner-19531
05/09/2025, 8:37 PMgray-airplane-38353
05/09/2025, 8:42 PMdotnet8
, in a Linux environment).
So, when I re-deployed, the object's URN was different.
So, perhaps still a bug, in that the error message did not mention URN. Once I did a pulumi refresh ...
, followed by pulumi up ...
, the error "went away".gray-airplane-38353
05/09/2025, 8:45 PMFileArchive
object that is set in the Function
object, should not be relevant to state, since the the "bits" are just ZIPped and pushed to AWS. The FileArchive
is a local object, in many respects.echoing-dinner-19531
05/09/2025, 8:52 PMgray-airplane-38353
05/09/2025, 9:25 PMechoing-dinner-19531
05/09/2025, 9:44 PM