Grouped EB Environments, env.yaml, and .ebextensions

0

Recently, we've decided to pull our workers out of our servers and have them run in their own EB environment. Since both server and worker environments require the same code base, we established them as a "Group" and deploy to them using the eb deploy --modules component-a component-b command.
Deployment is successful; however, there seems to be a clash between the env.yaml file required for grouping EB environments and the .ebextensions folder. For example, during deployment the following error is thrown:

WARN: Error processing file (Skipping): 'env.yaml' - Contains invalid key: 'SolutionStack'. For information about valid keys, see http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html

And upon further inspection, the .ebextension folder (both nested in their respective modules) doesn't execute uniquely per environment. Both environments operate as if they shared the same .ebextensions folder. For reference here's our folder setup:

~/project-name
|-- component-a
|-- .elasticbeanstalk |_______-- config.yml
|
-- .ebextensions |_______-- unique config files for component-a...
|___-- env.yaml -- component-b
___-- .elasticbeanstalk _______-- config.yml
___-- .ebextensions _______-- unique config files for component-b...
___`-- env.yaml

Removing .ebextensions doesn't change the outcome as expected... I'm not sure if I've set up my configuration files correctly? I'm hoping these forums can shed some light on this issue.

Edited by: dpfeifer on Jun 19, 2020 4:14 PM

preguntada hace 4 años488 visualizaciones
1 Respuesta
0

Although it still seems like there is conflict between .ebextensions and the env.yaml file, I was able to successfully deploy separate .ebextensions folders to their respective environments. I did not need to change my folder structure.

By terminating the instance and allowing my Auto Scaling Group (ASG) to spin up a new instance, I was able to remove whatever bad cache was being used to build the original EC2 instance. Now, my separate environments update in relation to the config files from their respective .ebextensions folder.

respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas