pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jason-dour/hugo-aws-lambda-layer

ll" rel="stylesheet" href="https://github.githubassets.com/assets/primer-71a44d5be3f782c5.css" /> GitHub - jason-dour/hugo-aws-lambda-layer: AWS Lambda Layer for Hugo from gohugo.io.
Skip to content

jason-dour/hugo-aws-lambda-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

hugo-aws-lambda-layer

AWS Lambda Layer for Hugo from gohugo.io.

It is intended to be functional in all runtimes. It has been tested in go1.x and python3.8 so far.

Building the Layer

  1. Make certain you have the lambci/lambda:build-go1.x Docker image needed to build the layer.

    $ docker images
    REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE
    lambci/lambda              build-go1.x         051f7de811cf        11 days ago         2.2GB
    1. If you do not have the images, just pull them with a docker pull command.
  2. Confirm the build directory is clean.

    $ ls -1
    LICENSE
    README.md
    build.sh
  3. Then execute the docker lambci/lambda:build-go1.x image to run the build script.

    docker run --rm -it -v pwd:/tmp/repo --entrypoint /bin/bash lambci/lambda:build-go1.x /tmp/repo/build.sh

    Using the golang:1.17.1-alpine3.14 image, run the build script (can't use lamci/lambda anymore due to golang version requirement):

    docker run --rm -it -v `pwd`:tmp/repo --entrypoint /bin/bash golang:1.17.1-alpine3.14 /tmp/repo/build.sh

Deploy the Layer

Once the layer zip file is created, you can deploy it to your AWS account with the following command:

aws lambda publish-layer-version --layer-name "hugo-VERSION" --description "Hugo VERSION for All Runtimes" --license-info "Apache 2.0" --zip-file "fileb://hugo.zip"

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy