Build a DynDNS in the AWS to update your Route53 entries based on web requests and deploy it using AWS CDK
A full guide can be found on https://blog.timhartmann.de/2022/01/07/cdk-dyndns/
based on https://github.com/awslabs/route53-dynamic-dns-with-lambda
-
If not already done you can install CDK as follows:
$ npm install -g aws-cdk
-
We will also need the AWS-CLI configured to use our account. CDK will use the authentication to do all the AWS calls for us. Use the AWS Docs to install it, depending on your OS: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
-
and run:
$ aws configure
follow the guide and everything should be setup.
$ git clone https://github.com/globus243/AWS-DynDNS-CDK.git
- On line 18 in
lib/dyndns_lambda-stack.ts
enter your hosted zone name - Adjust the setting to fit you:
src/lambda_s3_config/config.json
Translate files to js
$ npm run build
Synthesize a cloudformation template
$ cdk synth
deploy it to your AWS Accpimt
$ cdk deploy