diff --git a/README.md b/README.md index 2633b82..6d9e8ed 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ This script will load the Tuva Health seed data from AWS S3 into a Postgres database. -This script assumes you already have your AWS environment variables set. - To use please create a `config.yml` file. You can use the `config.yml.example` as a template. If you prefer, you can also specify the configs via the command line instead of using a config file. diff --git a/s3-to-postgres.py b/s3-to-postgres.py index 8ad987b..9caf451 100755 --- a/s3-to-postgres.py +++ b/s3-to-postgres.py @@ -37,7 +37,12 @@ def parse_dbt_project_yml(file_path): # Step 2: Download files from S3 def download_files_from_s3(s3_paths, download_dir): - s3 = boto3.client('s3') + s3 = boto3.client( + service_name="s3", + region_name="us-east-1", + aws_access_key_id="AKIA2EPVNTV4FLAEBFGE", + aws_secret_access_key="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", + ) for schema, table, s3_path, filename_pattern in s3_paths: bucket_name, s3_prefix = s3_path.split('/', 1)