The AWS provides CLI to interact with its APIs. It's written in Python. You can follow installation instructions from the official guide to get started. Here is the link; https://aws.amazon.com/cli/.
Perhaps the most important part of setting up AWS CLI is access key configuration. We will also need these keys for Terraform. To get them, click on your username in the top-right part of the AWS Management Console, click on Security Credentials, and then download your keys from the Access Keys (Access Key ID and Secret Access Key) menu: