diff --git a/Dockerfile b/Dockerfile index 4f4b8de..17d49fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,6 @@ RUN apt-get install -y bash COPY . /opt/cloudiscovery RUN pip install -r requirements.txt +RUN ./setup.py build && ./setup.py install && ./setup.py bdist -RUN bash \ No newline at end of file +CMD bash \ No newline at end of file diff --git a/cloudiscovery/provider/aws/common_aws.py b/cloudiscovery/provider/aws/common_aws.py index 661a142..b3e8061 100644 --- a/cloudiscovery/provider/aws/common_aws.py +++ b/cloudiscovery/provider/aws/common_aws.py @@ -93,7 +93,7 @@ def paths(self): ), "HEADER", ) - self.client = self.session.client("ssm", region_name="us-east-1") + self.client = self.session.client("ssm", region_name=self.region) paths = self.parameters() for path in paths: paths_found.append(path["Value"]) diff --git a/requirements.txt b/requirements.txt index a97354b..aef6edd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ jinja2<3.0 diagrams>=0.14 cachetools diskcache -pytz \ No newline at end of file +pytz +markupsafe==2.0.1 \ No newline at end of file