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

asked 4 months ago149 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 4 months ago
  • this worked. "--db-subnet-group-name"

    Thank you for your interest.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions