How to skip an EBExtension config file

0

I'm using CDK to manage my resources and environment, currently i have 2 elastic beanstalk environments that is being created when i run

CDK deploy command

One of the environment is load balanced and the other is single instance. I have multiple config files one of them for creating cloud watch alarms for scaling the load balanced environment. The problem is when deploying the config file is executed on both environments and i get an error on the single instance environment because the config file have parameters that are designed for the load balanced environment like "EvaluationPeriod"

So my question is how to skip this config file on the single instance environment.

note: I have an environment variable that i can use to know which environment is this one.

asked 2 years ago77 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions