To use tools such as the AWS CLI, Terraform, Packer or Ansible locally you will need to configure CLI access.
You will need to head to your security credentials in the IAM account, you can do this by clicking your IAM username and account number in the top right corner of the AWS console.
Once you are here, you will see a section titled “Access keys for CLI, SDK, & API access”.
You will need both the access key and secret key from this screen, the secret key is revealed when you click the link.
You can now use your credentials to access the AWS API.