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

질문됨 4년 전488회 조회
1개 답변
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.

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠