Connecting IPFS hosted on EC2

Hi guys I am a begineer to IPFS and now exploring different usage. I started an EC2 instance and started IPFS daemon. I want to ask is there any way I can use the python library ipfshttpclient to upload files to this IPFS from a local machine.

I have set TCP accepting in-coming packages from all IPv4 address.