uploading ssl certificates to aws, for use with elb

Hi,
I was wondering if there is a way to upload ssl certificate to aws accounts to be used by elb ? I have been using aws cli in combination with ansible, however it gives an error if the certificate is already present in the account.

I would like to use Ansible for this, as it will help maintain state and wont break if the certificates already exsist.

Thanks

If not , I would appreciate if someone can point out how can I proceed to write a module for this from the scratch