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 réponse
0
Réponse acceptée

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
répondu il y a 6 ans
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions