diff --git a/core/src/epicli/cli/engine/EpiphanyEngine.py b/core/src/epicli/cli/engine/EpiphanyEngine.py index 160ac4210c..fe2f3e5266 100644 --- a/core/src/epicli/cli/engine/EpiphanyEngine.py +++ b/core/src/epicli/cli/engine/EpiphanyEngine.py @@ -97,7 +97,7 @@ def apply(self): self.process_infrastructure_docs() - if not self.skip_infrastructure: + if not (self.skip_infrastructure or self.is_provider_any(self.cluster_model)): # Generate terraform templates with TerraformTemplateGenerator(self.cluster_model, self.infrastructure_docs) as template_generator: template_generator.run() @@ -131,3 +131,6 @@ def dry_run(self): return [*self.input_docs, *self.configuration_docs] + @staticmethod + def is_provider_any(cluster_model): + return cluster_model["provider"] == "any"