Layer.zip not usable
Opened this issue · 1 comments
I built a layer.zip file using the make scripts on an AWS linux machine.
I manually uploaded layer.zip to AWS but when I attempt to use the layer as part of a function the AWS GUI reports the following error:
Failed to unzip archive: Zip file contains invalid files/folders;
Appears this is an AWS problem - it refuses to allow use of the layer unless created by cloudformation.
following code fails with the following message:
response = lc.update_function_configuration(
FunctionName='test_headless',
Layers= ['arn:aws:lambda:eu-west-1:366134052999:layer:SeleniumChromiumLayer:1']
)
An error occurred (InvalidParameterValueException) when calling the UpdateFunctionConfiguration operation: Failed to unzip archive: Zip file contains invalid files/folders;