You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ClientConfiguration and its sub-classes allow disabling IMDS lookup in all but the default constructor:
structAWS_CORE_API ClientConfiguration
{
ClientConfiguration(); // Does IMDS look-up by default, also in sub-classes.ClientConfiguration(constchar* profileName, bool shouldDisableIMDS = false);
explicitClientConfiguration(bool useSmartDefaults, constchar* defaultMode = "legacy", bool shouldDisableIMDS = false);
}
In the base class, profileName can be set to nullptr, but not in the sub-classes: e.g. in S3CrtClientConfiguration, the const char *inputProfileName gets converted to a std::string (which does not like nullptr).
Hence the following use-case will always cause IMDS look-up:
For an earlier record of the problems (slowness) that unnecessary IMDS look-up causes, please see #1440.
What to do
For ClientConfiguration, GenericClientConfiguration, and Aws::S3Crt::ClientConfiguration, please provide a shouldDisableIMDS default argument like the 2 other constructors:
Thank you very much for your submission.
This is a reasonable request and would be a great addition to the SDK.
I will mark this as p2 and post updates regarding implementation/release here.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Problem Description
The
ClientConfiguration
and its sub-classes allow disabling IMDS lookup in all but the default constructor:In the base class,
profileName
can be set tonullptr
, but not in the sub-classes: e.g. inS3CrtClientConfiguration
, theconst char *inputProfileName
gets converted to astd::string
(which does not likenullptr
).Hence the following use-case will always cause IMDS look-up:
This is because the default constructor hard-codes IMDS lookup:
For an earlier record of the problems (slowness) that unnecessary IMDS look-up causes, please see #1440.
What to do
For
ClientConfiguration
,GenericClientConfiguration
, andAws::S3Crt::ClientConfiguration
, please provide ashouldDisableIMDS
default argument like the 2 other constructors:The text was updated successfully, but these errors were encountered: