Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Oct 16, 2024
1 parent 60e412d commit f94f06a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/docker/local_stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- SERVICES=s3,lambda, iam,cloudwatch,dynamodb,logs,sts
- AWS_ACCESS_KEY_ID=localstack
- AWS_SECRET_ACCESS_KEY=localstack
- DNS_SERVER=8.8.8.8
volumes:
- localstack_data:/var/lib/localstack
- /var/run/docker.sock:/var/run/docker.sock # Required for Lambda Docker execution
Expand Down
4 changes: 2 additions & 2 deletions osbot_local_stack/local_stack/Local_Stack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from osbot_aws.aws.sts.STS import STS
from osbot_aws.aws.s3.S3 import S3
from osbot_aws.AWS_Config import ENV_NAME__AWS_ENDPOINT_URL
from osbot_local_stack.local_stack.Local_Stack__Internal import Local_Stack__Internal, DEFAULT__LOCAL_STACK__TARGET_SERVER
from osbot_utils.utils.Env import get_env, set_env, del_env
Expand Down Expand Up @@ -34,7 +34,7 @@ def check__local_stack__health(self):
return self.local_stack__internal.get__internal_health() != {}

def check__local_stack__boto3_setup(self):
return STS().client().meta.endpoint_url == DEFAULT__LOCAL_STACK__TARGET_SERVER
return S3().client().meta.endpoint_url == DEFAULT__LOCAL_STACK__TARGET_SERVER # use S3 since this is the one that is currently working correctly

def is_local_stack_configured_and_available(self):
return self.check__local_stack__health() and self.check__local_stack__boto3_setup()
Expand Down

0 comments on commit f94f06a

Please sign in to comment.