aws-sdk-go-v2
aws-sdk-go-v2 copied to clipboard
EC2 IMDS Client Does Not Support Logger or ClientLogMode which prevents logging of HTTP Request and Responses
EC2 IMDS Client does not attach the RequestResponseLogger deserialize middleware which results in the ClientLogMode options being ignored.
Additionally the IMDS client does not call AddSetLoggerMiddleware to register the clients logger with the stack middleware.
When fixing this issue the Logger and ClientLogMode will also need to support being resolved from aws.Config via the NewFromConfig constructor.