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

aws_caller_facts
pull/57665/head
Ed Costello 5 years ago committed by Sloane Hertel
parent a8ebbecd53
commit 2013d4abc4

@ -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

Loading…
Cancel
Save