Relative Content

Tag Archive for c#amazon-web-services

Long loading time when initializing Aws::Auth::AWSCredentials

m_pcClientPtr = new std::shared_ptrAws::Lambda::LambdaClient; if (NULL == m_pcClientPtr) { ASSERT(FALSE); return FALSE; } TRACE(“CAWSManager::InitFunctions 2n”); Aws::Client::ClientConfiguration config; config.region = “us-east-1”; config.disableIMDS = true; // this credential only have access lamba function and s3 read/write to a certain bucket Aws::Auth::AWSCredentials credentials(“my accessKeyId”, “my secretKey”); TRACE(“CAWSManager::InitFunctions 3n”); *m_pcClientPtr = Aws::MakeSharedAws::Lambda::LambdaClient(ALLOCATION_TAG, credentials, config); if (NULL == *m_pcClientPtr) { […]