Metadata-Version: 2.1
Name: cloudswitch
Version: 2020.5.26
Summary: cloud power switch
Home-page: https://github.com/jordiprats/python-cloudswitch
Author: Jordi Prats
Author-email: jprats@systemadmin.es
License: Apache License 2.0
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: boto3

# python-cloudswitch

cloud instance manager

```
Usage: cloudswitch
   [-U|--start]
   [-D|--stop]
   [-L|--list]
   [-r|--region] <region>
   [-t|--tag] <name:value>
   [-v|--verbose]
``` 

## start all stopped instances

```
python cloudswitch.py -U
```

## stop all running instances

```
python cloudswitch.py -D
```

## start by tag

```
python cloudswitch.py -U -t tagname:tagvalue
```

Multiple tags:

```
python cloudswitch.py -U -t postgres:master -t postgres:replica
```

## start by region

```
python cloudswitch.py -U -r eu-north-1
```

Multiple regions are also accepted:

```
python cloudswitch.py -U -r eu-north-1 -r eu-south-1 -r eu-picamoixons-3
```

## list instances on a particular region

```
python cloudswitch.py -L -r eu-west-1
```

## list instances using a particular tag

```
python cloudswitch.py -L -r postgres:master
```

