Name: aws-tools
Owner: CCP Games
Description: Collection of tools for automating AWS related tasks
Created: 2017-09-29 10:40:18.0
Updated: 2018-05-08 16:01:50.0
Pushed: 2018-05-08 16:01:49.0
Homepage: null
Size: 12
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Collection of tools for automating AWS related tasks
There are scripts to:
Example:
on3 create-bot-machines.py --count 5 --wait
on3 list-bot-machines.py
on3 run.py --upload some-script.tgz "hostname;python3 do-something.sh"
on3 terminate-bot-machines.py
on3 list-machines.py
Creates a number of machines, based off a given AMI. The machines are given a Bot tag, and a Name tag with an index appended to the base tag.
The id of an AMI to use when launching the machines. The default is ami-785db401, a standard Ubuntu 16.04 server.
The name of a key pair to use when launching the machines. The name must be the name of an existing key, and you must have access to the corresponding .pem file.
This argument is required.
The size, or instance type to launch. The default is t2.micro.
The name of the security group to apply to the instances. This argument is required.
The number of instances to launch. The default is 1.
The base tag for the machines. Each instance is given a tag with the key Bot the given name as the value, as well as a Name tag of the form name-ix (name-1, name-2, …). The default name is run-bot.
Wait until all machines are in the running state.
Lists all the machines with the given tag, along with their state.
The base tag given when the machines were created (see create-machines). The default is run-bot.
Terminates all machines with the given tag. The machines found with the appropriate tag are listed out for you to confirm before they are terminated.
The base tag given when the machines were created (see create-machines). The default is run-bot.
Runs a given command on each machine with the appropriate tag. You can optionally upload a file to the machine before the command is run - if that file is a .tgz file it is automatically unpacked.
Note that you should wait until all the machines are in a running state before issuing this command. You can verify that with list-machines.
The key file specified when the machines were created must be available in the working directory.
File to upload to each machine before running the command. If it is a .tgz file it is automatically unpacked.
The base tag given when the machines were created (see create-machines). The default is run-bot.
The command to run (a positional argument, no dashes). Enclose in quotes if there are spaces in the command.
Lists all machines on your account, grouped by state.
Lists all CloudFormation stacks on your account.
Shows the status of the given stack and its resources.
The name of the stack.
Gets the private ip address of a named machine.