Coverage for src/tagmania/__init__.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-08-02 01:51 +0000

1"""Tagmania - AWS EC2 Cluster Management Tools. 

2 

3Tagmania provides command-line tools for managing AWS EC2 clusters through tag-based operations. 

4It offers utilities for starting, stopping, and creating snapshots of clusters identified by their "Cluster" tag. 

5 

6Key Features: 

7 - Start and stop EC2 instances in clusters 

8 - Create, restore, and manage EBS snapshots 

9 - Targeted restore operations using regex patterns 

10 - Tag-based resource identification and filtering 

11 - Safety features with confirmation prompts 

12 

13Main CLI Commands: 

14 - cluster-start: Start all instances in a cluster 

15 - cluster-stop: Stop all instances in a cluster 

16 - cluster-snap: Create, restore, delete, and list snapshots 

17 

18Example: 

19 Basic usage examples: 

20 

21 ```bash 

22 # Start a cluster 

23 cluster-start production-web 

24 

25 # Create a snapshot backup 

26 cluster-snap --backup --name daily-backup production-web 

27 

28 # Restore from snapshot 

29 cluster-snap --restore --name daily-backup production-web 

30 

31 # Targeted restore (only web servers) 

32 cluster-snap --restore --target ".*-web-.*" production-web 

33 ``` 

34 

35Note: 

36 All operations require EC2 instances to have a "Cluster" tag for identification. 

37 AWS CLI profile configuration is required for authentication. 

38""" 

39 

40__version__ = "2.7.1" 

41__author__ = "Samuel Vange" 

42__email__ = "7166607+svange@users.noreply.github.com"