1
如何從我的describe-images變量的製表符分隔輸出中獲得像ARR[ImageID]=CreationDate
這樣的數組?從ec2描述的圖像陣列
IMAGES=$(aws ec2 describe-images --output text --query 'Images[].[ImageId,CreationDate]');
輸出類似於:
ami-11xxxxx 2015-03-06:12:00:00
ami-12xxxxx 2015-03-06:12:00:00
ami-13xxxxx 2015-03-06:12:00:00