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