9
4

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.

難しそうに見えて簡単に接続できるので、手順を記載します。

  1. Cloud9が起動しているEC2のVPCを確認
  2. RDSのVPCを確認
  3. 1と2のVPC間のピアリング接続を作成
  4. それぞれのVPCのルーティング設定に、ピアリング接続への設定を追加
  5. RDSのセキュリティグループのインバウンド許可に、Cloud9が起動しているEC2のVPCを追加
  6. Cloud9のコンソール上からmysqlコマンドで接続を試す
  7. 成功!

Cloud9にはmysqlはインストール済なので、mysqlであればネットワーク設定のみで接続が可能です。

9
4
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
9
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?