전체 글

IT에 대한 지식과 개인 공부 내용을 정리하는 공간으로 사용하고 있습니다. 문제가 되는 글이나, 이미지가 있으면 말씀 부탁드립니다.
IT

[TroubleShooting] aws cli로 kms 암호화 수행 시 Invalid base64 에러 발생

이슈요약 AWS EC2에서 AccessKey 적용 후 cli를 사용해서 kms 암호화를 수행하던 중 아래와 같은 인코딩 에러가 발생함 [python@test ~]$ aws kms encrypt --key-id alias/TestKey --plaintext hooks --region ap-northeast-2 Invalid base64: "hooks" [python@test ~]$ [python@test ~]$ aws kms encrypt --key-id alias/TestKey --plaintext hooksa --region ap-northeast-2 Invalid base64: "hooksa" [python@test ~]$ [python@test ~]$ aws kms encrypt --key-id a..

IT/Python

[Python] Name Tag가 있는 인스턴스만 출력하기

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..

IT/TroubleShooting

[TroubleShooting] xfs disk mount 에러 (mount: wrong fs type, bad option, bad superblock on)

이슈요약 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 정보 등이 손상된건지 싶..

Ersia
나무늘보의 IT생활