Restoring RDS Snapshot with CloudFormation

0

I am trying to recreate an RDS Aurora database from a snapshot using CloudFormation and I am running into a problem. During the stack creation, I am getting this error 'Only DB Snapshot Identifiers can be used with the filter DB_SNAPSHOT_ID'

Here is a snippet of my CF template:

Parameters:
  DBSnapshot: 
     Type : "String"
     Default: "arn:aws:rds:us-west-2:893352710245:cluster-snapshot:snapshot"

Resources:
  RDSDatabase:
     Type: "AWS::RDS::DBInstance"
     Properties:
       DBInstanceClass: 'db.t2.micro'
       DBSnapshotIdentifier: !Ref DBSnapshot
1 Respuesta
0
Respuesta aceptada

Think I found the issue:

  DBSnapshot:
     Type : "String"
     Default: "arn:aws:rds:eu-west-1:300688157164:cluster-snapshot:snapshot"

Resources:
  MyDB:
    Type: "AWS::RDS::DBCluster"
    Properties:
      SnapshotIdentifier: !Ref DBSnapshot
      Engine: "aurora"

You are restoring a cluster so need to use AWS::RDS::DBCluster and SnapshotIdentifier and not the AWS::RDS::DBInstance.

AWS
respondido hace 6 años
profile picture
EXPERTO
revisado hace un mes

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