From da84958bf30ec25ddf12bd86c6739197c0fb3ff5 Mon Sep 17 00:00:00 2001 From: Erhan Cagirici Date: Tue, 28 Nov 2023 23:45:28 +0300 Subject: [PATCH] update go.mod and address linter report Signed-off-by: Erhan Cagirici --- go.mod | 2 +- internal/clients/aws.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 5c37f6b3db..4dd13c5430 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/aws/aws-sdk-go-v2 v1.18.0 github.com/aws/aws-sdk-go-v2/config v1.18.12 github.com/aws/aws-sdk-go-v2/credentials v1.13.12 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 github.com/aws/aws-sdk-go-v2/service/eks v1.22.0 github.com/aws/aws-sdk-go-v2/service/sts v1.18.11 github.com/aws/smithy-go v1.13.5 @@ -39,7 +40,6 @@ require ( github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/aws/aws-sdk-go v1.44.261 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 // indirect github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 // indirect github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.3.29 // indirect diff --git a/internal/clients/aws.go b/internal/clients/aws.go index f9f8510863..4c8b5fb00a 100644 --- a/internal/clients/aws.go +++ b/internal/clients/aws.go @@ -6,11 +6,12 @@ package clients import ( "context" - "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" "os" "reflect" "unsafe" + "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" + tfawsbase "github.com/hashicorp/aws-sdk-go-base/v2" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-aws/xpprovider"