V
V
VITYA-XY12021-02-20 02:23:39
Amazon Web Services
VITYA-XY1, 2021-02-20 02:23:39

How to combine two aws cli queries?

There is a queer:

aws rds describe-db-snapshots --query 'reverse(sort_by(DBSnapshots,&SnapshotCreateTime))'

she
is working
aws rds describe-db-snapshots --query 'DBSnapshots[?starts_with(DBSnapshotIdentifier, `stage-`) == `true`].[DBSnapshotIdentifier]'

it is also working

Question: how to combine two kveri? :)
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VITYA-XY1, 2021-02-20
@VITYA-XY1

aws rds describe-db-snapshots --query 'reverse(sort_by(DBSnapshots,&SnapshotCreateTime))|[?starts_with(DBSnapshotIdentifier, `stage-`) == `true`]|[:1].DBSnapshotIdentifier' --output text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question