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

Use hashicorp/aws-sdk-go-base to authenticate s3 storage #9

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

minamijoyo
Copy link
Owner

In #2, I added s3 storage with a primitive aws-sdk-go, but the initial implementation doesn't work with a localstack environment because it requires force_path_style option. In addition, I want to use a explicit profile setting for multi-accounts environment rather than implicit access key via environment variable. Since Terraform's s3 backend has many authentication options, I can imagine some people want to other options and they expect the order of reading credentials to be the same as Terraform.

Fortunately, The Terraform s3 backend and AWS provider authentication logic is split into an external library named hashicorp/aws-sdk-go-base. I think using the same library as Terraform will reduce confusion.

However, there are many minor options and it's a pain to test all options from first, so I added only options I need for now. If something missing, feel free to open an issue or submit a pull request.

In #2, I added s3 storage with a primitive aws-sdk-go, but the initial
implementation doesn't work with a localstack environment because it
requires force_path_style option. In addition, I want to use a explicit
profile setting for multi-accounts environment rather than implicit
access key via environment variable. Since Terraform's s3 backend has
many authentication options, I can imagine some people want to other
options and they expect the order of reading credentials to be the
same as Terraform.

Fortunately, The Terraform s3 backend and AWS provider authentication
logic is split into an external library named hashicorp/aws-sdk-go-base.
I think using the same library as Terraform will reduce confusion.

However, there are many minor options and it's a pain to test all
options from first, so I added only options I need for now. If something
missing, feel free to open an issue or submit a pull request.
@minamijoyo minamijoyo merged commit ef0390a into master Nov 16, 2020
@minamijoyo minamijoyo deleted the use-aws-sdk-go-base branch November 16, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant