*********************************************************************************
#!/usr/bin/python
import boto
import json
###### Configurations ########
ACCESS_KEY = "Access key value"
SECRET_KEY = "Secret Key value"
REGION_NAME = 'us-east-1'
FIRST_AZ = REGION_NAME + 'a'
SECOND_AZ = REGION_NAME + 'c'
iam_conn = boto.iam.connection.IAMConnection(aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host='
iam.amazonaws.com', debug=0, https_connection_factory=None, path='/', security_token=None, validate_certs=True, profile_name=None)
print iam_conn
response = iam_conn.create_policy(PolicyName='Test DB Admin', Path='/', PolicyDocument='DB_Admin_Policy_Doc.json', Description='Description of Test DB Admin Policy')
print response
**************************************************************************************
Here DB_Admin_Policy_Doc.json is JSON file which contains policy document and it is in the same directory where this script lies.
Please help me and suggest where am I doing mistake.