Skip to content
/ ddns Public

Dynamic DNS using AWS API Gatway, Lambda and Route53

License

Notifications You must be signed in to change notification settings

jcmturner/ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDNS

Implements an equivalent of DynDNS using AWS API Gateway and Lambda to update DNS managed in AWS Route53

Building & Deploying

Prerequisites

There are two Lambda functions to build and then apply terraform to deploy the functions and create the API gateway configuration

Run the following commands. You will be prompted for your AWS access keys and secret keys, and a username and password that will be used to secure requests to the API.

export GOOS=linux && \
export GOARCH=amd64 && \
cd $GOPATH/src/github.com/jcmturner/ddns/deploy && \
GOARCH=arm64 GOOS=linux go build -i -tags lambda.norpc -o $GOPATH/src/github.com/jcmturner/ddns/deploy/bootstrap $GOPATH/src/github.com/jcmturner/ddns/authorizer/basicauth.go && \
zip ./auth.zip bootstrap && \
GOARCH=arm64 GOOS=linux go build -i -tags lambda.norpc -o $GOPATH/src/github.com/jcmturner/ddns/deploy/bootstrap $GOPATH/src/github.com/jcmturner/ddns/update/update.go && \
zip ./ddns.zip bootstrap && \
terraform apply

About

Dynamic DNS using AWS API Gatway, Lambda and Route53

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published