Skip to content

Commit

Permalink
Use AWSClient.Session() instead of AWSClient.Session, which has been …
Browse files Browse the repository at this point in the history
…unexported

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed May 22, 2024
1 parent a84fcf6 commit 8940e5f
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 @@ -362,4 +362,4 @@ require (
// copied from the Terraform provider
replace github.com/hashicorp/terraform-plugin-log => github.com/gdavison/terraform-plugin-log v0.0.0-20230928191232-6c653d8ef8fb

replace github.com/hashicorp/terraform-provider-aws => github.com/upbound/terraform-provider-aws v0.0.0-20240521154033-d7fd46669203
replace github.com/hashicorp/terraform-provider-aws => github.com/ulucinar/upbound-terraform-provider-aws v0.0.0-20240521195229-c9c285065bd4
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tmccombs/hcl2json v0.3.3 h1:+DLNYqpWE0CsOQiEZu+OZm5ZBImake3wtITYxQ8uLFQ=
github.com/tmccombs/hcl2json v0.3.3/go.mod h1:Y2chtz2x9bAeRTvSibVRVgbLJhLJXKlUeIvjeVdnm4w=
github.com/upbound/terraform-provider-aws v0.0.0-20240521154033-d7fd46669203 h1:UKJfAjIXYWK8OCpnWxc66FyyzD8uEXH1r0ubpK3axyU=
github.com/upbound/terraform-provider-aws v0.0.0-20240521154033-d7fd46669203/go.mod h1:yWeBcsPCtmEKOurig3GUxpnbQnw8AbEsHFVnakEsHUU=
github.com/ulucinar/upbound-terraform-provider-aws v0.0.0-20240521195229-c9c285065bd4 h1:MX3AxPM78SUXLy9Mv+9moGGNTOTyQOcYW7Otkkf1TD8=
github.com/ulucinar/upbound-terraform-provider-aws v0.0.0-20240521195229-c9c285065bd4/go.mod h1:yWeBcsPCtmEKOurig3GUxpnbQnw8AbEsHFVnakEsHUU=
github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI=
github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk=
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 8940e5f

Please sign in to comment.