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

EFS should be independent of lifecycle of elasticbean environment

Ouverte
#15 5 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
PHP
Étoiles
166
Forks
92
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par le AWS High-Availability WordPress tutorial et .ebextensions/efs-create.config, puis suivez la manière dont le volume EFS est créé et lié à wp-content/uploads. Comparez ce cycle de vie à celui de l’instance RDS créée en externe. Le travail est terminé lorsque l’EFS de uploads est externe à l’environnement Elastic Beanstalk et persiste lorsque l’environnement est supprimé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
aws, php, wordpress
Domaine
cloud, infrastructure
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.