Skip to content

Commit 65f3f71

Browse files
committed
fix build
1 parent b929c59 commit 65f3f71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cmd/util/integrityattestation/utils.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/distributed-lab/enclave-extras/attestation"
2424
"github.com/distributed-lab/enclave-extras/attestedkms"
2525
"github.com/distributed-lab/enclave-extras/nsm"
26-
"github.com/tendermint/tendermint/light/provider"
2726
"golang.org/x/crypto/hkdf"
2827

2928
"github.com/ethereum/go-ethereum/common"
@@ -109,12 +108,8 @@ func GetKMSEnclaveClient(cfg aws.Config) (*attestedkms.KMSEnclaveClient, error)
109108
}
110109

111110
func loadInstanceProfileConfig(ctx context.Context) (aws.Config, error) {
112-
// IMDS client (talks to the instance metadata service)
113-
imdsClient := imds.New(imds.Options{
114-
// Optional: tweak timeouts if your IMDS hop is slow
115-
})
111+
imdsClient := imds.New(imds.Options{})
116112

117-
// Provider that fetches temporary credentials for the attached instance profile
118113
roleProvider := ec2rolecreds.New(func(o *ec2rolecreds.Options) {
119114
o.Client = imdsClient
120115
})
@@ -126,7 +121,6 @@ func loadInstanceProfileConfig(ctx context.Context) (aws.Config, error) {
126121
return aws.Config{}, fmt.Errorf("could not determine region from IMDS: %w", err)
127122
}
128123

129-
// Build config that ONLY uses the instance-profile creds
130124
return awsconfig.LoadDefaultConfig(
131125
ctx,
132126
awsconfig.WithRegion(region),

0 commit comments

Comments
 (0)