Skip to content

tool to send IP and url to AWS Kinesis, via AWS lambda, update Route53

Notifications You must be signed in to change notification settings

KptnKMan/lambda-update-route53

Repository files navigation

lambda-update-route53

Disclaimer

  • This is an education repo for me
  • There will be a lot of unnecessary comments in my code
  • PRs are welcome, if they are useful

Description

  • This is a tool to update a route53 domain using a local script, AWS Kinesis and AWS Lambda
    • A specified A-Record will be updated
    • The record must exist beforehand
  • There are 3 main components
    • (1) An AWS Lambda function that modifies/updates an AWS Route53 domain/zone
      • The Route53 zone must already exist and be hosted in Route53
      • The Route53 zone is expected to have at least 1 A-Record
      • The A-Record should be a root (eg '*.domain.com' or 'domain.com')
    • (2) An AWS Kinesis stream that publishes an event to (1) an AWS Lambda function
    • (3) A Local Python App which checks current public IP and publishes a JSON payload to (2) an AWS Kinesis Stream
      • Python App can be run manually in Python
      • Python App can be run as a Docker container
      • Python App can be run as a Kubernetes Helm Chart

This repo

  • Written in python 2.7.14
  • Uses boto3

How this thing works

Details available here

How to use this app

Details available here

Todo

  • Deployment files
    • DockerFile
    • DockerHub image automated build
    • Terraform file(s)
    • Kubernetes Template
    • Helm Chart
    • CloudFormation file
  • Documentation - Instructions
    • Explain how App works
    • Infra setup
      • Terraform
      • CloudFormation
    • Prepping variables
    • Running App
      • Using Python
      • Using Docker
      • Using Kubernetes
      • Using Helm (Kubernetes)
  • Python things
    • Unit tests
    • Improve cred collection process
    • Properly commented code
    • Proper internal logging
  • Misc/Random

About

tool to send IP and url to AWS Kinesis, via AWS lambda, update Route53

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published