Skip to content

coolbeevip/aws-lightsail-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Lightsail instance public static IP inspection

Introduction

  • 🚀 Initialize an Amazon Lightsail instance.
  • 😎 Procure a static IP and link it with the corresponding instance.
  • 🎯 Register a distinct domain name and delegate subdomains to direct traffic towards your Lightsail assets.
  • 🎉 You are now able to access your assets via the registered domain name.

🔍 This application consistently conducts active surveillance on the specified port of the instance. 🚫If access is obstructed, it will renew the static IP of the instance ⚡ and update the domain name record 🔄.

Quick Start

docker run -d --rm --name guard \
-e AWS_ACCESS_KEY_ID=<your aws access key id> \
-e AWS_SECRET_ACCESS_KEY=<your aws secret access key> \
-e REGION_NAME=<region of instance> \
-e LIGHTSAIL_INSTANCE_NAME=<instance name> \
-e LIGHTSAIL_INSTANCE_PORT=<port for inspection> \
-e DOMAIN_ENTRY_NAME=<your domain> \
coolbeevip/aws-lightsail-guard

Dev Environment

Create .env file in the root directory of the project, and add the following content:

AWS_ACCESS_KEY_ID=<your aws access key id>
AWS_SECRET_ACCESS_KEY=<your aws secret access key>
REGION_NAME=<region of instance>
LIGHTSAIL_INSTANCE_NAME=<instance name>
LIGHTSAIL_INSTANCE_PORT=<port for inspection>
DOMAIN_ENTRY_NAME=<your domain>

Run the following command to start the application:

python main.py

Reference

About

Amazon Lightsail instance public static IP inspection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published