---
- name: Retrieve AWS billing data
  ansible.builtin.command:
    cmd: python3 files/scripts/fetch_billing_data_aws.py --tag_key 'tag' --tag_value '{{ item }}-{{ tag_uuid }}' --access_key '{{ AWS_ACCESS_KEY_ID }}' --secret_key '{{ AWS_SECRET_ACCESS_KEY }}' --output_file 'aws_billing_metrics_{{ item }}.json'
  loop:
    - karpenter
    - cas
