Merge pull request #1646 from flyte/rds2-snapshot-on-delete

Provide correct kwargs to rds2 connection when making a final snapshot
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 12fbc4712f

@ -715,6 +715,9 @@ def delete_db_instance_or_snapshot(module, conn):
if instance_name:
if snapshot:
params["skip_final_snapshot"] = False
if has_rds2:
params["final_db_snapshot_identifier"] = snapshot
else:
params["final_snapshot_id"] = snapshot
else:
params["skip_final_snapshot"] = True

Loading…
Cancel
Save