ddns

module
v0.0.0-...-d751499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: Apache-2.0

README

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.

cd deploy && \
GOARCH=arm64 GOOS=linux go build -tags lambda.norpc -o bootstrap ../authorizer/basicauth.go && \
zip ./auth.zip bootstrap && \
GOARCH=arm64 GOOS=linux go build -tags lambda.norpc -o bootstrap ../update/update.go && \
zip ./ddns.zip bootstrap && \
terraform apply

Destroying Everything Manually

  • API Gateway:
    • ddns
  • Lambda Functions:
    • ddns
    • api_basic_auth
  • SSM
    • Parameter: /ddns/password
  • CloudWatch
    • Log Groups:
      • /aws/lambda/ddns
      • /aws/lambda/api_basic_auth
  • IAM
    • IAM Roles:
      • ddns_lambda
      • api_basic_auth_lambda
      • api_gateway_auth_invocation
    • IAM Policies:
      • ddns_lambda_policy
      • api_basic_auth_lambda_policy
      • api_gateway_auth_invocation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL