Skip to content

Commit

Permalink
Switch to getter to expose aws client internals
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Bush <[email protected]>
  • Loading branch information
mbbush committed Apr 22, 2024
1 parent 4df4e99 commit b296213
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,6 @@ require (

replace golang.org/x/exp => golang.org/x/exp v0.0.0-20231006140011-7918f672742d

replace github.com/hashicorp/terraform-provider-aws => github.com/mbbush/terraform-provider-aws v0.0.0-20240419234332-0ec53cbccd61
replace github.com/hashicorp/terraform-provider-aws => github.com/mbbush/terraform-provider-aws v0.0.0-20240422224835-5d704d4752cd

replace github.com/hashicorp/terraform-plugin-log => github.com/gdavison/terraform-plugin-log v0.0.0-20230928191232-6c653d8ef8fb
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg=
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k=
github.com/mbbush/terraform-provider-aws v0.0.0-20240419234332-0ec53cbccd61 h1:A5UX0w5PpT5IrxblNQ+z/S0811FoDI8OnZXeMBiaOaY=
github.com/mbbush/terraform-provider-aws v0.0.0-20240419234332-0ec53cbccd61/go.mod h1:VNcpSYvh4eYoT0qmtnaBoUwjlx4NOEzspt4FFNGX8Ac=
github.com/mbbush/terraform-provider-aws v0.0.0-20240422224835-5d704d4752cd h1:ESfFGrzgFTABwwH6ItzlL1kdog3DnZTqQIjPGep3soc=
github.com/mbbush/terraform-provider-aws v0.0.0-20240422224835-5d704d4752cd/go.mod h1:VNcpSYvh4eYoT0qmtnaBoUwjlx4NOEzspt4FFNGX8Ac=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
Expand Down
2 changes: 1 addition & 1 deletion internal/clients/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func configureNoForkAWSClient(ctx context.Context, ps *terraform.Setup, config *
// an http.RoundTripper. To learn how SDK v1 session handler phases
// map to SDK v2 middleware stack steps, see:
// https://aws.github.io/aws-sdk-go-v2/docs/migrating/#handler-phases
tfAwsConnsClient.Session.Handlers.Send.PushBack(func(r *awsrequest.Request) {
tfAwsConnsClient.Session().Handlers.Send.PushBack(func(r *awsrequest.Request) {
// In case of API errors (or no errors), r.Error is nil.
// In case of connection errors, r.Error is non-nil.
if r.Error == nil {
Expand Down

0 comments on commit b296213

Please sign in to comment.