{"id":13522456,"url":"https://github.com/jason-dour/hugo-aws-lambda-layer","last_synced_at":"2026-01-12T13:31:22.882Z","repository":{"id":88715482,"uuid":"234994235","full_name":"jason-dour/hugo-aws-lambda-layer","owner":"jason-dour","description":"AWS Lambda Layer for Hugo from gohugo.io.","archived":false,"fork":false,"pushed_at":"2021-09-14T23:53:02.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-02T06:32:59.550Z","etag":null,"topics":["aws","aws-lambda","aws-lambda-layer","aws-lambda-layers","cloud","hugo","lambda","lambda-layer","lambda-layers","serverless"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jason-dour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-20T01:18:02.000Z","updated_at":"2022-02-01T15:14:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"f79a026a-9c9e-49f7-9643-91c84c6dcd78","html_url":"https://github.com/jason-dour/hugo-aws-lambda-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-dour%2Fhugo-aws-lambda-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-dour%2Fhugo-aws-lambda-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-dour%2Fhugo-aws-lambda-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jason-dour%2Fhugo-aws-lambda-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jason-dour","download_url":"https://codeload.github.com/jason-dour/hugo-aws-lambda-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552465,"owners_count":20795824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","aws-lambda-layer","aws-lambda-layers","cloud","hugo","lambda","lambda-layer","lambda-layers","serverless"],"created_at":"2024-08-01T06:00:47.481Z","updated_at":"2026-01-12T13:31:22.859Z","avatar_url":"https://github.com/jason-dour.png","language":"Shell","readme":"# hugo-aws-lambda-layer\n\nAWS Lambda Layer for Hugo from gohugo.io.\n\nIt is intended to be functional in all runtimes.  It has been tested in `go1.x` and `python3.8` so far.\n\n## Building the Layer\n\n1. Make certain you have the `lambci/lambda:build-go1.x` Docker image needed to build the layer.\n\n    ``` shell\n    $ docker images\n    REPOSITORY                 TAG                 IMAGE ID            CREATED             SIZE\n    lambci/lambda              build-go1.x         051f7de811cf        11 days ago         2.2GB\n    ```\n\n    1. If you do not have the images, just pull them with a `docker pull` command.\n\n1. Confirm the build directory is clean.\n\n    ``` shell\n    $ ls -1\n    LICENSE\n    README.md\n    build.sh\n    ```\n\n1. ~~Then execute the docker `lambci/lambda:build-go1.x` image to run the build script.~~\n\n    ~~`docker run --rm -it -v `pwd`:/tmp/repo --entrypoint /bin/bash lambci/lambda:build-go1.x /tmp/repo/build.sh`~~\n\n    Using the `golang:1.17.1-alpine3.14` image, run the build script (can't use `lamci/lambda` anymore due to golang version requirement):\n\n    ``` shell\n    docker run --rm -it -v `pwd`:tmp/repo --entrypoint /bin/bash golang:1.17.1-alpine3.14 /tmp/repo/build.sh\n    ```\n\n## Deploy the Layer\n\nOnce the layer zip file is created, you can deploy it to your AWS account with the following command:\n\n``` shell\naws lambda publish-layer-version --layer-name \"hugo-VERSION\" --description \"Hugo VERSION for All Runtimes\" --license-info \"Apache 2.0\" --zip-file \"fileb://hugo.zip\"\n```\n","funding_links":[],"categories":["Layers"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-dour%2Fhugo-aws-lambda-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjason-dour%2Fhugo-aws-lambda-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjason-dour%2Fhugo-aws-lambda-layer/lists"}