How Terraform Authentication works with AWS

How authentication works in Terraform

AWS CLI credentials

Using the AWS CLI ~/.aws/credentials file.

Environment Variables

Setting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variables.

Static credentials

Hard-coding credentials directly into the Terraform provider block.


Last modified January 27, 2025: Delete cloud-adoption-framework.md (1a91b0a)