Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable S3 "targets" #3

Open
andrus opened this issue May 31, 2018 · 0 comments
Open

Configurable S3 "targets" #3

andrus opened this issue May 31, 2018 · 0 comments

Comments

@andrus
Copy link
Contributor

andrus commented May 31, 2018

Let's create a configurable S3 client object on top of AmazonS3. This task is solving two problems:

  • Dynamically associate symbolic names with configuration of real S3 buckets. This is similar to what bootique-jersey-client does and would allow to switching buckets without changing code between environments.
  • Allowing different buckets to be located in different AWS regions. Something not addressed by the injectable singleton AmazonS3 client.

E.g.:

awss3:
  targets:
    a:
      bucketRegion: "us-east-2" # if missing, the default region from AWS credentials is used
      bucketName: "xyz" # if missing, map key is used as bucket name
      path: mypath/x
    b: {}           # bucketName is "b", path is "/", region is whatever the default AWS profile specifies

Prerequisites: #10 (done), #11 (done)
SDK v2 only

@andrus andrus changed the title Allow mapping S3 bucket/folder locations via YAML Per-bucket S3 client Oct 12, 2021
@andrus andrus changed the title Per-bucket S3 client Configurable S3 "targets" Oct 12, 2021
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

No branches or pull requests

1 participant