aws_access_key_id - AWS SDKs and Tools

aws_access_key_id

Specifies the AWS access key used as part of the credentials to authenticate the user.

Details

Although this setting can be stored in the config file, for security reasons, we recommend that you store this in the credentials file.

Ways to set this value

Location Supported Example
config file

Yes

Not recommended

aws_access_key_id = AKIAIOSFODNN7EXAMPLE
credentials file

Yes

Recommended

aws_access_key_id = AKIAIOSFODNN7EXAMPLE
Environment variable Yes Linux/macOS
export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
Windows
setx AWS_ACCESS_KEY_ID AKIAIOSFODNN7EXAMPLE
AWS CLI parameter -

Compatibility with AWS SDKS and tools

SDK or tool Supported Notes or more information
AWS Command Line Interface (AWS CLI) Yes
AWS SDK for .NET Yes
AWS SDK for PHP Yes
AWS SDK for Python (Boto3) Yes

AWS Toolkit for JetBrains

Yes This SDK/Tool doesn't support the environment variable equivalent: AWS_ACCESS_KEY_ID
AWS Toolkit for Visual Studio Yes This SDK/Tool doesn't support the environment variable equivalent: AWS_ACCESS_KEY_ID
AWS Toolkit for Visual Studio Code Yes This SDK/Tool doesn't support the environment variable equivalent: AWS_ACCESS_KEY_ID
AWS Tools for PowerShell Yes