https://github.com/hiroakis/cloud-ope
My AWS Operation tools for work. 自分がよく使うオペレーションをコマンド化したもの。
https://github.com/hiroakis/cloud-ope
Last synced: about 1 year ago
JSON representation
My AWS Operation tools for work. 自分がよく使うオペレーションをコマンド化したもの。
- Host: GitHub
- URL: https://github.com/hiroakis/cloud-ope
- Owner: hiroakis
- Created: 2016-07-28T11:56:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T11:56:46.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T16:39:48.793Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloud-ope
My AWS Operation tools for work. 自分がよく使うオペレーションをコマンド化したもの。
## Installation インストール
```
git clone git@github.com:hiroakis/cloud-ope.git
cd cloud-ope
# For OSX
make
sudo make install
-> binaries move to /usr/local/bin/
# For Linux
export GOOS=linux
make
sudo make install
-> binaries move to /usr/local/bin/
```
## Usage 使い方
### Common options
```
-c The config file path(default: ./config.json)
```
### Configuration file
```
{
"aws_access_key_id": "xxxxxxx",
"aws_secret_access_key": "xxxxxx",
"aws_region": "ap-northeast-1"
}
```
### ec2-list
List EC2 instances.
```
ec2-list
```
### ec2-terminate
Terminate EC2 instances
```
ec2-terminate -i [instanceid] -i [instanceid] -i ...
```
### elb-list
List ELBs
```
elb-list
```
### elb-describe
Show instances which are attached to the ELB.
```
elb-describe -n [The-Name-Of-ELB]
```
### elb-dereg
Detach specified instances to the ELB.
```
elb-dereg -n [The-Name-Of-ELB] -i [instanceid] -i [instanceid] -i ...
```
### elb-reg
Attach specified instances to the ELB.
```
elb-reg -n [The-Name-Of-ELB] -i [instanceid] -i [instanceid] -i ...
```
## License
MIT