Glue2 AWS GLUE S3 폴더 및 파일 백업하기(복사 및 삭제) AWS GLUE S3 폴더 백업하기(복사 및 삭제) AWS S3는 폴더명 변경을 지원하지 않는다.그래서 폴더를 백업할 때, 파일을 복사와 삭제 작업을 해야한다. import boto3import loggingfrom datetime import datetime# Set up logginglogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)def rename_s3_folders(source_paths): """ Rename S3 folders by adding '_BAK' suffix """ s3_client = boto3.client('s3') for source_path in source.. 2025. 4. 8. AWS GLUE에서 다른 GLUE 실행하기 AWS GLUE에서 다른 GLUE 실행하기 import boto3import timefrom botocore.exceptions import ClientErrordef wait_for_job_completion(glue_client, job_name, run_id): """ Wait for an AWS Glue job to complete and return the status. Args: glue_client: Boto3 Glue client job_name: Name of the Glue job run_id: ID of the specific job run Returns: str: Final status of.. 2025. 4. 8. 이전 1 다음