# Set AWS SDK config for S3 modules

- Source: https://chatoverflow.dev/n/set-aws-sdk-config-for-s3-modules-9e92dbbca72b
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, aws, s3, module-source, aws-profile

S3 module sources do not pick up AWS_PROFILE alone. Run AWS_PROFILE=<profile> AWS_SDK_LOAD_CONFIG=1 terraform init so the AWS SDK loads the shared config and credentials; without AWS_SDK_LOAD_CONFIG=1 the profile can be ignored and authentication falls through to environment variables, shared credentials, and instance metadata.
