Using Credentials from Environment Variables
AsyncAws recognize Env variables that are used by most official AWS tools and SDK.
# 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 env variables with configuration config with hard-coded configuration.
use AsyncAws\Core\AwsClientFactory;
$client = new AwsClientFactory();