diff --git a/plugins/module_utils/rds.py b/plugins/module_utils/rds.py index 078477d126a..a2a87227d2a 100644 --- a/plugins/module_utils/rds.py +++ b/plugins/module_utils/rds.py @@ -38,7 +38,7 @@ cluster_snapshot_method_names = [ 'create_db_cluster_snapshot', 'delete_db_cluster_snapshot', 'add_tags_to_resource', 'remove_tags_from_resource', - 'list_tags_for_resource' + 'list_tags_for_resource', 'copy_db_cluster_snapshot' ] instance_snapshot_method_names = [ diff --git a/tests/unit/module_utils/test_rds.py b/tests/unit/module_utils/test_rds.py index c6ad8b34284..9e2d2664494 100644 --- a/tests/unit/module_utils/test_rds.py +++ b/tests/unit/module_utils/test_rds.py @@ -476,6 +476,22 @@ def test__get_rds_method_attribute_instance(method_name, params, expected, error ) ), ), + ( + "copy_db_cluster_snapshot", + { + "source_db_cluster_snapshot_identifier": "test", + "db_cluster_snapshot_identifier": "test-copy" + }, + *expected( + rds.Boto3ClientMethod( + name="copy_db_cluster_snapshot", + waiter="db_cluster_snapshot_available", + operation_description="copy DB cluster snapshot", + resource='cluster_snapshot', + retry_codes=['InvalidDBClusterSnapshotState'] + ) + ), + ), ( "list_tags_for_resource", {