Skip to content

Commit 2b4fa8c

Browse files
committed
Rename aws_s3 to s3_object for clarity
1 parent 5f05853 commit 2b4fa8c

File tree

14 files changed

+199
-149
lines changed

14 files changed

+199
-149
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
minor_changes:
2+
- aws_s3 - The ``aws_s3`` module has been renamed to ``s3_object``
3+
(https://github.com/ansible-collections/amazon.aws/pull/869).
4+
deprecated_features:
5+
- s3_object - Support for creation and deletion of S3 buckets has been deprecated. Please use the
6+
``amazon.aws.s3_bucket`` module to create and delete buckets
7+
(https://github.com/ansible-collections/amazon.aws/pull/869).

meta/runtime.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ action_groups:
44
- aws_az_info
55
- aws_caller_info
66
- aws_s3
7-
- aws_s3
87
- aws_secret
98
- cloudformation
109
- cloudformation_info
@@ -48,14 +47,20 @@ action_groups:
4847
- iam
4948
- rds
5049
- s3_bucket
50+
- s3_object
5151
plugin_routing:
52+
action:
53+
aws_s3:
54+
redirect: amazon.aws.s3_object
5255
modules:
5356
aws_az_facts:
5457
deprecation:
5558
removal_date: 2022-06-01
5659
warning_text: >-
5760
aws_az_facts was renamed in Ansible 2.9 to aws_az_info.
5861
Please update your tasks.
62+
aws_s3:
63+
redirect: amazon.aws.s3_object
5964
ec2:
6065
deprecation:
6166
removal_version: 4.0.0

plugins/action/aws_s3.py renamed to plugins/action/s3_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ActionModule(ActionBase):
3131
TRANSFERS_FILES = True
3232

3333
def run(self, tmp=None, task_vars=None):
34-
''' handler for aws_s3 operations '''
34+
''' handler for s3_object operations '''
3535
self._supports_async = True
3636

3737
if task_vars is None:
@@ -59,7 +59,7 @@ def run(self, tmp=None, task_vars=None):
5959
raise AnsibleActionFail(to_text(e))
6060

6161
wrap_async = self._task.async_val and not self._connection.has_native_async
62-
# execute the aws_s3 module with the updated args
62+
# execute the s3_object module with the updated args
6363
result = merge_hash(result, self._execute_module(module_args=new_module_args, task_vars=task_vars, wrap_async=wrap_async))
6464

6565
if not wrap_async:

0 commit comments

Comments
 (0)