A small Python script that logs your local and public IP addresses to an AWS DynamoDB table at boot.
Create a table named bootip (or any name you prefer) with:
- Partition key:
hostname(String) - Sort key:
timestamp(String) - Enable TTL using the
ttlattribute (Number, epoch seconds)
If you use a different table name, update the TABLE_NAME value in bootIp.py:
TABLE_NAME = "your_table_name"python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt