TIL 20201228

joDMSoluth·2020년 12월 28일
0

TIL

목록 보기
1/2

aws s3에 저장된 파일 리스트로 불러오기

const aws = require('aws-sdk');

(async function () {
    try {
        aws.config.setPromisesDependency();
        aws.config.update({
            accessKeyId: accessKeyId,
            secretAccessKey: secretAccessKey,
            region: 'ap-northeast-2', // 예시임
        });

        const s3 = new aws.S3();
        const response = await s3
            .listObjectsV2({
                Bucket: '버킷이름',
                Prefix: '폴더이름',
            })
            .promise();

        console.log(response);
    } catch (e) {
        console.log('our error', e);
    }

    debugger;
})();

애니메이션 후에 Reveal되는 방법

.any {
	animation: animation-name 1s ease normal backwards;
    animation-delay: 3s;
}
profile
풀스택이 되고 싶은 주니어 웹 개발자입니다.

0개의 댓글