mahe

Results 2 comments of mahe

I'd the same issue. The following jq part doesn't work SnapshotNames=$(aws lightsail get-instance-snapshots | jq '.[] | sort_by(.createdAt) | select(.[0].fromInstanceName == "'${NameOfYourInstance}'") | .[].name') I'm not an expert in jq,...

didn't work for me but after checking with jqplay.org the following version works for me: SnapshotNames=$(aws lightsail get-instance-snapshots | jq '.instanceSnapshots | sort_by(.createdAt) | .[] | select (.fromInstanceName == "'${NameOfYourInstance}'")|...