Skip to content

jdreinhardt/hugo_to_s3_lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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.

About

Compile a hugo website from a git repository into a S3 bucket

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages