It’s always a good practice to keep your authentication/authorization details out of your code (or anything that’ll be shared with others via source control, etc.). So when working with AWS and Terraform, how do you securely tell it what your AWS credentials are? The answer: $HOME/.aws/credentials (On Windows, "%USERPROFILE%.aws\credentials".) This is going to be a plain text file named “credentials” in that directory. A minimal implementation will contain just 3 lines.