summaryrefslogtreecommitdiffstats
path: root/hacking
diff options
context:
space:
mode:
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/setup-iam.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/hacking/aws_config/setup-iam.yml b/hacking/aws_config/setup-iam.yml
index 8132e27bb5..fffc04ac72 100644
--- a/hacking/aws_config/setup-iam.yml
+++ b/hacking/aws_config/setup-iam.yml
@@ -25,13 +25,12 @@
when: iam_group is not defined
- name: Get aws account ID
- command: aws sts get-caller-identity --output text --query 'Account' "{{ '--profile=' ~ profile if profile else '' }}"
- changed_when: False
- register: aws_account_command
+ aws_caller_facts:
+ register: aws_caller_facts
- name: Set aws_account_fact
set_fact:
- aws_account: "{{ aws_account_command.stdout }}"
+ aws_account: "{{ aws_caller_facts.account }}"
- name: Ensure Managed IAM policies exist