Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 5c438b6

Browse files
committed
CLoudFormation changed its behaviour. If an RDS instance is deleted, a manual snapshot is now created by default which could cause costs.
For AWS::RDS::DBInstance resources that don't specify the DBClusterIdentifier property, the default policy is Snapshot which can cause unwanted costs. However, for production setups, we highly recommend to stay with the default to avoid data loss.
1 parent 721b888 commit 5c438b6

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

chapter14/wordpress-loadtest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
},
237237
"Database": {
238238
"Type": "AWS::RDS::DBInstance",
239+
"DeletionPolicy": "Delete",
239240
"Properties": {
240241
"AllocatedStorage": "5",
241242
"BackupRetentionPeriod": "0",

chapter14/wordpress.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@
223223
},
224224
"Database": {
225225
"Type": "AWS::RDS::DBInstance",
226+
"DeletionPolicy": "Delete",
226227
"Properties": {
227228
"AllocatedStorage": "5",
228229
"BackupRetentionPeriod": "0",

chapter2/template.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
},
198198
"Database": {
199199
"Type": "AWS::RDS::DBInstance",
200+
"DeletionPolicy": "Delete",
200201
"Properties": {
201202
"AllocatedStorage": "5",
202203
"BackupRetentionPeriod": "0",

chapter9/template-multiaz.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
},
217217
"Database": {
218218
"Type": "AWS::RDS::DBInstance",
219+
"DeletionPolicy": "Delete",
219220
"Properties": {
220221
"AllocatedStorage": "5",
221222
"DBInstanceClass": "db.t2.micro",

chapter9/template-snapshot.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
},
217217
"Database": {
218218
"Type": "AWS::RDS::DBInstance",
219+
"DeletionPolicy": "Delete",
219220
"Properties": {
220221
"AllocatedStorage": "5",
221222
"DBInstanceClass": "db.t2.micro",

chapter9/template.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
},
217217
"Database": {
218218
"Type": "AWS::RDS::DBInstance",
219+
"DeletionPolicy": "Delete",
219220
"Properties": {
220221
"AllocatedStorage": "5",
221222
"DBInstanceClass": "db.t2.micro",

0 commit comments

Comments
 (0)