hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.66k stars 235 forks source link

Support Alibaba Cloud OSS buckets as one of Terraform module sources #342

Open zzxwill opened 2 years ago

zzxwill commented 2 years ago

Hi folks, I would like to support Alibaba Cloud OSS buckets as one of Terraform module sources.

I have went through similar implementation of a getter in this project and module source in project https://github.com/hashicorp/terraform. Is there anything else should I keep in mind to have oss module source to be released?

Thanks.

rambabuiitk commented 2 years ago

@zzxwill Do you have sample implementation for OSS buckets getter module?

zzxwill commented 2 years ago

@rambabuiitk Seems someone have supported it https://www.terraform.io/language/settings/backends/oss.

chenjpu commented 2 years ago

The path style is not supported by Alibaba Cloud OSS, go-getter seems to only support path-style, however: https://github.com/hashicorp/go-getter/blob/611343a8c115405f84a0e47a420a7c07ecdc6e5b/get_s3.go#L231