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

feita há 4 anos488 visualizações
1 Resposta
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 há 4 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas