Skip to content

Conversation

@gdavison
Copy link
Collaborator

@gdavison gdavison commented Feb 17, 2022

Adds CustomCABundle configuration parameter and adds tests for configuring with environment variable.

The AWS SDK v1 shim now creates its own HTTP client with equivalent configuration, since wrappers used in the V2 client cause an error.

Closes #119
Relates hashicorp/terraform-provider-aws#23224

@gdavison gdavison requested a review from a team as a code owner February 17, 2022 00:22
Copy link
Collaborator

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make test
go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2	2.681s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/awsconfig	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/config	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/constants	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/endpoints	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/internal/expand	1.381s
?   	github.com/hashicorp/aws-sdk-go-base/v2/internal/test	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/mockdata	[no test files]
?   	github.com/hashicorp/aws-sdk-go-base/v2/servicemocks	[no test files]
cd v2/awsv1shim && go test -timeout=30s -parallel=4 ./...
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2	1.721s
?   	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/mockdata	[no test files]
ok  	github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2/tfawserr	(cached)

@gdavison gdavison merged commit ec08b43 into main Feb 17, 2022
@gdavison gdavison deleted the custom-ca-bundle branch February 17, 2022 19:03
gdavison added a commit that referenced this pull request Feb 17, 2022
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.

Support setting Custom CA Bundle directly

2 participants