Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/aws_caller_info/tasks/main.yaml

raw
1 ---
2 - module_defaults:
3 group/aws:
4 region: "{{ aws_region }}"
5 access_key: "{{ aws_access_key }}"
6 secret_key: "{{ aws_secret_key }}"
7 session_token: "{{ security_token | default(omit) }}"
8 block:
9 - name: Retrieve caller facts
10 amazon.aws.aws_caller_info:
11 register: result
12
13 - name: Assert correct keys are returned
14 ansible.builtin.assert:
15 that:
16 - result.account is not none
17 - result.arn is not none
18 - result.user_id is not none
19 - result.account_alias is not none