Skip to content

building URL to access bucket data #947

Answered by jdisanti
Masber asked this question in Q&A
Discussion options

You must be logged in to vote

I think you want to set force_path_style on the service config. Something like:

let config = aws_config::load_from_env().await;
let s3_config = aws_sdk_s3::Config::from(&config)
    .to_builder()
    .force_path_style(true)
    .build();
let s3_client = s3::Client::from_conf(s3_config);

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Masber
Comment options

@Velfi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Masber
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants