Skip to content

Add or modify dns records on AWS Route53 for your homelab.

Notifications You must be signed in to change notification settings

Parcothsai/awscip

Repository files navigation

awscip

Github Action SNYK

Description

awscip for aws change ip.

Create or update record to aws route53 on a single domain.

DockerHub url : https://hub.docker.com/r/luninfoparco/awscip

CLONE THIS PROJECT

git clone https://github.com/Parcothsai/awscip.git
cd  awscip

Using docker-compose

# Replace "test" with your correct information
sed -i "s/your_aws_access_key_id/test/g" docker-compose.yml
sed -i "s/your_aws_secret_access_key/test/g" docker-compose.yml
sed -i "s/your_aws_region/test/g" docker-compose.yml
sed -i "s/your_aws_zone_id/test/g" docker-compose.yml

cat > domains.list << EOF 
first.exemple.com
second.exemple.com
EOF

Then :

docker-compose up -d

USING KUBERNETES

HELM

# Replace "test" with your correct information
sed -i "s/your_aws_access_key_id/test/g" awscip-chart/values.yaml
sed -i "s/your_aws_secret_access_key/test/g" awscip-chart/values.yaml
sed -i "s/your_aws_region/test/g" awscip-chart/values.yaml
sed -i "s/your_aws_zone_id/test/g" awscip-chart/values.yaml

Change in awscip-chart/values.yaml :

cipDomainsList:
  domainsList: |-
    first.exemple.com
    second.exemple.com
    another.exemple.com

Then :

helm install awscip ./awscip-chart/ --namespace awscip --create-namespace -f ./awscip-chart/values.yaml

Exemple of logs :

[14-04-2023-12-54]: -----------first.exemple.com-----------
[14-04-2023-12-54]: New IP 192.168.1.10 is valid
[14-04-2023-12-54]: Old IP 192.168.1.20 is valid
[14-04-2023-12-54]: first.exemple.com is up to date
[14-04-2023-12-54]: -----------second.exemple.com-----------
[14-04-2023-12-54]: New IP 192.168.1.10 is valid
[14-04-2023-12-54]: Old IP 192.168.1.20 is valid
[14-04-2023-12-54]: second.exemple.com is up to date
[14-04-2023-12-54]: -----------anoter.exemple.com-----------
[14-04-2023-12-54]: New IP 192.168.1.10 is valid
[14-04-2023-12-54]: Old IP 192.168.1.20 is valid
[14-04-2023-12-54]: anoter.exemple.com : change  to 192.168.1.20
{
    "ChangeInfo": {
        "Id": "/change/RANDOM_AWS_ID",
        "Status": "PENDING",
        "SubmittedAt": "2023-04-14T12:54:51.626Z",
        "Comment": "Auto updating @ Fri Apr 14 12:54:50 UTC 2023"
    }
}

Versions

name version
alpine 3.18.0
python 3.11
pip 23.1
awscli 1.27
curl 8.0
bind 9.18

TODO

About

Add or modify dns records on AWS Route53 for your homelab.

Resources

Stars

Watchers

Forks

Packages

No packages published