# aws\_resource\_actions is not giving expected outcome

**URL:** <https://forum.ansible.com/t/aws-resource-actions-is-not-giving-expected-outcome/31455>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [October 11, 2019, 9:14am UTC](https://forum.ansible.com/t/aws-resource-actions-is-not-giving-expected-outcome/31455 "2019-10-11T09:14:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arshad\_zameer](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@arshad\_zameer](https://forum.ansible.com/u/arshad_zameer)\
**Post date:** [October 11, 2019, 9:14am UTC](https://forum.ansible.com/t/aws-resource-actions-is-not-giving-expected-outcome/31455/1 "2019-10-11T09:14:59Z")

</div>

I have a playbook with several roles to be performed on AWS instances. I want to get the list of all aws resource actions used on the ec2 modules so i can create specific IAM role with those permisions. But i’m unable to get the specified output as per the documentation. I have done the changes as per the documentaion. Modified the ansible.cfg to

`[defaults] callback_whitelist = aws_resource_actions`

Also on the playbook i have given the group as follow- name: Get instance details and attach ebs volumes

`  
hosts: some hosts  
module\_defaults:  
group/aws:  
debug\_botocore\_endpoint\_logs: True  
gather\_facts: yes  
roles:

- a\_role  
`

Also i have added modified the ec2 task also to add this

`

- name : Create EBS one  
ec2\_vol:  
region: “{{ region }}”  
instance: “{{ item}}”  
device\_name: “{{ device }}”  
volume\_type: “{{ vol\_type }}”  
volume\_size: “{{ vol\_size }}”  
delete\_on\_termination: yes  
encrypted: yes  
debug\_botocore\_endpoint\_logs: yes  
tags:  
Name: “{{ vol\_name }}”  
register: EBSdetails  
`

Can anyone point me out what i have missed?
