File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
advanced-sqs-multiple-functions-shared-data/producer/src
basic-s3-object-lambda-thumbnail/src
extension-logs-kinesis-firehose/src Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async fn main() -> Result<(), Error> {
2020 // read the queue url from the environment
2121 let queue_url = std:: env:: var ( "QUEUE_URL" ) . expect ( "could not read QUEUE_URL" ) ;
2222 // build the config from environment variables (fed by AWS Lambda)
23- let config = aws_config:: from_env ( ) . load ( ) . await ;
23+ let config = aws_config:: load_from_env ( ) . await ;
2424 // create our SQS Manager
2525 let sqs_manager = SQSManager :: new ( aws_sdk_sqs:: Client :: new ( & config) , queue_url) ;
2626 let sqs_manager_ref = & sqs_manager;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async fn main() -> Result<(), Error> {
5959 // required to enable CloudWatch error logging by the runtime
6060 tracing:: init_default_subscriber ( ) ;
6161
62- let shared_config = aws_config:: from_env ( ) . load ( ) . await ;
62+ let shared_config = aws_config:: load_from_env ( ) . await ;
6363 let client = S3Client :: new ( & shared_config) ;
6464 let client_ref = & client;
6565
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ async fn main() -> Result<(), Error> {
111111 // required to enable CloudWatch error logging by the runtime
112112 tracing:: init_default_subscriber ( ) ;
113113
114- let shared_config = aws_config:: from_env ( ) . load ( ) . await ;
114+ let shared_config = aws_config:: load_from_env ( ) . await ;
115115 let client = S3Client :: new ( & shared_config) ;
116116 let client_ref = & client;
117117
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ async fn main() -> Result<(), Error> {
3636 // required to enable CloudWatch error logging by the runtime
3737 tracing:: init_default_subscriber ( ) ;
3838
39- let shared_config = aws_config:: from_env ( ) . load ( ) . await ;
39+ let shared_config = aws_config:: load_from_env ( ) . await ;
4040 let client = S3Client :: new ( & shared_config) ;
4141 let client_ref = & client;
4242
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ async fn main() -> Result<(), Error> {
6161 // required to enable CloudWatch error logging by the runtime
6262 tracing:: init_default_subscriber ( ) ;
6363
64- let config = aws_config:: from_env ( ) . load ( ) . await ;
64+ let config = aws_config:: load_from_env ( ) . await ;
6565 let logs_processor = SharedService :: new ( FirehoseLogsProcessor :: new ( Client :: new ( & config) ) ) ;
6666
6767 Extension :: new ( )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async fn main() -> Result<(), Error> {
5858 tracing:: init_default_subscriber ( ) ;
5959
6060 //Get config from environment.
61- let config = aws_config:: from_env ( ) . load ( ) . await ;
61+ let config = aws_config:: load_from_env ( ) . await ;
6262 //Create the DynamoDB client.
6363 let client = Client :: new ( & config) ;
6464
You can’t perform that action at this time.
0 commit comments