LoginSignup
1
0

More than 3 years have passed since last update.

Cloud9IDE環境に接続できない(Cloud9 could not connect to the EC2 instance)

Posted at

事象

cloud9でIDE環境を作成したのですが、以下のようなエラーで接続できませんでした。

Cloud9 could not connect to the EC2 instance. Please check your VPC configuration and network settings.
Screen Shot 2020-12-09 at 13.03.39.png

対応

別のリージョンに立ててみる

東京リージョンの既存VPCで作成しようとして上記エラーが出ているので、別のリージョンでVPCの設定もCloud9で作ってもらうことで解決しました。

ルーティングを見直す

  • VPCのルーティング
  • ネットワークACL
  • EC2にアタッチされたセキュリティグループ などを見直します。

私の場合はインターネットゲートウェイがblackholeのステータスになっており、すでに削除されているインターネットゲートウェイを利用しようとしていたのが原因のようでした。

Cloud9のVPC設定
https://docs.aws.amazon.com/ja_jp/cloud9/latest/user-guide/vpc-settings.html#vpc-settings-requirements-security-groups-instance-view

EC2を再起動する

突然繋がらなくなった場合、EC2の再起動をするだけで解決する場合もあるようです。

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