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

Add path style method option to s3 backend #13194

Closed
mcanevet opened this issue Mar 30, 2017 · 3 comments
Closed

Add path style method option to s3 backend #13194

mcanevet opened this issue Mar 30, 2017 · 3 comments

Comments

@mcanevet
Copy link
Contributor

Hello,

We have an s3-like service powered by minio. When I configure the remote store using the s3 backend, it tries to use S3's Virtual-Hosted Style Method and, as we do not have a wildcard pointing to our s3 service, it does not work.
S3 also support Path Style method, it would be great to have an option in Terrfaform's S3 backend so that we can configure it like that :

terraform {
  backend "s3" {
    bucket   = "my_bucket"
    key      = "foo/terraform.tfstate"
    endpoint = "https://s3.example.com"
    profile  = "my_profile"
    region   = "us-east-1"
    use_path_request_style = true
  }
}

so that it generates a request https://s3.example.com/my_bucket/foo/terraform.tfstate instead of https://my_bucket.s3.example.com/foo/terraform.tfstate.

Thanks

@stffabi
Copy link

stffabi commented Jun 14, 2018

The option force_path_style has been added with fb6b349

@mcanevet
Copy link
Contributor Author

Thanks

@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days . This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants