Configuring environment variables for the AWS CLI - AWS Command Line Interface

Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named profile as the default.