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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen