Skip to content

Automatically use appropriate region for S3 bucket#740

Open
green-nsk wants to merge 3 commits into
JuliaCloud:masterfrom
green-nsk:s3_bucket_region
Open

Automatically use appropriate region for S3 bucket#740
green-nsk wants to merge 3 commits into
JuliaCloud:masterfrom
green-nsk:s3_bucket_region

Conversation

@green-nsk

Copy link
Copy Markdown

When accessing S3 buckets users need to specify a correct region, which seems like something AWS.jl should be able to handle by itself.

In practice, specifying incorrect region in ~/.aws/config results in 301 redirect, which AWS.jl doesn't handle (issue #397 is created for this). But using the correct bucket to start with seems like more appropriate fix.

Comment thread src/services/s3.jl
using AWS.Compat
using AWS.UUIDs

const bucket_regions = Base.Lockable(Dict{String, String}())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto-generated, any modifications to this file will be undone when service definitions are re-generated.

Here's the beginning entrypoint for service generation where you can then fit these changes into,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants