7
1

More than 1 year has passed since last update.

AWS Cloud9の環境作成が一生終わらない件について

Last updated at Posted at 2023-07-18

事象

自分で作成したpublic subnet上にAWS Cloud9を構築したときに下記エラーが出て作成が終わらない。

作成中の画面に表示されるエラー
This is taking longer than expected. The delay may be caused by high CPU usage in your environment, your T2 or T3 instance might be running out of burstable CPU capacity credits, or there are VPC configuration issues. Please check the VPC settings or the troubleshooting documentation for help with these issues.
予想以上に時間がかかっています。遅延の原因は、環境内のCPU使用率が高いか、T2またはT3インスタンスがバースト可能なCPU容量クレジットを使い果たしているか、VPC設定に問題がある可能性があります。これらの問題については、VPC設定またはトラブルシューティングドキュメントを確認してください。
image.png

最後に出てくるエラーメッセージボックス

Environment Error

Unable to access your environment

The environment creation failed with the error: Cloud9 cloud not connect to the EC2 instance. Please check your VPC configuration and network settings to troubleshoot the issue...

環境エラー

環境にアクセスできない

環境作成に失敗しました: Cloud9はEC2インスタンスに接続できませんでした。この問題を解決するには、VPCの構成とネットワーク設定を確認してください。
image.png

試したこと

  • VPCにIGWをアタッチして、IGWにルーティング済みのルートテーブルをサブネットに関連付け済みなのでpublic subnetなのは間違いなし。
  • インスタンスタイプをt2.microからt3.smallで作成してみてもダメ。
  • AWSアカウント作成時にデフォルトで作成されているpublic subnetを選択して作成してみると作成できる。

原因

public subnetの編集画面を開き「パブリックIPv4アドレスの自動割り当てを有効化」に☑を入れることで解決
image.png

サブネットを作成する画面ではそんな設定選べないのに、後から設定しなおさなきゃいけないなんてそりゃないぜAmazonさん

7
1
2

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