From 21e5b8fdd204f9d1ca8549fa512fe825760e9366 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 20 Feb 2025 19:10:44 +0000 Subject: remove code to change AWS endpoint to use localstack --- gdpr_obfuscator/read.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'gdpr_obfuscator/read.py') diff --git a/gdpr_obfuscator/read.py b/gdpr_obfuscator/read.py index c6f708c..b1ffc2f 100644 --- a/gdpr_obfuscator/read.py +++ b/gdpr_obfuscator/read.py @@ -43,20 +43,7 @@ class DataReader: bucket, key = utils.get_s3_path(path) self.logger.debug(f"Reading S3 CSV from: {bucket}/{key}") - if os.getenv("LOCALSTACK", "FALSE").upper() == "TRUE": - localstack_endpoint = "http://localhost.localstack.cloud:4566" - self.logger.debug( - "Using LocalStack endpoint for S3 - ensure LocalStack is running" - ) - client = boto3.client( - "s3", - endpoint_url=localstack_endpoint, - aws_access_key_id="dummy", - aws_secret_access_key="dummy", - ) - self.logger.debug(f"endpoint_url: {localstack_endpoint}") - else: - client = boto3.client("s3") + client = boto3.client("s3") try: response = client.get_object(Bucket=bucket, Key=key) -- cgit v1.2.3