This message was deleted.
s
This message was deleted.
m
Going all in on v3 I don't even need fromIni, I can just set the
AWS_PROFILE
env var
Copy code
const s3Client = new S3Client({
    region: aws.sdk.config.region,
});
s3Client.send(new ListBucketsCommand({})).then((data) => {
    console.log(data);
});
I've gone with the solution that uses
import { fromIni } from "@aws-sdk/credential-providers";
but otherwise uses aws-sdk v2 from the provider