Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Missing required parameter for publish-layer-version (aws cli)

I’m trying to publish the layer using AWS CLI

aws lambda publish-layer-version --layer-name layer --region us-west-2

This is the error message –

Parameter validation failed:
Missing required parameter in input: "Content"

Documentation shows this example –

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

aws lambda publish-layer-version \
    --layer-name my-layer \
    --description "My Python layer" \
    --license-info "MIT" \
    --content S3Bucket=lambda-layers-us-west-2-123456789012,S3Key=layer.zip \
    --compatible-runtimes python3.6 python3.7

How can I find value for the content param?

What should use if I don’t use S3 to store a layer?

>Solution :

You can use --zip-file, instead of --content:

The path to the zip file of the content you are uploading. Specify –zip-file or –content, but not both. Example: fileb://content.zip

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading