aws docdb restore-db-cluster-from-snapshot

0

Hello,

When I want to restore the snapshoot docdb shared with me, I get the following error.

aws docdb restore-db-cluster-from-snapshot \
    --db-cluster-identifier  <abc> \
    --snapshot-identifier <xyz> \
    --engine docdb \
    --kms-key-id <123>

An error occurred (InvalidSubnet) when calling the RestoreDBClusterFromSnapshot operation: No default subnet detected in VPC. Please contact AWS Support to recreate default Subnets.

Thank you for your help

質問済み 5ヶ月前161ビュー
1回答
1
承認された回答

Hello.

I think that if you do not specify a subnet group name with "--db-subnet-group-name" in the command options, it will start in the subnet in the default VPC.
Therefore, I think you need to create the subnet group yourself and then specify it, or contact AWS Support as mentioned in the error message to re-create the default VPC and configure the subnet.
If you already have a subnet group, I think it's easiest to specify that subnet group as an option.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/docdb/restore-db-cluster-from-snapshot.html

profile picture
エキスパート
回答済み 5ヶ月前
  • this worked. "--db-subnet-group-name"

    Thank you for your interest.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ