You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mapproxy 1.12.0, and s3 buckets for caching. Mapproxy is running in Docker and the AWS credentials are passed as variables to docker, i.e.:
-e AWS_ACCESS_KEY_ID=
-e AWS_SECRET_ACCESS_KEY=
-e AWS_DEFAULT_REGION=
The above system works okay, however, after having implemented a CloudFront distribution in AWS around the s3 bucket, even though I have explicitly set up the endpoint_url value under globals.cache.s3 in the mapproxy.yaml file, and replacing client = session.client('s3', region_name=self.region_name, endpoint_url=self.endpoint_url)
by client = session.client('cloudfront', region_name=self.region_name, endpoint_url=self.endpoint_url)
in the s3.py file within the cache folder in mapproxy, I got the following error:
AttributeError: 'CloudFront' object has no attribute 'head_bucket'
what am I missing? or is there any further configuration?
Thanks,
Jose.
The text was updated successfully, but these errors were encountered:
JoseSanchezMoralesIDOX
changed the title
'endpoint_url' param is ignored at connecting to s3
Using 'endpoint_url' param makes mapproxy s3.py fail when using 'cloudfront'
May 12, 2023
I'm using mapproxy 1.12.0, and s3 buckets for caching. Mapproxy is running in Docker and the AWS credentials are passed as variables to docker, i.e.:
-e AWS_ACCESS_KEY_ID=
-e AWS_SECRET_ACCESS_KEY=
-e AWS_DEFAULT_REGION=
The above system works okay, however, after having implemented a
CloudFront
distribution in AWS around the s3 bucket, even though I have explicitly set up theendpoint_url
value underglobals.cache.s3
in the mapproxy.yaml file, and replacingclient = session.client('s3', region_name=self.region_name, endpoint_url=self.endpoint_url)
by
client = session.client('cloudfront', region_name=self.region_name, endpoint_url=self.endpoint_url)
in the s3.py file within the cache folder in mapproxy, I got the following error:
AttributeError: 'CloudFront' object has no attribute 'head_bucket'
This is my configuration in the mapproxy.yaml:
what am I missing? or is there any further configuration?
Thanks,
Jose.
The text was updated successfully, but these errors were encountered: