Using Credentials from Environment Variables
AsyncAws recognizes environment variables that are used by most official AWS tools and SDKs.
# The access key for your AWS account.
export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
# The secret access key for your AWS account.
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Note: You cannot mix environment variables, configuration files, and hard-coded configuration.
use AsyncAws\Core\AwsClientFactory;
$client = new AwsClientFactory();