diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-20 19:10:44 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-20 19:10:44 +0000 |
| commit | 21e5b8fdd204f9d1ca8549fa512fe825760e9366 (patch) | |
| tree | a4110093759b2508dd76c366e383b6f333960de6 /gdpr_obfuscator/read.py | |
| parent | 7be30ad0696ac3678b0444ae15636a357225bf59 (diff) | |
| download | gdpr-obfuscator-21e5b8fdd204f9d1ca8549fa512fe825760e9366.tar.gz gdpr-obfuscator-21e5b8fdd204f9d1ca8549fa512fe825760e9366.zip | |
remove code to change AWS endpoint to use localstack
Diffstat (limited to 'gdpr_obfuscator/read.py')
| -rw-r--r-- | gdpr_obfuscator/read.py | 15 |
1 files changed, 1 insertions, 14 deletions
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) |
