aws_resource_actions is not giving expected outcome

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?