List RDS shared snapshots

0

I'm copying/sharing snapshots from source account to target account and they show on target account on "Shared with me" tab. The whole process works using the console. But when I try to replicate that from cli is not possible as on the destination account I'm not able to list the "Shared with me" snapshots to be able to use the Id to restore it. Shared Snapshots

but using this on target:

aws rds describe-db-cluster-snapshots --snapshot-type shared --region us-east-2                                                                                                                     11:19:37
{
    "DBClusterSnapshots": []
}

Why see the snapshots on console but not on cli? How can I get them from cli on cli not using source account credentials?

已提问 9 个月前377 查看次数
1 回答
1
已接受的回答

Hello.
Try the following command.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-cluster-snapshots.html

aws rds describe-db-cluster-snapshots --include-shared --snapshot-type shared
profile picture
专家
已回答 9 个月前
profile pictureAWS
专家
已审核 9 个月前
profile picture
专家
已审核 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则