aws-samples / aws-samples/eb-php-wordpress

EFS should be independent of lifecycle of elasticbean environment

オープン
#15 コメント 5 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
166
フォーク
92
PR マージ指標
30日以内にマージされた PR はありません

説明

The [tutorial for Deploying a High-Availability WordPress Website](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-hawordpress-tutorial.html) talks about creating an RDS instance external to the elasticbean. The tutorial uses an EFS that is created using [efs-mount in .ebextensions](https://github.com/awslabs/eb-php-wordpress/blob/8e5a386b56923443fd35ad9824db87f99faace64/.ebextensions/efs-create.config#L1) and is symlinked to ``wp-content/uploads``. The ``uploads`` directory in wordpress is used to store the media files.

Since this EFS volume is created through elasticbean, what this means is that if the EB is terminated, the files stored on ``uploads`` are deleted as well. The intent is that the ``uploads`` directory has non-ephemeral files that need to shared across all the instances. Deleting the files when the instance terminates is counter to this intent.

To be consistent, I think both the EFS and RDS should be created outside the elasticbean environment.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

AWS High-Availability WordPress tutorial と .ebextensions/efs-create.config から始め、次に EFS ボリュームがどのように作成され、wp-content/uploads にリンクされるかを追跡します。そのライフサイクルを、外部で作成された RDS インスタンスのライフサイクルと比較します。uploads EFS が Elastic Beanstalk 環境の外部にあり、環境が終了しても存続すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, php, wordpress
領域
cloud, infrastructure
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。