diff --git a/src/damavand/core.py b/src/damavand/core.py index 2649e90..bc5cf21 100644 --- a/src/damavand/core.py +++ b/src/damavand/core.py @@ -21,6 +21,9 @@ def __init__( provider: CloudProvider, resources: list[BaseResource] = [], ) -> None: + if isinstance(provider, AwsProvider) and not provider.region: + raise ValueError("AWS provider must have a region set.") + self.app_name = app_name self.provider = provider self._resources = resources