Provide correct kwargs to rds2 connection when making a final snapshot
This commit is contained in:
parent
02b6df3160
commit
3d9a8caa59
1 changed files with 4 additions and 1 deletions
|
@ -715,7 +715,10 @@ def delete_db_instance_or_snapshot(module, conn):
|
|||
if instance_name:
|
||||
if snapshot:
|
||||
params["skip_final_snapshot"] = False
|
||||
params["final_snapshot_id"] = snapshot
|
||||
if has_rds2:
|
||||
params["final_db_snapshot_identifier"] = snapshot
|
||||
else:
|
||||
params["final_snapshot_id"] = snapshot
|
||||
else:
|
||||
params["skip_final_snapshot"] = True
|
||||
result = conn.delete_db_instance(instance_name, **params)
|
||||
|
|
Loading…
Reference in a new issue