#author("2022-05-02T07:36:27+00:00","default:admin","admin") #author("2022-05-02T07:41:45+00:00","default:admin","admin") [[AWS Elastic Beanstalk:https://aws.amazon.com/jp/elasticbeanstalk/]] -[[AWS Elastic Beanstalk とは?:https://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/dg/Welcome.html]] -[[Elastic Beanstalkの概要と使い方:https://www.wakuwakubank.com/posts/267-aws-elastic-beanstalk/]] -[[[初心者向け]AWS Elastic Beanstalk:https://qiita.com/yShig/items/2120bba6649321623cad]] -[[AWS Elastic Beanstalk イメージがつかないのでやってみた:https://qiita.com/leomaro7/items/cb87dcb144b2038a3b40]] -[[Laravel + AWS Elastic Beanstalk環境をGithub Actionsでデプロイする:https://zenn.dev/tomipetit/articles/2e3dba6bef2734]] *デプロイ [#k09b4cbe] -[[AWS Elastic Beanstalkで使えるデプロイポリシーを理解する:https://dev.classmethod.jp/articles/elastic-beanstalk-deploy-policy/]] -[[AWS Elastic BeanstalkでBlue-Green Deployment:https://tech-lab.sios.jp/archives/17471]] *EB CLI [#k79acdf2] -[[Elastic Beanstalk コマンドラインインターフェイス (EB CLI) の使用:https://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/dg/eb-cli3.html]] **SSH接続 [#j304ccb7] -[[AWS CLIのプロファイルを切り替えてebコマンドで既存ElasticBeanstalk Applicationにアクセスする:https://dev.classmethod.jp/articles/aws-eb-multi-profile/]] -[[#AWS の ElasticBeanStalk でサーバーに SSH 接続するには aws cli の eb ssh コマンドで OK:https://qiita.com/YumaInaura/items/8b27261aaab3f30111cf]] -AWS CLI と EB CLI をインストール $ brew install awscli ebcli -IAMユーザ作成 -Access KeyとSecret Access Keyを取得 -AWS CLIのプロファイル設定 $ aws configure --profile private AWS Access Key ID [None]: abcd AWS Secret Access Key [None]: efgh Default region name [None]: ap-northeast-1 Default output format [None]: json -EB CLIの初期設定 $ eb init --profile private --既存ElasticBeanstalk Applicationが選択肢に出てくるので、適当に選択して設定 *トラブルシューティング [#d3004224] **ログが消える [#qc2f3361] -[[Elastic Beanstalkスケールイン時にlogが消えちゃう問題:https://www.hands-lab.com/tech/t1180/]] --[[ElasticBeanstalkのログ保存方法:https://iga-ninja.hatenablog.com/entry/2014/12/23/172104]] -[[ElasticBeanstalkのアプリケーションログをCloudWatchで捕捉したい:https://qiita.com/hardreggaecafe/items/08f50db8ac35563a9a3a]]