@@ -157,12 +157,7 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
157157 ensureSSHKeyPair (e2eCtx .AWSSession , DefaultSSHKeyPairName )
158158 e2eCtx .Environment .BootstrapAccessKey = newUserAccessKey (context .TODO (), e2eCtx .AWSSessionV2 , bootstrapTemplate .Spec .BootstrapUser .UserName )
159159 e2eCtx .BootstrapUserAWSSession = NewAWSSessionWithKey (e2eCtx .Environment .BootstrapAccessKey )
160- //TODO: v2AccessKey can be removed after AWS SDK V2 Migration
161- v2AccessKey := & iamtypes.AccessKey {
162- AccessKeyId : e2eCtx .Environment .BootstrapAccessKey .AccessKeyId ,
163- SecretAccessKey : e2eCtx .Environment .BootstrapAccessKey .SecretAccessKey ,
164- }
165- e2eCtx .BootstrapUserAWSSessionV2 = NewAWSSessionWithKeyV2 (v2AccessKey )
160+ e2eCtx .BootstrapUserAWSSessionV2 = NewAWSSessionWithKeyV2 (e2eCtx .Environment .BootstrapAccessKey )
166161 Expect (ensureTestImageUploaded (e2eCtx )).NotTo (HaveOccurred ())
167162
168163 // Image ID is needed when using a CI Kubernetes version. This is used in conformance test and upgrade to main test.
@@ -231,12 +226,7 @@ func AllNodesBeforeSuite(e2eCtx *E2EContext, data []byte) {
231226 e2eCtx .Environment .BootstrapClusterProxy = framework .NewClusterProxy ("bootstrap" , conf .KubeconfigPath , e2eCtx .Environment .Scheme )
232227 e2eCtx .E2EConfig = & conf .E2EConfig
233228 e2eCtx .BootstrapUserAWSSession = NewAWSSessionWithKey (conf .BootstrapAccessKey )
234- //TODO: v2AccessKey can be removed after AWS SDK V2 Migration
235- v2AccessKey := & iamtypes.AccessKey {
236- AccessKeyId : e2eCtx .Environment .BootstrapAccessKey .AccessKeyId ,
237- SecretAccessKey : e2eCtx .Environment .BootstrapAccessKey .SecretAccessKey ,
238- }
239- e2eCtx .BootstrapUserAWSSessionV2 = NewAWSSessionWithKeyV2 (v2AccessKey )
229+ e2eCtx .BootstrapUserAWSSessionV2 = NewAWSSessionWithKeyV2 (conf .BootstrapAccessKey )
240230 e2eCtx .Settings .FileLock = flock .New (ResourceQuotaFilePath )
241231 e2eCtx .Settings .KubetestConfigFilePath = conf .KubetestConfigFilePath
242232 e2eCtx .Settings .UseCIArtifacts = conf .UseCIArtifacts
0 commit comments