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 個回答
0
已接受的答案

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
已回答 6 年前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南