vendredi 6 mars 2015

AWS boto SQS connection not support profile_name

I have a credentials file with multiple profiles. In my script, the profile name is passed as an argument and all of the connect_xxx calls use that profile name. This has been working fine - until I tried to connect to SQS. When I attempt to connect to SQS, i get: TypeError: init() got an unexpected keyword argument 'profile_name'.


For example, the code below works fine - until the SQS connect. Am I missing something, or did AWS forget to implement profile_name on SQS connect?



region_name = 'us-east-1'
profile_name = 'my-valid'
iam_conn = boto.connect_iam(profile_name=profile_name)
s3_conn = boto.connect_s3(profile_name=profile_name)
ec2_conn = boto.ec2.connect_to_region( region_name, profile_name=profile_name )
vpc_conn = boto.vpc.connect_to_region( region_name, profile_name=profile_name )
sqs_conn = boto.sqs.connect_to_region( region_name, profile_name=profile_name )




Aucun commentaire:

Enregistrer un commentaire