amazon-lightsail-containers-test icon indicating copy to clipboard operation
amazon-lightsail-containers-test copied to clipboard

「研究プロジェクトのWebアプリを気軽にデプロイする方法」 Chapter 02 Amazon Lightsail Containers のサンプルコードを含むリポジトリです。

trafficstars

amazon-lightsail-containers-test

研究プロジェクトのWebアプリを気軽にデプロイする方法」 Chapter 02 Amazon Lightsail Containers のサンプルコードを含むリポジトリです。

Directory structure

  • src/ TypeScript で書かれたWebサーバ
  • dist/ npm run build でトランスパイルされたWebサーバのコード置き場
  • .github/workflows/ Amazon Lightsail Containers へ自動デプロイを行う GitHub Actions の設定

see also: Azure Web App for Containersの場合

How to use

このリポジトリを fork して動作させる場合、以下の設定が必要です。

  • .github/workflows/deploy.yml > env.AWS_REGION, env.AWS_LIGHTSAIL_SERVICE_NAME を自分の環境に合わせて書き換える(cf. コンテナサービスの作り方
  • GitHub secret AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY をセットする(cf. GitHub secret の設定
  • デプロイ用テンプレート container.template.json の内容確認(cf. デプロイ用テンプレートの作成

Demo site

Amazon Lightsail Containers の micro プラン(最初の 3 か月: 無料; 以降 $10/月)で動いています。2021年4月までにシャットダウン予定です。

  • https://amazon-lightsail-containers-test.3vi9f716815e6.ap-northeast-1.cs.amazonlightsail.com/
  • https://amazon-lightsail-containers-test.3vi9f716815e6.ap-northeast-1.cs.amazonlightsail.com/hoge

https://github.com/arch-inc/amazon-lightsail-containers-test