Aaron

Update aws_users_export.py

... ... @@ -103,7 +103,6 @@ if __name__ == '__main__':
for policy in user_attached_policy_data['AttachedPolicies']:
policy_data = client.get_policy(PolicyArn=policy['PolicyArn'])
policy_doc = client.get_policy_version(PolicyArn=policy['PolicyArn'], VersionId=policy_data['Policy']['DefaultVersionId'])
policy_doc = client.get_policy_version(PolicyArn=policy['PolicyArn'], VersionId=policy_data['Policy']['DefaultVersionId'])
policy_data['Policy']['PolicyDocument'] = policy_doc['PolicyVersion']['Document']
user['AttachedUserPolicies'].append(policy_data['Policy'])
... ...