Skip to content

Commit f0ad062

Browse files
Update main.cpp (awslabs#178)
Co-authored-by: Bryan Moffatt <[email protected]>
1 parent c09c86e commit f0ad062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/s3/main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ int main()
7373
config.region = Aws::Environment::GetEnv("AWS_REGION");
7474
config.caFile = "/etc/pki/tls/certs/ca-bundle.crt";
7575

76-
auto credentialsProvider = Aws::MakeShared<Aws::Auth::EnvironmentAWSCredentialsProvider>(TAG);
77-
S3::S3Client client(credentialsProvider, config);
76+
S3::S3Client client(config);
7877
auto handler_fn = [&client](aws::lambda_runtime::invocation_request const& req) {
7978
return my_handler(req, client);
8079
};

0 commit comments

Comments
 (0)