LoginSignup
0
1

More than 3 years have passed since last update.

AWSのsecurity groupがどのリソースと紐づけられているかを見つける方法。

Posted at

背景

気づいたら増えまくってるsecurity group。
整理する際に、どれがどのリソースに使われてるのかを調べる方法。

参考 : https://aws.amazon.com/jp/premiumsupport/knowledge-center/ec2-find-security-group-resources/

正確な調べ方

  1. 'セキュリティグループ'から該当sgのidを調べる。
  2. 'ネットワークインターフェース'を開き、該当idを貼り付ける。
  3. sgが紐づけられたeni一覧が出るので、そこからどのリソースについてるかを調べる。

雑な調べ方

  1. 'セキュリティグループ'から該当sgをチェックし削除を選択。
  2. 何かと紐づけられてる場合は、「消せません」とアラートが出てくるので、リンクに飛ぶ。
  3. 紐づけられてるものがない場合は、「消してもいいですが?」とアラートが出てくるので、消しても良さそうなら消す。
0
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
0
1