Skip to content

Commit

Permalink
tiler refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Feb 27, 2023
1 parent 506e830 commit debfccb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tiler/app/middlewares/url_injector.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from botocore.config import Config
from fastapi.params import Query
import boto3
from ..config.config import get_settings

s3 = boto3.client("s3")
s3 = boto3.client("s3", region_name="eu-west-3", config=Config(signature_version='s3v4'))
bucket_name = get_settings().s3_bucket_name
default_cog = get_settings().default_cog
DATA_PATH_IN_S3 = 'processed/satelligence/'
Expand Down Expand Up @@ -40,6 +41,7 @@ def s3_presigned_access(url: str | None = Query(default=None, description="Optio
},
ExpiresIn=3600
)
print("Generated pressigned URL: ", presigned_url)
return presigned_url


Expand Down

0 comments on commit debfccb

Please sign in to comment.