From ff2ad890816f138e9bea14145e9869ef10849f89 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Tue, 23 Jan 2018 18:55:56 -0500 Subject: [PATCH] Fix aws_account_attribute lookup credentials bug for access keys (#35242) --- lib/ansible/plugins/lookup/aws_account_attribute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/aws_account_attribute.py b/lib/ansible/plugins/lookup/aws_account_attribute.py index 00b4b943fd5..5fa68565d29 100644 --- a/lib/ansible/plugins/lookup/aws_account_attribute.py +++ b/lib/ansible/plugins/lookup/aws_account_attribute.py @@ -121,8 +121,8 @@ def _boto3_conn(region, credentials): def _get_credentials(options): credentials = {} credentials['boto_profile'] = options['boto_profile'] - credentials['aws_secret_access_key'] = options['aws_access_key'] - credentials['aws_access_key_id'] = options['aws_secret_key'] + credentials['aws_secret_access_key'] = options['aws_secret_key'] + credentials['aws_access_key_id'] = options['aws_access_key'] credentials['aws_session_token'] = options['aws_security_token'] return credentials