Different .ebextensions depending on environment

北城余情 提交于 2020-02-02 02:45:12

问题


I have 2 separate environments to manage my application, a primary env, webserver with a load balancer, and a secondary env, a single small tier worker to run crons.

My .ebextensions contains a lot of Instance and load balancer configurations, example:

01amazon.config

Resources:
  # LB SG
  AWSEBLoadBalancerSecurityGroup:
    Type: "AWS::EC2::SecurityGroup"
    Properties:
....

Is there any way to ignore this single file when i deploy to my worker instance via eb deploy worker-env

If the file is not ignored, it causes an error, due to the worker not having a load balancer.

来源:https://stackoverflow.com/questions/42821299/different-ebextensions-depending-on-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!