From af4029c8246fd4d15c1f5f8e97b233bcaa39883c Mon Sep 17 00:00:00 2001 From: Matt Bush Date: Sun, 21 Apr 2024 12:47:34 -0700 Subject: [PATCH] Use getter instead of property for Session Signed-off-by: Matt Bush --- internal/clients/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/clients/aws.go b/internal/clients/aws.go index 26825b443b..5b7f716b48 100644 --- a/internal/clients/aws.go +++ b/internal/clients/aws.go @@ -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(ctx).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 {