aws_secret_access_key - AWS SDKs and Tools Shared Configuration and Credentials

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

X

Not recommended

aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
credentials file

X

Recommended

aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Environment variable X Linux/macOS
export AWS_SECRET_ACCESS_KEY wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Windows
setx AWS_SECRET_ACCESS_KEY wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
CLI parameter -

Compatibility with AWS SDKS and tools

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

AWS Toolkit for JetBrains consists of:

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