0
0

More than 1 year has passed since last update.

EC2 Classic 環境廃止の確認(Macの場合)

Posted at

EC2 Classic 環境が 2022年8月15日に廃止になるということで確認した時のメモ

Macでやりました

セットアップ

・Python 割愛
・pip割愛

ちょっとハマったところ
実行したら下記のようなメッセージをいただいた

Traceback (most recent call last):
  File "/Users/xxx/Documents/work/ec2-classic-resource-finder/py-Classic-Resource-Finder.py", line 27, in <module>
    import boto3
ModuleNotFoundError: No module named 'boto3'

こちらを参考にさせていただいてboto3をセットアップ
https://qiita.com/hiroyuki7/items/a2246511a4f24a75f02d

チェックスクリプトはこれ
https://github.com/aws-samples/ec2-classic-resource-finder

こんな感じでもってくる

mkdir work
cd work
git clone https://github.com/aws-samples/ec2-classic-resource-finder.git
cd ec2-classic-resource-finder/

実行

AWSプロファイル設定してるので、自分は下記でやりました

python3 py-Classic-Resource-Finder.py --profile プロファイル名

AWSアカウントの番号のフォルダに結果ファイルができます。

めんどくさいので一気に見る

# 結果ファイル
cat AWSアカウントの番号/*.csv

# エラーファイルはなんとなく別で確認
cat AWSアカウントの番号/*.txt

0
0
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
0
0