Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 555 Bytes

File metadata and controls

25 lines (17 loc) · 555 Bytes

bootip

A small Python script that logs your local and public IP addresses to an AWS DynamoDB table at boot.

DynamoDB setup

Create a table named bootip (or any name you prefer) with:

  • Partition key: hostname (String)
  • Sort key: timestamp (String)
  • Enable TTL using the ttl attribute (Number, epoch seconds)

If you use a different table name, update the TABLE_NAME value in bootIp.py:

TABLE_NAME = "your_table_name"

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt