Skip to content

Commit

Permalink
Update GeoJSON_list_of_files_in_S3_Bucket.py
Browse files Browse the repository at this point in the history
Added in s3 bucket and region
  • Loading branch information
sean-eagles authored Aug 18, 2023
1 parent 1930995 commit 87a6496
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GeoJSON_list_of_files_in_S3_Bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import json
import boto3

GEOJSON_BUCKET_NAME=GEOJSON_BUCKET_NAME
GEOJSON_BUCKET_NAME='webpresence-geocore-json-to-geojson-dev'

def lambda_handler(event, context):

GEOJSON_BUCKET_NAME=GEOJSON_BUCKET_NAME
GEOJSON_BUCKET_NAME='webpresence-geocore-json-to-geojson-dev'

s3_paginate_options = {'Bucket':GEOJSON_BUCKET_NAME}

Expand Down Expand Up @@ -56,8 +56,8 @@ def s3_filenames_paginated(region, **kwargs):
if __name__ == '__main__':
#main()

region = REGION
kwargs = {'Bucket':GEOJSON_BUCKET_NAME}
region = 'ca-central-1'
kwargs = {'Bucket':'webpresence-geocore-json-to-geojson-dev'}

s3_bucket_filenames = s3_filenames_paginated(region, **kwargs)
print(s3_bucket_filenames)

0 comments on commit 87a6496

Please sign in to comment.