Skip to main content

No project description provided

Project description

CloudyDaze

bunch of usefull scripts for managing your cloud

please note that these use the most excellent credstash library for python, you will need to setup your boto configuration for AWS for this to work.

credstash setup


mySG.py

Tool to add your current IP address to the security group permissions.

Please add the following patameter to your ~/.aws/config file

mysg=sg_...

help

$ ./mySG.py --help
usage: mySG.py [-h] [-p PROFILE] [-u URL] [-v] {enable,granted,myip,replace,revoke,args} ...

positional arguments:
  {enable,granted,myip,replace,revoke,args}
                        operations
    enable
    granted
    myip
    replace
    revoke
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -p PROFILE, --profile PROFILE
                        default=default
  -u URL, --url URL     default=https://api.ipify.org?format=json
  -v, --verbose         verbose logging

myEC2.py

simple tool to start or stop ec2 instances

help

$ ./myEC2.py --help
usage: myEC2.py [-h] [-p PROFILE] [-v] {list,start,stop,args} ...

positional arguments:
  {list,start,stop,args}
                        operations
    list
    start
    stop
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -p PROFILE, --profile PROFILE
                        default=default
  -v, --verbose         verbose logging

mySSH.py

MySSH class for executing commands using SSH in Python

help

$ ./mySSH.py -h
usage: mySSH.py [-h] [-H HOSTNAME] [-k KEY] [-p PASSWORD] [-P PORT] [-t TIMEOUT]
                [-u USERNAME] [-v]
                {execute,args} ...

positional arguments:
  {execute,args}        operations
    execute
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname HOSTNAME
  -k KEY, --key KEY     ssh key path
  -p PASSWORD, --password PASSWORD
  -P PORT, --port PORT  default=22, type=int
  -t TIMEOUT, --timeout TIMEOUT
                        connect timeout seconds, default=5, type=int
  -u USERNAME, --username USERNAME
  -v, --verbose         verbose logging


mySCP.py

MySCP class for moving files using SSH in Python

help

$ ./mySCP.py -h
usage: mySCP.py [-h] [-H HOSTNAME] [-k KEY] [-p PASSWORD] [-P PORT] [-t TIMEOUT]
                [-u USERNAME] [-v]
                {get,put,args} ...

positional arguments:
  {get,put,args}        operations
    get
    put
    args                print the values for the args

optional arguments:
  -h, --help            show this help message and exit
  -H HOSTNAME, --hostname HOSTNAME
  -k KEY, --key KEY     ssh key path
  -p PASSWORD, --password PASSWORD
  -P PORT, --port PORT  default=22, type=int
  -t TIMEOUT, --timeout TIMEOUT
                        connect timeout seconds, default=5, type=int
  -u USERNAME, --username USERNAME
  -v, --verbose         verbose logging

acknowledgements

code graciously borrowed from StaSh for Pythonista

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CloudyDaze-1.5.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file CloudyDaze-1.5.tar.gz.

File metadata

  • Download URL: CloudyDaze-1.5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.16

File hashes

Hashes for CloudyDaze-1.5.tar.gz
Algorithm Hash digest
SHA256 5fd26929825c0313caa9ba757c357111a708889cfa9ef44e5abd2ad69da4ddb5
MD5 5672a971bf45390e048aeacc108e64c6
BLAKE2b-256 4335fd5f475065f8933e8a6f417fc68c516d1cfe6e245b904950e46ec9ab3701

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page