Open jrasell opened 5 years ago
Does it work if you remove the s3::
?
Ah it looks like that because the URL contains dots this check fails:
Edit: ah, sorry, no never-mind the url is first split on slashes. is not a valid S3 URL
matches a lot of errors :)
right now specifying a s3-accelerate endpoint still doesn't work : it tries to download from s3.accerlate.awsnaws.com instead of the correct one "s3-accerlate.awsnaws.com"
Using https doesn't work either because of the request needs aws headers.
Per https://github.com/turbot/steampipe-plugin-sdk/blob/main/plugin/get_source_files_test.go#L135-L191, I have found it necessary to use the syntax that embeds the region. Does that help in your cases, @jrasell, @thefallentree?
The README states that you can force a protocol by prefixing the URL, such as
s3::
in the case of using the s3 protocol. In my situation the following (edited) artifact URL is valid and works for downloading over HTTPS via go-getter:https://some-bucket-name.s3-accelerate.amazonaws.com/packagename/1.0.0/packagename-linux-amd64.tar.gz
When forcing the protocol to s3, the download fails:
I would expect that when forcing the protocol the download will still work, however, maybe I am missing something here.