GithubHelp home page GithubHelp logo

aws-tools's Introduction

AWS Tools

このリポジトリには、AWS環境の管理を簡素化するための便利なスクリプトが格納されています。各スクリプトは特定のタスクを自動化し、AWSリソースの管理を効率化します。

目次

スクリプト一覧

  • attach_tag_to_ebs.sh: EBSボリュームにタグを付与します。
  • delete-s3-bucket.py: バケット一覧を表示し、選択したバケットを削除します。
  • delete-vpcs.py: 指定したVPC内のすべてのリソースを削除し、VPC自体を削除します。
  • install-and-update-cli-v2.sh: AWS CLI v2のインストールと更新を行います。

前提条件

  • Python 3.6以上
  • pip (Pythonパッケージ管理システム)
  • AWS CLI (適切に設定された認証情報)

セットアップ

  1. リポジトリをクローンします。

    git clone https://github.com/ryoupr/aws-tools.git
    cd aws-tools
  2. 必要なPythonパッケージをインストールします。

    pip install boto3
  3. AWS CLIを設定します。

    aws configure

スクリプトの使用方法

attach_tag_to_ebs.sh

EBSボリュームにタグを付与します。

sh attach_tag_to_ebs.sh <volume-id> <tag-key> <tag-value>

例:

sh attach_tag_to_ebs.sh vol-0a1b2c3d4e5f6g7h Environment Production

delete-s3-bucket.py

バケット一覧を表示し、選択したバケットを削除します。

python delete-s3-bucket.py

実行後に表示されるS3バケット一覧から、削除したいバケットの番号をカンマ区切りで入力してください。例えば、1,3,5 のように入力すると、選択されたバケットとその中のすべてのコンテンツが削除されます。

delete-vpcs.py

指定したVPC内のすべてのリソースを削除し、VPC自体を削除します。

python delete-vpcs.py <vpc-id>

例:

python delete-vpcs.py vpc-0a1b2c3d4e5f6g7h

install-and-update-cli-v2.sh

AWS CLI v2をインストールまたは更新します。

sh install-and-update-cli-v2.sh

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細については、LICENSEファイルを参照してください。

aws-tools's People

Contributors

ryoupr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.