AWS CLI V2로 테스트 한 코드 import boto3 import json ec2_client = boto3.client( 'ec2', aws_access_key_id = '**************', aws_secret_access_key = '*********************', region_name = 'ap-northeast-2' ) response = ec2_client.describe_instances() for reservation in response['Reservations']: for ec2 in reservation['Instances']: re_tags = {} if 'Tags' not in ec2: # Case) all tags removed #print(ec2["I..
이슈요약 AWS EC2에 기존 mount 되었던 볼륨을 스냅샷 생성 후 제거 생성한 스냅샷으로 새로운 볼륨을 만들어 기존 EC2에 다시 mount 수행 시 아래의 에러가 발생하며 mount 실패함 ec2-user]# mount -t xfs /dev/xvdf1 /home/ec2-user/xvdf1 **mount: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so.** 원인파악 상세 처음에는 disk 볼륨의 header 정보 등이 손상된건지 싶..