Open cmilanf opened 9 months ago
@cmilanf Does the code automatically renew the token when it expires?
@ekaynar No, it generates a token in the getToken()
function with a TTL of 21600
seconds (that's a default value). As the IMDSv2 is only used to retrieve details from the instance (availability zone, region, instance type...), you only need just a few seconds to get the information and then proceed to the benchmark, you shouldn't need to renew the token unless you are implementing a different use case.
This PR includes a pair of commits:
getToken()
function. It also upgrades AWS Go SDK v2 version to1.24.1
. This commit is based in the changes proposed by #25.main-express.go
file, that is a duplicate ofmain.go
, but with the code modified to benchmark the new Amazon S3 Express OneZone specifically.