import {S3Client, ListBucketsCommand} from '@aws-sdk/client-s3';
const s3 = new S3Client({region: 'us-west-2'});
export const handler = async (event) => {
const data = await s3.send(new ListBucketsCommand({}));
return data.Buckets;
};
import {S3Client, ListBucketsCommand} from '@aws-sdk/client-s3';
const s3 = new S3Client({region: 'us-west-2'});
export const handler = async (event) => {
const data = await s3.send(new ListBucketsCommand({}));
return data.Buckets;
};
For further actions, you may consider blocking this person and/or reporting abuse
Manos Nitis -
chauhoangminhnguyen -
himanshu -
Araminta Arden -
Top comments (0)