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

[BUG] Could not unzip uploaded file when create a lambda layer #322

Open
hoangquochung1110 opened this issue Dec 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@hoangquochung1110
Copy link

Expected Behavior

Successful layer creation

Current Behavior

echo ${chromiumVersion}
112.0.0

❯ aws s3 cp "chromium-v${chromiumVersion}-layer.zip" "s3://${bucketName}/chromiumLayers/chromium-v${chromiumVersion}-layer.zip"

upload: ./chromium-v112.0.0-layer.zip to s3://<myBucket>/chromiumLayers/chromium-v112.0.0-layer.zip

~/Development/chrome-aws-lamda-hello-world took 5s 
❯ aws lambda publish-layer-version --layer-name chromium --description "Chromium v${chromiumVersion}" --content "S3Bucket=${bucketName},S3Key=chromiumLayers/chromium-v${chromiumVersion}-layer.zip" --compatible-runtimes nodejs --compatible-architectures x86_64

An error occurred (InvalidParameterValueException) when calling the PublishLayerVersion operation: Could not unzip uploaded file. Please check your file, then try to upload again.
@hoangquochung1110 hoangquochung1110 added the bug Something isn't working label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant