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.

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

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

回答问题的准则