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.

質問済み 2年前80ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ