Skip to content
Compile a hugo website from a git repository into a S3 bucket
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
main.py

README.md

Hugo to S3 using AWS Lambda

An AWS lambda function used to compile a hugo website from a git repository into a S3 bucket.

To use zip the main.py, git-2.14.0.tar, and the hugo binary then upload to AWS Lambda.

Add the following Environment variables to the function and it should work anytime it is triggered. GIT_REPO //the full URL to the Hugo site repository S3_BUCKET //the name of the bucket you want the content copied to when complete

The function to install git in the Lambda is based off of the work done by bcongdon.

You can’t perform that action at this time.