Skip to content

Commit

Permalink
new module: s3_object_info (ansible-collections#977)
Browse files Browse the repository at this point in the history
new module: s3_object_info

SUMMARY

Adding a new module for retrieving s3 object info.
Currently supports following boto APIs
get_object()
get_object_acl()
get_object_attributes()
get_object_legal_hold()
get_object_lock_configuration()
get_object_retention()
get_object_tagging()

ISSUE TYPE


New Module Pull Request

COMPONENT NAME

s3_object_info
ADDITIONAL INFORMATION


Sample Tasks:

    - name: Get object info
      amazon.aws.s3_object_info:
        bucket_name: "{{ bucket_name }}"
        object_key: "{{ object_key }}"

    - name: Get object info details
      amazon.aws.s3_object_info:
        bucket_name: "{{ bucket_name }}"
        object_key: "{{ object_key }}"
        object_details:
          object_acl: true
          object_tagging: true
          object_attributes: true
          object_retention: true
        object_attributes:
          - ETag
          - ObjectSize
          - StorageClass

Reviewed-by: Mark Chappell <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mike Graves <[email protected]>
Reviewed-by: Jill R <None>
Reviewed-by: Gonéri Le Bouder <[email protected]>
  • Loading branch information
mandar242 authored Sep 28, 2022
1 parent 14e0668 commit 4d0ac2f
Show file tree
Hide file tree
Showing 6 changed files with 876 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/977-s3_object_info-add-new-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- s3_object_info - Added a new module that describes S3 Objects (https://github.com/ansible-collections/amazon.aws/pull/977).
1 change: 1 addition & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ action_groups:
- route53_zone
- s3_bucket
- s3_object
- s3_object_info
plugin_routing:
action:
aws_s3:
Expand Down
Loading

0 comments on commit 4d0ac2f

Please sign in to comment.