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
When using the AWS SDK for Rust in a Lambda function, it generates 14 tracing events with INFO and WARN log levels during initialization, due to a lack of ~/.aws folder and default profile in a Lambda environment.
Darwin 19.6.0 Darwin Kernel Version 19.6.0: Sun Nov 14 19:58:51 PST 2021; root:xnu-6153.141.50~1/RELEASE_X86_64 x86_64
AWS Services
DynamoDB
EventBridge
Description
When using the AWS SDK for Rust in an AWS Lambda, it produces 14 INFO and WARN tracing events for CloudWatch Logs entries related to loading files in the ~/.aws folder (non-existent on Lambda) or failure to get the default profile (also non-existent on Lambda).
I expect to not see any INFO/WARN message related to the initialization of the SDK, or at least not that many, as this is a different behavior than the other AWS SDK.
Here's the part of the code that initialize the AWS Config:
Velfi
added
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
and removed
pending-release
This issue will be fixed by an approved PR that hasn't been released yet.
labels
Jan 18, 2022
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
What is the problem?
When using the AWS SDK for Rust in a Lambda function, it generates 14 tracing events with INFO and WARN log levels during initialization, due to a lack of
~/.aws
folder and default profile in a Lambda environment.Version
├── aws-config v0.4.1 │ ├── aws-http v0.4.1 │ │ ├── aws-smithy-http v0.34.1 │ │ │ ├── aws-smithy-types v0.34.1 │ │ ├── aws-smithy-types v0.34.1 () │ │ ├── aws-types v0.4.1 │ │ │ ├── aws-smithy-async v0.34.1 │ │ │ ├── aws-smithy-types v0.34.1 () │ ├── aws-sdk-sts v0.4.1 │ │ ├── aws-endpoint v0.4.1 │ │ │ ├── aws-smithy-http v0.34.1 () │ │ │ ├── aws-types v0.4.1 () │ │ ├── aws-http v0.4.1 () │ │ ├── aws-sig-auth v0.4.1 │ │ │ ├── aws-sigv4 v0.4.1 │ │ │ │ ├── aws-smithy-http v0.34.1 () │ │ │ ├── aws-smithy-http v0.34.1 () │ │ │ ├── aws-types v0.4.1 () │ │ ├── aws-smithy-async v0.34.1 () │ │ ├── aws-smithy-client v0.34.1 │ │ │ ├── aws-smithy-async v0.34.1 () │ │ │ ├── aws-smithy-http v0.34.1 () │ │ │ ├── aws-smithy-http-tower v0.34.1 │ │ │ │ ├── aws-smithy-http v0.34.1 () │ │ │ ├── aws-smithy-protocol-test v0.34.1 │ │ │ ├── aws-smithy-types v0.34.1 () │ │ ├── aws-smithy-http v0.34.1 () │ │ ├── aws-smithy-http-tower v0.34.1 () │ │ ├── aws-smithy-query v0.34.1 │ │ │ ├── aws-smithy-types v0.34.1 () │ │ ├── aws-smithy-types v0.34.1 () │ │ ├── aws-smithy-xml v0.34.1 │ │ ├── aws-types v0.4.1 () │ ├── aws-smithy-async v0.34.1 () │ ├── aws-smithy-client v0.34.1 () │ ├── aws-smithy-http v0.34.1 () │ ├── aws-smithy-http-tower v0.34.1 () │ ├── aws-smithy-json v0.34.1 │ │ └── aws-smithy-types v0.34.1 () │ ├── aws-smithy-types v0.34.1 () │ ├── aws-types v0.4.1 () ├── aws-sdk-dynamodb v0.4.1 │ ├── aws-endpoint v0.4.1 () │ ├── aws-http v0.4.1 () │ ├── aws-sig-auth v0.4.1 () │ ├── aws-smithy-async v0.34.1 () │ ├── aws-smithy-client v0.34.1 () │ ├── aws-smithy-http v0.34.1 () │ ├── aws-smithy-http-tower v0.34.1 () │ ├── aws-smithy-json v0.34.1 () │ ├── aws-smithy-types v0.34.1 () │ ├── aws-types v0.4.1 () ├── aws-sdk-eventbridge v0.4.1 │ ├── aws-endpoint v0.4.1 () │ ├── aws-http v0.4.1 () │ ├── aws-sig-auth v0.4.1 () │ ├── aws-smithy-async v0.34.1 () │ ├── aws-smithy-client v0.34.1 () │ ├── aws-smithy-http v0.34.1 () │ ├── aws-smithy-http-tower v0.34.1 () │ ├── aws-smithy-json v0.34.1 () │ ├── aws-smithy-types v0.34.1 () │ ├── aws-types v0.4.1 () ├── aws-smithy-client v0.34.1 () ├── aws-smithy-http v0.34.1 () ├── aws-types v0.4.1 () ├── aws-types v0.4.1 (*)
Platform
Darwin 19.6.0 Darwin Kernel Version 19.6.0: Sun Nov 14 19:58:51 PST 2021; root:xnu-6153.141.50~1/RELEASE_X86_64 x86_64
AWS Services
DynamoDB
EventBridge
Description
When using the AWS SDK for Rust in an AWS Lambda, it produces 14 INFO and WARN tracing events for CloudWatch Logs entries related to loading files in the
~/.aws
folder (non-existent on Lambda) or failure to get the default profile (also non-existent on Lambda).I expect to not see any INFO/WARN message related to the initialization of the SDK, or at least not that many, as this is a different behavior than the other AWS SDK.
Here's the part of the code that initialize the AWS Config:
The complete code can be found in this repository.
This is similar in nature to #307, but the warning messages are different.
Logs
Log entries from CloudWatch Logs using INFO level:
The text was updated successfully, but these errors were encountered: