From 2013d4abc46917e98681c248d09ef8311dab6ec8 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Wed, 12 Jun 2019 01:23:56 +1200 Subject: [PATCH] Update setup-iam playbook to use aws_caller_info rather than deprecated (#57675) aws_caller_facts --- hacking/aws_config/setup-iam.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hacking/aws_config/setup-iam.yml b/hacking/aws_config/setup-iam.yml index c1d8dd68cc..2740142959 100644 --- a/hacking/aws_config/setup-iam.yml +++ b/hacking/aws_config/setup-iam.yml @@ -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