From dc9dfa9ef8e21eb7fc037c0f8c54d510a77e1beb Mon Sep 17 00:00:00 2001 From: Baraa Basata Date: Wed, 22 Jul 2015 00:03:33 -0400 Subject: [PATCH] Fix iam_policy example --- cloud/amazon/iam_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/iam_policy.py b/cloud/amazon/iam_policy.py index 5026169e104..9213d1585b0 100644 --- a/cloud/amazon/iam_policy.py +++ b/cloud/amazon/iam_policy.py @@ -120,7 +120,7 @@ tasks: iam_policy: iam_type: user iam_name: "{{ item.user }}" - policy_name: "s3_limited_access_{{ item.s3_user_prefix }}" + policy_name: "s3_limited_access_{{ item.prefix }}" state: present policy_json: " {{ lookup( 'template', 's3_policy.json.j2') }} " with_items: