def addTag(region, akey, skey, resourceId, tagDict): ec2 = connectAws() ec2Obj = ec2.ec2Instance(akey, skey, region) result = ec2Obj.create_tags(resourceId, tagDict) if result: print "Created Tag for", resourceId else: print "Error:Not created Tag for", resourceId
def checkAWSkey(self, akey, skey, region): ec2 = connectAws() ec2Obj = ec2.ec2Instance(akey, skey, region) del ec2Obj return True