1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JavaScriptを勉強しながら独自のaws-cliツールを作ってみた

Last updated at Posted at 2018-10-03

背景

  • AWS LambdaやGCPのCloud Functionでjavascriptにふれる機会が増えてきた
  • javascriptを書いたことがほとんどなかったので、学習しながらaws-cliを作ってみようというのがきっかけ

開発環境

以下に作成したところまでのコマンドです。

コマンドオプション

  • EC2
■ インスタンス一覧
 > $ node main ec2 --list

■ インスタンス起動
 > $ node main ec2 start --instanceid <instance-id-1>,<instance-id-2>,...<instance-id-N>
 
■ インスタンス停止
 > $ node main ec2 stop --instanceid <instance-id-1>,<instance-id-2>,...<instance-id-N>
 
■ インスタンス削除
 > $ node main ec2 delete --instanceid <instance-id-1>,<instance-id-2>,...<instance-id-N> 
  • AMI
■ AMI一覧取得
 > $ node main ami --list

■ AMI作成(登録) 
 > $ node main ami create --imagename <imageName> --instanceid <instanaceId>

■ AMI削除(解除)
 > $ node main ami delete --instanceid <instanaceId>
  • S3
■ S3バケット一覧取得
 > $ node main s3 --list
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?