IT&코딩/AWS (1) 썸네일형 리스트형 S3 bucket에 파일 업로드 테스트하기 1. requirements.txt에 boto3 추가 및 설치 boto3 == 1.34.34pip3 install -r requirements.txt 2. Django에 아래와 같은 python 코드와 png 파일을 추가 import osimport calendarimport timeimport boto3data_file = "test.png" # 업로드하려는 디렉터리 경로filename = "test.png"s3_path = ""# s3 정보ACCESS_KEY_ID = "키 ID"ACCESS_SECRET_KEY = "시크릿 키"BUCKET_NAME = "버킷 이름"s3_client = boto3.client( "s3", aws_access_key_id=ACCESS_KEY_ID, aws.. 이전 1 다음