Update setup-iam playbook to use aws_caller_info rather than deprecated (#57675)

aws_caller_facts
This commit is contained in:
Ed Costello 2019-06-12 01:23:56 +12:00 committed by Sloane Hertel
parent a8ebbecd53
commit 2013d4abc4

View file

@ -25,13 +25,13 @@
when: iam_group is not defined
- name: Get aws account ID
aws_caller_facts:
aws_caller_info:
profile: "{{ profile|default(omit) }}"
register: aws_caller_facts
register: aws_caller_info
- name: Set aws_account_fact
set_fact:
aws_account: "{{ aws_caller_facts.account }}"
aws_account: "{{ aws_caller_info.account }}"
- name: Ensure Managed IAM policies exist