diff --git a/changelogs/fragments/783-rds_snapshot.yml b/changelogs/fragments/783-rds_snapshot.yml new file mode 100644 index 00000000000..f073aa1748a --- /dev/null +++ b/changelogs/fragments/783-rds_snapshot.yml @@ -0,0 +1,3 @@ +deprecated_features: + - rds_snapshot - the rds_snapshot module has been renamed to rds_instance_snapshot. + The usage of the module has not changed. The rds_snapshot alias will be removed in version 4.0.0 (https://github.com/ansible-collections/community.aws/pull/783). diff --git a/meta/runtime.yml b/meta/runtime.yml index bf736a3d34d..0aa95d868a2 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -190,6 +190,7 @@ action_groups: - rds_instance_info - rds_param_group - rds_snapshot + - rds_instance_snapshot - rds_snapshot_info - rds_subnet_group - rds_option_group @@ -520,3 +521,10 @@ plugin_routing: warning_text: >- route53_facts was renamed in Ansible 2.9 to route53_info. Please update your tasks. + rds_snapshot: + redirect: community.aws.rds_instance_snapshot + deprecation: + removal_version: 4.0.0 + warning_text: >- + rds_snapshot has been renamed to rds_instance_snapshot. + Please update your tasks. diff --git a/plugins/modules/rds_snapshot.py b/plugins/modules/rds_instance_snapshot.py similarity index 99% rename from plugins/modules/rds_snapshot.py rename to plugins/modules/rds_instance_snapshot.py index 0ca957c1b68..45915082739 100644 --- a/plugins/modules/rds_snapshot.py +++ b/plugins/modules/rds_instance_snapshot.py @@ -10,7 +10,7 @@ DOCUMENTATION = ''' --- -module: rds_snapshot +module: rds_instance_snapshot version_added: 1.0.0 short_description: manage Amazon RDS snapshots. description: @@ -66,12 +66,12 @@ EXAMPLES = ''' - name: Create snapshot - community.aws.rds_snapshot: + community.aws.rds_instance_snapshot: db_instance_identifier: new-database db_snapshot_identifier: new-database-snapshot - name: Delete snapshot - community.aws.rds_snapshot: + community.aws.rds_instance_snapshot: db_snapshot_identifier: new-database-snapshot state: absent ''' diff --git a/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_states.yml b/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_states.yml index 0321dc99d7c..dd13d55e164 100644 --- a/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_states.yml +++ b/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_states.yml @@ -144,7 +144,7 @@ always: - name: remove snapshot - rds_snapshot: + rds_instance_snapshot: db_snapshot_identifier: "{{ resource_prefix }}-test-snapshot" state: absent wait: false