How does terraform communicate with AWS?

I was wondering how terraform sends your code to AWS, is it in plain text or does it obscure it somehow?

Is there an option for some security measure if it is plain text?

The code itself is not sent; it is used to generate API requets towards AWS’s API service. Those API calls are encrypted using TLS.