Provide correct kwargs to rds2 connection when making a final snapshot
This commit is contained in:
parent
387fe5b0e7
commit
2f46364921
1 changed files with 4 additions and 1 deletions
|
@ -715,6 +715,9 @@ def delete_db_instance_or_snapshot(module, conn):
|
||||||
if instance_name:
|
if instance_name:
|
||||||
if snapshot:
|
if snapshot:
|
||||||
params["skip_final_snapshot"] = False
|
params["skip_final_snapshot"] = False
|
||||||
|
if has_rds2:
|
||||||
|
params["final_db_snapshot_identifier"] = snapshot
|
||||||
|
else:
|
||||||
params["final_snapshot_id"] = snapshot
|
params["final_snapshot_id"] = snapshot
|
||||||
else:
|
else:
|
||||||
params["skip_final_snapshot"] = True
|
params["skip_final_snapshot"] = True
|
||||||
|
|
Loading…
Reference in a new issue