This PR would fix #26, or at least propose an easy workaround by setting S3_HOSTNAME=localstack while deploying with tflocal, which would force it to use s3_path_style=true. Right now, there's no easy way to force tflocal to use path style automatically except by setting the S3 endpoint to localhost.
I've improved the detection to be in line with LocalStack, where any request not starting with the s3. prefix would not be considered virtual host and would fail.
This PR would fix #26, or at least propose an easy workaround by setting
S3_HOSTNAME=localstack
while deploying withtflocal
, which would force it to uses3_path_style=true
. Right now, there's no easy way to forcetflocal
to use path style automatically except by setting the S3 endpoint tolocalhost
.I've improved the detection to be in line with LocalStack, where any request not starting with the
s3.
prefix would not be consideredvirtual host
and would fail.