https://github.com/pre63/tensorflow-op
https://github.com/pre63/tensorflow-op
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pre63/tensorflow-op
- Owner: pre63
- Created: 2019-06-14T15:24:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T04:34:05.000Z (over 4 years ago)
- Last Synced: 2024-04-14T22:58:28.164Z (about 2 years ago)
- Language: Shell
- Size: 277 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Requirements
Please have the following ready:
- AWS credentials in your ~/.aws directory
- Set your region to be `us-east1` (Not yet tested for other regions)
- An ec2 KeyPair named `tensorflow` that exists in your AWS account and region
- A `tensorflow.pem` located in your ~/creds/tensorflow.pem that has access to the ec2 instance's Key Pair in AWS
- `tf.py` in your `src` folder, containing the python code you want to run on Tensorflow, if you haven't already
## Commands
### Create
- Create will start an EC2 instance using cloudformation, and runs your `tf.py`
- Resources created through this method will output a `stack name` at the very last. Keep this if you want to delete the instance later on
- Arguments: None
- Flags:
- `-d` or `--destroy` [OPTIONAL]: Will destroy the instance one it finishes running your python code
*Example:*
```shell
ops run tensorflow-op create -d
```
### Destroy
- Destroys all resources associated with a given `stack name`
- Arguments:
- StackName [REQUIRED]: The name of the stack you want to delete
- Flags: None
*Example:*
```shell
ops run tensorflow-op delete tensorflow-111111111111-2222-3333-44444444
```