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

preguntada hace 5 meses161 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace 5 meses
  • this worked. "--db-subnet-group-name"

    Thank you for your interest.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas