aws_secret_access_key - AWS SDKs and Tools

aws_secret_access_key

Specifies the AWS secret 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_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
credentials file

Yes

Recommended

aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Environment variable Yes Linux/macOS
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Windows
setx AWS_SECRET_ACCESS_KEY wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
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_SECRET_ACCESS_KEY
AWS Toolkit for Visual Studio Yes This SDK/Tool doesn't support the environment variable equivalent: AWS_SECRET_ACCESS_KEY
AWS Toolkit for Visual Studio Code Yes This SDK/Tool doesn't support the environment variable equivalent: AWS_SECRET_ACCESS_KEY
AWS Tools for PowerShell Yes