0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS Systems Managerを超ざっくりイメージする

0
Posted at

仕組み

Session Manager は「外から叩きに行く」のではなく、
EC2 が AWS に“電話をかけっぱなし”にしている状態を利用して操作する仕組み。

普通の SSH(踏み台あり)

利用者 → EC2 に電話をかける

  • EC2 側が「電話を受ける準備」をしている必要がある
  • ポートを開ける必要あり
  • 誰からでも電話がかかってくるリスクあり

Session Manager のイメージ

EC2:AWSに電話をかけっぱなし
利用者:AWSに「このEC2と話したい」
AWS:EC2と繋がっている電話回線に利用者の声を流す

つまり、AWS が中継になっている

何が起きているか(仕組み)

EC2 側

SSM Agent が起動
常にAWS に接続
つながってる状態を維持

利用者

このEC2に接続したい
リクエストを AWS に送る

AWS

IAM で権限チェック
OKなら既存の「EC2→AWS」の通信経路に入力を流す

EC2

受け取って実行
結果を同じ経路で AWS に返す

まとめ

Session Manager はEC2がAWSに電話をかけっぱなしにしていて、その回線を使って会話する仕組み。
だからポートを開けなくていい。
本当にざっくりだけどイメージはついた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?