Migration from old cloud9 to AWS cloud9

  • 2019/7/1 以降Old Cloud9上でWorkspacesにアクセス不可になったので

 

https://c9.io/YOUR_OLD_CLOUD9_ACCAOUNT_NAME

 

 

  • AWSアカウントの作成

 

AWS Cloud9

https://ap-northeast-1.console.aws.amazon.com/cloud9/home/product#

    EC2インスタンスを使うので手動でインスタンスを停止したければEC2ダッシュボードに移動して停止

https://ap-northeast-1.console.aws.amazon.com/ec2/v2/home?region=ap-northeast-1#Home:

f:id:monteecristoo:20190703082734p:plain

 

  • AWS Cloud9 Environment の作成

EC2インスタンスのプラットフォームのセレクトでAmazon linux とUbuntuのどちらがいいかわからなかったがOld Cloud9がUbuntuだったのでとりあえずUbuntuにした。

Amazon linux https://aws.amazon.com/marketplace/pp/B00635Y2IW/ref=mkt_ste_ec2_lw_os_win

Ubuntu https://aws.amazon.com/marketplace/pp/B07CQ33QKV?qid=1562110212401&sr=0-1&ref_=srh_res_product_title

 

 

  • Old cloud9 migration docs

https://docs.c9.io/docs/migration-options

 

f:id:monteecristoo:20190703081730p:plain

AWS Cloud9 Environment のリージョンを指定

リージョン一覧

https://docs.aws.amazon.com/ja_jp/general/latest/gr/rande.html

f:id:monteecristoo:20190703081826p:plain

migration用のシェルスクリプトが発行されるのでこれをAWS Cloud9 の作成したEnvironment(Cloud9で言うWorkspace)のConsoleでコピペして実行

f:id:monteecristoo:20190703082008p:plain

Cloud9で個別にPHPをバージョンアップしたり、mongoDBや他のDBを入れたのまではmigrateされないので別個AWSのDocを見てインストール

 https://docs.aws.amazon.com/ja_jp/cloud9/latest/user-guide/sample-php.html