mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
added account_alias in the response of module aws_caller_facts (#42345)
* added account_alias in the response of module aws_caller_facts * added comment to explain list_account_aliases * renamed caller_identity to caller_facts as the content is extended * created changelog * security-policy needs the iam:ListAccountAliases for this module to work * test now checks for the added field account_alias * gracefully handle missing iam:ListAccountAliases permission
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
region: "{{ aws_region }}"
|
||||
aws_access_key: "{{ aws_access_key }}"
|
||||
aws_secret_key: "{{ aws_secret_key }}"
|
||||
security_token: "{{security_token}}"
|
||||
security_token: "{{ security_token }}"
|
||||
register: result
|
||||
|
||||
- name: assert correct keys are returned
|
||||
@@ -12,3 +12,4 @@
|
||||
- result.account is not none
|
||||
- result.arn is not none
|
||||
- result.user_id is not none
|
||||
- result.account_alias is not none
|
||||
|
||||
Reference in New Issue
Block a user