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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南