teslamotors / ansible_puller

Ansible daemon for massively-scaleable Ansible
MIT License
125 stars 33 forks source link

Use native S3 client #17

Closed scottcrossen closed 3 years ago

scottcrossen commented 3 years ago

This should work better with China because the connection endpoint is chosen based on location of the EC2 node whenever ansible_puller is called from EC2 (this is due mostly to the new version of the SDK)

Asking for a preliminary review before I test it.

The AWS SDK requires a context for all operations so I worked that through the binary.

scottcrossen commented 3 years ago

I've added an explicit s3-conn-region option for users to specify which region to connect to s3 from. Adam Kafka and I have also tested this in cn-north-1