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

gefragt vor 5 Monaten161 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 5 Monaten
  • this worked. "--db-subnet-group-name"

    Thank you for your interest.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen