How to get pdf for ec2 servers list



In billing page there is a option "print". you can choose this and save as pdf format.

Likewise, how to get the pdf for ec2 servers.

Thanks, Ragav

질문됨 2달 전110회 조회
1개 답변
수락된 답변


I don't think there is an option to obtain a PDF list of EC2 from the management console as of May 2024.
Therefore, you will need to create a program to obtain the CSV using AWS CLI, etc., as shown below, or to obtain the EC2 list using boto3, etc., and save it as a PDF.

aws ec2 describe-instances \
    --query "Reservations[].Instances[].{InstanceId:InstanceId, InstanceType:InstanceType, State:State.Name, Name: Tags[?Key==\`Name\`].Value, LaunchTime:LaunchTime}" \
    --output json | 
    jq -r ".[] | [.Name[0], .InstanceId, .InstanceType, .State, .LaunchTime] | @csv" > ec2-info.csv
profile picture
답변함 2달 전
profile picture
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠